/* Global Variables & Design System */
/* Global Variables & Design System */
:root {
  /* Colors - Family & School Friendly */
  --primary: #3B82F6; /* Bright, friendly academic blue */
  --primary-light: #60A5FA;
  --primary-dark: #1E3A8A; /* Deep trust blue */
  --secondary: #FFC82C; /* Premium golden yellow */
  --secondary-hover: #EAB308;
  --accent-green: #10B981; /* Growth and safety */
  --bg-light: #FFFBEB; /* Soft, warm ivory background */
  --bg-subtle: #F0F9FF; /* Soft sky blue background for sections */
  --text-dark: #1E293B;
  --text-muted: #475569;
  --white: #FFFFFF;
  
  /* Typography - Approchable but professional */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing, Layout & Shapes - Softer, rounded */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px; /* Very soft edges for cards */
  --container-width: 1200px;
  
  /* Shadows - Softer, deeper shadows for a 3D playful feel */
  --shadow-sm: 0 4px 12px rgba(59, 130, 246, 0.08);
  --shadow-md: 0 12px 24px rgba(59, 130, 246, 0.12);
  --shadow-lg: 0 24px 48px rgba(30, 58, 138, 0.15);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Typography Enhancements */
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo span {
  color: var(--secondary);
}

.logo img {
  width: auto;
  object-fit: contain;
}

.navbar .logo img {
  height: 60px;
}

.footer .logo img,
.footer .footer-brand .logo img {
  height: 120px;
}

/* Buttons - friendly and bouncy */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 50px; /* Pill-shaped buttons are highly friendly */
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 50px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary-dark);
  box-shadow: 0 8px 16px rgba(255, 200, 44, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 20px rgba(255, 200, 44, 0.4);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1010;
}

.mobile-menu-btn svg {
  width: 28px !important;
  height: 28px !important;
  stroke: var(--text-dark) !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding-top: 5rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 100%;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.schools-offerings-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .schools-offerings-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  border-bottom: 6px solid var(--primary-light);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--secondary);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.icon-wrapper {
  width: 72px;
  height: 72px;
  background: var(--bg-subtle);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  transform: rotate(-5deg);
  transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
  transform: rotate(5deg) scale(1.1);
  background: var(--secondary);
  color: var(--white);
}

.icon-wrapper svg {
  width: 36px;
  height: 36px;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* Programs */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
}

.program-card:hover {
  transform: translateY(-12px) scale(1.04) !important;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.18) !important;
}

.program-card.highlight {
  border: 4px solid var(--secondary);
}

.program-card.highlight:hover {
  transform: translateY(-12px) scale(1.04) !important;
  box-shadow: 0 20px 45px rgba(255, 200, 44, 0.38) !important;
}

.program-image {
  height: 240px;
  background-color: transparent;
  background-size: cover;
  background-position: center;
}

.bg-music { background-image: url('https://images.unsplash.com/photo-1593697821252-0c9137d9fc45?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.bg-exchange { background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.bg-custom { background-image: url('https://images.unsplash.com/photo-1577896851231-70ef18881754?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }

.program-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-content.split-left {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .program-content.split-left {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.program-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 200, 44, 0.3);
}

.program-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.program-content p {
  flex-grow: 1;
  margin-bottom: 2rem;
}

/* Timeline / Steps - Educational path */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 4rem;
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--bg-subtle);
  z-index: 1;
  border-radius: 10px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.step-num {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px; /* Squircle for friendliness */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  transform: rotate(-5deg);
  transition: var(--transition);
}

.step:hover .step-num {
  background: var(--secondary);
  transform: rotate(5deg) scale(1.1);
}

.step-content h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #EAB308 100%);
  color: var(--primary-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-content h2 {
  color: var(--primary-dark);
}

.cta-content p {
  color: rgba(30, 58, 138, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Footer */
.footer {
  background: var(--bg-white);
  color: var(--primary-dark);
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand .social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.footer-brand .social-icons img {
  width: 32px;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
}

.footer-brand .social-icons img:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.footer-about .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  max-width: 300px;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul a {
  color: rgba(255,255,255,0.7);
}

.footer-links ul a:hover {
  color: var(--secondary);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.footer-contact p svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3rem; }
  .feature-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    gap: 1.5rem;
  }
  
  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu-btn {
    display: flex !important;
    transition: transform 0.3s ease;
  }
  
  .mobile-menu-btn.active {
    transform: rotate(90deg);
  }

  .hero-content h1 { font-size: 2.25rem; }
  .hero-buttons { flex-direction: column; }
  .feature-grid, .program-grid, .footer-grid { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; gap: 2rem; }
  .timeline::before { display: none; }
  .cta-actions { flex-direction: column; }
  .hide-mobile { display: none !important; }
  .program-card { flex-direction: column !important; }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show {
    bottom: 0;
}
.cookie-content {
    max-width: 800px;
}
.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary-dark);
}
.cookie-content a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 600;
}
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }
}

/* Partners Section & Logo Grid */
.partners-section {
  background-color: var(--bg-white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
}

.logo-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 150px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-sm);
  transition: none !important;
}

.logo-item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: none !important;
}

/* Clean partner logo cards — no animation, no grayscale, always full color */
.partner-logo-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 100px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-sm);
  transition: none !important;
  animation: none !important;
}

.partner-logo-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}


@media (max-width: 992px) {
  .logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translate(-50%, -100px);
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-body);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-notification .toast-icon {
  color: var(--secondary);
  display: flex;
  align-items: center;
}

/* Custom Responsive grids and button animations for Hero section */
.hero-photos-grid, .hero-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin: 2rem 0;
}

.hero-buttons-grid {
  margin: 1.5rem 0 0 0;
}

.hero-buttons-grid .btn {
  width: 100%;
  white-space: nowrap;
}

.btn-shine-hover {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.btn-shine-hover:hover {
  border-color: rgba(255, 255, 255, 1) !important;
  background: rgba(255, 255, 255, 0.25) !important;
  color: var(--white) !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.65) !important;
  transform: translateY(-3px) scale(1.02);
}

@keyframes placeholder-slide {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

.text-center {
  text-align: center !important;
}

@media (max-width: 768px) {
  .hero-photos-grid, .hero-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* Auto-Scrolling Gallery Section Styling */
.photo-gallery-section {
  background-color: var(--bg-subtle);
  padding: 4.5rem 0 3.5rem;
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  width: 100%;
}

.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  display: flex;
}

/* Gradient Fade Masks on Left & Right for Premium Feel */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 5;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-subtle) 0%, rgba(240, 249, 255, 0) 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-subtle) 0%, rgba(240, 249, 255, 0) 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 310s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.gallery-item {
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255,255,255,0.7);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.gallery-overlay svg {
  color: var(--white);
  width: 36px;
  height: 36px;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover effects */
.gallery-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay svg {
  transform: scale(1);
}

/* Scrolling Keyframes */
@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Lightbox Modal Design */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  border: 4px solid rgba(255, 255, 255, 0.15);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10010;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10005;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev svg, .lightbox-next svg {
  width: 28px;
  height: 28px;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

@media (max-width: 992px) {
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}

@media (max-width: 768px) {
  .photo-gallery-section {
    padding: 3.5rem 0 2.5rem;
  }
  .gallery-item {
    width: 260px;
    height: 180px;
  }
  .lightbox-prev, .lightbox-next {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  .lightbox-content img {
    max-height: 60vh;
  }
}

/* Anti-Copy / Anti-Download Image Guard */
.gallery-item img,
#lightbox-img {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  pointer-events: none !important;
}

/* Global Responsive Layout Grids & Helpers */

/* B2B Grid (Schools & about sections) */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  align-items: center;
}

/* Team Grid (Founders section) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Timeline Grid (How it works section) */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Form Two Column Grid (apply/contact fields) */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Responsive Form/Content Card */
.form-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.form-card.narrow {
  max-width: 600px;
}

/* Details Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 600px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.25rem;
  font-weight: 300;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-dark);
}

.modal-details-text-container p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-details-text-container ul {
  margin-bottom: 1.5rem;
  padding: 0;
}

.modal-details-text-container li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.modal-details-text-container strong {
  color: var(--primary-dark);
}

/* Hide view details button by default (on desktop version, details are already expanded) */
.view-details-btn {
  display: none !important;
}

/* Horizontal Program Cards (on Programs page) */
.program-card-horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.program-card-horizontal.reverse {
  flex-direction: row-reverse;
}

.program-card-horizontal .program-image {
  flex: 1;
  height: auto;
  min-height: 400px;
}

.program-card-horizontal .program-image:has(iframe) {
  background-color: transparent !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.program-card-horizontal .program-image iframe {
  width: 100% !important;
  height: 600px !important;
  max-width: 100% !important;
  border: none;
  display: block;
}

.program-card-horizontal .program-content {
  flex: 1;
  padding: 4rem;
}

/* Responsive Overrides for grids and details */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .program-card-horizontal .program-content {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .b2b-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-card {
    padding: 2rem;
  }

  /* Hide text details on mobile program cards */
  .program-details-text {
    display: none !important;
  }
  
  /* Make sure all three action buttons are displayed on mobile */
  .program-card-horizontal .program-actions .download-btn,
  .program-card-horizontal .program-actions .view-details-btn {
    display: inline-flex !important;
  }

  /* Program Card stack layout for mobile viewports */
  .program-card-horizontal,
  .program-card-horizontal.reverse {
    flex-direction: column !important;
  }
  
  /* Show Instagram Reel or background image on TOP (order 1) */
  .program-card-horizontal .program-image {
    order: 1 !important;
    height: 280px !important; /* Fixed height for background image cards on mobile */
    min-height: 280px !important;
    background-size: cover;
    background-position: center;
    padding: 0 !important;
  }
  
  /* If the card contains an iframe (Instagram Reel), adjust background and height */
  .program-card-horizontal .program-image:has(iframe) {
    height: auto !important;
    min-height: unset !important;
    background-color: var(--white) !important;
    padding: 1rem !important;
  }

  .program-card-horizontal .program-image iframe {
    height: 480px !important; /* Responsive height fit for mobile screens */
    width: 100% !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  /* Show title and action buttons below the Reel (order 2) */
  .program-card-horizontal .program-content {
    order: 2 !important;
    padding: 1.5rem 1.25rem !important;
    text-align: center;
  }

  .program-card-horizontal .program-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
  }

  .program-card-horizontal .program-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-top: 1.25rem !important;
    align-items: center !important;
  }

  .program-card-horizontal .program-actions .btn,
  .program-card-horizontal .program-actions a.btn-primary,
  .program-card-horizontal .program-actions .view-details-btn,
  .program-card-horizontal .program-actions .download-btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 !important;
    justify-content: center !important;
    display: inline-flex !important;
    padding: 0.8rem 1.25rem !important;
    font-size: 0.9rem !important;
  }

  /* Center the homepage hero buttons stacked vertically on mobile */
  .hero-buttons-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 1rem !important;
    margin: 1.5rem 0 0 0 !important;
  }

  .hero-buttons-grid .btn {
    width: 100% !important;
    max-width: 320px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    height: auto;
  }

  /* Compact section header typography */
  .section-title {
    margin-bottom: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  /* Shrink yellow Apply Now button inside the header actions on mobile and tablet viewports */
  .nav-actions .btn-primary {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.8rem !important;
    min-height: unset !important;
    height: auto !important;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card {
    padding: 1.5rem 1.25rem;
  }

  .navbar .logo img {
    height: 38px !important; /* Scale logo height down for mobile viewports */
  }

  .nav-actions {
    gap: 0.5rem !important;
  }

  /* Touch-friendly buttons optimized for phone sizes */
  .btn {
    padding: 0.7rem 1.25rem !important;
    font-size: 0.9rem !important;
  }

  .btn-large {
    padding: 0.85rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

/* Show mobile only utilities */
.show-mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .show-mobile-only {
    display: flex !important;
  }
}

.show-mobile-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .show-mobile-btn {
    display: inline-flex !important;
  }
}

/* WhatsApp Header Link Styling */
.whatsapp-mobile-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-desktop-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-mobile-link,
.whatsapp-desktop-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.whatsapp-mobile-link:hover,
.whatsapp-desktop-link:hover {
  transform: scale(1.1);
}

.whatsapp-btn {
  border: 2px solid #25D366 !important;
  color: #25D366 !important;
  background-color: transparent !important;
  border-radius: 50px !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.45) !important;
}

/* Nav links nowrap layout helper */
.nav-links a {
  white-space: nowrap !important;
}

/* Hide WhatsApp mobile link on desktop viewports by default */
.whatsapp-mobile-container {
  display: none !important;
}

@media (max-width: 768px) {
  .whatsapp-mobile-container {
    display: flex !important;
    flex: 1;
    justify-content: center;
    align-items: center;
  }
}

/* Desktop navbar elements uniform sizing & vertical alignment */
@media (min-width: 769px) {
  .navbar .nav-content {
    max-width: 1440px !important;
    width: 95% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  .logo {
    display: flex !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    margin-right: 1rem !important;
  }

  .nav-links {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  .nav-links a {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    height: 38px !important;
    white-space: nowrap !important;
  }

  .navbar .btn {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 1rem !important;
    height: 36px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .nav-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    gap: 0.6rem !important;
    align-items: center !important;
    margin-left: 1rem !important;
  }
}

/* Responsive adjustments for intermediate desktop viewports */
@media (max-width: 1200px) and (min-width: 769px) {
  .nav-links {
    gap: 1.25rem !important;
  }
  .nav-content {
    gap: 0.5rem !important;
  }
  .navbar .btn {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.78rem !important;
    height: 34px !important;
  }
  .nav-links a {
    height: 34px !important;
    font-size: 0.82rem !important;
    gap: 1rem !important;
  }
}




