/* ===================================
   Beads of Brilliance - Interactive Abacus
   CSS Styles for Responsive Layout
   =================================== */

/* CSS Custom Properties - Brand Colors */
:root {
  /* Brand Colors */
  --brand-gold: #FFD700;
  --brand-gold-dark: #DAA520;
  --brand-brown: #8B4513;
  --brand-brown-light: #A0522D;
  --brand-blue: #4A90E2;
  --brand-blue-dark: #357ABD;
  --brand-white: #FEFEFE;
  --brand-text: #2C3E50;
  
  /* Layout Variables */
  --max-width: 1200px;
  --container-padding: 20px;
  --section-padding: 40px;
  --card-padding: 20px;
  --button-padding: 12px 24px;
  --border-radius: 12px;
  --border-width: 2px;
  --shadow-light: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-medium: 0 6px 20px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
  
  /* Typography */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 16px;
  --font-size-large: 1.5rem;
  --font-size-xlarge: 2.5rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
   CRITICAL RESPONSIVE FIXES FOR INDEX.HTML
   =================================== */

/* Ensure no horizontal overflow */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Container max-width fixes */
.abacus-container,
.hero-content,
.cta-content,
.content-container {
  max-width: 100%;
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Image responsive fixes */
img {
  max-width: 100%;
  height: auto;
}

.showcase-image,
.site-logo {
  max-width: 100%;
  height: auto;
}

/* Text overflow fixes */
.section-title,
.hero-title,
.hands-on-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Grid responsive fixes */
.benefits-grid,
.stats-container,
.hands-on-container {
  width: 100%;
  max-width: 100%;
}

/* Abacus critical responsive fixes */
.abacus-frame.abacus {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Mobile-first abacus layout */
@media (max-width: 768px) {
  .abacus-frame.abacus {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
  }
  
  .rod.abacus-rod {
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    min-height: auto;
    overflow: visible;
  }
  
  .heaven-section,
  .earth-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .divider-bar {
    width: 4px;
    height: 60px;
    flex-shrink: 0;
  }
}

/* Remove any problematic fixed widths on mobile */
@media (max-width: 480px) {
  .rod.abacus-rod {
    max-width: none;
    width: 100%;
  }
  
  .bead {
    flex-shrink: 0;
  }
  
  /* Ensure buttons don't overflow */
  .cta-button,
  .reset-button,
  .share-button,
  .experience-button {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix any text that might be too long */
  .place-name {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .place-value {
    font-size: 0.7rem;
  }
}

/* ===================================
   Global Typography and Text Uniformity
   =================================== */

/* Base text styling for all pages */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--brand-text);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Uniform heading styles across all pages */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-blue-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* Uniform paragraph and text styling */
p {
  color: var(--brand-text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Lead paragraphs for important content */
.lead-paragraph, .page-subtitle {
  font-size: 1.2rem;
  color: var(--brand-text);
  font-weight: 500;
  line-height: 1.5;
}

/* Section titles uniform styling */
.section-title {
  font-size: 2rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Section descriptions uniform styling */
.section-description {
  font-size: 1.1rem;
  color: var(--brand-text);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 400;
}

/* Page titles uniform styling */
.page-title {
  font-size: 2.5rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Hero titles uniform styling */
.hero-title {
  font-size: 2.8rem;
  color: var(--brand-white);
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Hero subtitles uniform styling */
.hero-subtitle {
  font-size: 1.4rem;
  color: var(--brand-text);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Card titles uniform styling */
.benefit-card h3,
.testimonial-card h3,
.approach-step h3,
.credential-card h4,
.certification-card h3 {
  font-size: 1.3rem;
  color: var(--brand-blue-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

/* Card content uniform styling */
.benefit-card p,
.testimonial-content p,
.approach-step p,
.credential-card p,
.certification-card p {
  font-size: 1rem;
  color: var(--brand-text);
  line-height: 1.5;
}

/* List styling uniformity */
ul, ol {
  color: var(--brand-text);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

li {
  margin-bottom: 2px;
  color: var(--brand-text);
}

/* Link styling uniformity */
a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover, a:focus {
  color: var(--brand-blue-dark);
  text-decoration: underline;
}

/* Button text uniformity */
.cta-button,
.reset-button,
.share-button,
.submit-button,
.nav-link {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* Form label and input text uniformity */
label {
  font-size: 1rem;
  color: var(--brand-text);
  font-weight: 500;
  margin-bottom: 2px;
  display: block;
}

input, textarea, select {
  font-size: 1rem;
  color: var(--brand-text);
  line-height: 1.4;
}

/* Testimonial author styling */
.testimonial-author,
.testimonial-author strong {
  font-size: 1rem;
  color: var(--brand-blue-dark);
  font-weight: 600;
}

.parent-title,
.testimonial-location,
.testimonial-date {
  font-size: 0.9rem;
  color: var(--brand-text);
  opacity: 0.8;
}

/* Stats and numbers uniformity */
.stat-number,
.current-value {
  font-size: 2.5rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.stat-label {
  font-size: 1rem;
  color: var(--brand-text);
  font-weight: 500;
}

/* Educational message styling */
.educational-message,
.message-text {
  font-size: 1.1rem;
  color: var(--brand-blue);
  font-weight: 500;
  line-height: 1.5;
}

/* FAQ styling uniformity */
.faq-question {
  font-size: 1.1rem;
  color: var(--brand-blue-dark);
  font-weight: 600;
  cursor: pointer;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--brand-text);
  line-height: 1.5;
}

/* Course and curriculum text uniformity */
.course-name,
.curriculum-title {
  font-size: 1.4rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
}

.detail-label {
  font-size: 0.95rem;
  color: var(--brand-text);
  font-weight: 500;
}

.detail-value {
  font-size: 1rem;
  color: var(--brand-blue-dark);
  font-weight: 600;
}

/* Responsive text sizing */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2, .section-title, .page-title {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .lead-paragraph, .page-subtitle {
    font-size: 1.1rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .stat-number, .current-value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2, .section-title, .page-title {
    font-size: 1.6rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .stat-number, .current-value {
    font-size: 1.8rem;
  }
}

/* ===================================
   FAQ Page Styles
   =================================== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--brand-white);
  border: var(--border-width) solid rgba(74, 144, 226, 0.1);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition-medium);
}

.faq-item:hover {
  border-color: rgba(74, 144, 226, 0.2);
  box-shadow: var(--shadow-light);
}

.faq-question {
  padding: var(--card-padding);
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.02));
  transition: var(--transition-medium);
}

.faq-question:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-blue);
  transition: var(--transition-medium);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: var(--card-padding);
  margin: 0;
  border-top: 1px solid rgba(74, 144, 226, 0.1);
}

.faq-cta {
  text-align: center;
  margin-top: 40px;
  padding: var(--section-padding);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.02));
  border-radius: var(--border-radius);
}

/* ===================================
   404 Error Page Styles
   =================================== */

.error-page {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--section-padding);
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.error-title {
  font-size: 2.5rem;
  color: var(--brand-blue-dark);
  margin-bottom: 20px;
}

.error-message {
  font-size: 1.2rem;
  color: var(--brand-text);
  margin-bottom: 30px;
  line-height: 1.6;
}

.error-suggestions {
  text-align: left;
  margin: 30px 0;
  padding: var(--card-padding);
  background: rgba(74, 144, 226, 0.05);
  border-radius: var(--border-radius);
}

.error-suggestions h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
}

.error-suggestions li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.error-suggestions li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: bold;
}

.error-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .cta-button {
    width: 100%;
    max-width: 250px;
  }
}

/* ===================================
   Legal Pages Styles
   =================================== */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h3 {
  color: var(--brand-blue-dark);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.legal-content p {
  margin-bottom: 15px;
  color: var(--brand-text);
}

.legal-content a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--brand-blue-dark);
}

/* ===================================
   Breadcrumb Navigation
   =================================== */

.breadcrumb {
  background: rgba(74, 144, 226, 0.05);
  padding: 10px var(--container-padding);
  margin-bottom: 20px;
  border-radius: var(--border-radius);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--brand-blue);
  font-weight: bold;
}

.breadcrumb-link {
  color: var(--brand-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--brand-blue-dark);
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--brand-text);
  font-weight: 500;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================================
   Button Components Uniform Styling
   =================================== */

.cta-button,
.reset-button,
.share-button,
.submit-button {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  padding: var(--button-padding);
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: var(--transition-medium);
  text-decoration: none;
  display: inline-block;
  min-width: 120px;
}

.cta-button.primary,
.submit-button {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  box-shadow: var(--shadow-light);
}

.cta-button.secondary {
  background: transparent;
  color: var(--brand-white);
  border: 2px solid var(--brand-white);
}

.cta-button.primary:hover,
.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, #FFF700, var(--brand-gold));
}

.cta-button.secondary:hover {
  background: var(--brand-white);
  color: var(--brand-blue-dark);
}

.reset-button,
.share-button {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  box-shadow: var(--shadow-light);
}

.reset-button:hover,
.share-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, #FFF700, var(--brand-gold));
}

/* Large button variant */
.cta-button.large {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  padding: 10px 20px;
  min-width: 140px;
}

.content-section {
  padding: var(--section-padding) var(--container-padding);
  margin: 20px auto;
  max-width: var(--max-width);
  width: 100%;
  border: var(--border-width) solid rgba(74, 144, 226, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  background: rgba(255, 255, 255, 0.8);
}

.content-section.alt-bg {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.8));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Increase container width on large desktops for better grid display */
@media (min-width: 1440px) {
  .content-container {
    max-width: 1400px;
  }
}

/* ===================================
   Card Components Uniform Styling
   =================================== */

.benefit-card,
.testimonial-card,
.approach-step,
.credential-card,
.certification-card,
.age-path-card,
.course-card {
  background: var(--brand-white);
  border: var(--border-width) solid rgba(74, 144, 226, 0.1);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  margin-bottom: 20px;
}

.benefit-card:hover,
.testimonial-card:hover,
.approach-step:hover,
.credential-card:hover,
.certification-card:hover,
.age-path-card:hover,
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(74, 144, 226, 0.2);
}

.benefit-card h3,
.approach-step h3,
.credential-card h4,
.certification-card h3,
.age-path-card h3,
.course-card h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  color: var(--brand-blue-dark);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.benefit-card p,
.approach-step p,
.credential-card p,
.certification-card p,
.age-path-card p,
.course-card p {
  font-size: clamp(0.95rem, 2vw, 1rem);
  color: var(--brand-text);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ===================================
   CTA Section Uniform Styling
   =================================== */

/* ===================================
   CTA Section Styles
   =================================== */

.cta-section {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  text-align: center;
  padding: 25px var(--container-padding);
  margin: 15px auto;
  max-width: 1200px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  width:100%;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--brand-white);
  font-weight: bold;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--brand-white);
  opacity: 0.9;
  margin-bottom: 12px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
}

.cta-section .cta-button.primary {
  background: var(--brand-gold);
  color: var(--brand-text);
  border: 2px solid var(--brand-gold);
}

.cta-section .cta-button.secondary {
  background: transparent;
  color: var(--brand-white);
  border: 2px solid var(--brand-white);
}

.cta-section .cta-button.primary:hover {
  background: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
}

.cta-section .cta-button.secondary:hover {
  background: var(--brand-white);
  color: var(--brand-blue-dark);
}

/* Mobile responsiveness for CTA section */
@media (max-width: 768px) {
  .cta-section {
    margin: 10px auto;
    padding: 20px var(--container-padding);
  }
  
  .cta-buttons {
    gap: 10px;
    flex-wrap: nowrap;
  }
  
  .cta-button {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    font-size: 0.85rem;
    padding: 10px 8px;
  }
}

/* Stack buttons vertically only on very small screens */
@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .cta-button {
    width: 100%;
    max-width: 280px;
    min-width: auto;
  }
}

/* ===================================
   Site Header Styles
   =================================== */

.site-header {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  padding: 15px var(--container-padding);
  text-align: center;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  pointer-events: none;
}

.brand-container {
  position: relative;
  z-index: 1;
}

.logo-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.combined-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.combined-logo:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.site-logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
  transition: var(--transition-medium);
}

.site-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.4));
}

.logo-text {
  text-align: left;
}

.title-tagline {
  text-align: left;
}

.site-title {
  font-size: var(--font-size-xlarge);
  font-weight: bold;
  margin: 0 0 5px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  color: var(--brand-white);
}

.site-tagline {
  font-style: italic;
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
  color: var(--brand-white);
}

/* Modern Navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  
  padding: 8px;
  
 
}

.nav-link {
  position: relative;
  color: var(--brand-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 2px solid rgba(74, 144, 226, 0.6);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 25px;
  z-index: -1;
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
  border-color: var(--brand-blue);
  background: rgba(74, 144, 226, 0.2);
}

/* Special hover effect for active links */
.nav-link.active:hover {
  color: var(--brand-white);
  background: linear-gradient(135deg, #FFF700, var(--brand-gold));
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--brand-white);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
  border: 2px solid var(--brand-gold);
}

.nav-link.active::before {
  opacity: 0;
}

.footer-links {
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--brand-gold);
  text-decoration: none;
  transition: var(--transition-fast);
  margin: 0 5px;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
  color: #FFF700;
}

/* ===================================
   Breadcrumb Navigation
   =================================== */

.breadcrumb-nav {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(218, 165, 32, 0.05));
  padding: 15px 0;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
}

.breadcrumb-item a {
  color: #4A90E2;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.breadcrumb-item a:hover {
  color: #357ABD;
  background: rgba(74, 144, 226, 0.1);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: #999;
  margin-right: 8px;
  font-size: 1.2rem;
}

.breadcrumb-item.active {
  color: #2C3E50;
  font-weight: 600;
}

/* ===================================
   Sub Navigation
   =================================== */

.sub-nav {
  background: white;
  border-bottom: 2px solid rgba(74, 144, 226, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.sub-nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
  flex-wrap: wrap;
}

.sub-nav-item {
  flex: 1;
  min-width: 200px;
}

.sub-nav-item a {
  display: block;
  padding: 18px 25px;
  text-decoration: none;
  color: #2C3E50;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.sub-nav-item a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #4A90E2, #357ABD);
  transition: transform 0.3s ease;
}

.sub-nav-item a:hover {
  color: #4A90E2;
  background: rgba(74, 144, 226, 0.05);
}

.sub-nav-item a:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.sub-nav-item.active a {
  color: #4A90E2;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(218, 165, 32, 0.05));
  border-bottom-color: #4A90E2;
}

.sub-nav-item.active a::before {
  transform: translateX(-50%) scaleX(1);
}

/* Responsive Sub Navigation */
@media (max-width: 768px) {
  .sub-nav-list {
    flex-direction: column;
    gap: 0;
  }
  
  .sub-nav-item {
    min-width: 100%;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
  }
  
  .sub-nav-item:last-child {
    border-bottom: none;
  }
  
  .sub-nav-item a {
    padding: 15px 20px;
    text-align: left;
  }
  
  .breadcrumb-nav {
    padding: 12px 0;
  }
  
  .breadcrumb-item {
    font-size: 0.85rem;
  }
}

/* ===================================
   Main Container Layout
   =================================== */

.abacus-container {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 15px var(--container-padding);
  width: 100%;
}

/* ===================================
   Display Section Styles
   =================================== */

.display-section {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--shadow-medium);
  text-align: center;
  border: 2px solid var(--brand-gold-dark);
}

.current-value-container {
  margin-bottom: 10px;
}

.current-value {
  font-size: 3rem;
  font-weight: bold;
  color: var(--brand-blue-dark);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  padding: 10px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  border: 2px solid var(--brand-gold);
  display: inline-block;
  min-width: 120px;
  transition: var(--transition-medium);
}

.current-value:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.current-value.value-changed {
  animation: valueUpdate 0.3s ease-out;
}

@keyframes valueUpdate {
  0% {
    transform: scale(1);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  }
  50% {
    transform: scale(1.05);
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  }
  100% {
    transform: scale(1);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  }
}

.educational-message {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));
  border: 2px solid rgba(74, 144, 226, 0.2);
  border-radius: 15px;
  padding: 12px;
  margin: 10px 0;
  text-align: center;
  transition: var(--transition-medium);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.educational-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.15);
  border-color: rgba(74, 144, 226, 0.3);
}

.educational-message.message-updated {
  animation: message-highlight 0.6s ease-out;
}

@keyframes message-highlight {
  0% {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    transform: scale(1.02);
  }
  100% {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));
    transform: scale(1);
  }
}

.message-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.message-icon {
  font-size: 1.8rem;
  animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.message-text {
  color: var(--brand-blue-dark);
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.quick-tips {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 10px;
}

.tip {
  color: var(--brand-text);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tip strong {
  color: var(--brand-gold-dark);
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.reset-button,
.share-button {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-light);
  min-width: 120px;
}

.reset-button:hover,
.reset-button:focus,
.share-button:hover,
.share-button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, #FFF700, var(--brand-gold));
}

.reset-button:active,
.share-button:active {
  transform: translateY(0);
}

/* ===================================
   Abacus Frame Layout
   =================================== */

.abacus-frame.abacus {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background: linear-gradient(135deg, #2C1810, #3D2317);
  padding: 25px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  border: 4px solid #8B4513;
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: stretch;
}

/* Traditional wood grain texture */
.abacus-frame.abacus::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(139, 69, 19, 0.1) 1px,
      rgba(139, 69, 19, 0.1) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 15px,
      rgba(101, 67, 33, 0.05) 15px,
      rgba(101, 67, 33, 0.05) 30px
    );
  pointer-events: none;
}

/* Abacus Rod Layout */
.rod.abacus-rod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  background: rgba(139, 69, 19, 0.1);
  padding: 15px 12px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  min-height: 400px;
  width: 120px;
}

.rod.abacus-rod:hover {
  background: rgba(139, 69, 19, 0.15);
  transform: translateY(-2px);
  transition: var(--transition-medium);
}

/* Rod Labels for Abacus */
.abacus-rod .rod-label {
  text-align: center;
  padding: 8px 0;
  border-bottom: 2px solid var(--brand-gold);
  margin-bottom: 12px;
  width: 100%;
}

.abacus-rod .place-name {
  font-weight: bold;
  color: var(--brand-white);
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  display: block;
  margin-bottom: 5px;
}

.abacus-rod .place-value {
  font-size: 0.8rem;
  color: var(--brand-gold);
  font-weight: 600;
  display: block;
}

/* Heaven Section (Top - 5-value beads) */
.heaven-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  min-height: 80px;
  justify-content: center;
  position: relative;
}

/* Divider Bar (Traditional horizontal separator) */
.divider-bar {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-gold-dark), var(--brand-gold), var(--brand-gold-dark));
  border-radius: 3px;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.2);
  margin: 8px 0;
  position: relative;
}

.divider-bar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -5px;
  right: -5px;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
  border-radius: 5px;
}

/* Earth Section (Bottom - 1-value beads) */
.earth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  flex: 1;
  justify-content: flex-start;
}

/* ===================================
   Abacus Bead Styling
   =================================== */

/* Heaven Beads (5-value) - Larger and distinct */
.bead.heaven-bead {
  width: 55px;
  height: 35px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8B0000, #DC143C, #B22222);
  border: 3px solid #654321;
  cursor: pointer;
  transition: var(--transition-medium);
  position: relative;
  z-index: 2;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.2);
  transform: translateY(0);
}

.bead.heaven-bead::before {
  content: '5';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand-white);
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.bead.heaven-bead.active {
  transform: translateY(25px);
  background: linear-gradient(135deg, #FF0000, #FF6347, #DC143C);
  box-shadow: 
    0 6px 15px rgba(220, 20, 60, 0.6),
    inset 0 3px 6px rgba(255,255,255,0.3);
}

.bead.heaven-bead:hover {
  transform: scale(1.1) translateY(0);
  box-shadow: 
    0 8px 20px rgba(220, 20, 60, 0.7),
    inset 0 3px 6px rgba(255,255,255,0.4);
  background: linear-gradient(135deg, #FF1493, #FF6347, #DC143C);
}

.bead.heaven-bead.active:hover {
  transform: scale(1.1) translateY(25px);
}

/* Earth Beads (1-value) - Traditional golden */
.bead.earth-bead {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand-gold), var(--brand-gold-dark));
  border: 3px solid var(--brand-gold-dark);
  cursor: pointer;
  transition: var(--transition-medium);
  position: relative;
  z-index: 2;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.3);
  transform: translateY(0);
}

.bead.earth-bead::before {
  content: '1';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand-text);
  font-weight: bold;
  font-size: 0.8rem;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.bead.earth-bead.active {
  transform: translateY(-15px);
  background: radial-gradient(circle at 30% 30%, #FFF700, var(--brand-gold));
  box-shadow: 
    0 6px 15px rgba(255,215,0,0.6),
    inset 0 3px 6px rgba(255,255,255,0.5);
}

.bead.earth-bead:hover {
  transform: scale(1.1) translateY(0);
  box-shadow: 
    0 8px 20px rgba(255,215,0,0.7),
    inset 0 3px 6px rgba(255,255,255,0.6);
  background: radial-gradient(circle at 30% 30%, #FFFF00, var(--brand-gold));
}

.bead.earth-bead.active:hover {
  transform: scale(1.1) translateY(-15px);
}

/* Focus states for accessibility */
.bead.heaven-bead:focus,
.bead.earth-bead:focus {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Active states for pressed beads */
.bead.heaven-bead:active {
  transform: scale(0.95) translateY(0);
  transition: all 0.1s ease;
}

.bead.earth-bead:active {
  transform: scale(0.95) translateY(0);
  transition: all 0.1s ease;
}

.bead.heaven-bead.active:active {
  transform: scale(0.95) translateY(25px);
}

.bead.earth-bead.active:active {
  transform: scale(0.95) translateY(-15px);
}

/* Animation classes for bead movements */
.bead.moving {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bead.recently-activated {
  animation: abacusActivation 0.6s ease-out;
}

@keyframes abacusActivation {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(255,215,0,0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 15px rgba(255,215,0,0.5);
  }
}

/* Vertical rod lines for traditional look */
.abacus-rod::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-gold-dark), var(--brand-gold), var(--brand-gold-dark));
  border-radius: 2px;
  transform: translateX(-50%);
  z-index: 0;
  box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

/* Active zone indicator on rod */
.bead-track::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 40px;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3));
  border-radius: 3px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.rod:hover .bead-track::after {
  opacity: 1;
}

/* ===================================
   Enhanced Bead Styling - Active/Inactive States
   =================================== */

.bead {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all var(--transition-medium);
  
  /* Default inactive state - dormant golden appearance */
  background: radial-gradient(circle at 30% 30%, 
    rgba(218, 165, 32, 0.8), 
    rgba(139, 69, 19, 0.9),
    rgba(101, 67, 33, 0.8));
  border: 3px solid rgba(218, 165, 32, 0.8);
  box-shadow: 
    0 3px 8px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.3),
    inset 0 -1px 2px rgba(139, 69, 19, 0.4);
  opacity: 0.75;
  transform: translateX(0);
}

/* Active state - beads that contribute to calculation */
.bead.active {
  /* Bright golden appearance for active beads */
  background: radial-gradient(circle at 30% 30%, 
    #FFF700, 
    var(--brand-gold), 
    var(--brand-gold-dark),
    rgba(139, 69, 19, 0.3));
  border: 3px solid var(--brand-gold-dark);
  box-shadow: 
    0 6px 15px rgba(255,215,0,0.6),
    inset 0 3px 6px rgba(255,255,255,0.5),
    0 0 20px rgba(255,215,0,0.4),
    0 2px 4px rgba(255,215,0,0.3);
  opacity: 1;
  transform: translateX(25px);
}

/* Enhanced hover effects for both states */
.bead:hover {
  transform: scale(1.15) translateX(0);
  box-shadow: 
    0 8px 20px rgba(255,215,0,0.7),
    inset 0 3px 6px rgba(255,255,255,0.6),
    0 0 25px rgba(255,215,0,0.5),
    0 4px 8px rgba(255,215,0,0.3);
  opacity: 1;
  background: radial-gradient(circle at 30% 30%, 
    #FFFF00, 
    var(--brand-gold), 
    var(--brand-gold-dark),
    rgba(139, 69, 19, 0.2));
  border-color: var(--brand-gold);
}

.bead.active:hover {
  transform: scale(1.15) translateX(25px);
  box-shadow: 
    0 10px 25px rgba(255,215,0,0.8),
    inset 0 4px 8px rgba(255,255,255,0.7),
    0 0 30px rgba(255,215,0,0.6),
    0 6px 12px rgba(255,215,0,0.4);
  border-color: #FFF700;
}

/* Focus state for accessibility */
.bead:focus {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  box-shadow: 
    0 8px 20px rgba(255,215,0,0.6),
    inset 0 3px 6px rgba(255,255,255,0.5),
    0 0 25px rgba(255,215,0,0.4),
    0 0 0 6px rgba(74, 144, 226, 0.3);
}

/* Active (pressed) state */
.bead:active {
  transform: scale(0.9) translateX(0);
  transition: all 0.1s ease;
}

.bead.active:active {
  transform: scale(0.9) translateX(25px);
}

/* Smooth movement animation for state changes */
.bead.moving {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visual indicator for bead value contribution */
.bead::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.bead.active::after {
  opacity: 1;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Pulsing effect for recently activated beads */
.bead.recently-activated {
  animation: beadActivation 0.6s ease-out;
}

@keyframes beadActivation {
  0% {
    transform: translateX(0) scale(1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  50% {
    transform: translateX(12px) scale(1.2);
    box-shadow: 0 8px 25px rgba(255,215,0,0.8);
  }
  100% {
    transform: translateX(25px) scale(1);
    box-shadow: 0 6px 15px rgba(255,215,0,0.5);
  }
}

/* Deactivation animation */
.bead.recently-deactivated {
  animation: beadDeactivation 0.4s ease-out;
}

@keyframes beadDeactivation {
  0% {
    transform: translateX(25px) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(12px) scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 0.7;
  }
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.scroll-to-top:active {
  transform: translateY(0);
}

/* Mobile responsiveness for scroll button */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* ===================================
   Site Footer Styles
   =================================== */

/* Old footer styles - replaced by enhanced-footer.css */
/*
.site-footer {
  background: var(--brand-text);
  color: var(--brand-white) !important;
  text-align: center;
  padding: 20px var(--container-padding);
  margin-top: 30px;
}

.site-footer p {
  margin: 5px 0;
  color: var(--brand-white) !important;
}

.site-footer .educational-note {
  color: var(--brand-white) !important;
}

.site-footer a {
  color: var(--brand-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
  color: #FFF700;
}
*/

.educational-note {
  font-style: italic;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Small screens (phones) */
@media (max-width: 480px) {
  :root {
    --container-padding: 15px;
    --font-size-xlarge: 2rem;
  }
  
  .logo-title-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .combined-logo {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    text-align: center;
  }
  
  .logo-text {
    text-align: center;
  }
  
  .title-tagline {
    text-align: center;
  }
  
  .site-logo {
    height: 40px;
  }
  
  .site-title {
    font-size: 2rem;
  }
  
  .site-tagline {
    font-size: 1rem;
  }
  
  .abacus-container {
    padding: 15px var(--container-padding);
    gap: 15px;
  }
  
  .abacus-frame {
    padding: 20px 15px;
    gap: 15px;
  }
  
  .rod {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .rod-label {
    min-width: auto;
    text-align: center;
    padding-right: 0;
    border-right: none;
    border-bottom: 2px solid var(--brand-gold);
    padding-bottom: 10px;
  }
  
  .bead-track {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 30px; /* Extra padding for active bead movement */
  }
  
  .bead {
    width: 40px;
    height: 40px;
  }
  
  .bead.active {
    transform: translateX(20px); /* Reduced movement for mobile */
  }
  
  .bead.active:hover {
    transform: scale(1.15) translateX(20px);
  }
  
  .bead.active:active {
    transform: scale(0.9) translateX(20px);
  }
  
  .current-value {
    font-size: 2.5rem;
    min-width: 100px;
  }
  
  .controls {
    flex-direction: column;
    align-items: center;
  }
  
  .reset-button,
  .share-button {
    width: 100%;
    max-width: 200px;
  }
  
  .educational-message {
    padding: 15px;
    margin: 15px 0;
  }
  
  .message-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .message-text {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .quick-tips {
    padding: 10px 12px;
  }
  
  .tip {
    font-size: 0.9rem;
    text-align: center;
  }
}

/* Medium screens (tablets) */
@media (min-width: 481px) and (max-width: 768px) {
  .abacus-container {
    padding: 20px var(--container-padding);
  }
  
  .rod {
    gap: 18px;
  }
  
  .bead-track {
    gap: 12px;
    padding: 10px 35px; /* Extra padding for active bead movement */
  }
  
  .bead {
    width: 42px;
    height: 42px;
  }
  
  .bead.active {
    transform: translateX(22px);
  }
  
  .bead.active:hover {
    transform: scale(1.15) translateX(22px);
  }
  
  .bead.active:active {
    transform: scale(0.9) translateX(22px);
  }
}

/* Large screens (desktops) */
@media (min-width: 1024px) {
  .abacus-container {
    padding: 20px var(--container-padding);
  }
  
  .abacus-frame {
    padding: 40px 30px;
  }
  
  .rod {
    gap: 25px;
  }
  
  .bead-track {
    gap: 18px;
    padding: 10px 40px; /* Extra padding for active bead movement */
  }
  
  .bead {
    width: 50px;
    height: 50px;
  }
  
  .bead.active {
    transform: translateX(28px);
  }
  
  .bead.active:hover {
    transform: scale(1.15) translateX(28px);
  }
  
  .bead.active:active {
    transform: scale(0.9) translateX(28px);
  }
  
  .current-value {
    font-size: 3.5rem;
  }
}

/* Extra large screens */
@media (min-width: 1200px) {
  .bead {
    width: 55px;
    height: 55px;
  }
  
  .bead-track {
    gap: 20px;
    padding: 10px 45px; /* Extra padding for active bead movement */
  }
  
  .bead.active {
    transform: translateX(30px);
  }
  
  .bead.active:hover {
    transform: scale(1.15) translateX(30px);
  }
  
  .bead.active:active {
    transform: scale(0.9) translateX(30px);
  }
}

/* ===================================
   High Contrast Mode Support
   =================================== */

@media (prefers-contrast: high) {
  .bead {
    border-width: 4px;
  }
  
  .rod-label {
    border-right-width: 3px;
  }
  
  .current-value {
    border-width: 3px;
  }
}

/* ===================================
   Reduced Motion Support
   =================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .bead:hover {
    transform: none;
  }
  
  .bead.active {
    transform: translateX(25px); /* Keep position but remove transitions */
  }
  
  .bead.active:hover {
    transform: translateX(25px);
  }
  
  .rod:hover {
    transform: none;
  }
  
  .bead.recently-activated,
  .bead.recently-deactivated {
    animation: none;
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .site-header,
  .site-footer,
  .controls {
    display: none;
  }
  
  .abacus-frame {
    background: white;
    border: 2px solid black;
    box-shadow: none;
  }
  
  .bead {
    background: white;
    border: 2px solid black;
    box-shadow: none;
    opacity: 1;
  }
  
  .bead.active {
    background: black;
    border: 2px solid black;
    transform: translateX(25px);
  }
  
  .current-value {
    border: 2px solid black;
    background: white;
  }
}

/* ===================================
   Top Banner with Children and Abacus
   =================================== */

.top-banner {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  padding: 40px var(--container-padding) 30px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--brand-gold);
}

.top-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(74,144,226,0.1)"/><circle cx="90" cy="20" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="30" cy="90" r="1" fill="rgba(74,144,226,0.1)"/><circle cx="70" cy="70" r="1.2" fill="rgba(255,215,0,0.1)"/></svg>');
  pointer-events: none;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-image {
  position: relative;
  height: 300px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 15px;
}

/* Child Figures */
.child-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: gentle-sway 3s ease-in-out infinite;
}

.child-figure:nth-child(2) {
  animation-delay: -1s;
}

.child-figure:nth-child(3) {
  animation-delay: -2s;
}

@keyframes gentle-sway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

.child-head {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdbcb4, #f4a6a0);
  border: 2px solid #e8998f;
  margin-bottom: 5px;
  position: relative;
}

.child-head::before {
  content: '😊';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.child-1 .child-head::before { content: '😊'; }
.child-2 .child-head::before { content: '🤓'; }
.child-3 .child-head::before { content: '😄'; }

.child-body {
  width: 35px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  margin-bottom: 10px;
}

.child-2 .child-body {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.child-3 .child-body {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
}

/* Mini Abacus Tools */
.abacus-tool {
  position: relative;
  animation: float-abacus 2s ease-in-out infinite;
}

.abacus-tool:nth-child(2) {
  animation-delay: -0.7s;
}

.abacus-tool:nth-child(3) {
  animation-delay: -1.4s;
}

@keyframes float-abacus {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

.abacus-frame-mini {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border: 2px solid #654321;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mini-rod {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.mini-bead {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #DAA520, #B8860B);
  border: 1px solid #8B7355;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.mini-bead.active {
  background: radial-gradient(circle at 30% 30%, #FFD700, #DAA520);
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  transform: scale(1.1);
}

/* Floating Mathematical Symbols */
.math-symbol {
  position: absolute;
  font-size: 2rem;
  font-weight: bold;
  color: var(--brand-blue);
  opacity: 0.7;
  animation: float-symbol 4s ease-in-out infinite;
}

.symbol-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.symbol-2 {
  top: 30%;
  right: 20%;
  animation-delay: -1s;
}

.symbol-3 {
  bottom: 30%;
  left: 25%;
  animation-delay: -2s;
}

.symbol-4 {
  top: 15%;
  right: 35%;
  font-size: 1.5rem;
  color: var(--brand-gold-dark);
  animation-delay: -0.5s;
}

.symbol-5 {
  bottom: 25%;
  right: 15%;
  font-size: 1.5rem;
  color: var(--brand-gold-dark);
  animation-delay: -1.5s;
}

@keyframes float-symbol {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  50% { 
    transform: translateY(-10px) rotate(5deg);
    opacity: 0.9;
  }
}

/* Sparkle Effects */
.sparkle {
  position: absolute;
  font-size: 1.5rem;
  animation: sparkle-twinkle 2s ease-in-out infinite;
}

.sparkle-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 20%;
  right: 10%;
  animation-delay: -0.7s;
}

.sparkle-3 {
  bottom: 15%;
  left: 20%;
  animation-delay: -1.4s;
}

@keyframes sparkle-twinkle {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Banner Text */
.banner-text {
  text-align: center;
  padding: 15px;
}

.banner-title {
  font-size: 2.5rem;
  color: var(--brand-text);
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.banner-subtitle {
  font-size: 1.3rem;
  color: var(--brand-blue);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive Design for Banner */
@media (max-width: 768px) {
  .banner-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .banner-image {
    height: 200px;
    justify-content: center;
    gap: 20px;
  }
  
  .child-figure {
    transform: scale(0.8);
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .banner-subtitle {
    font-size: 1.1rem;
  }
  
  .math-symbol {
    font-size: 1.5rem;
  }
  
  .symbol-4, .symbol-5 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .top-banner {
    padding: 30px var(--container-padding) 25px;
  }
  
  .banner-image {
    height: 150px;
    gap: 15px;
  }
  
  .child-figure {
    transform: scale(0.7);
  }
  
  .banner-title {
    font-size: 1.8rem;
  }
  
  .banner-subtitle {
    font-size: 1rem;
  }
  
  .math-symbol {
    font-size: 1.2rem;
  }
  
  .sparkle {
    font-size: 1.2rem;
  }
}

/* ===================================
   Simple About Page Styles
   =================================== */

.simple-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.simple-content .lead-text {
  font-size: 1.3rem;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 20px;
}

.simple-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--brand-text);
}

.benefits-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: 25px 15px;
  background: var(--brand-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.benefit-item .benefit-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.benefit-item h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.benefit-item p {
  color: var(--brand-text);
  line-height: 1.6;
  margin: 0;
}

.alt-bg {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Founder Profile Styles */
.founder-profile {
  margin: 0 auto;
}

.founder-info {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--brand-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.founder-avatar {
  flex-shrink: 0;
}

.founder-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brand-gold);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.founder-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-gold-dark);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-white);
  font-size: 2.5rem;
  font-weight: bold;
  box-shadow: var(--shadow-medium);
}

.founder-details {
  flex: 1;
  text-align: left;
}

.founder-name {
  font-size: 2rem;
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
}

.founder-title {
  font-size: 1.2rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.founder-education {
  margin-bottom: 15px;
}

.founder-education h4 {
  color: var(--brand-text);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.founder-education ul {
  list-style: none;
  padding: 0;
}

.founder-education li {
  padding: 5px 0;
  color: var(--brand-text);
  font-size: 1rem;
}

.founder-description {
  color: var(--brand-text);
  line-height: 1.7;
  font-size: 1.1rem;
  margin: 15px 0 0 0;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 12px;
  border-left: 4px solid var(--brand-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-style: italic;
  position: relative;
}

.founder-description::before {
  content: '"';
  font-size: 3rem;
  color: var(--brand-gold);
  position: absolute;
  top: -5px;
  left: 15px;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.founder-description::after {
  content: '"';
  font-size: 3rem;
  color: var(--brand-gold);
  position: absolute;
  bottom: -25px;
  right: 15px;
  font-family: Georgia, serif;
  opacity: 0.3;
}

/* Certifications Styles */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.certification-card {
  background: var(--brand-white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition-medium);
  border: 2px solid transparent;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--brand-gold);
}

.cert-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.certification-card h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.cert-type {
  color: var(--brand-gold-dark);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.certification-card p:last-child {
  color: var(--brand-text);
  line-height: 1.6;
  margin: 0;
}

.credentials-note {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.credentials-note p {
  color: var(--brand-blue);
  font-style: italic;
  font-size: 1rem;
  margin: 0;
}

/* Responsive adjustments for simple about page */
@media (max-width: 768px) {
  .benefits-simple {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefit-item {
    padding: 20px 12px;
  }
  
  .simple-content .lead-text {
    font-size: 1.2rem;
  }
  
  .simple-content p {
    font-size: 1rem;
  }
  
  .founder-info {
    flex-direction: column;
    text-align: center;
    padding: 25px 15px;
    gap: 20px;
  }
  
  .founder-details {
    text-align: center;
  }
  
  .avatar-placeholder {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
  
  .founder-name {
    font-size: 1.8rem;
  }
  
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .certification-card {
    padding: 20px 15px;
  }
}

/* ===================================
   Hero Section Styles
   =================================== */
.hero-section {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  text-align: center;
  padding: 30px var(--container-padding) 50px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,215,0,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,215,0,0.1)"/></svg>');
  pointer-events: none;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: var(--brand-text);
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-main-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 4px solid rgba(255, 215, 0, 0.8);
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 8px;
  position: relative;
}

.hero-main-image:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--brand-gold);
}

.hero-image {
  flex: 0 0 auto;
  max-width: 550px;
  width: 100%;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, var(--brand-gold), var(--brand-blue), var(--brand-gold));
  border-radius: 25px;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.hero-image:hover::before {
  opacity: 0.6;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  line-height: 1.2;
  color: var(--brand-white);
}

.hero-title .highlight {
  color: var(--brand-gold-dark);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 15px;
  color: var(--brand-text);
  font-weight: 500;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #ebe6e6;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Hero Benefits Highlight */
.hero-benefits {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  min-width: 140px;
  transition: var(--transition-medium);
}

.hero-benefit:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.benefit-stat {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--brand-gold);
  margin-bottom: 6px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.benefit-text {
  font-size: 0.9rem;
  color: var(--brand-white);
  text-align: center;
  opacity: 0.9;
  font-weight: 500;
}

/* CTA Buttons */
.cta-button {
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
  text-decoration: none;
  display: inline-block;
  min-width: 160px;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
}

.cta-button.secondary {
  background: transparent;
  color: var(--brand-white);
  border: 2px solid var(--brand-white);
}

.cta-button.large {
  padding: 6px 17px;
  font-size: 1.2rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, #FFF700, var(--brand-gold));
}

.cta-button.secondary:hover {
  background: var(--brand-white);
  color: var(--brand-blue-dark);
}

/* Interactive Section */
.interactive-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--brand-text);
  margin-bottom: 15px;
  font-weight: bold;
}

.section-description {
  font-size: 1.2rem;
  text-align: center;
  color: var(--brand-blue);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Math Educator Hero Section Styles
   =================================== */
.educator-hero-section {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  text-align: center;
  padding: 30px var(--container-padding) 50px;
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}

/* Vedic Math Section - Red/Pink Theme */
.educator-hero-section.vedic-math-section {
  background: linear-gradient(135deg, #C44569, #FF6B6B);
}

.educator-hero-section.vedic-math-section .educator-hero-image::before {
  background: linear-gradient(45deg, #DAA520, #FF6B6B, #DAA520);
}

/* Curricular Math Section - Green Theme */
.educator-hero-section.curricular-math-section {
  background: linear-gradient(135deg, #27AE60, #2ECC71);
}

.educator-hero-section.curricular-math-section .educator-hero-image::before {
  background: linear-gradient(45deg, #DAA520, #27AE60, #DAA520);
}

.educator-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,215,0,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,215,0,0.1)"/></svg>');
  pointer-events: none;
}

.educator-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: var(--brand-text);
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.educator-hero-text {
  flex: 1;
  min-width: 0;
}

.educator-main-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 4px solid rgba(255, 215, 0, 0.8);
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 8px;
  position: relative;
}

.educator-main-image:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--brand-gold);
}

.educator-hero-image {
  flex: 0 0 auto;
  max-width: 550px;
  width: 100%;
  position: relative;
}

.educator-hero-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, var(--brand-gold), var(--brand-blue), var(--brand-gold));
  border-radius: 25px;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.educator-hero-image:hover::before {
  opacity: 0.6;
}

.educator-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.educator-badge-overlay .badge-icon {
  font-size: 1.2rem;
}

.educator-hero-title {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  line-height: 1.2;
  color: var(--brand-white);
}

.educator-hero-title .highlight {
  color: var(--brand-gold-dark);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.educator-hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 15px;
  color: var(--brand-gold);
  font-weight: 600;
}

.educator-hero-description {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #ebe6e6;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 800px;
}

.educator-hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Educator Benefits Highlight */
.educator-benefits {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.educator-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  min-width: 140px;
  transition: var(--transition-medium);
}

.educator-benefit:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.educator-benefit .benefit-stat {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--brand-gold);
  margin-bottom: 6px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.educator-benefit .benefit-text {
  font-size: 0.9rem;
  color: var(--brand-white);
  text-align: center;
  opacity: 0.9;
  font-weight: 500;
}

/* Benefits Section - Simplified for Mobile */
.benefits-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 30px var(--container-padding);
  width: 100%;
  overflow: hidden;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Mobile benefits grid - single column */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  
  .benefit-card {
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* Ensure no content causes horizontal scroll */
@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .benefit-card {
    padding: 15px;
    margin: 0;
  }
  
  .benefit-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  .benefit-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

.benefit-card {
  background: var(--brand-white);
  padding: 25px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.benefit-card h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.benefit-card p {
  color: var(--brand-text);
  line-height: 1.6;
}

/* OLD Programs Section - REMOVED - See new comprehensive styles at end of file */

/* Features Section */
.features-section {
  background: var(--brand-blue-dark);
  color: var(--brand-white);
  padding: 40px var(--container-padding);
  margin-bottom: 40px;
}

.features-section .section-title {
  color: var(--brand-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--brand-gold);
}

.feature-item p {
  line-height: 1.6;
  opacity: 0.9;
}

/* Enhanced Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  width: 100%;
}

.full-width-container {
  width: 100%;
  padding: 0;
}

.testimonials-header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 var(--container-padding);
}

.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  overflow: hidden;
  padding: 0 var(--container-padding);
}

.testimonials-container {
  display: flex;
  transition: transform 0.5s ease;
  align-items: stretch;
  /* Width will be set dynamically by JavaScript */
}

.testimonial-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  border-left: 4px solid var(--brand-gold);
  /* Width and flex properties will be set dynamically by JavaScript */
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition-medium);
  box-sizing: border-box;
}

.testimonial-card:not(.featured) {
  margin: 0 15px;
}

.testimonial-card.featured {
  margin: 0;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.testimonial-card.featured {
  border-left: 4px solid var(--brand-blue);
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
}

.testimonial-header {
  display: flex;
  align-items: center;
  padding: 25px 30px 20px 30px;
  gap: 20px;
}

.testimonial-avatar {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: var(--shadow-light);
}

.testimonial-info {
  flex: 1;
}

.testimonial-author strong {
  color: var(--brand-blue-dark);
  display: block;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.parent-title {
  color: var(--brand-text);
  font-size: 0.9rem;
  opacity: 0.8;
  display: block;
  margin-bottom: 10px;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  color: #FFD700;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rating-text {
  color: var(--brand-text);
  font-size: 0.85rem;
  opacity: 0.7;
}

.testimonial-content {
  padding: 0 30px 20px 30px;
}

.testimonial-content p {
  font-style: italic;
  color: var(--brand-text);
  line-height: 1.7;
  font-size: 1.1rem;
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--brand-gold);
  position: absolute;
  left: -20px;
  top: -10px;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px 25px 30px;
  border-top: 1px solid #eee;
  background: rgba(248, 249, 250, 0.5);
}

.testimonial-date,
.testimonial-location {
  font-size: 0.85rem;
  color: var(--brand-text);
  opacity: 0.6;
}

.testimonial-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

/* Carousel Navigation */
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.nav-btn {
  background: var(--brand-blue);
  color: var(--brand-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
}

.nav-btn:hover {
  background: var(--brand-blue-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow-medium);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.testimonials-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--brand-blue);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--brand-blue-dark);
}

/* Testimonials Stats */
.testimonials-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 30px var(--container-padding);
  background: var(--brand-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.testimonials-stats .stat-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  transition: var(--transition-medium);
}

.testimonials-stats .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-light);
}

.testimonials-stats .stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
}

.testimonials-stats .stat-label {
  color: var(--brand-text);
  font-weight: 500;
  margin-bottom: 10px;
}

.stat-stars {
  color: #FFD700;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.stat-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* Testimonials CTA */
.testimonials-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
}

.testimonials-cta h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.testimonials-cta p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.testimonials-cta .cta-button {
  background: var(--brand-gold);
  color: var(--brand-text);
}

.testimonials-cta .cta-button:hover {
  background: #FFF700;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.abacus-rod .place-value {
  font-size: 0.8rem;
  color: var(--brand-gold-dark);
  display: block;
  margin-bottom: 5px;
}

.testimonial-author span {
  color: var(--brand-blue);
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 30px var(--container-padding);
  margin-bottom: 30px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--brand-white);
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.faq-question {
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 20px;
  margin: 0;
  cursor: pointer;
  transition: var(--transition-medium);
}

.faq-question:hover {
  background: var(--brand-blue-dark);
}

.faq-answer {
  padding: 20px;
  color: var(--brand-text);
  line-height: 1.6;
}

/* ===================================
   Responsive Design for New Sections
   =================================== */

/* Tablet size (760-768px) - Keep hero side-by-side with better sizing */
@media (min-width: 760px) and (max-width: 900px) {
  .hero-content {
    gap: 30px;
    padding: 0 20px;
  }
  
  .hero-text {
    flex: 1;
    min-width: 350px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-image {
    max-width: 400px;
  }
  
  /* Educator Hero Tablet Styles */
  .educator-hero-content {
    gap: 30px;
    padding: 0 20px;
  }
  
  .educator-hero-text {
    flex: 1;
    min-width: 350px;
  }
  
  .educator-hero-title {
    font-size: 2.5rem;
  }
  
  .educator-hero-subtitle {
    font-size: 1.6rem;
  }
  
  .educator-hero-description {
    font-size: 1.1rem;
  }
  
  .educator-hero-image {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .hero-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  /* Educator Hero Responsive Styles */
  .educator-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .educator-hero-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .educator-hero-title {
    font-size: 2.2rem;
  }
  
  .educator-hero-subtitle {
    font-size: 1.4rem;
  }
  
  .educator-hero-buttons {
    justify-content: center;
  }
  
  .educator-benefits {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .benefits-grid,
  .programs-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .program-card.featured {
    transform: none;
  }
  
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  /* Enhanced Testimonials Mobile Styles */
  .testimonials-section {
    padding: 30px var(--container-padding);
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px 20px 15px 20px;
  }
  
  .testimonial-content {
    padding: 0 20px 15px 20px;
  }
  
  .testimonial-content p {
    font-size: 1rem;
  }
  
  .testimonial-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 15px 20px 20px 20px;
  }
  
  .testimonials-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 25px 15px;
    gap: 15px;
  }
  
  .testimonials-stats .stat-number {
    font-size: 2rem;
  }
  
  .testimonials-cta {
    padding: 30px 15px;
  }
  
  .testimonials-cta h3 {
    font-size: 1.6rem;
  }
  
  .testimonials-cta p {
    font-size: 1rem;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-section,
  .educator-hero-section,
  .benefits-section,
  .programs-section,
  .features-section,
  .testimonials-section,
  .faq-section,
  
  .hero-title,
  .educator-hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .benefit-card,
  .program-card,
  .testimonial-card {
    padding: 20px;
  }
}
/* ===================================
   Responsive Design for Abacus
   =================================== */

/* Small screens (phones) - Horizontal layout for mobile */
@media (max-width: 480px) {
  .abacus-frame.abacus {
    flex-direction: column;
    padding: 25px 15px;
    gap: 20px;
    align-items: center;
  }
  
  .rod.abacus-rod {
    flex-direction: row;
    width: 100%;
    max-width: 300px;
    min-height: auto;
    padding: 15px;
  }
  
  .abacus-rod .rod-label {
    border-bottom: none;
    border-right: 2px solid var(--brand-gold);
    padding-right: 15px;
    margin-right: 15px;
    margin-bottom: 0;
    min-width: 80px;
  }
  
  .heaven-section {
    min-height: auto;
    padding: 10px;
  }
  
  .divider-bar {
    width: 4px;
    height: 60px;
    margin: 0 10px;
  }
  
  .earth-section {
    flex-direction: row;
    gap: 8px;
    padding: 10px;
  }
  
  .bead.heaven-bead {
    width: 45px;
    height: 30px;
  }
  
  .bead.earth-bead {
    width: 35px;
    height: 35px;
  }
  
  .bead.heaven-bead.active {
    transform: translateX(20px);
  }
  
  .bead.earth-bead.active {
    transform: translateX(-10px);
  }
  
  .bead.heaven-bead:hover {
    transform: scale(1.1) translateX(0);
  }
  
  .bead.earth-bead:hover {
    transform: scale(1.1) translateX(0);
  }
  
  .bead.heaven-bead.active:hover {
    transform: scale(1.1) translateX(20px);
  }
  
  .bead.earth-bead.active:hover {
    transform: scale(1.1) translateX(-10px);
  }
}

/* Medium screens (tablets) */
@media (min-width: 481px) and (max-width: 768px) {
  .abacus-frame.abacus {
    gap: 25px;
    padding: 35px 25px;
  }
  
  .rod.abacus-rod {
    width: 110px;
    min-height: 350px;
  }
  
  .bead.heaven-bead {
    width: 50px;
    height: 32px;
  }
  
  .bead.earth-bead {
    width: 42px;
    height: 42px;
  }
}

/* Large screens (desktops) */
@media (min-width: 1024px) {
  .abacus-frame.abacus {
    padding: 50px 40px;
    gap: 40px;
  }
  
  .rod.abacus-rod {
    width: 140px;
    min-height: 450px;
  }
  
  .bead.heaven-bead {
    width: 60px;
    height: 38px;
  }
  
  .bead.earth-bead {
    width: 50px;
    height: 50px;
  }
}

/* Extra large screens */
@media (min-width: 1200px) {
  .rod.abacus-rod {
    width: 150px;
    min-height: 480px;
  }
  
  .bead.heaven-bead {
    width: 65px;
    height: 40px;
  }
  
  .bead.earth-bead {
    width: 55px;
    height: 55px;
  }
}

/* High contrast mode support for Abacus */
@media (prefers-contrast: high) {
  .bead.heaven-bead,
  .bead.earth-bead {
    border-width: 4px;
  }
  
  .divider-bar {
    height: 8px;
  }
  
  .abacus-rod .rod-label {
    border-width: 3px;
  }
}

/* Reduced motion support for Abacus */
@media (prefers-reduced-motion: reduce) {
  .bead.heaven-bead:hover,
  .bead.earth-bead:hover {
    transform: none;
  }
  
  .rod.abacus-rod:hover {
    transform: none;
  }
  
  .bead.heaven-bead.active {
    transform: translateY(25px);
  }
  
  .bead.earth-bead.active {
    transform: translateY(-15px);
  }
}

/* Print styles for Abacus */
@media print {
  .abacus-frame.abacus {
    background: white;
    border: 2px solid black;
    box-shadow: none;
    flex-direction: row;
  }
  
  .bead.heaven-bead {
    background: #ccc;
    border: 2px solid black;
  }
  
  .bead.earth-bead {
    background: white;
    border: 2px solid black;
  }
  
  .bead.heaven-bead.active,
  .bead.earth-bead.active {
    background: black;
    color: white;
  }
  
  .divider-bar {
    background: black;
  }
}
/* ===================================
   Additional Page Styles
   =================================== */

/* Page Container */
.page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Page Hero */
.page-hero {
  color: var(--brand-text);
  text-align: center;
  padding: 60px var(--container-padding);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.85), rgba(255, 255, 255, 0.9)), 
              url('../images/classroom.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius);
  margin: 30px auto;
  max-width: var(--max-width);
  box-shadow: var(--shadow-light);
  width: 100%;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: bold;
  color: var(--brand-white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--brand-white);
  opacity: 0.95;
  margin-bottom: 30px;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: 1.4rem;
  opacity: 0.95;
  color: var(--brand-white);
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.stat-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 160px;
  max-width: 200px;
  flex: 1;
  transition: var(--transition-medium);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 
              0 4px 10px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
}

.stat-highlight:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 
              0 8px 15px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-highlight .stat-number {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: bold;
  color: #8b4513;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.2;
}

.stat-highlight .stat-label {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: #0e0e0e;
  opacity: 0.9;
  text-align: center;
  line-height: 1.3;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .hero-stats {
    gap: 20px;
    margin-top: 25px;
    flex-direction: row;
    justify-content: center;
  }
  
  .stat-highlight {
    min-width: 120px;
    max-width: 150px;
    padding: 20px 15px;
  }
}
  
  .stat-highlight {
    min-width: 120px;
    max-width: 150px;
    padding: 15px 10px;
  }
  
  .stat-highlight .stat-number {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }
  
  .stat-highlight .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .stat-highlight {
    min-width: 200px;
    max-width: 250px;
    padding: 20px 15px;
  }
    min-width: 200px;
    max-width: 280px;
    width: 100%;
    padding: 18px 15px;
  }
  
  .stat-highlight .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-highlight .stat-label {
    font-size: 0.85rem;
  }
}

/* Age Paths Grid */
.age-paths-grid {
  display: grid;
  grid-template-columns: 30% 30% 30%;
  gap: 30px;
  margin-top: 40px;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  justify-content: center;
}

/* Ensure 3 columns on large desktops */
@media (min-width: 1025px) {
  .age-paths-grid {
    grid-template-columns: 30% 30% 30%;
    gap: 30px;
  }
}

/* Extra large desktops */
@media (min-width: 1440px) {
  .age-paths-grid {
    grid-template-columns: 30% 30% 30%;
    gap: 40px;
    max-width: 1400px;
  }
  
  .age-path-card {
    padding: 45px 35px;
  }
}

.age-path-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-medium);
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  height: 100%;
  overflow: hidden;
}

.age-path-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.age-path-card.featured {
  border-color: var(--brand-gold);
  transform: scale(1.02);
}

.age-path-card.featured:hover {
  transform: scale(1.02) translateY(-8px);
}

.age-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.age-badge.primary {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.age-badge.featured {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
}

.age-badge.advanced {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
  color: white;
}

.age-path-card h3 {
  font-size: 1.6rem;
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
}

.path-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.age-path-card p {
  color: var(--brand-text);
  line-height: 1.6;
  margin-bottom: 25px;
}

.path-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
  flex-grow: 1;
}

.path-features li {
  padding: 8px 0;
  color: var(--brand-text);
  position: relative;
  padding-left: 25px;
}

.path-features li::before {
  content: '✓';
  color: var(--brand-gold-dark);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.path-button {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
  width: 100%;
}

.path-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

/* Content Sections */
.content-section {
  padding: 10px var(--container-padding);
}

.content-section.alt-bg {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Story Grid */
.story-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.lead-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand-blue-dark);
  margin-bottom: 25px;
  line-height: 1.6;
}

.story-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--brand-text);
}

.image-placeholder {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  border-radius: var(--border-radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--brand-text);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.image-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

.image-placeholder p {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

/* Mission & Vision Cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.mission-card,
.vision-card {
  background: var(--brand-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  text-align: center;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.mission-card h3,
.vision-card h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* Legacy Content */
.legacy-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.legacy-text h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.legacy-text h4 {
  color: var(--brand-blue);
  margin: 25px 0 15px 0;
  font-size: 1.3rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.benefits-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list strong {
  color: var(--brand-blue-dark);
}

/* Age Benefits */
.age-benefits {
  margin-top: 25px;
}

.age-benefit-item {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  border-left: 4px solid var(--brand-gold);
  box-shadow: var(--shadow-light);
}

.age-benefit-item strong {
  color: var(--brand-blue-dark);
  display: block;
  margin-bottom: 5px;
}

/* Research Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.research-card {
  background: var(--brand-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-medium);
  border-top: 4px solid var(--brand-gold);
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-top-color: var(--brand-blue);
}

.research-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.research-card h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.research-card p {
  color: var(--brand-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.research-stat {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

.legacy-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background: var(--brand-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--brand-gold-dark);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--brand-text);
  font-weight: 500;
}

/* Approach Grid */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.approach-item {
  background: var(--brand-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-medium);
}

.approach-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.approach-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.approach-item h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
}

/* Commitment Content */
.commitment-content {
  text-align: center;
  margin-top: 40px;
}

.commitment-text {
  font-size: 1.2rem;
  color: var(--brand-text);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.commitment-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-item {
  background: var(--brand-white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.value-item h4 {
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
  background: var(--brand-white);
  padding: 40px var(--container-padding);
  box-shadow: var(--shadow-light);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.stats-section .stat-item {
  text-align: center;
  padding: 20px;
}

.stats-section .stat-number {
  font-size: 2.2rem;
  color: var(--brand-blue-dark);
}

/* Tutorial Styles */
.getting-started-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tutorial-card {
  background: var(--brand-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-medium);
}

.tutorial-card.featured {
  border: 3px solid var(--brand-gold);
  transform: scale(1.02);
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.tutorial-card.featured:hover {
  transform: scale(1.02) translateY(-5px);
}

.tutorial-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.tutorial-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  font-size: 0.9rem;
  color: var(--brand-blue);
}

.tutorial-button {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
  margin-top: 15px;
}

.tutorial-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

/* Category Sections */
.category-section {
  margin: 50px 0;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.8rem;
  color: var(--brand-blue-dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--brand-gold);
}

.category-icon {
  font-size: 2rem;
}

.tutorials-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tutorial-item {
  display: flex;
  align-items: center;
  background: var(--brand-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.tutorial-item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateX(5px);
}

.tutorial-number {
  background: var(--brand-gold);
  color: var(--brand-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.tutorial-content {
  flex: 1;
}

.tutorial-content h4 {
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.tutorial-content p {
  color: var(--brand-text);
  margin-bottom: 10px;
}

.tutorial-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.tutorial-action {
  margin-left: 20px;
}

.play-button {
  background: var(--brand-gold);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-medium);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Practice Grid */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.practice-card {
  background: var(--brand-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-medium);
}

.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.practice-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.practice-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  font-size: 0.9rem;
  color: var(--brand-blue);
}

.practice-button {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
  margin-top: 15px;
}

.practice-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

/* Learning Path */
.learning-path {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.path-step {
  display: flex;
  align-items: center;
  background: var(--brand-white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  position: relative;
}

.path-step.completed {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-left: 4px solid #28a745;
}

.path-step.current {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  border-left: 4px solid var(--brand-blue);
  transform: scale(1.02);
}

.step-number {
  background: var(--brand-blue);
  color: var(--brand-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 25px;
  flex-shrink: 0;
}

.path-step.completed .step-number {
  background: #28a745;
}

.path-step.current .step-number {
  background: var(--brand-white);
  color: var(--brand-blue);
}

.step-content h4 {
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.step-content p {
  color: var(--brand-text);
  margin-bottom: 8px;
}

.step-duration {
  font-size: 0.9rem;
  color: var(--brand-blue);
  font-weight: 500;
}

.path-connector {
  width: 4px;
  height: 30px;
  background: var(--brand-gold);
  margin: 0 auto;
  margin-left: 47px;
}

/* Contact Styles */
.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-option {
  background: var(--brand-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-medium);
}

.contact-option:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.option-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-method {
  margin: 15px 0;
  font-size: 1.1rem;
}

.response-time {
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Combined Contact Layout */
.combined-contact-layout {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-options-column {
  background: var(--brand-white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 
    0 10px 30px rgba(74, 144, 226, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(74, 144, 226, 0.08);
}

.contact-options-column .section-description {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1rem;
}

.contact-options-compact {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.contact-option-small {
  background: linear-gradient(145deg, #f8fbff 0%, var(--brand-white) 100%);
  padding: 25px;
  border-radius: 15px;
  border: 2px solid rgba(74, 144, 226, 0.1);
  transition: all 0.3s ease;
}

.contact-option-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
  border-color: rgba(74, 144, 226, 0.3);
}

.contact-option-small .option-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.contact-option-small h3 {
  font-size: 1.4rem;
  color: var(--brand-blue-dark);
  margin-bottom: 5px;
  text-align: center;
}

.contact-option-small .role-text {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.contact-link .link-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-link.phone-link {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.contact-link.phone-link:hover {
  background: linear-gradient(135deg, #357ABD, #2a5298);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.contact-link.whatsapp-link {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-link.whatsapp-link:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.contact-info-box {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(218, 165, 32, 0.05));
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid var(--brand-blue);
}

.contact-info-box h4 {
  font-size: 1.1rem;
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
}

.contact-info-box p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.contact-options-column .section-title,
.contact-form-column .section-title {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: var(--brand-blue-dark);
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

/* Enhanced Contact Form */
.contact-form-container {
  margin: 0 auto;
  padding: 0;
}

.contact-form {
  background: linear-gradient(145deg, var(--brand-white) 0%, #f8fbff 100%);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(74, 144, 226, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-dark));
  border-radius: 20px 20px 0 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
  margin-bottom: 0px;
}

.form-group {
  margin-bottom: 0px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--brand-text);
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e1e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--brand-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 
    0 0 0 2px rgba(74, 144, 226, 0.1),
    0 2px 8px rgba(74, 144, 226, 0.15);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 70px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--brand-text);
}

.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 1px 0 0 0;
  cursor: pointer;
  accent-color: var(--brand-blue);
}

.submit-button {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  box-shadow: 0 3px 8px rgba(74, 144, 226, 0.3);
  position: relative;
  overflow: hidden;
  display: block;
  margin: 15px auto 0;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.submit-button:hover:not(:disabled)::before {
  left: 100%;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 3px 8px rgba(74, 144, 226, 0.2);
}

/* Success Stories Slider */
.success-stories-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.slider-container {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  position: relative;
}

.success-stories-slider .testimonials-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.success-stories-slider .testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  background: var(--brand-white);
  padding: 30px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}

.success-stories-slider .testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 3rem;
  color: var(--brand-blue);
  opacity: 0.2;
  font-family: serif;
}

.success-stories-slider .testimonial-content {
  margin-bottom: 20px;
  flex-grow: 1;
}

.success-stories-slider .testimonial-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brand-text);
  margin: 0;
  font-style: italic;
}

.success-stories-slider .testimonial-author {
  text-align: center;
}

.success-stories-slider .testimonial-author strong {
  display: block;
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.success-stories-slider .testimonial-author span {
  color: var(--brand-text);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Slider Navigation */
.slider-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.slider-btn {
  background: var(--brand-blue);
  color: var(--brand-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.slider-btn:hover:not(:disabled) {
  background: var(--brand-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.dot:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.dot.active {
  background: var(--brand-blue);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--brand-blue-light);
}

.slider-btn:focus {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Responsive Design for Success Stories Slider */
@media (max-width: 768px) {
  .success-stories-slider .testimonial-card {
    padding: 25px 20px;
    min-height: 180px;
  }
  
  .success-stories-slider .testimonial-card::before {
    font-size: 2.5rem;
    top: 10px;
    left: 15px;
  }
  
  .success-stories-slider .testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
  
  .slider-navigation {
    gap: 15px;
    margin-top: 25px;
  }
  
  .success-stories-slider .testimonial-author strong {
    font-size: 1rem;
  }
  
  .success-stories-slider .testimonial-author span {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .success-stories-slider {
    max-width: 100%;
  }
  
  .success-stories-slider .testimonial-card {
    padding: 20px 15px;
    min-height: 160px;
  }
  
  .success-stories-slider .testimonial-card::before {
    font-size: 2rem;
    top: 8px;
    left: 12px;
  }
  
  .success-stories-slider .testimonial-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  
  .slider-navigation {
    gap: 12px;
    margin-top: 20px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}
.form-message {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid;
  animation: slideInDown 0.3s ease-out;
}

.form-message.success {
  background-color: #d4edda;
  border-left-color: #28a745;
  color: #155724;
}

.form-message.error {
  background-color: #f8d7da;
  border-left-color: #dc3545;
  color: #721c24;
}

.message-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.message-text {
  font-weight: 500;
  line-height: 1.4;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Info */
.contact-info {
  background: var(--brand-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  height: fit-content;
}

.contact-info h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  font-size: 1.5rem;
  margin-top: 5px;
}

.info-content strong {
  display: block;
  color: var(--brand-blue-dark);
  margin-bottom: 5px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  color: var(--brand-blue);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--brand-blue);
  border-radius: 15px;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
}

/* FAQ Styles */
.faq-item {
  background: var(--brand-white);
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition-medium);
}

.faq-question {
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 20px;
  margin: 0;
  cursor: pointer;
  transition: var(--transition-medium);
  position: relative;
}

.faq-question:hover {
  background: var(--brand-blue-dark);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition-medium);
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 20px 0;
  color: var(--brand-text);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--brand-blue);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ===================================
   Success Stories Section (Contact Page)
   =================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonials-grid .testimonial-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  border-left: 4px solid var(--brand-gold);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition-medium);
  transform: translateY(0);
}

.testimonials-grid .testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-left-color: var(--brand-blue);
}

.testimonials-grid .testimonial-card:nth-child(2) {
  border-left-color: var(--brand-blue);
}

.testimonials-grid .testimonial-card:nth-child(2):hover {
  border-left-color: var(--brand-gold);
}

.testimonials-grid .testimonial-content {
  position: relative;
}

.testimonials-grid .testimonial-content p {
  font-style: italic;
  color: var(--brand-text);
  line-height: 1.7;
  font-size: 1.1rem;
  margin: 0;
  position: relative;
  padding-left: 20px;
}

.testimonials-grid .testimonial-content p::before {
  content: '"';
  font-size: 3.5rem;
  color: var(--brand-gold);
  position: absolute;
  left: -10px;
  top: -15px;
  font-family: Georgia, serif;
  opacity: 0.3;
  line-height: 1;
}

.testimonials-grid .testimonial-author {
  display: flex;
  flex-direction: column;
  padding: 20px 30px 30px 30px;
  border-top: 1px solid #eee;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.9));
}

.testimonials-grid .testimonial-author strong {
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.testimonials-grid .testimonial-author span {
  color: var(--brand-text);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Success Stories Header Enhancement */
.content-section.alt-bg .section-title {
  text-align: center;
  position: relative;
  margin-bottom: 20px;
}

.content-section.alt-bg .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-blue));
  border-radius: 2px;
}

/* Add success story badges */
.testimonials-grid .testimonial-card::before {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: var(--shadow-light);
}

.testimonials-grid .testimonial-card:nth-child(2)::before {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
}

/* Responsive design for Success Stories */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  
  .testimonials-grid .testimonial-content p {
    font-size: 1rem;
    padding-left: 15px;
  }
  
  .testimonials-grid .testimonial-content p::before {
    font-size: 3rem;
    left: -5px;
    top: -12px;
  }
  
  .testimonials-grid .testimonial-author {
    padding: 15px 25px 25px 25px;
  }
}

@media (max-width: 480px) {
  
  .testimonials-grid .testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .testimonials-grid .testimonial-author {
    padding: 15px 20px 20px 20px;
  }
  
  .testimonials-grid .testimonial-author strong {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .story-grid,
  .mission-vision-grid,
  .legacy-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Compact Contact Form Responsive */
  .combined-contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-options-column {
    padding: 25px 20px;
  }
  
  .contact-option-small {
    padding: 20px;
  }
  
  .contact-link {
    font-size: 0.95rem;
    padding: 10px 14px;
  }
  
  .contact-info-box {
    padding: 15px;
  }
  
  .contact-form {
    padding: 20px 15px;
    margin: 0;
  }
  
  .form-group {
    margin-bottom: 10px;
  }
  
  .submit-button {
    width: 100%;
    margin: 10px 0 0 0;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .getting-started-grid,
  .approach-grid,
  .contact-options-grid,
  .practice-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .tutorial-meta,
  .practice-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .learning-path {
    padding: 0 20px;
  }
  
  .path-connector {
    margin-left: 45px;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 25px var(--container-padding);
  }
  
  .page-hero {
    padding: 60px var(--container-padding) 40px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .tutorial-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .tutorial-number {
    margin-right: 0;
  }
  
  .tutorial-action {
    margin-left: 0;
  }
  
  .path-step {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .step-number {
    margin-right: 0;
  }
  
  .path-connector {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===================================
   Enhanced Hands-On Learning Showcase
   =================================== */

.learning-showcase {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 var(--container-padding);
}

.hands-on-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--brand-white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.hands-on-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.02), rgba(255, 215, 0, 0.02));
  pointer-events: none;
}

.hands-on-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.hands-on-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.showcase-image {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.4s ease;
}

.hands-on-image:hover .showcase-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(74, 144, 226, 0.9));
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.hands-on-image:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: var(--brand-text);
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.overlay-header {
  margin-bottom: 2px;
}

.overlay-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--brand-blue-dark);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.overlay-subtitle {
  font-size: 1rem;
  opacity: 0.5;
  font-style: italic;
  margin: 0;
  color: var(--brand-text);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.learning-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 20px;
}

.learning-stats .stat-item {
  text-align: center;
  flex: 1;
  max-width: 150px;
}

.learning-stats .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--brand-blue-dark);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.learning-stats .stat-text {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--brand-blue-dark);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.learning-stats .stat-description {
  display: block;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--brand-text);
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.overlay-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(74, 144, 226, 0.3);
}

.research-note {
  font-size: 0.8rem;
  opacity: 0.8;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
  color: var(--brand-text);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hands-on-content {
  position: relative;
  z-index: 2;
}

.content-header {
  margin-bottom: 20px;
}

.hands-on-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.hands-on-subtitle {
  font-size: 1.2rem;
  color: var(--brand-text);
  opacity: 0.5;
  font-style: italic;
}

.learning-benefits {
  margin-bottom: 25px;
}

.benefit-point {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--brand-blue);
  transition: all 0.3s ease;
}

.benefit-point:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateX(5px);
}

.point-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.point-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  margin-bottom: 5px;
}

.point-content p {
  color: var(--brand-text);
  line-height: 1.5;
  margin: 0;
}

.experience-cta {
  text-align: center;
}

.experience-button {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.experience-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #FFF700, var(--brand-gold));
}

.experience-button:active {
  transform: translateY(-1px);
}

.button-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.experience-button:hover .button-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Mobile Responsiveness for Hands-On Section */
@media (max-width: 968px) {
  .hands-on-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px 20px;
  }
  
  .hands-on-title {
    font-size: 1.8rem;
  }
  
  .learning-stats {
    gap: 20px;
  }
  
  .learning-stats .stat-number {
    font-size: 2rem;
  }
  
  .overlay-title {
    font-size: 1.5rem;
  }
  
  .overlay-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .learning-showcase {
    margin: 25px auto;
  }
  
  .hands-on-container {
    padding: 30px 20px;
    gap: 30px;
  }
  
  .benefit-point {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .point-icon {
    align-self: center;
  }
  
  .image-overlay {
    padding: 20px;
  }
  
  .learning-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .learning-stats .stat-item {
    max-width: 100%;
  }
  
  .learning-stats .stat-number {
    font-size: 1.8rem;
  }
  
  .learning-stats .stat-description {
    font-size: 0.8rem;
  }
  
  .overlay-title {
    font-size: 1.3rem;
  }
  
  .research-note {
    font-size: 0.75rem;
  }
}

/* Student Success Showcase (keeping existing) */
.student-success-showcase {
  max-width: 800px;
  margin: 40px auto 60px auto;
  padding: 0 var(--container-padding);
}

.learning-visual-container, .success-visual-container {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  transition: var(--transition-medium);
}

.learning-visual-container:hover, .success-visual-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

/* Visual Abacus */
.visual-abacus {
  padding: 40px;
  background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  justify-content: center;
}

.abacus-frame-visual {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.visual-rod {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #8B4513;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.visual-bead {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ddd;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.visual-bead.active {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  transform: scale(1.1);
}

.learning-hands {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.hand {
  font-size: 2rem;
  animation: wave 2s ease-in-out infinite alternate;
}

.left-hand {
  animation-delay: 0s;
}

.right-hand {
  animation-delay: 0.5s;
}

@keyframes wave {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

/* Focus Indicator */
.focus-indicator {
  background: linear-gradient(135deg, #f8f0ff, #f0e6ff);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.concentration-rings {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.ring {
  position: absolute;
  border: 3px solid var(--brand-blue);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

.ring-1 {
  width: 40px;
  height: 40px;
  top: 40px;
  left: 40px;
  animation-delay: 0s;
}

.ring-2 {
  width: 70px;
  height: 70px;
  top: 25px;
  left: 25px;
  animation-delay: 0.5s;
}

.ring-3 {
  width: 100px;
  height: 100px;
  top: 10px;
  left: 10px;
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.student-icon {
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.calculation-display {
  background: var(--brand-white);
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  margin-top: 20px;
}

.math-equation {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
}

.number {
  color: var(--brand-blue-dark);
}

.operator, .equals {
  color: var(--brand-gold-dark);
}

.result {
  color: var(--brand-blue);
  background: linear-gradient(135deg, #e6f3ff, #cce7ff);
  padding: 5px 10px;
  border-radius: 5px;
}

.visual-caption {
  padding: 30px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.visual-caption h4 {
  color: var(--brand-blue-dark);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.visual-caption p {
  color: var(--brand-text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* Responsive Design for Visuals */
@media (max-width: 768px) {
  .student-success-showcase {
    margin: 30px auto 40px auto;
  }
  
  .visual-abacus, .focus-indicator {
    padding: 30px 20px;
    min-height: 250px;
  }
  
  .abacus-frame-visual {
    gap: 15px;
  }
  
  .visual-rod {
    padding: 8px;
  }
  
  .visual-bead {
    width: 20px;
    height: 20px;
  }
  
  .learning-hands {
    gap: 30px;
  }
  
  .hand {
    font-size: 1.5rem;
  }
  
  .concentration-rings {
    width: 100px;
    height: 100px;
  }
  
  .student-icon {
    font-size: 2.5rem;
  }
  
  .math-equation {
    font-size: 1.2rem;
  }
  
  .visual-caption {
    padding: 20px;
  }
  
  .visual-caption h4 {
    font-size: 1.2rem;
  }
  
  .visual-caption p {
    font-size: 1rem;
  }
}
/* Compact Contact Options */
.contact-options-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-option-small {
  background: var(--brand-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition-medium);
  border: 2px solid transparent;
}

.contact-option-small:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--brand-gold);
}

.contact-option-small .option-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.contact-option-small h3 {
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-option-small .contact-method {
  color: var(--brand-text);
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 0;
}

/* Responsive Design for Compact Options */
@media (max-width: 768px) {
  .contact-options-compact {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contact-option-small {
    padding: 15px;
  }
  
  .contact-option-small .option-icon {
    font-size: 1.8rem;
  }
  
  .contact-option-small h3 {
    font-size: 1rem;
  }
  
  .contact-option-small .contact-method {
    font-size: 0.85rem;
  }
}
/* Enhanced Program Details */
.program-details {
  margin: 15px 0;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  border-left: 3px solid var(--brand-gold);
}

.program-details .program-duration {
  font-weight: 600;
  color: var(--brand-blue-dark);
  margin-bottom: 5px;
}

.program-details .program-levels {
  font-size: 0.9rem;
  color: var(--brand-text);
  opacity: 0.8;
}

/* Update existing program-duration for backward compatibility */
.program-duration:not(.program-details .program-duration) {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-white);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin: 15px 0;
  box-shadow: var(--shadow-light);
}
/* Course Curriculum Styles */
.curriculum-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.curriculum-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: var(--brand-text);
}

.course-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-white);
}

.course-badge.young-star {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.course-badge.junior {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.junior-levels {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.level-card {
  background: var(--brand-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--brand-gold);
  transition: var(--transition-medium);
}

.level-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.level-header h4 {
  color: var(--brand-blue-dark);
  font-size: 1.2rem;
  margin: 0;
}

.level-header .duration {
  background: var(--brand-gold);
  color: var(--brand-white);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.level-content h5 {
  color: var(--brand-text);
  margin-bottom: 10px;
  font-size: 1rem;
}

.level-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.level-content li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  color: var(--brand-text);
  font-size: 0.9rem;
}

.level-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-gold);
  font-weight: bold;
}

.outcome {
  background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--brand-text);
  border-left: 3px solid var(--brand-blue);
}

/* Course Features */
.course-features-section {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #fff8e1, #ffffff);
  border-radius: var(--border-radius);
  border: 2px solid var(--brand-gold);
}

.course-features-section h3 {
  text-align: center;
  color: var(--brand-blue-dark);
  margin-bottom: 30px;
  font-size: 1.4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background: var(--brand-white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.feature-item h4 {
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-item p {
  color: var(--brand-text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Course Details in Path Cards */
.course-details {
  margin: 15px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: var(--brand-text);
  font-size: 0.9rem;
}

.detail-value {
  color: var(--brand-blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .curriculum-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .levels-grid, .junior-levels {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .level-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
/* Enhanced Age Paths Grid Responsive Design */
/* Large tablets and small desktops - keep 3 columns */
@media (min-width: 900px) and (max-width: 1024px) {
  .age-paths-grid {
    grid-template-columns: 30% 30% 30%;
    gap: 20px;
  }
  
  .age-path-card {
    padding: 30px 20px;
    min-height: 480px;
  }
}

/* Medium tablets - 2 columns */
@media (max-width: 899px) {
  .age-paths-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .age-path-card {
    padding: 35px 25px;
    min-height: 480px;
  }
  
  .age-path-card.featured {
    transform: none;
  }
  
  .age-path-card.featured:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .age-paths-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  
  .age-path-card {
    padding: 30px 25px;
    min-height: auto;
  }
    padding: 25px 20px;
  }
  
  .age-path-card h3 {
    font-size: 1.4rem;
  }
  
  .path-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .age-badge {
    padding: 6px 16px;
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
  
  .path-features {
    margin-bottom: 25px;
  }
  
  .path-features li {
    padding: 6px 0;
    padding-left: 20px;
    font-size: 0.9rem;
  }
  
  .path-features li::before {
    font-size: 0.9rem;
    left: 0;
    top: 6px;
  }
  
  .path-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .course-details {
    margin: 12px 0;
    padding: 12px;
  }
  
  .detail-item {
    margin-bottom: 6px;
  }
  
  .detail-label, .detail-value {
    font-size: 0.85rem;
  }
}

/* Fix for any potential layout issues */
.age-path-card * {
  box-sizing: border-box;
}

/* Enhanced Course Programs Section Styling */
.content-section h2.section-title {
  text-align: center;
  color: var(--brand-blue-dark);
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.content-section .section-description {
  text-align: center;
  color: var(--brand-text);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure proper alignment and spacing */
.age-path-card .path-features {
  min-height: 120px; /* Ensure consistent height across cards */
}

/* Improve button styling */
.path-button {
  margin-top: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.path-button:hover {
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
  transform: translateY(-3px);
}

.path-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* Fix any potential overflow issues */
.age-paths-grid {
  overflow: hidden;
}

/* Responsive title sizing */
@media (max-width: 768px) {
  .content-section h2.section-title {
    font-size: 1.8rem;
  }
  
  .content-section .section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
}
/* Competition Excellence Section */
.excellence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.excellence-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-medium);
  border: 2px solid var(--brand-gold);
  position: relative;
  overflow: hidden;
}

.excellence-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-dark), var(--brand-blue));
}

.excellence-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.excellence-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.excellence-card h3 {
  font-size: 1.6rem;
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
  font-weight: 700;
}

.excellence-card p {
  color: var(--brand-text);
  line-height: 1.6;
  margin-bottom: 13px;
  font-size: 1.1rem;
}

.excellence-features {
  list-style: none;
  padding: 0;
  margin-bottom: 0px;
  text-align: left;
}

.excellence-features li {
  padding: 8px 0;
  color: var(--brand-text);
  position: relative;
  padding-left: 25px;
  font-weight: 500;
}

.excellence-features li::before {
  content: '🏆';
  position: absolute;
  left: 0;
  font-size: 1rem;
}

.excellence-details {
  background: linear-gradient(135deg, #fff8e1, #f3e5ab);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  border-left: 4px solid var(--brand-gold);
}

.excellence-button {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-medium);
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.excellence-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, var(--brand-gold-dark), var(--brand-gold));
}

/* Excellence Benefits */
.excellence-benefits {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  height: fit-content;
}

.excellence-benefits h3 {
  color: var(--brand-blue-dark);
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 10px;
  border-left: 3px solid var(--brand-blue);
  transition: var(--transition-medium);
}

.benefit-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-light);
}

.benefit-item .benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-content h4 {
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.benefit-content p {
  color: var(--brand-text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Design for Excellence Section */
@media (max-width: 1024px) {
  .excellence-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .excellence-card {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .excellence-grid {
    gap: 25px;
    margin-top: 30px;
  }
  
  .excellence-card {
    padding: 25px 20px;
  }
  
  .excellence-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  
  .excellence-card h3 {
    font-size: 1.4rem;
  }
  
  .excellence-card p {
    font-size: 1rem;
  }
  
  .excellence-features li {
    padding: 6px 0;
    padding-left: 20px;
    font-size: 0.9rem;
  }
  
  .excellence-features li::before {
    font-size: 0.9rem;
    left: 0;
    top: 6px;
  }
  
  .excellence-details {
    padding: 15px;
    margin: 15px 0;
  }
  
  .excellence-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .excellence-benefits {
    padding: 25px 20px;
  }
  
  .excellence-benefits h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .benefit-item {
    padding: 12px;
    gap: 12px;
  }
  
  .benefit-item .benefit-icon {
    font-size: 1.3rem;
  }
  
  .benefit-content h4 {
    font-size: 1rem;
  }
  
  .benefit-content p {
    font-size: 0.85rem;
  }
}
/* Enhanced Student Success Showcase with Image - Simplified */
.success-image-section {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-medium);
}

.success-visual-container:hover .success-image {
  transform: scale(1.02);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 144, 226, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 3s ease;
}

.success-visual-container:hover .image-overlay {
  opacity: 1;
}

.image-overlay .focus-indicator {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
}

.image-overlay .concentration-rings {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 15px auto;
}

.image-overlay .ring {
  position: absolute;
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}

.image-overlay .ring-1 {
  width: 30px;
  height: 30px;
  top: 25px;
  left: 25px;
  animation-delay: 0s;
}

.image-overlay .ring-2 {
  width: 50px;
  height: 50px;
  top: 15px;
  left: 15px;
  animation-delay: 0.5s;
}

.image-overlay .ring-3 {
  width: 70px;
  height: 70px;
  top: 5px;
  left: 5px;
  animation-delay: 1s;
}

.image-overlay .student-icon {
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.image-overlay .calculation-display {
  background: var(--brand-white);
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 15px;
}

.image-overlay .math-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: bold;
}

.image-overlay .number {
  color: var(--brand-blue-dark);
}

.image-overlay .operator, 
.image-overlay .equals {
  color: var(--brand-gold-dark);
}

.image-overlay .result {
  color: var(--brand-blue);
  background: linear-gradient(135deg, #e6f3ff, #cce7ff);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Fallback when image doesn't load */
.success-image-section:not(:has(.success-image[src])) {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-image-section:not(:has(.success-image[src]))::after {
  content: '📚 Student Learning Experience';
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .success-image-section {
    height: 300px;
  }
  
  .image-overlay .focus-indicator {
    padding: 20px;
  }
  
  .image-overlay .concentration-rings {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  
  .image-overlay .ring-1 {
    width: 20px;
    height: 20px;
    top: 20px;
    left: 20px;
  }
  
  .image-overlay .ring-2 {
    width: 35px;
    height: 35px;
    top: 12px;
    left: 12px;
  }
  
  .image-overlay .ring-3 {
    width: 50px;
    height: 50px;
    top: 5px;
    left: 5px;
  }
  
  .image-overlay .student-icon {
    font-size: 1.5rem;
  }
  
  .image-overlay .calculation-display {
    padding: 8px 12px;
    margin-top: 10px;
  }
  
  .image-overlay .math-equation {
    font-size: 1rem;
    gap: 6px;
  }
}

/* ===================================
   About Page Specific Styles
   =================================== */

/* About Hero Section */
.about-hero {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  padding: 80px var(--container-padding) 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  pointer-events: none;
}

.about-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-hero .hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-hero .hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
  font-style: italic;
}

.hero-mission {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-top: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-mission p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* Founder Section */
.founder-section {
  padding: 80px var(--container-padding);
  background: var(--brand-white);
}

.founder-header {
  text-align: center;
  margin-bottom: 10px;
}

.founder-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.founder-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 50px;
  padding: 40px;
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.founder-avatar {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  border: 4px solid var(--brand-gold);
  transition: var(--transition-medium);
}

.avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.avatar-initials {
  font-size: 2.8rem;
  font-weight: bold;
  color: var(--brand-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.founder-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.founder-name {
  font-size: 1.4rem;
  color: var(--brand-blue-dark);
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.founder-title {
  font-size: 1.3rem;
  color: var(--brand-gold-dark);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.founder-quote {
  margin-top: 10px;
}

.founder-quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--brand-text);
  line-height: 1.7;
  position: relative;
  padding: 25px 30px;
  margin: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.02));
  border-radius: 12px;
  border-left: 4px solid var(--brand-gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.founder-quote blockquote::before {
  content: '"';
  font-size: 3.5rem;
  color: var(--brand-gold);
  position: absolute;
  top: -5px;
  left: 10px;
  font-family: Georgia, serif;
  opacity: 0.6;
  line-height: 1;
}

.founder-quote blockquote::after {
  content: '"';
  font-size: 3.5rem;
  color: var(--brand-gold);
  position: absolute;
  bottom: -20px;
  right: 15px;
  font-family: Georgia, serif;
  opacity: 0.6;
  line-height: 1;
}

/* ===================================
   About Page Styles - Fixed Layout Issues
   =================================== */

/* Ensure about page sections work within page-container */
.page-container .mission-section,
.page-container .benefits-section,
.page-container .approach-section,
.page-container .founder-section,
.page-container .certifications-section,
.page-container .impact-section {
  width: 100%;
}

/* Mission Section */
.mission-section {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.8));
  width: 100%;
  border-radius: var(--border-radius);
  margin: 30px auto;
  max-width: var(--max-width);
  box-shadow: var(--shadow-light);
}

.mission-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.mission-main {
  text-align: center;
  color: var(--brand-text);
}

.mission-main h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--brand-blue-dark);
  font-weight: bold;
  margin-bottom: 25px;
}

.mission-text p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--brand-text);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mission-text .lead-paragraph {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 500;
  color: var(--brand-blue-dark);
  margin-bottom: 25px;
}

.mission-text {
  margin: 0 auto;
  position: relative;
}

.mission-text .lead-paragraph {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  margin-bottom: 35px;
  line-height: 1.6;
  text-align: center;
  position: relative;
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(74, 144, 226, 0.03));
  border-radius: 15px;
  border-left: 5px solid var(--brand-blue);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.mission-text .lead-paragraph::before {
  content: '✨';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 1.5rem;
  background: var(--brand-white);
  padding: 5px 10px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mission-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--brand-text);
  margin-bottom: 25px;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.mission-text p:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.02));
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  font-weight: 500;
}

.mission-text p:nth-child(3) {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  font-style: italic;
  position: relative;
  padding: 20px 0;
}

.mission-text p:nth-child(3)::before {
  content: '"';
  font-size: 3rem;
  color: var(--brand-gold);
  position: absolute;
  top: -5px;
  left: -15px;
  font-family: serif;
  opacity: 0.7;
}

.mission-text p:nth-child(3)::after {
  content: '"';
  font-size: 3rem;
  color: var(--brand-gold);
  position: absolute;
  bottom: -25px;
  right: -15px;
  font-family: serif;
  opacity: 0.7;
}

.mission-highlights h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--brand-blue-dark);
  margin-bottom: 40px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.value-item {
  background: var(--brand-white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.value-item h4 {
  font-size: 1.3rem;
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
}

.value-item p {
  color: var(--brand-text);
  line-height: 1.6;
  margin: 0;
}

/* Approach Section */
.approach-section {
  padding: 5px var(--container-padding);
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  width: 100%;
}

.approach-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--container-padding);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.approach-step {
  background: var(--brand-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  position: relative;
  transition: var(--transition-medium);
}

.approach-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: var(--shadow-medium);
}

.step-content h3 {
  font-size: 1.4rem;
  color: var(--brand-blue-dark);
  margin: 30px 0 20px 0;
}

.step-content p {
  color: var(--brand-text);
  line-height: 1.6;
  margin: 0;
}

/* Founder Section */
.founder-section {
  padding: 10px var(--container-padding);
  background: var(--brand-white);
  width: 100%;
}

.founder-header {
  text-align: center;
  margin-bottom: 10px;
}

.founder-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--container-padding);
}

.founder-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.founder-avatar {
  text-align: center;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  margin: 0 auto 20px auto;
}

.avatar-initials {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--brand-white);
}

.founder-name {
  font-size: 2rem;
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
}

.founder-title {
  font-size: 1.2rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
  margin-bottom: 30px;
}

.founder-quote blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--brand-text);
  line-height: 1.6;
  position: relative;
  padding: 20px 0;
  margin: 0;
}

.founder-quote blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--brand-gold);
  position: absolute;
  top: -10px;
  left: -20px;
  font-family: serif;
}

.credentials-section {
  margin-top: 40px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.credential-card {
  background: var(--brand-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.credential-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.credential-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.credential-card h4 {
  font-size: 1.3rem;
  color: var(--brand-blue-dark);
  margin-bottom: 20px;
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credential-list li {
  padding: 8px 0;
  color: var(--brand-text);
  border-bottom: 1px solid #eee;
}

.credential-list li:last-child {
  border-bottom: none;
}

.founder-description {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.02));
  padding: 30px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--brand-blue);
}

.founder-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--brand-text);
  margin: 0;
}

/* Certifications Section */
.certifications-section {
  padding: 80px var(--container-padding);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  width: 100%;
}

.certifications-header {
  text-align: center;
  margin-bottom: 60px;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 50px auto;
  padding: 0 var(--container-padding);
}

.certification-card {
  background: var(--brand-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  display: flex;
  gap: 30px;
  align-items: flex-start;
  transition: var(--transition-medium);
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.cert-badge {
  flex-shrink: 0;
}

.cert-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-light);
}

.cert-content h3 {
  font-size: 1.4rem;
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
}

.cert-type {
  font-size: 1rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.cert-description {
  color: var(--brand-text);
  line-height: 1.6;
  margin: 0;
}

.certifications-note {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.note-content {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  padding: 30px;
  border-radius: var(--border-radius);
  border: 2px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
}

.note-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.note-content p {
  color: var(--brand-text);
  line-height: 1.6;
  margin: 0;
  font-size: 1.1rem;
}

/* Benefits Section */
.benefits-section {
  padding: 0px var(--container-padding);
  background: var(--brand-white);
  width: 100%;
}

.benefits-header {
  text-align: center;
  margin-bottom: 60px;
}

.benefits-showcase {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.benefits-visual {
  text-align: center;
  margin-bottom: 60px;
}

.visual-caption {
  font-style: italic;
  color: var(--brand-text);
  font-size: 1.1rem;
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.benefit-item-compact {
  background: var(--brand-white);
  padding: 30px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.benefit-item-compact:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.benefit-item-compact .benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.benefit-item-compact h3 {
  font-size: 1.2rem;
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
  line-height: 1.3;
}

.benefit-item-compact p {
  color: var(--brand-text);
  line-height: 1.5;
  margin: 0;
  font-size: 0.95rem;
}

/* Impact Section */
.impact-section {
  padding: 80px var(--container-padding);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  width: 100%;
}

.impact-header {
  text-align: center;
  margin-bottom: 60px;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 60px auto;
  padding: 0 var(--container-padding);
}

.stat-card {
  background: var(--brand-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--brand-text);
  font-size: 1.1rem;
  font-weight: 500;
}

.impact-testimonial {
  max-width: 80%;
  margin: 0 auto;
  background: var(--brand-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
}

.impact-testimonial blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--brand-text);
  line-height: 1.6;
  margin-bottom: 30px;
  position: relative;
}

.impact-testimonial blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--brand-gold);
  position: absolute;
  top: -20px;
  left: -30px;
  font-family: serif;
}

.testimonial-author {
  color: var(--brand-blue-dark);
  font-weight: 600;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
  .mission-section,
  .approach-section,
  .founder-section,
  .certifications-section,
  .benefits-section,
  .impact-section {
    padding: 0px var(--container-padding);
  }
  
  .mission-content,
  .approach-content,
  .founder-content,
  .benefits-showcase,
  .certifications-grid,
  .certifications-note,
  .impact-stats {
    padding: 0 10px;
  }
  
  .founder-profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 30px 20px;
  }
  
  .founder-info {
    gap: 15px;
  }
  
  .founder-name {
    font-size: 2rem;
  }
  
  .founder-title {
    font-size: 1.1rem;
  }
  
  .founder-quote blockquote {
    font-size: 1rem;
    padding: 20px 25px;
  }
  
  .founder-quote blockquote::before {
    font-size: 3rem;
    top: -5px;
    left: 5px;
  }
  
  .founder-quote blockquote::after {
    font-size: 3rem;
    bottom: -15px;
    right: 10px;
  }
  
  .avatar-circle {
    width: 120px;
    height: 120px;
  }
  
  .avatar-initials {
    font-size: 2.4rem;
  }
  
  .benefits-showcase {
    padding: 0 10px;
  }
  
  .benefits-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .benefit-item-compact {
    padding: 25px 15px;
  }
  
  .benefit-item-compact h3 {
    font-size: 1.1rem;
  }
  
  .benefit-item-compact p {
    font-size: 0.9rem;
  }
  
  .certification-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .cert-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }
  
  .approach-grid {
    gap: 30px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .impact-stats {
    grid-template-columns: 1fr;
  }
  
  .founder-profile {
    padding: 25px 15px;
    gap: 25px;
  }
  
  .founder-name {
    font-size: 1.8rem;
  }
  
  .founder-title {
    font-size: 1rem;
  }
  
  .founder-quote blockquote {
    font-size: 0.95rem;
    padding: 18px 20px;
  }
  
  .avatar-circle {
    width: 100px;
    height: 100px;
  }
  
  .avatar-initials {
    font-size: 2rem;
  }
  
  .benefits-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .benefit-item-compact {
    padding: 20px 15px;
  }
  
  .benefit-item-compact .benefit-icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .benefit-item-compact h3 {
    font-size: 1rem;
  }
  
  .benefit-item-compact p {
    font-size: 0.85rem;
  }
  
  .mission-text .lead-paragraph {
    font-size: 1.2rem;
  }
  
  .founder-quote blockquote::before,
  .impact-testimonial blockquote::before {
    font-size: 3rem;
    top: -15px;
    left: -20px;
  }
  
  .certifications-grid {
    grid-template-columns: 1fr;
  }
  
  .note-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
/* Enhanced Founder Profile Section Styling */
.founder-profile.enhanced-profile {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 50px;
  padding: 50px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(74, 144, 226, 0.03));
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.founder-profile.enhanced-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold), var(--brand-blue));
}

/* Enhanced Avatar Styling */
.founder-avatar.enhanced-avatar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-frame {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.avatar-frame::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(135deg, 
    var(--brand-blue) 0%, 
    var(--brand-gold) 25%, 
    var(--brand-blue-dark) 50%, 
    var(--brand-gold) 75%, 
    var(--brand-blue) 100%);
  border-radius: 50%;
  z-index: 0;
  animation: gentle-rotate 8s linear infinite;
  opacity: 1;
}

@keyframes gentle-rotate {
  0% { 
    transform: rotate(0deg);
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
  100% { 
    transform: rotate(360deg);
    filter: hue-rotate(0deg);
  }
}

.founder-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--brand-white);
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(74, 144, 226, 0.1));
  border-radius: 50%;
  z-index: 3;
}

/* Enhanced Founder Info Styling */
.founder-info.enhanced-info {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.founder-title-section {
  margin-bottom: 0px;
  text-align: left;
}

.founder-name {
  font-size: 2.8rem;
  color: var(--brand-blue-dark);
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.founder-title {
  font-size: 1.5rem;
  color: var(--brand-gold-dark);
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.founder-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-dark));
  border-radius: 2px;
}

.founder-credentials {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.credential-tag {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-medium);
}

.credential-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.4);
}

/* Enhanced Quote Styling */
.founder-quote.enhanced-quote {
  position: relative; 
  padding: 15px;   
  margin-top: 10px;
  backdrop-filter: blur(10px); 
}

.quote-icon {
  position: absolute;
  top: -15px;
  left: 25px;
  font-size: 5rem;
  color: var(--brand-gold);
  font-family: Georgia, serif;
  opacity: 0.8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.enhanced-quote blockquote {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--brand-text);
  font-style: italic;
  margin: 0;
  padding-top: 25px;
  font-weight: 500;
  text-align: justify;
}

.quote-attribution {
  text-align: right;
  margin-top: 25px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  font-size: 1rem;
  font-style: normal;
  position: relative;
}

.quote-attribution::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 120px;
  width: 40px;
  height: 2px;
  background: var(--brand-gold);
  transform: translateY(-50%);
}

/* Responsive Design for Founder Profile */
@media (max-width: 1024px) {
  .founder-profile.enhanced-profile {
    grid-template-columns: 280px 1fr;
    gap: 45px;
    padding: 40px;
  }
  
  .avatar-frame {
    width: 260px;
    height: 260px;
  }
  
  .founder-name {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .founder-profile.enhanced-profile {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 25px;
  }
  
  .avatar-frame {
    width: 220px;
    height: 220px;
  }
  
  .founder-name {
    font-size: 2.2rem;
  }
  
  .founder-title {
    font-size: 1.3rem;
  }
  
  .founder-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .founder-credentials {
    justify-content: center;
  }
  
  .enhanced-quote blockquote {
    text-align: center;
  }
  
  .quote-attribution::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .founder-profile.enhanced-profile {
    padding: 20px;
  }
  
  .avatar-frame {
    width: 180px;
    height: 180px;
  }
  
  .founder-name {
    font-size: 1.9rem;
  }
  
  .founder-title {
    font-size: 1.1rem;
  }
  
  .enhanced-quote {
    padding: 25px;
  }
  
  .quote-icon {
    font-size: 4rem;
    top: -10px;
  }
  
  .enhanced-quote blockquote {
    font-size: 1.1rem;
    padding-top: 20px;
  }
  
  .credential-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* Additional Animation for Enhanced Experience */
.founder-profile.enhanced-profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: var(--transition-medium);
}

.founder-profile.enhanced-profile:hover .avatar-frame::before {
  animation-duration: 4s;
}

. founder-profile.enhanced-profile:hover .founder-name {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
  transition: var(--transition-medium);
}

/* New Founder Section Elements */
.founder-credentials-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
}

.founder-intro {
  margin-bottom: 30px;
}

.founder-tagline {
  font-size: 1.1rem;
  color: var(--brand-text);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.6;
}

.founder-academic-details {
  background: rgba(74, 144, 226, 0.05);
  padding: 25px;
  border-radius: 15px;
  margin: 30px 0;
  border-left: 4px solid var(--brand-blue);
}

.academic-heading {
  font-size: 1.4rem;
  color: var(--brand-blue-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.degrees-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.degree-item {
  padding: 15px;
  background: var(--brand-white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition-medium);
}

.degree-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.degree-title {
  font-size: 1.1rem;
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
}

.institution {
  font-size: 0.95rem;
  color: var(--brand-blue);
  margin-bottom: 5px;
  font-weight: 500;
}

.degree-details {
  font-size: 0.9rem;
  color: var(--brand-text);
  opacity: 0.8;
}

.founder-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(74, 144, 226, 0.05));
  border-radius: 12px;
  border-left: 4px solid var(--brand-gold);
  transition: var(--transition-medium);
}

.highlight-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left-color: var(--brand-blue);
}

.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.highlight-content {
  flex: 1;
}

.highlight-content strong {
  display: block;
  font-size: 1.1rem;
  color: var(--brand-blue-dark);
  margin-bottom: 5px;
}

.highlight-content p {
  font-size: 0.95rem;
  color: var(--brand-text);
  line-height: 1.5;
  margin: 0;
}

/* Responsive styles for new elements */
@media (max-width: 768px) {
  .founder-credentials-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .founder-intro {
    text-align: center;
  }
  
  .founder-tagline {
    font-size: 1rem;
  }
  
  .founder-academic-details {
    padding: 20px;
  }
  
  .academic-heading {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .highlight-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .highlight-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .founder-academic-details {
    padding: 15px;
  }
  
  .degrees-list {
    gap: 15px;
  }
  
  .degree-item {
    padding: 12px;
  }
  
  .highlight-item {
    padding: 15px;
  }
  
  .highlight-content strong {
    font-size: 1rem;
  }
  
  .highlight-content p {
    font-size: 0.9rem;
  }
}

/* ===================================
   Enhanced Section Styling - Compact Version
   =================================== */

.enhanced-section {
  position: relative;
  padding: 40px 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.95));
  border-radius: var(--border-radius);
  margin: 20px auto;
  max-width: var(--max-width);
  box-shadow: var(--shadow-light);
}

.enhanced-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(74,144,226,0.1)"/><circle cx="90" cy="20" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="30" cy="90" r="1" fill="rgba(74,144,226,0.1)"/><circle cx="70" cy="70" r="1.2" fill="rgba(255,215,0,0.1)"/></svg>');
  pointer-events: none;
  opacity: 0.6;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.section-header .section-title {
  font-size: 2.2rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
  margin-bottom: 10px;
  position: relative;
}

.enhanced-description {
  font-size: 1.1rem;
  color: var(--brand-text);
  opacity: 0.9;
  margin-bottom: 20px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.section-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-dark));
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Mission Section Highlights */
.mission-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.highlight-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 25px 20px;
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-medium);
  border: 2px solid transparent;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-gold);
}

.highlight-card .highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.highlight-card h3 {
  color: var(--brand-blue-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.highlight-card p {
  color: var(--brand-text);
  line-height: 1.6;
  font-size: 1rem;
}

/* Approach Grid */
.enhanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.enhanced-step {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  position: relative;
  border: 2px solid transparent;
}

.enhanced-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-blue);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.step-number {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: var(--shadow-light);
}

.step-badge {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

.step-content h3 {
  color: var(--brand-blue-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--brand-text);
  line-height: 1.6;
  margin-bottom: 15px;
}

.step-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(74, 144, 226, 0.1);
  color: var(--brand-blue-dark);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

/* Founder Section Enhanced */
.enhanced-founder {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.enhanced-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 30px;
}

.enhanced-avatar {
  position: relative;
}

.avatar-frame {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--brand-gold);
  box-shadow: var(--shadow-heavy);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  padding: 4px;
}

.avatar-frame::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--brand-gold), var(--brand-blue), var(--brand-gold));
  z-index: -1;
  animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 215, 0, 0.1));
  border-radius: 50%;
}

.enhanced-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-title-section {
  text-align: left;
}

.founder-name {
  font-size: 2.2rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.founder-title {
  font-size: 1.3rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.founder-credentials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.credential-tag {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-light);
}

.enhanced-quote {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-left: 4px solid var(--brand-gold);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-light);
}

.quote-icon {
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 3rem;
  color: var(--brand-gold);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.enhanced-quote blockquote {
  font-style: italic;
  color: var(--brand-text);
  line-height: 1.7;
  font-size: 1.1rem;
  margin: 0;
  padding-top: 10px;
}

.quote-attribution {
  text-align: right;
  color: var(--brand-blue-dark);
  font-weight: 600;
  margin-top: 15px;
  font-size: 1rem;
}

/* Credentials Section */
.credentials-section {
  margin-top: 30px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}

.credential-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  border: 2px solid transparent;
}

.credential-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-gold);
}

.credential-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.credential-icon {
  font-size: 2.5rem;
}

.credential-header h4 {
  color: var(--brand-blue-dark);
  font-size: 1.4rem;
  margin: 0;
}

.credential-badge {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: auto;
}

.degree-item, .expertise-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.degree-item:last-child, .expertise-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.degree-title, .expertise-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.degree-title strong, .expertise-title strong {
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
}

.grade-range, .specialization, .achievement {
  background: rgba(74, 144, 226, 0.1);
  color: var(--brand-blue-dark);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

.institution {
  color: var(--brand-gold-dark);
  font-weight: 600;
  margin-bottom: 5px;
}

.degree-details, .expertise-description {
  color: var(--brand-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive Design for Enhanced Sections */
@media (max-width: 768px) {
  .enhanced-section {
    padding: 30px 0;
    margin: 15px 0;
  }
  
  .section-header .section-title {
    font-size: 1.8rem;
  }
  
  .enhanced-description {
    font-size: 1rem;
  }
  
  .enhanced-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .enhanced-profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }
  
  .avatar-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  
  .founder-title-section {
    text-align: center;
  }
  
  .founder-name {
    font-size: 1.8rem;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .credential-card {
    padding: 20px;
  }
  
  .degree-title, .expertise-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .enhanced-section {
    padding: 25px 0;
  }
  
  .section-header .section-title {
    font-size: 1.6rem;
  }
  
  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .founder-name {
    font-size: 1.6rem;
  }
  
  .enhanced-quote {
    padding: 15px;
  }
  
  .enhanced-quote blockquote {
    font-size: 1rem;
  }
}

/* Mission Section - Enhanced Version */
.mission-section.enhanced-section {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.95));
  position: relative;
  padding: 40px 0;
  border-radius: var(--border-radius);
  margin: 20px auto;
  max-width: var(--max-width);
  box-shadow: var(--shadow-light);
}

.mission-section.enhanced-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(74,144,226,0.1)"/><circle cx="90" cy="20" r="1.5" fill="rgba(255,215,0,0.1)"/><circle cx="30" cy="90" r="1" fill="rgba(74,144,226,0.1)"/><circle cx="70" cy="70" r="1.2" fill="rgba(255,215,0,0.1)"/></svg>');
  pointer-events: none;
}

/* Approach Section - Enhanced Version */
.approach-section.enhanced-section {
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  position: relative;
  padding: 40px 0;
  border-radius: var(--border-radius);
  margin: 20px auto;
  max-width: var(--max-width);
  box-shadow: var(--shadow-light);
}

.approach-section.enhanced-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(74,144,226,0.08)"/><circle cx="80" cy="40" r="1" fill="rgba(255,215,0,0.08)"/><circle cx="40" cy="80" r="1.2" fill="rgba(74,144,226,0.08)"/></svg>');
  pointer-events: none;
}

/* Founder Section - Enhanced Version */
.founder-section.enhanced-section {
  background: var(--brand-white);
  position: relative;
  padding: 40px 0;
  border-radius: var(--border-radius);
  margin: 20px auto;
  max-width: var(--max-width);
  box-shadow: var(--shadow-medium);
}

/* New Card-Based Founder Layout */
.founder-profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.95));
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-light);
  border: 2px solid rgba(74, 144, 226, 0.1);
}

.profile-avatar-section {
  display: inline;
  justify-content: center;
  align-items: center;
}

.profile-avatar-section .avatar-frame {
  width: 220px;
  height: 220px;
}

.profile-intro-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.founder-credentials-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.founder-quote-card {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-left: 6px solid var(--brand-gold);
  border-radius: var(--border-radius);
  padding: 35px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.founder-quote-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  border-left-color: var(--brand-blue);
}

.founder-quote-card .quote-icon {
  position: absolute;
  top: -15px;
  left: 25px;
  font-size: 4rem;
  color: var(--brand-gold);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.founder-quote-text {
  font-style: italic;
  color: var(--brand-text);
  line-height: 1.8;
  font-size: 1.15rem;
  margin: 0;
  padding-top: 15px;
}

.founder-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.founder-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  border: 2px solid rgba(74, 144, 226, 0.1);
}

.founder-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-gold);
}

.card-heading {
  font-size: 1.5rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--brand-gold);
}

.academic-card .degrees-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.academic-card .degree-item {
  padding: 15px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.5));
  border-radius: 10px;
  border-left: 4px solid var(--brand-blue);
  transition: var(--transition-medium);
}

.academic-card .degree-item:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(255, 255, 255, 0.8));
  border-left-color: var(--brand-gold);
}

.highlights-card .highlights-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlights-card .highlight-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 255, 255, 0.5));
  border-radius: 10px;
  border-left: 4px solid var(--brand-gold);
  transition: var(--transition-medium);
}

.highlights-card .highlight-item:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.8));
  border-left-color: var(--brand-blue);
}

.highlights-card .highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  border-radius: 50%;
  box-shadow: var(--shadow-light);
}

.highlights-card .highlight-content {
  flex: 1;
}

.highlights-card .highlight-content strong {
  display: block;
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.highlights-card .highlight-content p {
  color: var(--brand-text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Design for Card-Based Layout */
@media (max-width: 1024px) {
  .founder-profile-header {
    gap: 30px;
    padding: 30px;
  }
  
  .profile-avatar-section .avatar-frame {
    width: 180px;
    height: 180px;
  }
  
  .founder-details-grid {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .founder-profile-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
    padding: 25px;
  }
  
  .profile-avatar-section .avatar-frame {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }
  
  .profile-intro-section {
    align-items: center;
  }
  
  .founder-credentials-badges {
    justify-content: center;
  }
  
  .founder-quote-card {
    padding: 25px;
  }
  
  .founder-quote-text {
    font-size: 1.05rem;
  }
  
  .founder-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .founder-card {
    padding: 25px;
  }
  
  .card-heading {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .founder-profile-header {
    padding: 20px;
    gap: 20px;
  }
  
  .profile-avatar-section .avatar-frame {
    width: 140px;
    height: 140px;
  }
  
  .founder-name {
    font-size: 1.6rem;
  }
  
  .founder-title {
    font-size: 1.1rem;
  }
  
  .founder-tagline {
    font-size: 0.95rem;
  }
  
  .founder-credentials-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .credential-tag {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  
  .founder-quote-card {
    padding: 20px;
  }
  
  .founder-quote-text {
    font-size: 1rem;
  }
  
  .founder-card {
    padding: 20px;
  }
  
  .card-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .highlights-card .highlight-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .highlights-card .highlight-icon {
    margin-bottom: 10px;
  }
}

/* ===================================
   Professional Excellence Section - Redesigned
   =================================== */

.excellence-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 60px 0;
  margin: 20px auto;
  max-width: 100%;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.excellence-section .content-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Featured Partnership Card */
.featured-partnership {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(255, 255, 255, 0.95));
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-medium);
  border: 2px solid rgba(74, 144, 226, 0.1);
  position: relative;
  overflow: hidden;
  transition: var(--transition-medium);
}

.featured-partnership:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-gold);
}

.featured-partnership::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.partnership-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
}

.badge-icon {
  font-size: 1.3rem;
}

.partnership-content {
  position: relative;
  z-index: 1;
}

.partnership-title {
  font-size: 2rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
  margin-bottom: 10px;
}

.partnership-role {
  font-size: 1.2rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.partnership-description {
  font-size: 1.05rem;
  color: var(--brand-text);
  line-height: 1.7;
  margin-bottom: 25px;
}

.partnership-highlights {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--brand-text);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(74, 144, 226, 0.1);
  transition: var(--transition-fast);
}

.highlight-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--brand-blue);
}

.tag-icon {
  font-size: 1.1rem;
}

/* Partnerships Grid */
.partnerships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.partnership-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 0;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  border: 2px solid transparent;
  overflow: hidden;
}

.partnership-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.partnership-card.online-partner {
  border-color: rgba(74, 144, 226, 0.2);
}

.partnership-card.online-partner:hover {
  border-color: var(--brand-blue);
}

.partnership-card.curriculum-partner {
  border-color: rgba(255, 215, 0, 0.3);
}

.partnership-card.curriculum-partner:hover {
  border-color: var(--brand-gold);
}

.partnership-card.certification-partner {
  border-color: rgba(139, 69, 19, 0.2);
}

.partnership-card.certification-partner:hover {
  border-color: var(--brand-brown);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 25px 20px 25px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.5));
}

.card-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  border-radius: 50%;
  box-shadow: var(--shadow-light);
}

.card-badge {
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.online-badge {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
}

.curriculum-badge {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
}

.certification-badge {
  background: linear-gradient(135deg, var(--brand-brown), var(--brand-brown-light));
  color: var(--brand-white);
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 1.4rem;
  color: var(--brand-blue-dark);
  font-weight: bold;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 1rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.card-description {
  font-size: 0.95rem;
  color: var(--brand-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.inline-link {
  color: var(--brand-blue);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition-fast);
}

.inline-link:hover {
  color: var(--brand-blue-dark);
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.5));
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--brand-text);
  transition: var(--transition-fast);
}

.feature-item:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(255, 255, 255, 0.8));
  transform: translateX(5px);
}

.feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Quality Banner Wrapper - Full Width */
.quality-banner-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 40px 0 0 0;
  padding: 0;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.08) 0%, 
    rgba(74, 144, 226, 0.05) 50%,
    rgba(255, 215, 0, 0.08) 100%);
}

/* Quality Banner - Enhanced Full Width */
.quality-banner {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.15) 0%, 
    rgba(74, 144, 226, 0.08) 50%,
    rgba(255, 215, 0, 0.12) 100%);
  border-radius: 0;
  padding: 50px calc((100% - var(--max-width)) / 2 + var(--container-padding));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  border: none;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 
    0 8px 32px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  width: 100%;
}

.quality-banner::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  bottom: -3px;
  background: linear-gradient(135deg, 
    var(--brand-gold) 0%, 
    var(--brand-blue) 50%, 
    var(--brand-gold) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quality-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.quality-banner:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 48px rgba(255, 215, 0, 0.3),
    0 4px 16px rgba(74, 144, 226, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.quality-banner:hover::before {
  opacity: 1;
}

.quality-banner:hover::after {
  left: 100%;
}

.banner-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
  width: 80px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
  animation: sparkle-rotate 3s ease-in-out infinite;
}

@keyframes sparkle-rotate {
  0%, 100% { 
    transform: scale(1) rotate(0deg); 
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
  }
  25% { 
    transform: scale(1.15) rotate(-10deg); 
    filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.6));
  }
  50% { 
    transform: scale(1.1) rotate(0deg); 
    filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.5));
  }
  75% { 
    transform: scale(1.15) rotate(10deg); 
    filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.6));
  }
}

.banner-content {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.banner-title {
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-text {
  font-size: 1.08rem;
  color: var(--brand-text);
  line-height: 1.8;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  max-width: 100%;
}

/* Responsive Design for Excellence Section */
@media (max-width: 1024px) {
  .partnerships-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .featured-partnership {
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .excellence-section {
    padding: 40px 0;
  }
  
  .featured-partnership {
    padding: 30px 25px;
  }
  
  .partnership-title {
    font-size: 1.7rem;
  }
  
  .partnership-role {
    font-size: 1.1rem;
  }
  
  .partnership-highlights {
    flex-direction: column;
  }
  
  .highlight-tag {
    justify-content: center;
  }
  
  .partnerships-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .quality-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px var(--container-padding);
    gap: 25px;
  }
  
  .banner-icon {
    font-size: 2.5rem;
  }
  
  .banner-title {
    font-size: 1.3rem;
  }
  
  .banner-text {
    font-size: 1rem;
  }
  
  .banner-content {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .featured-partnership {
    padding: 25px 20px;
  }
  
  .partnership-badge {
    width: 100%;
    justify-content: center;
  }
  
  .partnership-title {
    font-size: 1.5rem;
  }
  
  .partnership-description {
    font-size: 1rem;
  }
  
  .card-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .quality-banner {
    padding: 30px 20px;
  }
  
  .banner-icon {
    font-size: 2.2rem;
  }
}
/* ===================================
   INDEX.HTML RESPONSIVE FIXES
   =================================== */

/* Stats Section Responsive */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.stat-item {
  text-align: center;
  padding: 20px 15px;
  background: var(--brand-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}

.stat-label {
  font-size: 1rem;
  color: var(--brand-text);
  font-weight: 500;
}

/* Learning Showcase Responsive Fixes */
.learning-showcase {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 var(--container-padding);
}

.hands-on-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 255, 255, 0.8));
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.hands-on-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  transition: var(--transition-medium);
}

.showcase-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  transition: var(--transition-medium);
}

.hands-on-content {
  position: relative;
  z-index: 2;
}

.content-header {
  margin-bottom: 25px;
}

.hands-on-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
}

.hands-on-subtitle {
  font-size: 1.1rem;
  color: var(--brand-text);
  opacity: 0.8;
}

.learning-benefits {
  margin-bottom: 25px;
}

.benefit-point {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.point-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  border-radius: 50%;
  box-shadow: var(--shadow-light);
}

.point-content h4 {
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.point-content p {
  color: var(--brand-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.experience-button {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-light);
}

.experience-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Image Overlay Styles */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(53, 122, 189, 0.9));
  color: var(--brand-white);
  opacity: 0;
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.overlay-content {
  max-width: 300px;
}

.overlay-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.overlay-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.learning-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 15px;
}

.learning-stats .stat-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  min-width: 80px;
}

.learning-stats .stat-number {
  font-size: 1.5rem;
  color: var(--brand-gold);
  margin-bottom: 5px;
}

.learning-stats .stat-text {
  font-size: 0.8rem;
  opacity: 0.9;
}

.research-note {
  font-size: 0.8rem;
  opacity: 0.8;
  font-style: italic;
}

/* MOBILE RESPONSIVE BREAKPOINTS */

/* Tablet and Small Desktop */
@media (max-width: 968px) {
  .hands-on-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }
  
  .hands-on-title {
    font-size: 1.8rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .learning-showcase {
    margin: 20px auto;
  }
  
  .hands-on-container {
    padding: 25px 20px;
    gap: 25px;
  }
  
  .hands-on-title {
    font-size: 1.6rem;
  }
  
  .hands-on-subtitle {
    font-size: 1rem;
  }
  
  .benefit-point {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .point-icon {
    margin: 0 auto;
  }
  
  .experience-button {
    width: 100%;
    justify-content: center;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  /* Benefits Grid Mobile */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefit-card {
    padding: 20px;
  }
  
  .benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
  
  .benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .benefit-card p {
    font-size: 0.95rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .hands-on-container {
    padding: 20px 15px;
    gap: 20px;
  }
  
  .hands-on-title {
    font-size: 1.4rem;
  }
  
  .point-content h4 {
    font-size: 1rem;
  }
  
  .point-content p {
    font-size: 0.9rem;
  }
  
  .learning-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .learning-stats .stat-item {
    min-width: auto;
  }
  
  .overlay-content {
    max-width: 250px;
  }
  
  .overlay-title {
    font-size: 1.1rem;
  }
  
  .overlay-subtitle {
    font-size: 0.8rem;
  }
}

/* ABACUS RESPONSIVE FIXES */
@media (max-width: 768px) {
  .abacus-frame.abacus {
    flex-direction: column;
    padding: 20px 15px;
    gap: 15px;
    align-items: center;
  }
  
  .rod.abacus-rod {
    flex-direction: row;
    width: 100%;
    max-width: 320px;
    min-height: auto;
    padding: 12px;
    gap: 15px;
  }
  
  .rod-label {
    border-bottom: none;
    border-right: 2px solid var(--brand-gold);
    padding-right: 12px;
    margin-right: 12px;
    margin-bottom: 0;
    min-width: 70px;
    text-align: center;
  }
  
  .heaven-section {
    padding: 8px 0;
    min-height: auto;
    flex-direction: row;
  }
  
  .earth-section {
    flex-direction: row;
    gap: 8px;
    padding: 8px 0;
  }
  
  .divider-bar {
    width: 4px;
    height: 60px;
    margin: 0 8px;
  }
  
  .bead {
    width: 35px;
    height: 35px;
  }
  
  .bead.heaven-bead {
    width: 45px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .rod.abacus-rod {
    max-width: 280px;
    padding: 10px;
    gap: 12px;
  }
  
  .rod-label {
    min-width: 60px;
    padding-right: 10px;
    margin-right: 10px;
  }
  
  .place-name {
    font-size: 0.9rem;
  }
  
  .place-value {
    font-size: 0.7rem;
  }
  
  .bead {
    width: 30px;
    height: 30px;
  }
  
  .bead.heaven-bead {
    width: 40px;
    height: 25px;
  }
  
  .earth-section {
    gap: 6px;
  }
  
  .divider-bar {
    height: 50px;
    margin: 0 6px;
  }
}

/* HERO SECTION RESPONSIVE FIXES */
@media (max-width: 768px) {
  .hero-benefits {
    gap: 20px;
    margin-top: 25px;
  }
  
  .hero-benefit {
    padding: 12px;
    min-width: 120px;
  }
  
  .benefit-stat {
    font-size: 1.8rem;
    margin-bottom: 4px;
  }
  
  .benefit-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-image,
  .educator-hero-image {
    max-width: 320px;
  }
  
  .hero-benefits,
  .educator-benefits {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-benefit {
    width: 100%;
    max-width: 200px;
  }
}

/* DISPLAY SECTION RESPONSIVE */
@media (max-width: 768px) {
  .current-value {
    font-size: 2.5rem;
    min-width: 100px;
    padding: 8px;
  }
  
  .educational-message {
    padding: 10px;
    margin: 8px 0;
  }
  
  .message-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .message-text {
    font-size: 1rem;
    text-align: center;
  }
  
  .quick-tips {
    padding: 8px 10px;
  }
  
  .tip {
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }
  
  .controls {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .reset-button,
  .share-button {
    width: 100%;
    max-width: 200px;
  }
}

/* SECTION TITLES RESPONSIVE */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .section-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-description {
    font-size: 0.95rem;
  }
}
/* ===================================
   FINAL RESPONSIVE SAFETY MEASURES
   =================================== */

/* Prevent any element from causing horizontal scroll */
* {
  max-width: 100%;
}

/* Specific fixes for potentially problematic elements */
.abacus-frame,
.rod,
.bead,
.section-title,
.hero-title,
.hands-on-title,
.benefit-card,
.stat-item {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure all text content wraps properly */
h1, h2, h3, h4, h5, h6,
p, span, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Fix any remaining layout issues on very small screens */
@media (max-width: 320px) {
  .container-padding {
    --container-padding: 8px;
  }
  
  .abacus-frame.abacus {
    padding: 15px 8px;
    gap: 10px;
  }
  
  .rod.abacus-rod {
    padding: 8px;
    gap: 8px;
  }
  
  .bead {
    width: 28px;
    height: 28px;
  }
  
  .bead.heaven-bead {
    width: 35px;
    height: 22px;
  }
  
  .place-name {
    font-size: 0.7rem;
  }
  
  .place-value {
    font-size: 0.6rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hands-on-title {
    font-size: 1.3rem;
  }
  
  .benefit-card {
    padding: 12px;
  }
  
  .benefit-card h3 {
    font-size: 1rem;
  }
  
  .benefit-card p {
    font-size: 0.85rem;
  }
}

/* Emergency overflow prevention */
.abacus-container,
.hero-section,
.benefits-section,
.stats-section,
.interactive-section,
.learning-showcase {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Ensure images never cause overflow */
img, svg, video {
  max-width: 100% !important;
  height: auto !important;
}

/* Final safety for any remaining issues */
@media (max-width: 768px) {
  /* Remove any transforms that might cause issues */
  .bead:hover,
  .benefit-card:hover,
  .stat-item:hover {
    transform: none;
  }
  
  /* Simplify complex layouts on mobile */
  .hands-on-container {
    display: block;
  }
  
  .hands-on-image,
  .hands-on-content {
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Ensure all grids become single column */
  .benefits-grid,
  .stats-container,
  .hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-benefit,
  .stat-item,
  .benefit-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

/* Ultra-safe mobile layout */
@media (max-width: 480px) {
  /* Force everything to be single column and full width */
  * {
    max-width: 100% !important;
  }
  
  .abacus-frame.abacus {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
  }
  
  .rod.abacus-rod {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    flex-wrap: wrap;
  }
  
  .heaven-section,
  .earth-section {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Ensure buttons stack vertically */
  .controls,
  .cta-buttons,
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .cta-button,
  .reset-button,
  .share-button {
    width: 100%;
    margin: 0;
  }
}

/* ===================================
   TESTIMONIALS PAGE STYLES
   =================================== */

/* Testimonials Hero Section */
.testimonials-hero {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--brand-white);
  padding: 80px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonials-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.testimonials-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

.testimonials-hero .hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.testimonials-hero .hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.testimonials-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-hero .stat-item {
  text-align: center;
}

.testimonials-hero .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--brand-gold);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.testimonials-hero .stat-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 5px;
}

/* Filter Section */
.testimonials-filters {
  background: var(--brand-white);
  padding: 30px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-blue);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 400px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Testimonial Card */
.testimonial-card {
  background: var(--brand-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  color: var(--brand-gold);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* Testimonial Header */
.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.parent-info {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 1;
}

.parent-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(218, 165, 32, 0.3);
}

.avatar-initials {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--brand-text);
}

.parent-details {
  flex: 1;
}

.parent-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--brand-text);
  margin: 0 0 5px 0;
}

.parent-location {
  font-size: 0.9rem;
  color: var(--brand-blue);
  margin: 0 0 3px 0;
}

.child-info {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  font-style: italic;
}

.testimonial-meta {
  text-align: right;
  flex-shrink: 0;
}

.rating {
  margin-bottom: 8px;
}

.stars {
  color: var(--brand-gold);
  font-size: 1.1rem;
}

/* Testimonial Content */
.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--brand-text);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* Testimonial Footer */
.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.testimonial-date {
  font-size: 0.85rem;
  color: #666;
}

.share-btn {
  background: transparent;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
}

/* Loading and Empty States */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.loading-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 15px;
  font-style: italic;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--brand-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.empty-state,
.error-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.error-state h3 {
  color: var(--brand-text);
  margin-bottom: 10px;
}

.retry-btn {
  background: var(--brand-blue);
  color: var(--brand-white);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-2px);
}

/* Testimonials CTA Section */
.testimonials-cta {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  padding: 60px 0;
  text-align: center;
}

.testimonials-cta .cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.testimonials-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--brand-text);
  margin-bottom: 15px;
  font-weight: bold;
}

.testimonials-cta p {
  font-size: 1.1rem;
  color: var(--brand-text);
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-width: 160px;
  text-align: center;
}

.cta-button.primary {
  background: var(--brand-blue);
  color: var(--brand-white);
  border: 2px solid var(--brand-blue);
}

.cta-button.primary:hover {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.cta-button.secondary {
  background: transparent;
  color: var(--brand-text);
  border: 2px solid var(--brand-text);
}

.cta-button.secondary:hover {
  background: var(--brand-text);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* Responsive Design for Testimonials */
@media (max-width: 768px) {
  .testimonials-hero {
    padding: 60px 0 40px 0;
  }
  
  .testimonials-hero .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .testimonials-hero .stat-number {
    font-size: 2rem;
  }
  
  .filter-controls {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonial-card {
    padding: 25px 20px;
  }
  
  .testimonial-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .parent-info {
    align-items: flex-start;
  }
  
  .testimonial-meta {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .testimonials-hero .hero-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 200px;
  }
  
  .testimonial-card {
    padding: 20px 15px;
  }
  
  .parent-avatar {
    width: 50px;
    height: 50px;
  }
  
  .avatar-initials {
    font-size: 1rem;
  }
}

/* Animation for floating background elements */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}
/* ===================================
   MODERN NAVIGATION RESPONSIVE STYLES
   =================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
  .brand-container {
    padding: 0 1rem;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
  
  .logo-title-container {
    margin-bottom: 0;
  }
  
  .combined-logo {
    gap: 15px;
  }
  
  .site-logo {
    width: 75px;
    height: 75px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
  }
  
  .site-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  }
  
  .site-tagline {
    font-size: 0.9rem;
    color: var(--brand-white);
    opacity: 0.9;
  }
  
  .site-nav {
    gap: 4px;
    padding: 6px;
    margin-top: 8px;
  }
  
  .nav-link {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--brand-white);
  }
  
  .nav-link.active {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    color: var(--brand-text);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.4);
  }
}

@media (max-width: 480px) {
  .brand-container {
    flex-direction: column;
    height: auto;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
    text-align: center;
  }
  
  .logo-title-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
  }
  
  .combined-logo {
    gap: 18px;
    justify-content: center;
    align-items: center;
  }
  
  .site-logo {
    width: 90px;
    height: 90px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
  }
  
  .site-logo:hover {
    transform: scale(1.05);
  }
  
  .logo-text {
    text-align: center;
  }
  
  .site-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: var(--brand-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  }
  
  .site-tagline {
    font-size: 1rem;
    text-align: center;
    color: var(--brand-white);
    opacity: 0.9;
  }
  
  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
   
    margin-top: 0;
  }
  
  .nav-link {
    flex: 1;
    text-align: center;
    min-width: 85px;
    padding: 14px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-white);
  }
  
  .nav-link.active {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    color: var(--brand-text);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .brand-container {
    padding: 1.2rem 0.8rem;
  }
  
  .site-logo {
    width: 85px;
    height: 85px;
  }
  
  .site-title {
    font-size: 1.8rem;
    color: var(--brand-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  }
  
  .site-tagline {
    font-size: 0.95rem;
    color: var(--brand-white);
    opacity: 0.9;
  }
  
  .nav-link {
    min-width: 75px;
    padding: 12px 8px;
    font-size: 0.8rem;
    color: var(--brand-white);
  }
}

/* Ultra small screens - maximum logo visibility */
@media (max-width: 320px) {
  .combined-logo {
    flex-direction: column;
    gap: 12px;
  }
  
  .site-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  
  .logo-text {
    text-align: center;
    width: 100%;
  }
  
  .site-title {
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--brand-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  }
  
  .site-tagline {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--brand-white);
    opacity: 0.9;
  }
}

/* ===================================
   Expert Math Teacher Section
   =================================== */

.teacher-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.teacher-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-blue), var(--brand-gold));
}

.teacher-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.teacher-header {
  text-align: center;
  margin-bottom: 60px;
}

.teacher-header .section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
}

.teacher-header .section-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--brand-text);
  max-width: 700px;
  margin: 0 auto;
}

/* Teacher Profile */
.teacher-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.teacher-profile {
  display: flex;
  align-items: center;
  gap: 30px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 2px solid var(--brand-gold);
}

.teacher-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.teacher-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brand-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.teacher-badge {
  position: absolute;
  bottom: 10px;
  right: -10px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-icon {
  font-size: 1.1rem;
}

.teacher-info {
  flex: 1;
}

.teacher-name {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
  font-weight: bold;
}

.teacher-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--brand-gold-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.teacher-location {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #666;
  margin-top: 10px;
}

/* Teaching Options */
.teaching-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.teaching-mode {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.teaching-mode:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.online-mode {
  border-color: var(--brand-blue);
}

.online-mode:hover {
  border-color: var(--brand-blue-dark);
  background: linear-gradient(135deg, rgba(74,144,226,0.05), rgba(53,122,189,0.05));
}

.offline-mode {
  border-color: var(--brand-gold);
}

.offline-mode:hover {
  border-color: var(--brand-gold-dark);
  background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(218,165,32,0.05));
}

.mode-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
}

.mode-title {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
  text-align: center;
}

.mode-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #666;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.6;
}

.mode-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.mode-features li {
  padding: 12px 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--brand-text);
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.mode-features li:last-child {
  border-bottom: none;
}

.mode-features li:hover {
  padding-left: 10px;
  color: var(--brand-blue-dark);
}

.mode-cta {
  text-align: center;
}

.mode-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 1.1rem);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74,144,226,0.3);
}

.mode-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,144,226,0.4);
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
}

.offline-mode .mode-button {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.offline-mode .mode-button:hover {
  box-shadow: 0 6px 20px rgba(255,215,0,0.4);
  background: linear-gradient(135deg, var(--brand-gold-dark), var(--brand-gold));
}

/* Teacher Highlights */
.teacher-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.highlight-card {
  background: white;
  padding: 30px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: var(--brand-gold);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.highlight-card h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--brand-blue-dark);
  margin-bottom: 10px;
}

.highlight-card p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #666;
  line-height: 1.6;
}

/* Teacher CTA */
.teacher-cta {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: white;
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(74,144,226,0.3);
}

.teacher-cta h3 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 15px;
}

.teacher-cta p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0.95;
}

.teacher-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.teacher-cta-buttons .cta-button {
  padding: 15px 35px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
}

.teacher-cta-buttons .cta-button.primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.teacher-cta-buttons .cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.5);
}

.teacher-cta-buttons .cta-button.secondary {
  background: white;
  color: var(--brand-blue-dark);
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.teacher-cta-buttons .cta-button.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.4);
  background: #f8f9fa;
}

/* Responsive Design for Teacher Section */
@media (max-width: 768px) {
  .teacher-section {
    padding: 50px 0;
  }

  .teacher-header {
    margin-bottom: 40px;
  }

  .teacher-profile {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .teacher-image {
    width: 150px;
    height: 150px;
  }

  .teacher-badge {
    bottom: 5px;
    right: 50%;
    transform: translateX(50%);
  }

  .teaching-options {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .teacher-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .teacher-cta {
    padding: 35px 25px;
  }

  .teacher-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .teacher-cta-buttons .cta-button {
    width: 100%;
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .teacher-image {
    width: 120px;
    height: 120px;
  }

  .teaching-mode {
    padding: 30px 20px;
  }

  .mode-features li {
    font-size: 0.95rem;
    padding: 10px 0;
  }
}


/* ===================================
   Teaching Options Section (Replaces Stats)
   =================================== */

.teaching-options-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.teaching-options-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-blue), var(--brand-gold));
}

.teaching-options-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.teaching-options-header {
  text-align: center;
  margin-bottom: 50px;
}

.teaching-options-header .section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--brand-blue-dark);
  margin-bottom: 15px;
}

.teaching-options-header .section-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--brand-text);
  max-width: 700px;
  margin: 0 auto;
}

.teaching-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.teaching-instructor {
  text-align: center;
  margin-top: 40px;
}

.instructor-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-text);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(255,215,0,0.3);
  transition: all 0.3s ease;
}

.instructor-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,215,0,0.4);
}

.instructor-badge .badge-icon {
  font-size: 1.3rem;
}

/* Responsive for Teaching Options Section */
@media (max-width: 768px) {
  .teaching-options-section {
    padding: 40px 0;
  }

  .teaching-options-header {
    margin-bottom: 35px;
  }

  .teaching-options-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .instructor-badge {
    padding: 12px 20px;
    font-size: 0.95rem;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .teaching-options-grid {
    gap: 25px;
  }

  .instructor-badge {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .badge-text {
    text-align: center;
  }
}


/* ============================================
   TUTORIALS PAGE - PROGRAMS SECTION STYLES
   ============================================ */

/* Programs Hero Section */
.programs-hero {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #357ABD 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
     margin: 20px;
}

.programs-hero .section-title {
    color: white;
    margin-bottom: 15px;
}

.programs-hero .section-description {
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 40px;
}

.programs-hero .section-underline {
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}

.programs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Programs Section */
.programs-section {
    padding: 80px 20px;
}

.programs-section.qmath-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(196, 69, 105, 0.05) 100%);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.program-card.abacus-card {
    border-color: rgba(74, 144, 226, 0.1);
}

.program-card.abacus-card:hover {
    border-color: var(--brand-blue);
}

.program-card.math-card {
    border-color: rgba(255, 107, 107, 0.1);
}

.program-card.math-card:hover {
    border-color: #FF6B6B;
}

.program-card.featured {
    border: 3px solid var(--brand-gold);
    position: relative;
}

.program-card.featured::before {
    content: '⭐ MOST POPULAR';
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, var(--brand-gold), #DAA520);
    color: #2C3E50;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.program-card .card-header {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #357ABD 100%);
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.program-card.math-card .card-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #C44569 100%);
}

.program-card .card-body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Program Badges */
.program-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.program-badge.young-star {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #2C3E50;
}

.program-badge.junior {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.program-badge.practice {
    background: linear-gradient(135deg, #50C878, #3AA65D);
    color: white;
}

.program-badge.math-foundation {
    background: linear-gradient(135deg, #FF6B6B, #C44569);
    color: white;
}

.program-badge.math-advanced {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: white;
}

.program-badge.math-holistic {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: white;
}

/* Program Content */
.program-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.program-description {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Program Highlights */
.program-highlights {
    margin-bottom: 25px;
}

.program-highlights h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    padding: 10px 0;
    color: var(--text-medium);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.highlight-icon {
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.math-card .highlight-icon {
    color: #FF6B6B;
}

/* Program Details */
.program-details {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.detail-value {
    color: var(--text-medium);
    font-size: 0.95rem;
    text-align: right;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.03) 0%, rgba(218, 165, 32, 0.03) 100%);
    padding: 0px 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-gold);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive Design for Programs */
@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .program-card.featured::before {
        font-size: 0.7rem;
        padding: 4px 35px;
    }
}

@media (max-width: 768px) {
    .programs-hero {
        padding: 50px 20px;
         margin: 20px;
    }
    
    .programs-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px 20px;
    }
    
    .programs-section {
        padding: 60px 20px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .program-card.featured::before {
        top: 10px;
        right: -30px;
        font-size: 0.65rem;
        padding: 4px 30px;
    }
    
    .program-card .card-header {
        padding: 25px 20px;
    }
    
    .program-card .card-body {
        padding: 25px 20px;
    }
    
    .program-icon {
        font-size: 2.5rem;
    }
    
    .program-title {
        font-size: 1.5rem;
    }
    
    .benefits-section {
        padding: 0px 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .programs-hero {
        padding: 40px 15px;
        margin: 20px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-content {
        align-items: center;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .program-card.featured::before {
        display: none;
    }
    
    .program-card.featured {
        border-width: 2px;
    }
    
    .program-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .program-icon {
        font-size: 2rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
}
