/* Brain Builders Abacus Academy - Premium Landing Page Redesign Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary: #0c3293;
  --primary-hover: #08246b;
  --secondary: #ff5d38;
  --secondary-hover: #e04c27;
  --accent: #d8b22d;
  --accent-hover: #bda228;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-hero: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Outfit', 'Roboto', sans-serif;
}

/* Reset / Typography Overrides for Redesigned Sections */
.recreated-section {
  font-family: var(--font-sans);
  color: var(--text-dark);
}

.recreated-section h1, 
.recreated-section h2, 
.recreated-section h3, 
.recreated-section h4, 
.recreated-section h5, 
.recreated-section h6 {
  font-family: var(--font-sans);
  color: var(--primary);
  font-weight: 700;
}

/* Custom Header Top Bar */
.modern-header-top {
  background-color: #0c2975 !important;
  color: var(--white);
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 14px;
}
.modern-header-top a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.modern-header-top a:hover {
  color: var(--secondary);
}
.modern-header-top .left-info {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.modern-header-top .right-social {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Modern Navbar */
.modern-navbar {
  background: var(--white);
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
  font-family: var(--font-sans);
}
.main-menu-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.modern-navbar .logo-area {
  display: flex;
  align-items: center;
}
.modern-navbar .logo-area img {
  max-height: 52px;
  width: auto;
}
.modern-navbar .menu-area {
  display: flex;
  align-items: center;
}
.modern-navbar .menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.modern-navbar .menu li {
  display: flex;
  align-items: center;
}
.modern-navbar .menu li a {
  color: #334155 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 8px 0 !important;
  transition: var(--transition) !important;
  background: transparent !important;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
}
.modern-navbar .menu li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: #2563eb;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.modern-navbar .menu li a:hover::after,
.modern-navbar .menu li a.active::after {
  width: 100%;
}
.modern-navbar .menu li a:hover,
.modern-navbar .menu li a.active {
  color: #2563eb !important;
}

.modern-navbar .menu li.nav-btn-item {
  padding: 0;
  margin-left: 5px;
}
.modern-navbar .menu li.nav-btn-item a::after {
  display: none !important;
}

/* Buttons */
.btn-student-login {
  border: 2px solid #2563eb !important;
  color: #2563eb !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  background: transparent !important;
  transition: var(--transition) !important;
  text-align: center;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}
.btn-student-login:hover {
  background: #2563eb !important;
  color: var(--white) !important;
}

.btn-register-now {
  background: #0c3293 !important;
  color: var(--white) !important;
  border: 2px solid #0c3293 !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: var(--transition) !important;
  text-align: center;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}
.btn-register-now:hover {
  background: #08246b !important;
  border-color: #08246b !important;
  box-shadow: 0 4px 12px rgba(12, 50, 147, 0.2);
  color: var(--white) !important;
}

/* Hero Section */
.modern-hero {
  background: var(--bg-hero);
  padding: 80px 0 120px 0;
  position: relative;
  overflow: hidden;
}

.modern-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
}

.hero-content h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero-content h1 span.blue-text {
  color: var(--primary);
}
.hero-content h1 span.accent-text {
  color: #1d4ed8;
}
.hero-content p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 550px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.btn-demo {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-demo:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 50, 147, 0.3);
}

.btn-whatsapp {
  background: transparent;
  color: #25d366;
  border: 2px solid #25d366;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #25d366;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

/* Trust Badges */
.trust-badges-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.trust-badge-card {
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  min-height: 54px;
}
.trust-badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.badge-left {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}
.badge-divider {
  width: 1px;
  height: 28px;
  background-color: #e2e8f0;
  margin: 0 12px;
}
.badge-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.badge-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
}
.badge-subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  margin-top: 1px;
}
.iso-logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  color: #0c3293;
  font-size: 20px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.udyam-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.udyam-txt {
  font-family: var(--font-sans);
  font-weight: 800;
  color: #15803d;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.udyam-stripe {
  display: flex;
  height: 3.5px;
  width: 100%;
  margin-top: 3px;
  border-radius: 1px;
  overflow: hidden;
}
.stripe-orange {
  background: #ea580c;
  flex: 1;
}
.stripe-white {
  background: #cbd5e1;
  flex: 1;
}
.stripe-green {
  background: #16a34a;
  flex: 1;
}
.trust-seal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-seal-icon {
  width: 30px;
  height: 30px;
}

/* Mobile Responsiveness for Trust Badges */
@media (max-width: 768px) {
  .trust-badges-container {
    gap: 12px;
    justify-content: flex-start;
  }
  .trust-badge-card {
    padding: 8px 12px;
    min-height: 48px;
  }
  .badge-divider {
    margin: 0 8px;
  }
}

@media (max-width: 576px) {
  .trust-badges-container {
    gap: 8px;
    justify-content: space-between;
  }
  .trust-badge-card {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .trust-badges-container {
    flex-direction: column;
    align-items: stretch;
  }
  .trust-badge-card {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
}


.hero-image-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 20px 40px rgba(12, 50, 147, 0.12));
}
.hero-image-container:hover img {
  transform: translateY(-8px);
}

/* Stats Card Overlay */
.stats-overlay-container {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.stats-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 30px 40px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #e2e8f0;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(12, 50, 147, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.stat-info h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* Section Header Style */
.recreated-section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.recreated-section-header .sub-tag {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.recreated-section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--primary);
}
.recreated-section-header p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
}

/* Course Grid and Cards */
.courses-section {
  padding: 120px 0 100px 0;
  background: var(--white);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

/* Specific styling for course card */
.course-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px 15px;
  text-align: center;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--c-shadow);
  border-color: var(--c-theme);
}

.course-icon-wrapper {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 25px;
  transition: var(--transition);
}

.course-card:hover .course-icon-wrapper {
  transform: scale(1.08);
}

.course-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: var(--transition);
}

.course-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-link {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.course-link i {
  transition: var(--transition);
}

.course-card:hover .course-link i {
  transform: translateX(4px);
}

/* Individual Course Colors */
/* Abacus: Purple */
.course-abacus {
  --c-theme: #8b5cf6;
  --c-border: rgba(139, 92, 246, 0.2);
  --c-shadow: rgba(139, 92, 246, 0.15);
}
/* Vedic Maths: Green */
.course-vedic {
  --c-theme: #10b981;
  --c-border: rgba(16, 185, 129, 0.2);
  --c-shadow: rgba(16, 185, 129, 0.15);
}
/* Chess: Yellow/Orange */
.course-chess {
  --c-theme: #f59e0b;
  --c-border: rgba(245, 158, 11, 0.2);
  --c-shadow: rgba(245, 158, 11, 0.15);
}
/* English Speaking: Blue */
.course-english {
  --c-theme: #3b82f6;
  --c-border: rgba(59, 130, 246, 0.2);
  --c-shadow: rgba(59, 130, 246, 0.15);
}
/* Hindi Speaking: Pink/Red */
.course-hindi {
  --c-theme: #ec4899;
  --c-border: rgba(236, 72, 153, 0.2);
  --c-shadow: rgba(236, 72, 153, 0.15);
}
/* Rubik's Cube: Teal */
.course-rubik {
  --c-theme: #14b8a6;
  --c-border: rgba(20, 184, 166, 0.2);
  --c-shadow: rgba(20, 184, 166, 0.15);
}

.course-theme-wrapper {
  border: 1px solid var(--c-border);
}
.course-theme-wrapper .course-icon-wrapper {
  background: var(--c-theme);
  color: #ffffff;
}
.course-theme-wrapper h4 {
  color: var(--c-theme);
}
.course-theme-wrapper .course-link {
  color: var(--c-theme);
}

.courses-footer-btn {
  text-align: center;
}
.btn-view-all {
  background: var(--primary);
  color: var(--white);
  padding: 14px 35px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(12, 50, 147, 0.15);
}
.btn-view-all:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 50, 147, 0.25);
}

/* Why Choose Us - Advantage */
.advantage-section {
  padding: 100px 0;
  background: var(--bg-light);
}
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.advantage-card {
  background: var(--white);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: var(--transition);
}
.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.advantage-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.adv-purple { background: #f5f3ff; color: #8b5cf6; }
.adv-green { background: #ecfdf5; color: #10b981; }
.adv-orange { background: #fffbeb; color: #f59e0b; }
.adv-blue { background: #eff6ff; color: #3b82f6; }

.advantage-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px 0;
}
.advantage-content p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* Achievements & Parents Say */
.achievements-parents-section {
  padding: 100px 0;
  background: var(--white);
}

.achievement-card {
  background: #021a59;
  border-radius: 20px;
  padding: 40px 30px;
  color: var(--white);
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.achievement-card h3 {
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.achievement-card h3 i {
  color: var(--accent);
}
.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
}
.achievement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.achievement-row:last-child {
  border-bottom: none;
}
.achievement-name {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.achievement-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}
.btn-know-more {
  background: var(--accent);
  color: #021a59;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}
.btn-know-more:hover {
  background: var(--accent-hover);
  color: #021a59;
  box-shadow: 0 4px 15px rgba(216, 178, 45, 0.3);
}

.achievement-card .trophy-visual {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 120px;
  opacity: 0.12;
  pointer-events: none;
  line-height: 1;
}

/* Testimonial Block */
.parents-say-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.parents-say-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--primary);
}
.testimonial-quote-icon {
  font-size: 48px;
  color: rgba(59, 130, 246, 0.15);
  margin-bottom: -15px;
  line-height: 1;
}
.testimonial-body {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 30px;
}
.testimonial-body strong {
  font-weight: 700;
  color: var(--primary);
}
.parent-author {
  display: flex;
  align-items: center;
  gap: 15px;
}
.parent-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.parent-details h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.parent-details span {
  font-size: 13px;
  color: var(--text-light);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  margin-top: 25px;
  justify-content: flex-end;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Gallery Section */
.gallery-section {
  padding: 100px 0;
  background: var(--bg-light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  aspect-ratio: 4/3;
  transition: var(--transition);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.gallery-card:hover img {
  transform: scale(1.05);
}
.gallery-footer-btn {
  text-align: center;
}
.btn-view-gallery {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  background: transparent;
  transition: var(--transition);
}
.btn-view-gallery:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(12, 50, 147, 0.15);
}

/* Call To Action Banner */
.cta-section {
  padding: 60px 0;
  background: var(--white);
}
.cta-banner {
  background: linear-gradient(135deg, #021a59 0%, #0d2873 100%);
  border-radius: 24px;
  padding: 50px 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .paper-plane-doodle {
  position: absolute;
  right: 40px;
  top: 30px;
  font-size: 70px;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(15deg);
  pointer-events: none;
}
.cta-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 30px;
}
.cta-content {
  flex: 1;
  min-width: 300px;
}
.cta-content h2 {
  color: var(--white);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}
.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cta-btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.cta-btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-btn-whatsapp {
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.cta-btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

/* Modern Footer */
.modern-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 70px 0 20px 0;
  font-family: var(--font-sans);
}
.footer-col-1 img {
  max-height: 60px;
  margin-bottom: 20px;
}
.footer-col-1 p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 50, 147, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}
.footer-social-icon:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
}
.footer-links li a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
}
.footer-contact-list li i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 3px;
}
.footer-contact-list li i.fa-map-marker {
  font-size: 18px;
}
.footer-map-thumbnail {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  max-width: 100%;
}
.footer-map-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-bottom-bar {
  border-top: 1px solid #e2e8f0;
  margin-top: 50px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-bottom-bar p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}
.footer-bottom-bar .bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-bar .bottom-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}
.footer-bottom-bar .bottom-links a:hover {
  color: var(--secondary);
}

.footer-designed-by {
  margin: 0;
  font-size: 12px;
  color: var(--text-light);
  opacity: 0.75;
}
.footer-designed-by a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.footer-designed-by a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Floating WhatsApp Icon */
.modern-whatsapp-floating {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  transition: var(--transition);
}
.modern-whatsapp-floating:hover {
  transform: scale(1.1);
}
.modern-whatsapp-floating img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

/* Scroll To Top Button */
.modern-scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: var(--transition);
}
.modern-scroll-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  color: var(--white);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  .course-card {
    padding: 35px 20px;
  }
  .course-card h4 {
    font-size: 20px;
  }
}

@media (max-width: 992px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .modern-hero {
    padding: 50px 0 100px 0;
  }
  .hero-content {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .trust-badges {
    justify-content: center;
  }
  .stats-overlay-container {
    margin-top: -40px;
  }
  .stats-card {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .stat-item::after {
    display: none !important;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-banner {
    padding: 30px;
  }
  .cta-grid {
    text-align: center;
    flex-direction: column;
  }
  .cta-buttons {
    justify-content: center;
    width: 100%;
  }
  .cta-btn-white, .cta-btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .modern-navbar .menu-area {
    display: none; /* Handled by mobile toggler */
  }
}

/* Redesign Additions */

/* Hero Section Background Glow Blobs */
.hero-image-container::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: #3b82f6;
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
  top: -10%;
  left: 5%;
  filter: blur(40px);
}
.hero-image-container::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: #f59e0b;
  border-radius: 50%;
  opacity: 0.18;
  z-index: -1;
  bottom: -5%;
  right: 5%;
  filter: blur(35px);
}

/* Lightcase Gallery Overlay Zoom Effect */
.gallery-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  aspect-ratio: 4/3;
  transition: var(--transition);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-overlay-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 50, 147, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-card:hover .gallery-overlay-icon {
  opacity: 1;
}
.gallery-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.gallery-card:hover img {
  transform: scale(1.06);
}

/* Testimonial slider smooth transitions */
.testimonial-container {
  min-height: 120px;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.parent-avatar {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Form Styling Overrides */
#exampleModal .modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
}
#exampleModal .modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border-bottom: none;
  padding: 20px 24px;
}
#exampleModal .modal-title {
  font-weight: 700;
  font-size: 20px;
}
#exampleModal .modal-body {
  padding: 30px 24px;
  background: var(--bg-light);
}
#exampleModal .form-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
  margin-bottom: 6px;
}
#exampleModal .form-control {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 15px;
  transition: var(--transition);
}
#exampleModal .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 50, 147, 0.15);
}
#exampleModal .button-default {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 8px;
  transition: var(--transition);
  width: 100%;
}
#exampleModal .button-default:hover {
  background: var(--secondary-hover);
  box-shadow: 0 4px 12px rgba(255, 93, 56, 0.2);
}

/* === Global Polish === */

html {
  scroll-behavior: smooth;
}

/* Hero section entrance animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-content p {
  animation: heroFadeUp 0.7s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-buttons {
  animation: heroFadeUp 0.7s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.trust-badges {
  animation: heroFadeUp 0.7s 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-image-container {
  animation: heroFadeUp 0.9s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Course card icon hover pop */
.course-card:hover .course-icon-wrapper svg {
  transform: scale(1.15) rotate(-3deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.course-icon-wrapper svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats card entrance shimmer on load */
.stats-card {
  animation: heroFadeUp 0.8s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* CTA Banner subtle pulse on paper-plane icon */
@keyframes planeDrift {
  0%   { transform: rotate(15deg) translateY(0) translateX(0); }
  50%  { transform: rotate(18deg) translateY(-8px) translateX(6px); }
  100% { transform: rotate(15deg) translateY(0) translateX(0); }
}
.cta-banner .paper-plane-doodle {
  animation: planeDrift 5s ease-in-out infinite;
}

/* Achievement counter value pop */
.achievement-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

/* Responsive: ensure hero image is centered on mobile and doesn't overflow */
@media (max-width: 768px) {
  .hero-image-container img {
    max-height: 340px;
    object-fit: contain;
  }
  .stats-card {
    margin-top: 30px;
  }
  .advantage-card {
    flex-direction: column;
    text-align: center;
  }
  .advantage-icon {
    margin: 0 auto 12px auto;
  }
}

/* About Us Recreated Page Styles */
.about-hero {
  background: var(--bg-hero);
  padding: 80px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px dashed rgba(12, 50, 147, 0.1);
}
.about-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
}
.about-hero .breadcrumb {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.about-hero .breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}
.about-hero .breadcrumb a:hover {
  color: var(--secondary-hover);
}
.about-hero .breadcrumb span {
  color: var(--text-light);
}

.about-intro-section {
  padding: 80px 0;
  background: var(--white);
}
.director-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.director-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.director-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  max-width: 100%;
}
.director-img-wrapper img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
}
.director-card:hover .director-img-wrapper img {
  transform: scale(1.03);
}
.director-card h4 {
  font-size: 18px;
  color: var(--primary);
  margin-top: 10px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.director-card .director-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.about-story-content {
  padding-left: 20px;
}
@media (max-width: 991px) {
  .about-story-content {
    padding-left: 0;
    margin-top: 40px;
  }
}
.about-story-content h2 {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.about-story-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}
.about-story-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 30px;
}
.btn-about-call {
  background: var(--secondary);
  color: var(--white) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(255, 93, 56, 0.3);
}
.btn-about-call:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 93, 56, 0.4);
}

.about-values-section {
  background: var(--bg-light);
  padding: 80px 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(12, 50, 147, 0.15);
}
.value-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 24px;
  transition: var(--transition);
}
.value-card.v-excellence .value-icon-box { background: rgba(12, 50, 147, 0.1); color: var(--primary); }
.value-card.v-holistic .value-icon-box { background: rgba(255, 93, 56, 0.1); color: var(--secondary); }
.value-card.v-creativity .value-icon-box { background: rgba(216, 178, 45, 0.1); color: var(--accent); }
.value-card.v-fun .value-icon-box { background: rgba(37, 211, 102, 0.1); color: #15803d; }

.value-card:hover .value-icon-box {
  transform: scale(1.1) rotate(5deg);
}
.value-card h4 {
  font-size: 18px;
  margin-bottom: 0;
  color: var(--text-dark);
  font-weight: 700;
}

.about-benefits-section {
  padding: 80px 0;
  background: var(--white);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.benefit-card {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.benefit-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}
.benefit-card:nth-child(2) { border-left-color: var(--secondary); }
.benefit-card:nth-child(3) { border-left-color: var(--accent); }
.benefit-card:nth-child(4) { border-left-color: #25d366; }

.benefit-icon {
  font-size: 20px;
  margin-top: 3px;
}
.benefit-card:nth-child(1) .benefit-icon { color: var(--primary); }
.benefit-card:nth-child(2) .benefit-icon { color: var(--secondary); }
.benefit-card:nth-child(3) .benefit-icon { color: var(--accent); }
.benefit-card:nth-child(4) .benefit-icon { color: #25d366; }

.benefit-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-dark);
}

.about-teachers-section {
  padding: 80px 0;
  background: var(--bg-light);
  border-top: 3px dashed rgba(12, 50, 147, 0.1);
}
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
@media (max-width: 576px) {
  .teachers-grid {
    grid-template-columns: 1fr;
  }
}
.teacher-modern-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
  text-align: center;
}
.teacher-modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(12, 50, 147, 0.15);
}
.teacher-img-box {
  background: var(--bg-hero);
  padding: 20px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.teacher-img-box img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.teacher-modern-card:hover .teacher-img-box img {
  transform: scale(1.05);
}
.teacher-info {
  padding: 20px;
}
.teacher-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.teacher-info span {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

/* =========================================================
   COURSES PAGE — Full Rebuild Styles
   ========================================================= */

/* ----------- HERO SECTION ----------- */
.courses-hero-section {
  background: var(--bg-hero);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px dashed rgba(12, 50, 147, 0.08);
}

.courses-hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,50,147,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.courses-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 18px;
  font-family: var(--font-sans);
}
.courses-breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}
.courses-breadcrumb a:hover { color: var(--secondary-hover); }
.courses-breadcrumb .crumb-sep {
  font-size: 10px;
  color: #94a3b8;
}

.courses-hero-title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 10px;
  font-family: var(--font-sans);
}

.courses-hero-tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

.courses-hero-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 490px;
  font-family: var(--font-sans);
}

.courses-demo-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(12,50,147,0.25);
}
.courses-demo-btn:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,50,147,0.3);
}

.courses-hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.courses-hero-img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(12,50,147,0.12));
  transition: transform 0.5s ease;
  display: block;
  margin: 0 auto;
}
.courses-hero-img-wrap:hover .courses-hero-img {
  transform: translateY(-8px);
}
.courses-hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
  white-space: nowrap;
}
.courses-hero-badge i {
  color: var(--secondary);
  font-size: 16px;
}
.courses-hero-badge-1 {
  top: 10%;
  left: -10px;
  animation: badgeFloat1 4s ease-in-out infinite;
}
.courses-hero-badge-2 {
  bottom: 15%;
  right: -10px;
  animation: badgeFloat2 4.5s ease-in-out infinite;
}
@keyframes badgeFloat1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes badgeFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ----------- COURSES OFFER SECTION ----------- */
.courses-offer-section {
  padding: 90px 0 80px;
  background: var(--white);
}

.courses-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ----------- INDIVIDUAL COURSE CARD ----------- */
.cp-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1.5px solid #f1f5f9;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.cp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.09);
}

/* Card Top: Icon + Image area */
.cp-card-top {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f8fafc;
}
.cp-student-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cp-card:hover .cp-student-img {
  transform: scale(1.05);
}

.cp-icon-wrap {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}
.cp-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card Body */
.cp-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

.cp-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: var(--font-sans);
}
.cp-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}

.cp-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.cp-features li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--font-sans);
}
.cp-features li i {
  font-size: 15px;
  flex-shrink: 0;
}

.cp-learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid;
  text-decoration: none !important;
  transition: var(--transition);
  align-self: flex-start;
  font-family: var(--font-sans);
}
.cp-learn-btn i {
  transition: transform 0.3s ease;
}
.cp-learn-btn:hover i {
  transform: translateX(4px);
}

/* ---- Per-course color themes ---- */

/* Abacus – Purple */
.cp-abacus { border-top: 4px solid #8b5cf6; }
.cp-abacus .cp-icon-wrap { background: #8b5cf6; }
.cp-title-abacus { color: #8b5cf6; }
.cp-check-abacus { color: #8b5cf6; }
.cp-learn-abacus { color: #8b5cf6; border-color: #8b5cf6; }
.cp-learn-abacus:hover { background: #8b5cf6; color: var(--white); }

/* Vedic – Green */
.cp-vedic { border-top: 4px solid #10b981; }
.cp-vedic .cp-icon-wrap { background: #10b981; }
.cp-title-vedic { color: #10b981; }
.cp-check-vedic { color: #10b981; }
.cp-learn-vedic { color: #10b981; border-color: #10b981; }
.cp-learn-vedic:hover { background: #10b981; color: var(--white); }

/* Chess – Amber/Gold */
.cp-chess { border-top: 4px solid #f59e0b; }
.cp-chess .cp-icon-wrap { background: #f59e0b; }
.cp-title-chess { color: #d97706; }
.cp-check-chess { color: #f59e0b; }
.cp-learn-chess { color: #d97706; border-color: #f59e0b; }
.cp-learn-chess:hover { background: #f59e0b; color: var(--white); }

/* English – Blue */
.cp-english { border-top: 4px solid #3b82f6; }
.cp-english .cp-icon-wrap { background: #3b82f6; }
.cp-title-english { color: #2563eb; }
.cp-check-english { color: #3b82f6; }
.cp-learn-english { color: #2563eb; border-color: #3b82f6; }
.cp-learn-english:hover { background: #3b82f6; color: var(--white); }

/* Hindi – Pink */
.cp-hindi { border-top: 4px solid #ec4899; }
.cp-hindi .cp-icon-wrap { background: #ec4899; }
.cp-title-hindi { color: #db2777; }
.cp-check-hindi { color: #ec4899; }
.cp-learn-hindi { color: #db2777; border-color: #ec4899; }
.cp-learn-hindi:hover { background: #ec4899; color: var(--white); }

/* Rubik – Teal */
.cp-rubik { border-top: 4px solid #14b8a6; }
.cp-rubik .cp-icon-wrap { background: #14b8a6; }
.cp-title-rubik { color: #0d9488; }
.cp-check-rubik { color: #14b8a6; }
.cp-learn-rubik { color: #0d9488; border-color: #14b8a6; }
.cp-learn-rubik:hover { background: #14b8a6; color: var(--white); }

/* ----------- WHY THESE COURSES ----------- */
.why-courses-section {
  padding: 80px 0;
  background: var(--bg-light);
  border-top: 3px dashed rgba(12,50,147,0.08);
}

.why-courses-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.why-course-item {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: var(--transition);
  font-family: var(--font-sans);
}
.why-course-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  transition: var(--transition);
}
.why-course-item:hover .why-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.wc-purple { background: #f5f3ff; color: #8b5cf6; }
.wc-green  { background: #ecfdf5; color: #10b981; }
.wc-orange { background: #fffbeb; color: #f59e0b; }
.wc-blue   { background: #eff6ff; color: #3b82f6; }
.wc-red    { background: #fff1f2; color: #e11d48; }

.why-course-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.why-course-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* ----------- RESPONSIVE BREAKPOINTS ----------- */

/* Tablet: 992px – 1199px */
@media (max-width: 1199px) {
  .courses-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .why-courses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Tablet: 768px – 991px */
@media (max-width: 991px) {
  .courses-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .why-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: up to 767px */
@media (max-width: 767px) {
  .courses-hero-section {
    padding: 60px 0 50px;
    text-align: center;
  }
  .courses-hero-title { font-size: 34px; }
  .courses-hero-tagline { font-size: 16px; }
  .courses-hero-desc {
    max-width: 100%;
    margin: 0 auto 25px;
  }
  .courses-demo-btn {
    font-size: 15px;
    padding: 12px 24px;
  }
  .courses-hero-img-wrap {
    margin-top: 30px;
  }
  .courses-hero-badge-1 { top: 5%; left: 0; }
  .courses-hero-badge-2 { bottom: 5%; right: 0; }

  .courses-offer-section {
    padding: 60px 0 50px;
  }
  .courses-page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cp-card-top { height: 180px; }

  .why-courses-section { padding: 60px 0; }
  .why-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Medium phones 480-767: 2 column cards */
@media (min-width: 480px) and (max-width: 767px) {
  .courses-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small phones: < 480px */
@media (max-width: 480px) {
  .courses-hero-title { font-size: 28px; }
  .why-courses-grid {
    grid-template-columns: 1fr;
  }
  .courses-hero-badge {
    font-size: 11px;
    padding: 8px 12px;
    gap: 6px;
  }
}

/* Recreated Gallery Page Styles */

/* Hero Section */
.gallery-hero {
  background: var(--bg-hero);
  padding: 80px 0 100px 0;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
}
.gallery-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.gallery-hero .breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.gallery-hero .breadcrumb a:hover {
  color: var(--secondary);
}
.gallery-hero .breadcrumb span {
  color: var(--text-light);
}
.gallery-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.2;
}
.gallery-hero .tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 15px;
}
.gallery-hero .description {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.gallery-hero .btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.gallery-hero .btn-demo:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  color: var(--white);
}

/* Polaroid Collage */
.hero-collage-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.collage-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 380px;
  margin-top: 30px;
}
.polaroid-photo {
  position: absolute;
  background: var(--white);
  padding: 12px 12px 36px 12px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0.3s ease;
  width: 210px;
  cursor: pointer;
}
.polaroid-photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}
.polaroid-photo.p1 {
  top: 30px;
  left: 10px;
  transform: rotate(-8deg);
  z-index: 2;
}
.polaroid-photo.p2 {
  top: 15px;
  right: 20px;
  transform: rotate(6deg);
  z-index: 1;
}
.polaroid-photo.p3 {
  top: 170px;
  left: 130px;
  transform: rotate(-3deg);
  z-index: 3;
}
.polaroid-photo:hover {
  transform: scale(1.08) rotate(0deg) translateY(-10px);
  z-index: 10;
  box-shadow: 0 30px 50px rgba(0,0,0,0.15);
}

/* Background Doodles */
.collage-doodle {
  position: absolute;
  font-size: 32px;
  color: rgba(12, 50, 147, 0.12);
  z-index: 0;
  pointer-events: none;
}
.doodle-1 {
  top: -20px;
  left: 20%;
  transform: rotate(15deg);
}
.doodle-2 {
  bottom: 20px;
  right: 10%;
  transform: rotate(-15deg);
  font-size: 40px;
}
.doodle-3 {
  bottom: 80px;
  left: -10px;
  font-size: 24px;
}

/* Custom Gallery Filter Tabs */
.gallery-tabs-container {
  padding: 40px 0 20px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gallery-tab-btn {
  background: var(--bg-light);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gallery-tab-btn i {
  font-size: 16px;
}
.gallery-tab-btn:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}
.gallery-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(12, 50, 147, 0.25);
}

/* Gallery Category Sections */
.gallery-category-section {
  padding: 60px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.gallery-category-section:last-of-type {
  border-bottom: none;
}
.gallery-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.gallery-sec-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.gallery-sec-title i {
  color: var(--secondary);
  font-size: 24px;
}
.gallery-sec-viewall {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(12, 50, 147, 0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--transition);
}
.gallery-sec-viewall:hover {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
}

/* Horizontal Scroll Container for Cards */
.gallery-slider-wrapper {
  position: relative;
}
.gallery-cards-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 5px 25px 5px;
}
.gallery-cards-row::-webkit-scrollbar {
  height: 6px;
}
.gallery-cards-row::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.gallery-cards-row::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.gallery-cards-row::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Filtered Grid View Styles */
.gallery-grid-view {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gallery Item Card */
.gallery-item-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative;
}
.gallery-item-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(12, 50, 147, 0.1);
}
.gallery-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}
.gallery-card-media img,
.gallery-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item-card:hover .gallery-card-media img {
  transform: scale(1.06);
}
.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 50, 147, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
  padding: 20px;
  text-align: center;
}
.gallery-item-card:hover .gallery-card-overlay {
  opacity: 1;
}
.gallery-overlay-btn {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  margin-bottom: 12px;
  text-decoration: none !important;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.gallery-overlay-btn:hover {
  background: var(--secondary);
  color: var(--white);
  transform: scale(1.1);
}
.gallery-card-overlay h4 {
  color: var(--white) !important;
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
}
.gallery-card-overlay span {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
}
.gallery-video-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 1;
  pointer-events: none;
}

/* Slider Indicators (Dots) */
.gallery-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Premium Statistics Banner */
.gallery-stats-section {
  padding: 40px 0;
  background: #092670; /* Deep blue match */
  position: relative;
  overflow: hidden;
}
.gallery-stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 50%, var(--primary) 100%);
}
.gallery-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.gallery-stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
  padding: 10px 0;
}
.gallery-stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  color: var(--secondary);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.gallery-stat-item:hover .gallery-stat-icon {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-5px);
}
.gallery-stat-info h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--white) !important;
  margin: 0;
  line-height: 1.1;
}
.gallery-stat-info p {
  color: rgba(255,255,255,0.7);
  margin: 4px 0 0 0;
  font-size: 14px;
  font-weight: 500;
}

/* CTA Card */
.gallery-cta-section {
  padding: 80px 0;
  background: var(--bg-light);
}
.gallery-cta-card {
  background: #f0f7ff; /* Very soft light blue */
  border-radius: 20px;
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(12, 50, 147, 0.05);
  border: 1px solid rgba(12, 50, 147, 0.06);
}
.gallery-cta-card .paper-plane-doodle {
  position: absolute;
  right: 5%;
  bottom: 10%;
  font-size: 120px;
  color: rgba(12, 50, 147, 0.04);
  transform: rotate(-15deg);
  pointer-events: none;
}
.gallery-cta-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.gallery-cta-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.gallery-cta-content p {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}
.gallery-cta-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}
.gallery-cta-btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(12, 50, 147, 0.2);
  transition: var(--transition);
}
.gallery-cta-btn-blue:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.gallery-cta-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid #25d366;
  color: #25d366 !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--transition);
}
.gallery-cta-btn-whatsapp:hover {
  background: #25d366;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* Responsiveness Media Queries */
@media (max-width: 1200px) {
  .gallery-hero h1 { font-size: 40px; }
  .gallery-cta-card { padding: 40px; }
  .gallery-cta-grid { flex-direction: column; text-align: center; gap: 25px; }
  .gallery-cta-buttons { justify-content: center; }
}

@media (max-width: 992px) {
  .gallery-hero { padding: 60px 0 80px 0; text-align: center; }
  .gallery-hero .description { margin-left: auto; margin-right: auto; }
  .hero-collage-wrapper { margin-top: 40px; }
  .gallery-grid-view { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gallery-item-card { flex: 0 0 calc(50% - 10px); }
  .gallery-cards-row { padding-bottom: 20px; }
  .gallery-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .gallery-hero h1 { font-size: 32px; }
  .collage-container { height: 320px; max-width: 380px; }
  .polaroid-photo { width: 170px; padding: 8px 8px 24px 8px; }
  .polaroid-photo img { height: 110px; }
  .polaroid-photo.p3 { top: 140px; left: 100px; }
  .gallery-grid-view { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .gallery-item-card { flex: 0 0 calc(85% - 10px); }
  .gallery-sec-title { font-size: 20px; }
  .gallery-sec-viewall { padding: 5px 12px; font-size: 12px; }
  .gallery-cta-buttons { flex-direction: column; width: 100%; gap: 12px; }
  .gallery-cta-btn-blue, .gallery-cta-btn-whatsapp { justify-content: center; width: 100%; }
}

@media (max-width: 480px) {
  .gallery-hero h1 { font-size: 28px; }
  .collage-container { height: 260px; max-width: 300px; }
  .polaroid-photo { width: 130px; padding: 6px 6px 18px 6px; }
  .polaroid-photo img { height: 80px; }
  .polaroid-photo.p3 { top: 110px; left: 80px; }
  .gallery-grid-view { grid-template-columns: 1fr; }
  .gallery-tab-btn { padding: 8px 16px; font-size: 13px; }
  .gallery-stat-info h3 { font-size: 26px; }
  .gallery-stat-info p { font-size: 12px; }
  .gallery-cta-content h2 { font-size: 24px; }
}

/* Unified Masonry Grid */
.gallery-masonry-grid {
  column-count: 4;
  column-gap: 24px;
  width: 100%;
  padding: 40px 0;
}

.gallery-masonry-grid .gallery-item-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  break-inside: avoid;
  flex: none;
  min-width: 0;
}

.gallery-masonry-grid .gallery-card-media {
  height: auto;
  overflow: hidden;
  position: relative;
  background: #000;
}

.gallery-masonry-grid .gallery-card-media img,
.gallery-masonry-grid .gallery-card-media video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
}

@media (max-width: 1200px) {
  .gallery-masonry-grid {
    column-count: 3;
    column-gap: 20px;
  }
}
@media (max-width: 768px) {
  .gallery-masonry-grid {
    column-count: 2;
    column-gap: 16px;
  }
  .gallery-masonry-grid .gallery-item-card {
    margin-bottom: 16px;
  }
}
@media (max-width: 480px) {
  .gallery-masonry-grid {
    column-count: 1;
  }
}
