/* SGJ Institute Website - Academic Royal Blue Theme */

:root {
  /* Academic Royal Blue Theme Colors */
  --primary: #0B3C5D;
  --secondary: #1D70B8;
  --accent: #FFD700;
  --light: #F8F9FA;
  --dark: #212529;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  
  /* Background colors */
  --bg-primary: var(--primary);
  --bg-secondary: var(--secondary);
  --bg-light: var(--light);
  --bg-dark: #1a1a1a;
  
  /* Text colors */
  --text-primary: var(--dark);
  --text-light: #6c757d;
  --text-white: #ffffff;
  
  /* Border colors */
  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(0, 0, 0, 0.1);
  
  /* Spacing - Optimized for mobile */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
}

/* Base Styles with Mobile First Approach */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #F8FAFC !important;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly interactions */
button, a, input, textarea, select {
  -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
  touch-action: manipulation;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 3vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
h4 { font-size: clamp(1.25rem, 1.8vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
h6 { font-size: clamp(1rem, 1.2vw, 1.1rem); }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Buttons - Academic Royal Blue Theme */
.btn-primary {
  min-height: 48px;
  background: linear-gradient(135deg, #0B3C5D 0%, #1D70B8 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(11, 60, 93, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #14517A 0%, #2B82D0 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(11, 60, 93, 0.28);
  text-decoration: none;
}

.btn-secondary {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0B3C5D !important;
  border: 2px solid rgba(11, 60, 93, 0.18) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(11, 60, 93, 0.12);
}

.btn-secondary:hover {
  background: #FFFFFF !important;
  color: #0B3C5D !important;
  border-color: rgba(11, 60, 93, 0.28) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 60, 93, 0.18);
  text-decoration: none;
}

.btn-header {
  min-height: 48px;
  background: var(--accent) !important;
  color: #0B3C5D !important;
  border: 1px solid rgba(11, 60, 93, 0.12);
  font-weight: 700;
  transition: all 0.3s ease;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(255, 215, 0, 0.28);
}

.btn-header:hover {
  background: #E6C200 !important;
  transform: translateY(-1px);
  color: #0B3C5D !important;
  box-shadow: 0 14px 28px rgba(230, 194, 0, 0.32);
}

/* Mobile Button Adjustments */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary, .btn-header {
    min-height: 48px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    min-height: 48px;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Navigation */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
  #mobile-menu-btn {
    display: block !important;
    position: relative;
    z-index: 1003;
    color: white !important;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
  }
  
  .fab-button {
    right: 16px !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 56px !important;
    z-index: 9999;
  }
  
  #mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    border-radius: 0.75rem;
  }
  
  #mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--primary);
    padding: 1rem;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transform: none;
    opacity: 0;
    visibility: hidden;
  }
  
  #main-nav.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
  }

  #main-nav .nav-link {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.1);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #main-nav .mobile-cta-link {
    margin-top: 1rem;
    text-align: center;
    background: var(--accent) !important;
    color: var(--primary) !important;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(255, 215, 0, 0.18);
  }
  
  #main-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--accent) !important;
  }

  #main-nav .mobile-cta-link:hover {
    background: #e6c200 !important;
    color: var(--primary) !important;
  }
  
  .mobile-menu-close {
    display: none !important;
  }
  
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 93, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10990;
    pointer-events: none;
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  /* Hide desktop apply button on mobile */
  .hidden.md\:flex {
    display: none !important;
  }
  
  /* Show mobile apply button */
  .md\:hidden {
    display: block !important;
  }
}

/* Desktop Navigation (768px and above) */
@media (min-width: 769px) {
  #main-nav {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    left: auto !important;
  }
  
  #main-nav a {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    text-align: center;
    width: auto;
  }
  
  .mobile-menu-close {
    display: none !important;
  }
  
  .menu-overlay {
    display: none !important;
  }
  
  /* Hide mobile apply button on desktop */
  .md\:hidden {
    display: none !important;
  }
  
  /* Show desktop apply button */
  .hidden.md\:flex {
    display: flex !important;
  }
}

/* Ensure mobile menu button is visible on mobile */
@media (max-width: 768px) {
  #mobile-menu-btn {
    display: block !important;
  }
}

@media (min-width: 769px) {
  #mobile-menu-btn {
    display: none !important;
  }
}

/* Hero Section - Enhanced for both devices */
.hero-section {
  padding: 4vw 1rem;
  text-align: center;
  min-height: auto; /* Allow content and padding to define height */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0B3C5D 0%, #1D70B8 100%) !important;
}

.hero-home {
  width: 100%;
  aspect-ratio: 16 / 9; /* Matches exactly the 6000x3375 image size to prevent cutting */
  background:
    linear-gradient(rgba(11, 60, 93, 0.38), rgba(11, 60, 93, 0.38)),
    url('../images/SGJ%20COLLEGE.webp') center center / cover no-repeat !important; /* WebP format for better performance */
  background-color: #0B3C5D !important;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white !important;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #E5E7EB !important;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 6vw 1rem;
    min-height: auto;
  }

  .hero-home {
    aspect-ratio: auto;
    min-height: 60vh;
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero-section h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-section .flex {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-section .btn-primary,
  .hero-section .btn-secondary {
  min-height: 44px;
    width: min(100%, 280px);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .hero-section p {
    font-size: 1.4rem;
  }
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .md\:grid-cols-2, .md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Base Image Responsiveness */
img, video {
  max-width: 100%;
  height: auto;
}

/* Universal Box Style Base */
.card-box, .program-card, .facility-card, .feature-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
  transition: all 0.3s ease;
}

.card-box:hover, .program-card:hover, .facility-card:hover, .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
  border-color: rgba(11, 60, 93, 0.2) !important;
}

@media (max-width: 768px) {
  .program-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
}



.section-brow {
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(29, 112, 184, 0.08);
  border: 1px solid rgba(29, 112, 184, 0.14);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #526172;
  line-height: 1.8;
}

.home-showcase {
  position: relative;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.facility-card {
  min-height: 100%;
  text-align: left;
}

.facility-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5fb;
  color: var(--secondary);
}

.facility-meta {
  margin-bottom: 0.45rem;
  color: #6b7c8f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facility-title {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.facility-copy {
  margin-bottom: 0;
  color: #4f6273;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-mark {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.feature-title {
  margin-bottom: 0.6rem;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-copy {
  margin-bottom: 0;
  color: #53687a;
  line-height: 1.75;
}

.course-page {
  background:
    radial-gradient(circle at top left, rgba(29, 112, 184, 0.08), transparent 24%),
    linear-gradient(180deg, #f5f9fd 0%, #edf4fb 100%);
}

.course-page-main {
  position: relative;
  overflow: hidden;
}

.course-page-main::before {
  content: "";
  position: absolute;
  top: 12rem;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.14), rgba(255, 193, 7, 0));
  pointer-events: none;
}

.course-page-shell {
  position: relative;
  z-index: 2;
  margin-top: -5.5rem;
  padding-top: 0 !important;
  padding-bottom: 4rem !important;
}

.course-page-shell > div {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.course-page-shell section {
  margin-bottom: 0 !important;
}

.course-hero {
  position: relative;
  min-height: 66vh;
  padding: 7.8rem 1rem 9rem;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 193, 7, 0.22), transparent 18%),
    radial-gradient(circle at 84% 22%, rgba(255, 255, 255, 0.12), transparent 16%),
    linear-gradient(135deg, rgba(11, 60, 93, 0.98), rgba(18, 84, 132, 0.96), rgba(29, 112, 184, 0.95)) !important;
}

.course-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 120px);
  pointer-events: none;
}

.course-hero .container {
  position: relative;
  z-index: 1;
}

.course-hero-brow {
  margin-bottom: 1.15rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffe29a;
  backdrop-filter: blur(12px);
}

.course-hero-copy {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: #e8eef6 !important;
  line-height: 1.85;
}

.page-hero {
  min-height: 58vh;
  padding: 7rem 1rem 5.5rem;
}

.page-hero-home {
  min-height: 68vh;
  background:
    linear-gradient(rgba(11, 60, 93, 0.72), rgba(11, 60, 93, 0.72)),
    url('../images/SGJ%20COLLEGE.webp') center center / cover no-repeat !important; /* WebP format for better performance */
}

.page-hero .course-hero-copy {
  max-width: 780px;
}

.page-hero .course-hero-pills {
  margin-top: 2rem;
  max-width: 960px;
}

.course-hero-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin: 2.2rem auto 0;
}

.course-hero-pill {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(2, 12, 27, 0.18);
  backdrop-filter: blur(14px);
}

.course-hero-pill-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffd25c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-hero-pill-value {
  display: block;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc107, #1d70b8);
}

.course-section-brow {
  margin: 0 0 0.95rem;
}

.course-section-brow-center {
  margin-left: auto;
  margin-right: auto;
}

.course-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(201, 217, 233, 0.95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(10px);
}

.course-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #ffc107, #1d70b8);
}

.course-panel::after {
  content: "";
  position: absolute;
  top: -3.5rem;
  right: -3rem;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(29, 112, 184, 0.08), rgba(29, 112, 184, 0));
  pointer-events: none;
}

.course-panel-intro {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
}

.course-panel-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96));
}

.course-section-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: #516577;
  font-size: 1.03rem;
  line-height: 1.9;
}

.course-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.course-summary-card,
.course-info-card,
.course-list-card,
.course-reason-card,
.course-cta-panel {
  position: relative;
  overflow: hidden;
}

.course-summary-card,
.course-info-card,
.course-list-card,
.course-reason-card {
  border: 1px solid #dbe7f3;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.course-summary-card::before,
.course-info-card::before,
.course-list-card::before,
.course-reason-card::before,
.course-cta-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffc107, #1d70b8);
}

.course-summary-card:hover,
.course-info-card:hover,
.course-list-card:hover,
.course-reason-card:hover {
  transform: translateY(-4px);
  border-color: #bfd5ea;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}

.course-summary-card {
  min-height: 100%;
  padding: 1.45rem;
  border-radius: 1rem;
  text-align: left;
}

.course-summary-label {
  margin-bottom: 0.35rem;
  color: #6b7c8f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-summary-value {
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.5;
}

.course-summary-note {
  margin-bottom: 0;
  color: #556879;
  line-height: 1.68;
}

.course-info-card,
.course-list-card {
  padding: 1.55rem;
  border-radius: 1.15rem;
}

.course-info-card h3,
.course-list-card h3,
.course-reason-title {
  color: var(--primary);
}

.course-info-card h3,
.course-list-card h3 {
  position: relative;
  padding-bottom: 0.7rem;
}

.course-info-card h3::after,
.course-list-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.6rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(29, 112, 184, 0.22);
}

.course-info-card ul,
.course-list-card ul {
  margin-bottom: 0;
}

.course-reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.course-reason-card {
  padding: 1.5rem;
  border-radius: 1rem;
}

.course-reason-tag {
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(29, 112, 184, 0.08);
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-reason-title {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.course-reason-copy {
  margin-bottom: 0;
  color: #526576;
  line-height: 1.75;
}

.course-note {
  margin-bottom: 0;
  padding: 1rem 1.15rem;
  border-radius: 0.95rem;
  background: #f9fbfd;
  border-left: 4px solid #ffc107;
  color: #556879;
  line-height: 1.75;
}

.course-cta-panel {
  padding: 2.25rem;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #0b3c5d 0%, #145988 55%, #1d70b8 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.course-cta-panel .section-title {
  color: #ffffff;
}

.course-cta-panel .section-title::after {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffd25c, #ffffff);
}

.course-cta-copy {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(232, 238, 246, 0.94);
  line-height: 1.8;
}

.course-cta-panel .btn-primary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.course-cta-panel .btn-primary:hover {
  background: #f6f9fc;
  color: var(--primary);
}

.course-cta-panel .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.course-cta-panel .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (max-width: 992px) {
  .course-hero-pills,
  .course-summary-grid,
  .course-reasons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .course-page-shell {
    margin-top: -3.25rem;
    padding-bottom: 3rem !important;
  }

  .course-page-shell > div {
    gap: 1.4rem;
  }

  .course-hero {
    min-height: auto;
    padding: 6.2rem 1rem 6rem;
  }

  .page-hero {
    padding: 6rem 1rem 4rem;
  }

  .page-hero-home {
    min-height: 64vh;
  }

  .course-hero-pills {
    gap: 0.85rem;
    margin-top: 1.6rem;
  }

  .course-hero-pill {
    text-align: center;
  }

  .section-title {
    padding-bottom: 0.55rem;
  }

  .section-title::after {
    width: 56px;
  }

  .course-panel,
  .course-summary-card,
  .course-info-card,
  .course-list-card,
  .course-reason-card,
  .course-cta-panel {
    padding: 1.25rem;
  }

  .course-cta-panel .section-title::after {
    width: 56px;
  }
}

@media (max-width: 992px) {
  .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .facility-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .facility-card,
  .feature-card {
    padding: 1.25rem;
  }

  .facility-title,
  .feature-title {
    font-size: 1.05rem;
  }
}


/* Info Slider */
.info-slider {
  padding: 0.5rem 0;
  overflow: hidden;
}

.info-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: slideText 28s linear infinite !important;
}

.info-track span {
  flex: 0 0 auto;
  font-size: 0.9rem;
  padding-right: 3rem;
  display: inline-block;
}

/* Slider Animation */
@keyframes slideText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Keep ticker running even on hover */
.info-track,
.info-track span {
  pointer-events: none;
}

.info-slider:hover .info-track,
.info-track:hover {
  animation-play-state: running !important;
}

@media (max-width: 768px) {
  .info-track span {
    font-size: 0.8rem;
    padding-right: 2rem;
  }
  
  .info-track {
    animation-duration: 22s;
  }
}

/* Footer */
footer {
  padding: 2rem 1rem;
  color: #E5E7EB !important;
}

footer h3 {
  color: #FFFFFF !important;
}

footer p,
footer li,
footer a {
  color: #E5E7EB !important;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent) !important;
}

@media (max-width: 768px) {
  footer .grid {
    gap: 1.5rem;
  }
  
  footer h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  footer p, footer li {
    font-size: 0.9rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Mobile Utility Classes */
@media (max-width: 768px) {
  .flex-wrap {
    flex-wrap: wrap;
  }
  
  .text-lg {
    font-size: 1.125rem;
  }
  
  .text-xl {
    font-size: 1.25rem;
  }
  
  .py-8 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0.9;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.back-to-top:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

.back-to-top.hidden {
  display: none;
}

.back-to-top.block {
  display: flex;
}

/* Mobile Adjustments for Back to Top */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Animation Classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile First Approach */
@media (max-width: 480px) {
  :root {
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
  }
  
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
  
  .container {
    padding: 0 0.5rem;
  }
  
  .hero-section {
    padding: 1.5rem 0.5rem;
  }
  
  .program-card {
    padding: 0.75rem;
  }
}

/* 
 * Continuous Marquee Slider 
 * (Used for Leadership Section)
 */
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Add subtle inner shadow to mask edges */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content; /* Critical: allows track to expand to fit all cloned cards */
  animation: scroll-marquee 25s linear infinite;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate exactly half the width to seamlessly loop since content is doubled */
    transform: translateX(-50%);
  }
}

@keyframes slideLeadership {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}



