/* Base Styles */
:root {
  --color-primary: #005EA5;
  --color-primary-dark: #003366;
  --color-primary-light: #00AEEF;
  --color-dark: #333333;
  --color-light: #FFFFFF;
  --color-gray: #F8FAFC;
  --color-gray-light: #F1F1F1;
  --color-gray-dark: #8E9196;
  --color-accent: #D3E4FD;
  --color-accent-dark: #EBF8FF;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  width: 100vw;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Prevent accidental large width on images and sections */
img, section, header, footer, nav, div {
  max-width: 100%;
  box-sizing: border-box;
}

.w-full {
  width: 100%;
}

/* Section Styles */
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 1rem;
}

.section-underline {
  position: relative;
  overflow: hidden;
  width: 10rem;
  height: 0.25rem;
  background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
  margin: 0 auto 2rem;
}

.section-underline::after {
  content: '';
  position: absolute;
  left: -10rem;
  top: 0;
  width: 10rem;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary-dark), var(--color-primary-light));
  animation: underline-move 2.5s linear infinite;
  opacity: 0.5;
}

@keyframes underline-move {
  0% { left: -10rem; }
  100% { left: 10rem; }
}

.section-subtitle {
  text-align: center;
  color: #666666;
  max-width: 32rem;
  margin: 0 auto 3rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

/* Animated gradient border and glow for Enroll/Signup buttons */
.btn-primary, .btn-cta {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 0 rgba(0,174,239,0.5);
  transition: box-shadow 0.4s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}
.btn-primary::after, .btn-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary), var(--color-primary-dark), var(--color-primary-light));
  background-size: 200% 200%;
  animation: border-gradient-move 2.5s linear infinite;
  opacity: 0.7;
}
@keyframes border-gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-primary:hover, .btn-cta:hover {
  box-shadow: 0 0 16px 4px rgba(0,174,239,0.25), 0 8px 24px rgba(0,94,165,0.18);
  transform: scale(1.06);
}

/* Pulse animation on click */
.btn-primary:active, .btn-cta:active {
  animation: btn-pulse 0.3s;
}
@keyframes btn-pulse {
  0% { transform: scale(1.06); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1.02); }
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #DDDDDD;
  color: var(--color-dark);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-light {
  background-color: var(--color-light);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-light {
  background-color: rgba(0, 174, 239, 0.3);
  border: 1px solid var(--color-light);
  color: var(--color-light);
}

.btn-outline-light:hover {
  background-color: rgba(0, 174, 239, 0.5);
}

.btn-cta {
  background-color: var(--color-light);
  color: #fff !important;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 0.25rem;
  font-weight: 500;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-newsletter {
  background-color: var(--color-primary-light);
  color: var(--color-light);
}

.btn-newsletter:hover {
  background-color: var(--color-primary);
}

/* Header Styles */
.header {
  width: 100%;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo-dark {
  color: var(--color-dark);
}

.main-nav ul {
  display: none;
}

@media (min-width: 768px) {
  .main-nav ul {
    display: flex;
    gap: 2rem;
  }
  
  .main-nav ul li a {
    color: var(--color-dark);
    transition: color 0.3s ease;
  }
  
  .main-nav ul li a:hover {
    color: var(--color-primary-light);
  }
}

.header-buttons {
  display: none;
}

@media (min-width: 768px) {
  .header-buttons {
    display: flex;
    gap: 1rem;
  }
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-light);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-menu a {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: var(--color-dark);
}

.mobile-menu a:hover {
  background-color: var(--color-gray-light);
  color: var(--color-primary-light);
}

.mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Hero Section Styles */
.hero-section {
  padding: 7rem 0 4rem;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
  color: var(--color-light);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-image {
    flex: 1;
  }
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  background-color: var(--color-light);
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.lesson-number {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-light);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  z-index: 1;
}

/* Problem Section Styles */
.problem-section {
  padding: 5rem 0;
  background-color: var(--color-accent-dark);
}

.accordion-container {
  margin-bottom: 4rem;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 2px solid var(--color-primary);
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--color-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background-color: var(--color-light);
  transition: background-color 0.3s ease;
}

.accordion-trigger:hover {
  background-color: var(--color-accent);
}

.accordion-item.active .accordion-trigger {
  background-color: var(--color-accent);
}

.accordion-emoji {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.accordion-title {
  flex: 1;
  font-weight: 500;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 1rem 1.5rem;
  background-color: var(--color-light);
  border-top: 1px solid var(--color-accent);
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

.solution-card {
  background-color: var(--color-accent);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.solution-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
}

.solution-list {
  display: grid;
  gap: 1rem;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
}

.solution-icon {
  color: var(--color-primary-light);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Instructor Section Styles */
.instructor-section {
  padding: 5rem 0;
  background-color: var(--color-gray);
}

.instructor-container {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .instructor-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.instructor-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instructor-image-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.instructor-image-wrapper img {
  width: 20rem;
  height: 24rem;
  object-fit: cover;
  border: 4px solid var(--color-light);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  animation: floatX 4s ease-in-out infinite alternate;
}

@keyframes floatX {
  0% { transform: translateX(0px); }
  100% { transform: translateX(12px); }
}

.instructor-badge {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  background-color: var(--color-primary);
  color: var(--color-light);
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.instructor-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-gray-dark);
}

.instructor-bio {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.instructor-bio h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.instructor-title {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.instructor-description {
  color: #4B5563;
  margin-bottom: 1.5rem;
}

.instructor-credentials {
  display: grid;
  gap: 0.75rem;
}

.instructor-credentials li {
  display: flex;
  align-items: flex-start;
}

.credential-bullet {
  color: var(--color-primary);
  margin-right: 0.75rem;
}

/* Curriculum Section Styles */
.curriculum-section {
  padding: 5rem 0;
  background-color: var(--color-accent-dark);
}

.curriculum-timeline {
  max-width: 48rem;
  margin: 0 auto;
}

.curriculum-items {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
}

.curriculum-item {
  margin-bottom: 1rem;
  border: 2px solid var(--color-primary);
  border-left: 0;
  border-radius: 0 0.75rem 0.75rem 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  background-color: var(--color-light);
}

.curriculum-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.curriculum-trigger {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--color-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.curriculum-trigger:hover {
  background-color: var(--color-accent);
}

.curriculum-item.active .curriculum-trigger {
  background-color: var(--color-accent);
}

.curriculum-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-primary-light);
  color: var(--color-light);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.curriculum-icon {
  font-size: 0.875rem;
}

.curriculum-header {
  flex: 1;
}

.curriculum-week {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.curriculum-title {
  font-weight: 500;
}

.curriculum-arrow {
  transition: transform 0.3s ease;
}

.curriculum-item.active .curriculum-arrow {
  transform: rotate(180deg);
}

.curriculum-content {
  padding: 1rem;
  display: none;
  border-top: 1px solid var(--color-accent);
  color: #4B5563;
}

.curriculum-item.active .curriculum-content {
  display: block;
}

/* Features Section Styles */
.features-section {
  padding: 5rem 0;
  background-color: var(--color-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, transform 0.3s;
  border-top: 4px solid var(--color-primary-light);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.13);
}

.feature-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--color-primary-light);
  color: var(--color-light);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.feature-icon {
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.feature-description {
  color: #4B5563;
}

/* Guarantee Section Styles */
.guarantee-section {
  padding: 5rem 0;
  background-color: var(--color-accent-dark);
}

.guarantee-card {
  background-color: var(--color-accent);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guarantee-card:hover {
  animation: pop 0.5s;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@keyframes pop {
  0% { transform: scale(1); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.metrics-container {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .metrics-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--color-primary-light);
  transition: box-shadow 0.3s ease;
}

.metric:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.metric-figure {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  color: #4B5563;
}

/* FAQ Section Styles */
.faq-section {
  padding: 5rem 0;
  background-color: var(--color-accent-dark);
}

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 2px solid var(--color-primary);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  background-color: var(--color-light);
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background-color: var(--color-light);
  transition: background-color 0.3s ease;
}

.faq-trigger:hover {
  background-color: var(--color-accent);
}

.faq-item.active .faq-trigger {
  background-color: var(--color-accent);
}

.faq-question {
  font-weight: 500;
  color: var(--color-primary-dark);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-accent);
  display: none;
  color: #4B5563;
}

.faq-item.active .faq-content {
  display: block;
}

/* CTA Section Styles */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
  color: var(--color-light);
  text-align: center;
}

.cta-section .section-title {
  color: var(--color-light);
}

.cta-description {
  max-width: 32rem;
  margin: 0 auto 2rem;
  opacity: 0.8;
}

/* Footer Styles */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-light);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-contact li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border: 0;
  padding: 0.625rem 0.75rem;
  color: var(--color-light);
  border-radius: 0.375rem 0 0 0.375rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.btn-newsletter {
  border-radius: 0 0.375rem 0.375rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-links-bottom {
  display: flex;
  gap: 1rem;
}

.footer-links-bottom a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-links-bottom a:hover {
  color: var(--color-primary-light);
}

/* --- Creative Animations & Motion --- */

/* Floating Hero Image Animation */
.hero-image .hero-card {
  animation: floatY 3.5s ease-in-out infinite alternate;
}

@keyframes floatY {
  0% { transform: translateY(0px) scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
  100% { transform: translateY(-18px) scale(1.03); box-shadow: 0 20px 40px rgba(0,0,0,0.18); }
}

/* Fade-in for sections */
.section-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1), transform 1.2s cubic-bezier(.4,0,.2,1);
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accordion icon rotate with spring effect */
.accordion-icon, .curriculum-arrow, .faq-icon {
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}

/* Guarantee card pop on hover */
.guarantee-card:hover {
  animation: pop 0.5s;
}

@keyframes pop {
  0% { transform: scale(1); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Biography Modal Styles */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.modal-content {
  background: #fff;
  color: #222;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 1rem;
  max-width: 540px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: modal-pop 0.4s cubic-bezier(.4,0,.2,1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes modal-pop {
  0% { transform: scale(0.85) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.close:hover {
  color: var(--color-primary);
}
.modal-content h2 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.modal-content h3 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.modal-content p {
  margin-bottom: 0.7rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .modal-content {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    max-width: 98vw;
  }
}

/* Biography Side Panel Styles */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 96vw;
  height: 100vh;
  background: rgba(0,0,0,0.18);
  z-index: 9999;
  display: none;
  transition: background 0.3s;
}
.side-panel.open {
  display: block;
}
.side-panel-content {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;
  max-width: 96vw;
  background: #fff;
  color: #222;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 1rem 0 0 1rem;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
  animation: sidepanel-slide-in 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
@keyframes sidepanel-slide-in {
  0% { right: -480px; opacity: 0; }
  100% { right: 0; opacity: 1; }
}
.side-panel:not(.open) .side-panel-content {
  animation: sidepanel-slide-out 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes sidepanel-slide-out {
  0% { right: 0; opacity: 1; }
  100% { right: -480px; opacity: 0; }
}
.side-panel .close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.side-panel .close:hover {
  color: var(--color-primary);
}
.side-panel-content h2 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.side-panel-content h3 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.side-panel-content p {
  margin-bottom: 0.7rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .side-panel-content {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    width: 98vw;
    max-width: 98vw;
    border-radius: 0;
  }
}

/* New Section Styles */
/* Why is this the best course for Asians, Africans & Arabs? */
.why-best-section {
  padding: 5rem 0;
  background-color: var(--color-accent-dark);
}
.why-best-intro {
  font-size: 1.08rem;
  color: #3a3a3a;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.why-best-list {
  margin: 0 0 2.2rem 1.2rem;
  padding-left: 1.2rem;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  line-height: 1.7;
}
.why-best-list li {
  margin-bottom: 0.8rem;
  padding-left: 0.2rem;
}
.why-best-explore {
  background: var(--color-accent);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-top: 2.5rem;
  text-align: center;
}
.why-best-explore h3 {
  color: var(--color-primary-dark);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.why-best-label {
  display: block;
  margin: 1.2rem 0 0.5rem 0;
  font-weight: 600;
  color: var(--color-primary);
}
.why-best-select {
  padding: 0.6rem 1.2rem;
  border-radius: 0.375rem;
  border: 1px solid var(--color-primary-light);
  font-size: 1rem;
  color: var(--color-primary-dark);
  background: #fff;
  margin-top: 0.2rem;
  box-shadow: 0 2px 8px rgba(0,94,165,0.06);
  transition: border-color 0.2s;
}
.why-best-select:focus {
  border-color: var(--color-primary);
  outline: none;
}
@media (max-width: 600px) {
  .why-best-section {
    padding: 2.5rem 0;
  }
  .why-best-explore {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
}
