body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  background: #fff;
}

/* ✅ HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #003366;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.header-icon {
  height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  background-color: transparent;
  margin-right: 10px;
}

.header-title {
  font-family: 'Besley', serif;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
}

.header-title strong {
  color: #ff3b30;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.flag-img {
  height: 18px;
  vertical-align: middle;
}

/* ✅ HERO SECTION */
.hero {
  text-align: center;
  padding: 3rem 2rem;
}

.hero-banner {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}


.hero-logo-large {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ✅ QUOTE + IMAGE SIDE BY SIDE */
.quote-box {
  max-width: 400px;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.quote-box.fade {
  opacity: 0;
}

.quote-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
  text-align: left;
}

.quote-image {
  max-width: 375px;
  width: 100%;
  height: auto;
  display: block;
}



.quote-text {
  font-size: 1.95rem; /* 1.3 × 1.5 */
  color: #003366;
  font-weight: 600;
}

.quote-subtext {
font-size: 1.5rem; /* 1.0 × 1.5 */
  color: #cc0000;
}

.illustration img {
 max-width: 375px; /* 250 × 1.5 */
  height: auto;
}
.quote-image {
  margin-top: 1rem;
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
}

/* ✅ ABOUT ME PAGE */
.about-content {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;  /* centers container */
  box-sizing: border-box; /* include padding in width */
}

.bio-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center; /* keep items centered horizontally */
  text-align: left; /* avoid centering text in parent */
  margin: 0 auto; /* ensures section is centered */
  width: 100%;
  max-width: 900px; /* same as container */
  box-sizing: border-box;
}

.bio-photo {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0; /* prevents shrinking in flex layout */
}

.bio-text {
  flex: 1 1 400px; /* grow/shrink but minimum width 400px */
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify; /* forces justified text */
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

/* ✅ MOBILE LAYOUT FOR ABOUT */
@media (max-width: 768px) {
  .bio-section {
    flex-direction: column;
    align-items: center; /* centers photo and text */
    text-align: left;    /* keeps text justification intact */
  }

  .bio-text {
    width: 100%;
    padding: 0 1rem;
  }
}


}



/* ✅ HEADER & NAVIGATION FIXES */


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #003366;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: nowrap;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.logo-link {
  text-decoration: none;
  color: white;
  font-family: 'Besley', serif;
  font-size: 1.5rem;
  margin-right: 2rem;
}

.header-title strong {
  color: #ff3b30;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%); /* ⬅ centers vertically */
  }
}


/* ✅ MAIN NAV BEHAVIOR */
.main-nav {
  display: none; /* default hidden (mobile-first) */
  width: 100%;
  align-items: center;
}

.main-nav.open {
  display: block;
}

.nav-links {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap; /* ✅ Add this line */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.flag-img {
  height: 18px;
  vertical-align: middle;
}

/* ✅ MOBILE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
  }

  .logo-link {
    margin-bottom: 0.5rem;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #003366;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1rem;
    color: white;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* ✅ DESKTOP */
@media (min-width: 769px) {
  .main-nav {
    display: flex !important;
    align-items: center;
    flex: 3;
  }

  .menu-toggle {
    display: none;
  }
}


/* ✅ Hamburger Toggle Hidden by Default */
.menu-toggle {
  display: none; /* hidden by default */
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Show ☰ on small screens only */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
  }
}


/* ✅ Mobile Navigation Hidden by Default */

/* ✅ DEFAULT Navigation Setup */
.main-nav {
  display: none; /* Hidden by default (mobile first) */
  width: 100%;
  align-items: center;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none; /* Hides menu by default on mobile */
    width: 100%;
  }

  .main-nav.open {
    display: block; /* Shows it when toggled */
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #003366;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1rem;
    color: white;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (min-width: 769px) {
  .main-nav {
    display: flex !important;
    align-items: center;
  }

  .menu-toggle {
    display: none;
  }
}
/* ✅ CONTACT PAGE */
.contact-content {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}
/* === UNIVERSAL NAVIGATION STYLES === */
.nav-links {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.2rem;
  flex-wrap: nowrap;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show hamburger menu */
  }

 .main-nav {
  display: none;
}

.main-nav.open {
  display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #003366;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1rem;
    color: white;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}


/* === DESKTOP === */
@media (min-width: 769px) {
  .menu-toggle {
    display: none; /* Hide hamburger menu */
  }

  .main-nav {
    display: flex !important; /* Show navigation links */
    align-items: center;
  }

  .nav-links {
    flex-direction: row;
    gap: 1.2rem;
  }

  .nav-links li a {
    padding: 0.5rem 1rem;
    text-align: center;
  }
}
.course-overview {
  text-align: center;
    color: #cc0000; /* red accent like header */
  padding: 2rem;
}

/* ✅ Shared circle grid layout */
.circle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 per row */
  gap: 1.3rem;
  justify-items: center;
  max-width: 400px; /* keeps circles neatly centered */
  margin: 1.5rem auto 0 auto;
}

/* ✅ Circle style */
.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #003366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Besley", serif;
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
  transition: background 0.3s, transform 0.3s;
  color: white;
  text-decoration: none;
}

.circle:hover {
  transform: scale(1.1);
  background-color: #002244;
}


/* ✅ Titles */
.page-title,
.module-title {
  text-align: center;
  color: #cc0000; /* match FAQ red */
  font-family: 'Besley', serif;
  font-size: 2rem;
  margin: 2rem 0 1rem 0;
}

/* ✅ Module content styling (like FAQ) */
.module-content {
  max-width: 800px;      /* keeps text in a readable width */
  margin: 0 auto;        /* centers the content */
  padding: 1.5rem;       /* adds margins on left/right */
  font-size: 1.15rem;
  color: #003366;        /* match FAQ blue */
  line-height: 1.7;
  text-align: justify;   /* makes text justified */
}

footer p {
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 0;
  line-height: 1.6;
}

footer a {
  text-decoration: underline;
  color: #003366;
}

@media (max-width: 600px) {
  footer a {
    display: block;       /* stack links only on small screens */
    margin-top: 0.5rem;
  }
}
/* ==========================
   COURSE INTRO - REDUCE HEIGHT
   ========================== */

/* Desktop (card) */
.course-intro {
  background-color: #003366;
  padding: 1.5rem 2rem;         /* reduced top/bottom padding */
  margin: 2rem auto;            /* keep spacing around the section */
  max-width: 810px;             /* matches logo width */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  color: #ffffff;
  text-align: justify;
}

.course-intro p {
  font-size: 1.25rem;           /* readable font size */
  line-height: 1.5;             /* slightly reduced line height for compactness */
  margin: 0;
}

/* Mobile (full-width band) */
@media (max-width: 768px) {
  .course-intro {
    padding: 1rem 1rem;          /* smaller padding for a tighter band */
    margin: 0;                   /* full width, no extra margin */
    border-radius: 0;
    max-width: 100%;
    box-shadow: none;
  }

  .course-intro p {
    font-size: 1.15rem;
    line-height: 1.45;           /* reduced line height for compact mobile text */
    max-width: 95%;
    margin: 0 auto;
    word-break: break-word;
  }
}

.slide-explanations {
  margin-top: 2rem;
  font-family: 'Open Sans', sans-serif;
}

.explanation {
  display: none; /* hide all initially */
  background: #f9f9f9;
  padding: 1rem 1.5rem;
  border-left: 4px solid #0077cc;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #ffffff; /* white background */
  color: #003366;      /* same as .quote-text */
  padding: 0 rem;
  margin-top: 0rem;
}


.accordion-content.expanded {
  padding: 0.5rem 0; /* slight breathing room, still aligned */
}

/* ==========================
   QUOTE + ACCORDION (ENGLISH)
========================== */
.quote-illustration {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start; /* keeps image at top */
}

.quote-illustration .hover-area {
  cursor: pointer;
  flex: 1 1 400px; /* ensures hover area takes its own space */
}

.quote-illustration .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.45s ease;
  padding: 0;
  margin-top: 0.5rem;
  text-align: justify;      /* justified text */
  word-break: normal;       /* prevents breaking words */
  hyphens: none;            /* disables hyphenation */
}

.quote-illustration .accordion-content.expanded {
  max-height: 300px;        /* enough for content */
  padding: 0.75rem 0;       /* slightly more breathing room */
  line-height: 1.6;         /* improves readability */
}


/* Image stays fixed size and doesn’t move */
.quote-illustration img {
  max-width: 300px;
  width: 100%;
  height: auto;
  flex-shrink: 0; /* prevents image from shrinking */
}
