html {
  scroll-behavior: smooth;
}

#hero h2 {
  margin: 0 100px;
}

section.main {
  margin-top: 50px;
  padding-top: 40px
}

footer {
  background-color: #130747;
}

.text-2xl {
  color: #130747;
}

section h2 {
  color: #130747;
}

.logo {
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.nav-menu {
  padding: 15px 15px;
  color: #130747;
  font-weight: 500;
  outline: none;
}

.nav-menu .cta-button.enroll {
  background-color: #31ce84;
}

/* Mobile responsive: stack image on top */
@media (min-width: 768px) {
  .nav-menu.mobile {
    display: none !important;
  }
}

.nav-menu a {
  font-size: 17px;
}

.nav-menu li {
  color: #130747;
  font-weight: 500;
  outline: none;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
}

/* Text on left, image on right (desktop) */
.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Mobile responsive: stack image on top */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    /* stack */
    text-align: center;
    /* optional for nicer look */
  }
}

/* Overlay (disable background) */
#cookieOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: none;
}

/* Cookie Modal */
#cookieModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-align: center;
  display: none;
}

#cookieModal h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #130747;
}

#cookieModal p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #130747;
  line-height: 1.6;
}

.cookie-buttons button {
  padding: 10px 20px;
  margin: 0 8px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
}

#acceptCookies {
  background: #130747;
  color: #FFFFFF;
}

#declineCookies {
  background: #555;
  color: #FFFFFF;
}

#acceptCookies:hover {
  background: #0056b3;
}

#declineCookies:hover {
  background: #333;
}

/* Links */
.cookie-links {
  margin-top: 15px;
}

.cookie-links a {
  display: inline-block;
  margin: 0 10px;
  font-size: 14px;
  color: #130747;
  text-decoration: none;
}

.cookie-links a:hover {
  text-decoration: underline;
}

#hero5,
#hero5:hover {
  font-size: 25px;
}

/* Contact Section Wrapper */
.contact-section {
  padding: 2.5rem;
  background-color: #f3f4f6;
}

/* Form Container */
.form-container {
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  /* Tailwind's gray-300 */
  border-radius: 0.375rem;
}

.contact-form button {
  background-color: #130747;
  /* Tailwind's blue-600 */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #130747;
  /* Tailwind's blue-700 */
}

/* Info + Map Wrapper */
.info-map-wrapper {
  display: flex;
  flex-direction: column;
}

.contact-info {
  background-color: #130747;
  color: white;
  padding: 1.5rem;
  border-radius: 1rem 1rem 0 0;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 0 0 1rem 1rem;
}

/* Responsive for Desktop */
@media (min-width: 768px) {
  .info-map-wrapper {
    flex-direction: row;
    width: 100%;
  }

  .contact-info {
    width: 30%;
    border-radius: 1rem 0 0 1rem;
  }

  .map-container {
    width: 70%;
  }

  .map-container iframe {
    height: 100%;
    border-radius: 0 1rem 1rem 0;
  }
}

.form-container {
  max-width: 700px;
  margin: 3rem auto;
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
}

.form-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #130747;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.9rem 1.1rem;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #130747;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

.contact-form textarea {
  resize: none;
  min-height: 120px;
}

.contact-form button {
  background: linear-gradient(135deg, #130747, #130747);
  color: #FFFFFF;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.contact-form button:hover:not(:disabled) {
  background: linear-gradient(135deg, #130747, #130747);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.contact-form button:hover:not(:disabled) {
  background: linear-gradient(135deg, #130747, #130747);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}


/* Section wrapper */
.privacy-section,
.terms-section,
.gdpr-section {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Section heading */
.privacy-section h2,
.terms-section h2,
.gdpr-section h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

/* List */
.privacy-section ul,
.terms-section ul,
.gdpr-section ul {
  margin: 0;
  padding-left: 20px;
}

.privacy-section li,
.terms-section li,
.gdpr-section li {
  margin-bottom: 8px;
}

#policyIntro,
#termsIntro,
#gdprIntro {
  margin: 1rem 1rem 1rem 1rem;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  /* hidden by default */
  position: absolute;
  top: 100%;
  /* show below the parent */
  left: 0;
  background: #f4f7fc;
  list-style: none;
  margin: 0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  z-index: 1000;
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: #130747;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #eaeef5;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu>li {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  /* Open to the right */
  list-style: none;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  background: #f4f7fc;
  width: 200px;
  z-index: 1000;
}

/* Show submenu on hover */
.dropdown-menu li:hover>.submenu {
  display: block;
}

/* Submenu items */
.submenu li a {
  display: block;
  text-decoration: none;
  color: #130747;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease;
}

.submenu li a:hover {
  background-color: #eaeaea;
}

/* ===== Optional Mobile Adjustments ===== */
/* You can add media queries to adjust behavior for mobile */
@media (max-width: 768px) {

  .dropdown-menu,
  .submenu {
    position: absolute;
    width: 75%;
    border: none;
  }

  /* .submenu {
    display: block;
  } */

  /* .dropdown-menu li:hover>.submenu {
    display: block;
    /* Always visible on mobile */
  /* } */
}

/* General Layout */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

.sub-focus .container {
  margin: 40px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-grid {
  display: flex;
  gap: 20px;
  padding: 10px;
}

/* Text on left, image on right (desktop) */
.intro-text {
  flex: 1;
  padding: 1.5rem;
  font-size: 1rem;
}

.intro-list {
  flex: 1;
}

/* Mobile responsive: stack image on top */
@media (max-width: 768px) {
  .intro-grid {
    flex-direction: column;
    /* stack */
    text-align: center;
    /* optional for nicer look */
  }
}

.intro-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.intro-list {
  background: #31ce84;
  color: #FFFFFF;
  padding: 1.5rem;
  border-radius: 8px;
}

.intro-list h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.intro-list ul {
  list-style: none;
  padding: 0;
}

.intro-list ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sub-focus {
  text-align: center;
}

#section-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.subtitle {
  font-size: 1rem;
  color: #555;
}

#sub-sections {
  padding-bottom: 3rem;
}

.section-grid {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Text on left, image on right (desktop) */
.section-grid .text {
  flex: 1;
}

.img-box {
  flex: 1;
}

.section-grid.reversed {
  flex-direction: row-reverse;
}

/* Mobile responsive: stack image on top */
@media (max-width: 768px) {
  .section-grid {
    flex-direction: column !important;
    /* stack */
    text-align: center;
    /* optional for nicer look */
  }
}

.text h3 {
  color: #130747;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

/* CTA Section */
.cta {
  background: #31ce84;
  color: #FFFFFF;
  text-align: center;
  padding: 2rem 1rem;
}

.cta h2 {
  font-size: 1.8rem;
}

.cta p {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.cta-button {
  display: inline-block;
  background: #FFFFFF;
  color: #130747;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.cta-button:hover {
  background: #f5f5f5;
}

.cta-link {
  color: #130747;
  font-weight: 600;
  text-decoration: underline;
  transition: 0.3s;
}

.cta-link:hover {
  color: #FFFFFF;
}

.accordion {
  background: #31ce84;
}

.quote-card {
  padding: 30px;
  text-align: center;
  position: relative;
}

p#quote-text {
  font-size: 1.2rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

#quote-author {
  font-weight: 600;
  color: #130747;
  font-size: 1rem;
}

.section-grid .img-box {
  aspect-ratio: 16 / 9;
  /* keep box aspect stable */
  overflow: hidden;
  border-radius: 12px;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fills box, cropping if needed */
  object-position: center;
  display: block;
}

#subjects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.subject-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 500px;
  min-width: 200px;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
}

.subject-card .img-box {
  display: flex;
  justify-content: center
}

.subject-card .img-box img {
  width: 200px;
  height: 230px;
}

.subject-card h3 {
  font-size: 1.5rem;
  margin: 15px 0 10px;
}

.subject-card p {
  padding: 0 15px 15px;
  flex-grow: 1;
}

/* Optional: smaller spacing on small screens */
@media (max-width: 768px) {
  .subject-card {
    flex: 1 1 100%;
    /* 1 card per row */
  }
}

.features-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Always 3 per row on large screens */
  gap: 30px;
  padding: 40px 20px;
  background: #f9fafb;
  max-width: 1200px;
  margin: auto;
}

#about~.features-section {
  grid-template-columns: repeat(2, 1fr);
  /* Always 2 per row on large screens */
}

.feature-card {
  background: white;
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.feature-card .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f0ff;
  border-radius: 50%;
  font-size: 28px;
  color: #4a90e2;
}

.feature-card h3 {
  color: #4a90e2;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .features-section {
    grid-template-columns: repeat(2, 1fr);
    /* 2 per row on tablets */
  }
}

@media (max-width: 600px) {
  .features-section {
    grid-template-columns: 1fr;
    /* 1 per row on mobile */
  }

  #about~.features-section {
    grid-template-columns: 1fr;
  }
}

.coming-soon {
  color: #999;
  font-style: italic;
}

.coming-soon:hover {
  cursor: not-allowed;
  text-decoration: underline;
}

.font-sans {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Full screen height */
}

#coming-soon {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hidden.peer-checked .banner-arrow {
  z-index: 0;
}