/* ===========================
   UPSKA – Global Styles (Premium Redesign)
   =========================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --royal-1: #050922;
  --royal-2: #0d2c7a;
  --royal-gradient: linear-gradient(135deg, #0d2c7a, #050922);
  --accent: #e21b1b;
  --accent-dark: #b91212;
  --accent-soft: #ffebe9;

  /* Backgrounds & Surfaces */
  --bg: #f8fafc;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.95);
  --header-glass: rgba(255, 255, 255, 0.85);

  /* Borders & Shadows */
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-brand: 0 10px 30px -5px rgba(13, 44, 122, 0.15);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Oswald', sans-serif;

  /* Text Colors */
  --text-main: #1e293b;
  --text-light: #64748b;
  --muted: #94a3b8;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(13, 44, 122, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(226, 27, 27, 0.03) 0px, transparent 50%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Layout Helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-section {
  padding: 60px 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Animations (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  visibility: hidden;
  /* Avoid layout shifts before load */
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Stagger delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Topbar */
.topbar {
  background: linear-gradient(90deg, var(--royal-2), #c31432);
  color: #fff;
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: none;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Header / Navbar (Glassmorphism) */
.navbar {
  background: var(--header-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 0;
}

/* ===========================
   Navigation & Mobile Menu
   =========================== */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: 100%;
  justify-content: center;
  /* Center everything including logo */
}

/* Visibility Utilities */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--royal-1);
}

/* Old media query removed - merged into the main mobile block at the bottom */

.nav-link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--royal-1);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-logo img {
  height: 99px;
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-logo img {
  height: 60px;
  /* Reduces height when sticky */
}

.nav-logo:hover img {
  transform: scale(1.05);
}

/* Breadcrumb Ribbon */
.ribbon-wrap {
  display: flex;
  justify-content: center;
  margin-top: -35px;
  /* Increased overlap */
  /* Slight overlap with banner */
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
}

.ribbon {
  background: var(--accent);
  color: #fff;
  padding: 12px 40px;
  transform: skewX(-15deg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: var(--shadow-lg);
}

.ribbon span {
  display: inline-block;
  transform: skewX(15deg);
}

/* Page Headings */
.page-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 1rem 0 2rem;
  background: linear-gradient(to right, var(--royal-1), var(--royal-2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-heading .accent {
  background: linear-gradient(to right, var(--accent), #ff4d4d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards (Premium Look) */
.card {
  background: var(--card);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-brand);
  border-color: rgba(13, 44, 122, 0.1);
}

/* Decorative top border for cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-2), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--royal-1);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}


/* Hero / Banner Refactored (2-Column)
   --------------------------- */
.hero-banner {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--royal-1), var(--accent-dark));
  position: relative;
  overflow: hidden;
  color: #fff;
  /* Add subtle pattern or texture */
  background-image: linear-gradient(135deg, rgba(5, 9, 34, 0.95), rgba(185, 18, 18, 0.9)),
    url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.hero-content {
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background: rgba(226, 27, 27, 0.2);
  border: 1px solid rgba(226, 27, 27, 0.4);
  color: #ffcccc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-banner {
    padding: 40px 0;
  }
}

/* Hero Slider */
.hero-slider-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: #000;
  aspect-ratio: 4/3;
  /* Force typical aspect ratio */
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Activity Slider (inherits basics from hero slider logic) */
.activity-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.activity-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.activity-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

/* Specific styles for Activity Slider Dots (Outside) */
.activity-slider-wrap .slider-dots.activity-dots {
  position: static;
  transform: none;
  margin-top: 15px;
  justify-content: center;
}

.activity-slider-wrap .slider-dots.activity-dots .slider-dot {
  background: #cbd5e1;
  /* Darker gray for white background visibility */
}

.activity-slider-wrap .slider-dots.activity-dots .slider-dot.active {
  background: var(--accent);
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Buttons
   --------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--royal-2), #0a3fae);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 0.5rem 1.3rem rgba(11, 50, 140, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    filter 0.16s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 1.9rem rgba(11, 50, 140, 0.4);
}

/* Badges
   --------------------------- */
.badge-year {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(226, 27, 27, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Gallery
   --------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

/* Masonry Layout for Gallery Page */
.gallery-masonry {
  column-count: 4;
  column-gap: 20px;
}

.gallery-masonry img {
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  border-radius: 12px;
  object-fit: cover;
  background: #d1d5db;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  display: block;
  /* Removes bottom spacing whitespace */
}

.gallery-masonry img:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0.75rem 1.7rem rgba(15, 23, 42, 0.32);
  filter: saturate(1.1);
}

@media (max-width: 1200px) {
  .gallery-masonry {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    column-count: 1;
  }
}

/* News Page Styles */
.news-container {
  width: 100%;
  margin: 0 auto;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-left: 5px solid #e31e24;
  /* Theme Red */
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.news-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
  line-height: 1.3;
}

.news-excerpt {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e31e24;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: gap 0.3s ease;
}

.read-more-btn:hover {
  gap: 12px;
  color: #b91318;
}


/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 260px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #e31e24;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown .nav-link {
  cursor: pointer;
}

.gallery-grid img {
  min-height: 140px;
  border-radius: 12px;
  object-fit: cover;
  background: #d1d5db;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    filter 0.18s ease;
}

.gallery-grid img:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0.75rem 1.7rem rgba(15, 23, 42, 0.32);
  filter: saturate(1.1);
}

/* Member & commission cards (Visiting Card Style)
   --------------------------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.member-card {
  background: #ffffff;
  border-radius: 12px;
  border: none;
  padding: 0;
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  /* Soft generic shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  min-height: 180px;
}

/* Decorative left border stripe */
.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--royal-2), var(--accent));
  z-index: 2;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(8, 13, 40, 0.12);
}

.member-img-wrapper {
  width: 120px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* Diagonal divider effect */
.member-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: -20px;
  width: 40px;
  height: 100%;
  background: #ffffff;
  transform: skewX(-15deg);
  z-index: 1;
}

/* Enquiry Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--royal-1);
  margin: 0;
  text-transform: uppercase;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent);
}

.enquiry-form .form-group {
  margin-bottom: 15px;
}

.enquiry-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--royal-1);
  font-size: 0.9rem;
}

.enquiry-form .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}

.enquiry-form .form-control:focus {
  outline: none;
  border-color: var(--royal-2);
  box-shadow: 0 0 0 3px rgba(13, 44, 122, 0.1);
}

.iti {
  width: 100%;
}

.error-message {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-control.error {
  border-color: var(--accent);
}

.enquiry-form button[type="submit"] {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 1rem;
}

.member-info {
  flex: 1;
  padding: 20px 20px 20px 10px;
  /* Left padding reduced cause of image wrapper overlap */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  z-index: 2;
  /* above skewed bg */
}

.member-name {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--royal-1);
  margin: 0;
  line-height: 1.2;
}

.member-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 10px 0;
  width: 50px;
  /* Small dash */
}

.member-detail {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.member-detail span {
  font-size: 0.9rem;
  opacity: 0.7;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Tables (Results pages, 2022–2025)
   --------------------------- */

.table-wrap {
  margin-top: 0.75rem;
  border-radius: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 0.7rem 1.6rem rgba(7, 11, 30, 0.06);
}

/* Base table */
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  /* keeps alignment, but wrapper scrolls on mobile */
}

th,
td {
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  border-bottom: 1px solid #edf0f7;
  text-align: left;
}

th {
  background: #f7f8fc;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

tr:nth-child(even) td {
  background: #fbfcff;
}

tr:hover td {
  background: #f3f6ff;
}

/* Medals (for 2022–2025 results) */
.medal-gold,
.medal-GOLD {
  color: #b8860b;
  font-weight: 700;
}

.medal-silver,
.medal-SILVER {
  color: #6b7280;
  font-weight: 700;
}

.medal-bronze,
.medal-BRONZE {
  color: #8b4513;
  font-weight: 700;
}

/* Highlight header rows (like category title rows) */
tr.category-header th {
  background: #ffe26a;
  color: #111827;
}

/* Downloads cards (PDF forms)
   --------------------------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.download-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 0.6rem 1.7rem rgba(8, 13, 40, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.download-card img {
  width: 80px;
  margin: 10px auto 4px;
}

.download-card-title {
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.1rem rgba(8, 13, 40, 0.16);
  border-color: rgba(226, 27, 27, 0.7);
}

/* Contact page
   --------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 22px;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 20px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 0.7rem 1.6rem rgba(7, 11, 30, 0.06);
}

.contact-item {
  margin-bottom: 14px;
}

.contact-item-title {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.92rem;
}

/* Simple form (if you add enquiry form later) */
label {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}

.input,
textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Lightbox
   --------------------------- */
#lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent);
}


/* Footer
   --------------------------- */
.footer {
  background: linear-gradient(160deg, var(--royal-1), var(--royal-2));
  color: #e5edff;
  margin-top: 40px;
  padding: 28px 0 16px;
  border-radius: 18px 18px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 22px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h6 {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: #ffffff;
}

.footer-accent {
  height: 3px;
  width: 70px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, var(--accent));
  margin: 0.35rem 0 1rem;
}

.footer p,
.footer small {
  color: #cbd5ff;
  font-size: 0.88rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  text-transform: capitalize;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 1.4rem;
  padding-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* Small screen tweaks
   --------------------------- */
@media (max-width: 600px) {
  .hero-inner {
    padding: 18px;
  }

  .hero-inner h1 {
    font-size: 1.7rem;
  }

  .page-heading {
    font-size: 1.55rem;
  }

  .nav-links {
    gap: 0.7rem;
  }
}

/* Overview (Vision / Mission / Goal) */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.overview-item {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  box-shadow: 0 0.7rem 1.6rem rgba(7, 11, 30, 0.06);
  position: relative;
  overflow: hidden;
}

.overview-number span {
  position: absolute;
  top: 12px;
  right: 16px;
  font-weight: 800;
  font-size: 1rem;
  color: rgba(148, 163, 184, 0.9);
}

.overview-icon-area {
  margin-bottom: 8px;
}

.overview-icon img {
  width: 46px;
  height: 46px;
}

.overview-content .title {
  font-size: 1rem;
  font-weight: 800;
  margin: 4px 0 6px;
}

.overview-content p {
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Testimonial carousel */
.testimonial-section {
  position: relative;
  /* background removed */
  padding: 80px 0;
  overflow: hidden;
}

.testimonial-carousel {
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  padding: 10px 0 40px;
  /* Space for shadows/dots */
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.testimonial-item {
  min-width: 100%;
  flex: 0 0 100%;
  padding: 0 15px;
  /* Gutter */
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .testimonial-item {
    min-width: 50%;
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-item {
    min-width: 33.333%;
    flex: 0 0 33.333%;
  }
}

.testimonial-inner {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(13, 44, 122, 0.1);
  border-color: rgba(226, 27, 27, 0.1);
}

.testimonial-inner::before {
  content: "“";
  font-family: serif;
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 15px;
  left: 20px;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial-name {
  font-weight: 700;
  color: var(--royal-2);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin: 0;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--royal-1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.testimonial-prev {
  left: 20px;
}

.testimonial-next {
  right: 20px;
}

/* Page Banner (Premium) */
.page-banner {
  background: linear-gradient(135deg, var(--royal-1), var(--royal-2));
  padding: 60px 0 70px;
  /* Extra padding at bottom for ribbon overlap */
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(at 0% 0%, rgba(226, 27, 27, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(13, 44, 122, 0.3) 0px, transparent 50%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .page-banner {
    padding: 80px 0 100px;
  }

  .page-banner h1 {
    font-size: 2.5rem;
  }
}

/* Event Page Tables */
/* Event Page Tables */
/* Event Page Tables */
/* Event Page Tables */
.news-container table {
  width: 100%;
  margin-bottom: 30px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd;
}

.news-container th {
  /* Removed background to allow tr inline style (yellow) to show */
  background: transparent;
  color: #000;
  padding: 10px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 2px solid #ddd;
}

.news-container td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 14px;
}

.news-container tr:last-child td {
  border-bottom: none;
}

.news-container tr:hover {
  background-color: #f9f9f9;
}

/* Event Results Column Coloring */
/* Column 2: GOLD */
.news-container table th:nth-child(2),
.news-container table td:nth-child(2) {
  background-color: #fff4cb;
  /* Light Gold */
  border-color: #ffe69c;
}

/* Column 3: SILVER */
.news-container table th:nth-child(3),
.news-container table td:nth-child(3) {
  background-color: #f4f4f4;
  /* Light Silver/Grey */
  border-color: #e0e0e0;
}

/* Columns 4 & 5: BRONZE */
.news-container table th:nth-child(4),
.news-container table td:nth-child(4),
.news-container table th:nth-child(5),
.news-container table td:nth-child(5) {
  background-color: #fbeadd;
  /* Light Bronze */
  border-color: #f0dcc5;
}

/* Specific overrides for the scraped content structure */
.news-container .learn-widget-area {
  margin-bottom: 50px;
}

.news-container .widget-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}

.news-container .widget-title span {
  display: block;
  font-size: 16px;
  color: #666;
  margin-top: 5px;
  text-transform: none;
}

.news-container h3 {
  font-size: 18px;
  color: #444;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Contact Page Redesign */
.contact-grid-top {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.contact-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.contact-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #e31e24;
}

/* Contact Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
  background: #f9f9f9;
}

.form-control:focus {
  border-color: #e31e24;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: #e31e24;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #b91318;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(227, 30, 36, 0.2);
}

/* Contact Details with Icons */
.contact-detail-item {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-detail-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(227, 30, 36, 0.1);
  color: #e31e24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
}

.contact-text p {
  color: #666;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 0;
}

.contact-text a {
  color: #666;
  transition: color 0.3s;
}

.contact-text a:hover {
  color: #e31e24;
}

/* Map Section */
.contact-map-section {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  background: #fff;
  padding: 10px;
}

/* Responsiveness */
@media (max-width: 991px) {
  .contact-grid-top {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Enquiry Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--royal-1);
  margin: 0;
  text-transform: uppercase;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent);
}

.enquiry-form .form-group {
  margin-bottom: 15px;
}

.enquiry-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--royal-1);
  font-size: 0.9rem;
}

.enquiry-form .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}

.enquiry-form .form-control:focus {
  outline: none;
  border-color: var(--royal-2);
  box-shadow: 0 0 0 3px rgba(13, 44, 122, 0.1);
}

.iti {
  width: 100%;
}

.error-message {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-control.error {
  border-color: var(--accent);
}

.enquiry-form button[type="submit"] {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 1rem;
}

/* Download Page Styles */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.download-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(227, 30, 36, 0.2);
}

.download-card i.fa-file-pdf {
  font-size: 4rem;
  color: #e31e24;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.download-card:hover i.fa-file-pdf {
  transform: scale(1.1);
}

.download-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--royal-1);
  line-height: 1.3;
}

/* ===========================
   Mobile Navigation
   =========================== */
.hamburger {
  display: none;
  background: rgba(5, 9, 34, 0.04);
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(5, 9, 34, 0.08);
}

.hamburger .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  margin: 0;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  background-color: var(--royal-1);
}

@media (max-width: 992px) {

  /* Visibility Toggles */
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  /* Add spacing to the container */
  .navbar .nav-inner {
    padding-left: 25px;
    padding-right: 25px;
  }

  .hamburger {
    display: flex;
  }

  /* Hamburger Animation */
  .hamburger.active {
    background: rgba(227, 27, 27, 0.08);
    /* Light accent tint */
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--accent);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--accent);
  }

  /* Mobile Menu Drawer */
  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding-top: 100px;
    gap: 1.5rem;
    z-index: 99;
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--royal-1);
  }

  .nav-link.active {
    color: var(--accent);
  }

  /* Adjust typography for mobile */
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .page-heading {
    font-size: 2rem;
  }

  /* Mobile Dropdowns */
  .dropdown-content {
    display: none;
    position: static;
    background-color: #f8fafc;
    box-shadow: none;
    min-width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    margin-top: 5px;
  }

  .dropdown:hover .dropdown-content {
    display: none;
    /* Disable hover triggers on mobile */
  }

  .dropdown.active .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .dropdown>.nav-link::after {
    content: ' +';
    font-size: 1rem;
    margin-left: 5px;
    position: static;
    /* Reset absolute positioning */
    width: auto;
    height: auto;
    background: none;
  }

  .dropdown.active>.nav-link::after {
    content: ' -';
  }
}