/* --- RESET & NORMALIZE --- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding-left: 1.25em; }
img { max-width: 100%; display: block; height: auto; border: 0; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #19C2C6; outline-offset: 2px; }
button { font: inherit; cursor: pointer; background: none; border: none; }
hr { border: none; border-top: 1px solid #F5F1F6; margin: 32px 0; }
input, textarea, select { font: inherit; border-radius: 8px; border: 1px solid #CFCFE1; padding: 8px; background: #fff; }
body { background: #F5F1F6; color: #2C2738; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.7; min-height: 100vh; }

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222265;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
.subheadline { font-size: 1.25rem; color: #19C2C6; margin-bottom: 18px; }
p { font-size: 1rem; margin-bottom: 14px; }
strong { color: #222265; font-weight: 700; }

/* --- CONTAINERS & STRUCTURE --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0;
}
section { margin-bottom: 60px; padding: 40px 20px; background: #fff; border-radius: 28px; box-shadow: 0 2px 16px 0 rgba(31, 18, 82, 0.06); }
section:last-of-type { margin-bottom: 0; }

/* --- FLEXBOX UTILS for LAYOUTS --- */
.card-container, .feature-grid, .course-types-grid,
.card-grid, .content-grid, .teacher-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.card, .card-content, .feature-item, .testimonial-card, .text-section {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(31,18,82,0.07);
  padding: 24px 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px;
  background: #F8F5FA;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px 0 rgba(68, 50, 81, 0.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FBFAFD;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(68, 50, 81, 0.06);
  padding: 18px 18px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(31, 18, 82, 0.06);
  padding: 30px;
  flex: 1 1 325px;
}

/* For FAQ Accordion block */
.faq-accordion > h3 {
  font-size: 1.15rem;
  background: #F8F5FA;
  border-radius: 16px;
  padding: 13px 18px;
  margin: 18px 0 8px 0;
  cursor: pointer;
  transition: background 0.18s;
}
.faq-accordion > h3:hover { background: #EFE7F6; }
.faq-accordion > p {
  padding-left: 8px;
  color: #444066;
  font-size: 1rem;
  margin-bottom: 10px;
  margin-top: 0;
}

/* --- HEADER & NAV --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(44, 39, 56, 0.06);
  position: sticky;
  top: 0;
  z-index: 80;
  margin-bottom: 12px;
}
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 16px; }
header img { height: 44px; border-radius: 12px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #222265;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  padding: 4px 12px;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a:focus { background: #F8F5FA; color: #19C2C6; }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.10rem;
  border: none;
  border-radius: 18px;
  padding: 12px 30px;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s;
  cursor: pointer;
  margin-left: 8px;
  box-shadow: 0 2px 10px 0 rgba(25,194,198,0.07);
  text-align: center;
}
.btn-primary {
  background: #19C2C6;
  color: #222265;
}
.btn-primary:hover, .btn-primary:focus {
  background: #222265;
  color: #fff;
  box-shadow: 0 6px 22px 0 rgba(25,194,198,0.15);
}
.btn-secondary {
  background: #fff;
  color: #19C2C6;
  border: 1.5px solid #19C2C6;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #19C2C6;
  color: #fff;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #19C2C6;
  color: #222265;
  border: none;
  font-size: 2.2rem;
  padding: 8px 18px;
  border-radius: 16px;
  transition: background 0.2s;
  z-index: 120;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: #16a3a6; color: #fff; }
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.30s cubic-bezier(0.4, 0.7, 0.5, 1), opacity 0.18s;
  pointer-events: none;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 0 0;
  font-size: 2.2rem;
  color: #222265;
  background: #19C2C6;
  border-radius: 11px;
  padding: 4px 16px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #222265; color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 28px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #222265;
  padding: 14px 12px;
  border-radius: 12px;
  background: none;
  transition: background 0.17s, color 0.17s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus { background: #F8F5FA; color: #19C2C6; }

@media (max-width: 992px) {
  .main-nav { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- HERO --- */
section:first-of-type {
  background: #FEFEFF;
  box-shadow: 0 3px 20px 0 rgba(25,194,198,0.06);
  border-radius: 36px;
}

/* --- FEATURE GRID --- */
.feature-grid, .course-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.feature-grid > div, .course-types-grid > div {
  background: #FBFAFD;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(68, 50, 81, 0.06);
  padding: 28px 22px;
  flex: 1 1 290px;
  min-width: 220px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid img, .course-types-grid img { height: 48px; width: 48px; margin-bottom: 0; }
.feature-grid h3, .course-types-grid h3 { color: #222265; font-weight: 600; }

/* --- CARD GRIDS --- */
.card-grid, .content-grid, .teacher-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-grid .card, .content-grid .card, .teacher-profiles .text-section {
  flex: 1 1 350px;
  min-width: 230px;
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #F8F5FA;
  border-radius: 24px;
  box-shadow: 0 3px 18px 0 rgba(32,28,76,0.08);
  padding: 20px 24px;
  min-width: 260px;
  max-width: 380px;
  flex: 1 1 270px;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #3D346B;
  margin-bottom: 7px;
 }
.testimonial-meta {
  font-size: 1rem;
  color: #222265;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.testimonial-meta strong { color: #222265; }
.testimonial-meta img[alt*="Stern"], .testimonial-meta img[alt*="star"] { height: 20px; width: 20px; margin-left: 3px; }

/* --- LISTS & ULs --- */
ul, ol { margin-bottom: 18px; }
ul li, ol li { margin-bottom: 10px; }

/* --- CONTACT INFO --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #222265;
  background: #FAFAFB;
  border-radius: 14px;
  padding: 8px 16px;
}
.contact-info img { height: 22px; width: 22px; }

/* --- FOOTER --- */
footer {
  background: #222265;
  color: #fff;
  padding: 32px 0 20px 0;
  border-radius: 25px 25px 0 0;
  margin-top: 44px;
  box-shadow: 0 -2px 16px 0 rgba(34, 34, 101, 0.08);
}
footer .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 36px; padding-top: 0; padding-bottom: 0; }
footer img { height: 38px; background: #fff; border-radius: 11px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #fff; font-family: 'Montserrat', Arial, sans-serif; opacity: 0.92; font-size: 1rem; transition: color 0.18s; border-radius: 8px; padding: 2px 10px; }
.footer-nav a:hover, .footer-nav a:focus { color: #19C2C6; background: #181867; }
.footer-contact { font-size: 1rem; opacity: 0.82; margin-top: 11px; }

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #FEF6EC;
  color: #3D346B;
  box-shadow: 0 -2px 16px 0 rgba(34,34,101,0.11);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px 22px 26px 32px;
  z-index: 1500;
  border-radius: 32px 32px 0 0;
  font-size: 1.04rem;
  transition: transform 0.4s cubic-bezier(0.8, 0.3, 0.5, 1);
  will-change: transform, opacity;
}
.cookie-banner.out {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner__btn {
  border-radius: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 22px;
  border: none;
  margin: 0;
  background: #19C2C6;
  color: #222265;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px 0 rgba(25,194,198,0.07);
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: #222265;
  color: #fff;
}
.cookie-banner__btn--secondary {
  background: #fff;
  color: #19C2C6;
  border: 1px solid #19C2C6;
}
.cookie-banner__btn--secondary:hover, .cookie-banner__btn--secondary:focus {
  background: #19C2C6;
  color: #fff;
}
.cookie-banner__btn--settings {
  background: #FBFAFD;
  color: #222265;
  border: 1px solid #222265;
}
.cookie-banner__btn--settings:hover, .cookie-banner__btn--settings:focus {
  background: #222265;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,39,101,0.26);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1600;
  animation: fadein 0.24s;
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #222265;
  border-radius: 26px;
  box-shadow: 0 6px 32px 0 rgba(45,29,85,0.15);
  padding: 30px 32px 26px 32px;
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popin 0.18s cubic-bezier(0.42,0.59,0.51,0.98);
}
@keyframes popin {
  from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; }
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__close {
  background: #19C2C6;
  color: #222265;
  border-radius: 11px;
  font-size: 1.45rem;
  padding: 2px 12px;
  border: none;
  margin-left: 16px;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus { background: #222265; color: #fff; }
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-switch {
  width: 34px;
  height: 18px;
  background: #EFE7F6;
  border-radius: 18px;
  position: relative;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch-label {
  position: absolute;
  left: 0;
  width: 34px;
  height: 18px;
  cursor: pointer;
}
.cookie-switch .cookie-switch-dot {
  width: 15px;
  height: 15px;
  background: #19C2C6;
  border-radius: 50%;
  position: absolute;
  top: 1.5px;
  left: 2px;
  transition: left 0.18s, background 0.18s;
}
.cookie-switch input[type="checkbox"]:checked ~ .cookie-switch-dot {
  left: 17px;
  background: #222265;
}
.cookie-modal__category--locked {
  opacity: 0.56;
  font-style: italic;
}

.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal__btn {
  border-radius: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 22px;
  border: none;
  margin: 0;
  background: #19C2C6;
  color: #222265;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px 0 rgba(25,194,198,0.07);
}
.cookie-modal__btn--secondary {
  background: #fff;
  color: #19C2C6;
  border: 1px solid #19C2C6;
}
.cookie-modal__btn--secondary:hover, .cookie-modal__btn--secondary:focus { background: #19C2C6; color: #fff; }


/* -- ANIMATIONS/MICRO-INTERACTIONS -- */
.btn-primary, .btn-secondary, .cookie-banner__btn, .cookie-modal__btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.20s;
}
.btn-primary:active, .btn-secondary:active,
.cookie-banner__btn:active, .cookie-modal__btn:active {
  transform: scale(0.97);
}
.card, .testimonial-card, .feature-grid > div, .course-types-grid > div {
  transition: box-shadow 0.19s;
}
.card:hover, .testimonial-card:hover,
.feature-grid > div:hover, .course-types-grid > div:hover {
  box-shadow: 0 5px 30px 0 rgba(25,194,198,0.11);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 992px) {
  section {
    padding: 32px 10px;
    border-radius: 22px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid, .course-types-grid, .card-container, .content-grid, .teacher-profiles {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-grid > div, .course-types-grid > div, .teacher-profiles .text-section { min-width: 0; max-width: 100%; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .container { padding-left: 6px; padding-right: 6px; }
  .content-wrapper { padding-left: 0; padding-right: 0; }
  section {
    padding: 24px 2px;
    margin-bottom: 38px;
    border-radius: 15px;
  }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.07rem; }
  p, li, .subheadline { font-size: 1rem; }
  .feature-grid, .course-types-grid, .card-container, .content-grid, .teacher-profiles {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .footer-contact { font-size: 0.97rem; }
  footer .container { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 14px; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 8px 18px 10px;
    font-size: 0.99rem;
    border-radius: 24px 24px 0 0;
}
}

@media (max-width: 480px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.07rem; }
  section { border-radius: 9px; }
  .testimonial-card, .card, .feature-grid > div, .course-types-grid > div, .teacher-profiles .text-section {
    padding: 10px 7px;
    border-radius: 10px;
  }
}

/* --- MISC --- */
::-webkit-input-placeholder { color: #B7B9C6; }
::-moz-placeholder { color: #B7B9C6; }
:-ms-input-placeholder { color: #B7B9C6; }
::placeholder { color: #B7B9C6; }

/* Hide any skip links visually unless focused */
.skip-link { position: absolute; left: -9999px; top: auto; height: 1px; width: 1px; overflow: hidden; z-index: 9999; }
.skip-link:focus { left: 8px; top: 8px; width: auto; height: auto; background: #19C2C6; color: #222265; padding: 10px 20px; border-radius: 11px; display: block; }

/* --- SCROLLBAR STYLES (Webkit only) --- */
::-webkit-scrollbar { width: 10px; background: #F8F5FA; }
::-webkit-scrollbar-thumb { border-radius: 11px; background: #D9E7F8; }

/* --- UTILITY CLASSES --- */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.w-100 { width: 100% !important; }

/* --- END --- */
