/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Lato', Arial, sans-serif;
  background: #f7f6fb;
  color: #1d3557;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
}

/* SOFT PASTEL PALETTE + BRAND COLORS */
:root {
  --primary: #1d3557;
  --secondary: #e63946;
  --accent: #f1faee;
  --pastel-blue: #a8dadc;
  --pastel-pink: #ffe3e3;
  --pastel-purple: #ebe4f4;
  --pastel-yellow: #fff5cc;
  --pastel-mint: #cde9df;
  --shadow: 0 4px 24px 0 rgba(173, 187, 219, .17);
}

body {
  background: linear-gradient(120deg, #f7f6fb 0%, #f1faee 80%);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.2rem; margin-bottom: 18px; }
h2 { font-size: 1.7rem; margin-bottom: 14px; }
h3 { font-size: 1.23rem; margin-bottom: 10px; }
h1, h2, h3 { line-height: 1.15; }
p, li, td, th, cite {
  font-size: 1rem;
  line-height: 1.7;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--primary);
}
@media (max-width: 400px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.05rem; }
  h3 { font-size: 0.98rem; }
}
strong { font-weight: 700; }
em { font-style: italic; }

/* CONTAINER, WRAPPERS & SPACING */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover {
  box-shadow: 0 8px 40px 0 rgba(62,74,92,.13);
  transform: translateY(-2px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-mint);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid #dde6ec;
  transition: box-shadow .17s, background .2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(67,115,143,.13);
  background: var(--pastel-blue);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-accordion > h2 {
  font-size:1.18rem;
  margin-bottom:6px;
  margin-top:18px;
  font-weight:600;
}
.faq-accordion > p {
  margin-bottom: 8px;
}

/* FEATURE GRID (index/courses) - ONLY FLEX! */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 8px;
}
.feature-grid > div {
  background: var(--pastel-purple);
  border-radius: 20px;
  box-shadow: var(--shadow);
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px 28px 24px;
  gap: 12px;
  transition: background .2s, box-shadow .15s;
}
.feature-grid > div img {
  width: 56px; height: 56px;
  margin-bottom: 0.7rem;
}
.feature-grid > div:hover {
  background: var(--pastel-blue);
  box-shadow: 0 8px 32px 0 rgba(86,126,188,.08);
}

/* BUTTONS */
.cta-primary, .cookie-consent-btn, .cookie-settings-btn, .mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  color: #fff;
  background: linear-gradient(80deg, #e0c3fc 0%, #a1c4fd 100%);
  background-color: var(--primary);
  border: none;
  box-shadow: 0 2px 6px rgba(149,129,211,.07);
  border-radius: 32px;
  padding: 12px 28px;
  cursor: pointer;
  margin: 12px 0;
  letter-spacing: 0.04em;
  transition: background .2s, color .18s, transform .13s, box-shadow .17s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: linear-gradient(90deg, #a8dadc 0%, #e63946 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.028);
  outline: none;
}
.cookie-consent-btn {
  background: var(--primary);
}
.cookie-consent-btn:hover {
  background: var(--secondary);
}
.cookie-settings-btn {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-settings-btn:hover {
  background: var(--pastel-purple);
  color: var(--secondary);
}
.mobile-menu-close {
  background: transparent;
  color: var(--primary);
  font-size: 2rem;
  box-shadow: none;
  border: none;
  position: absolute;
  top: 22px;
  right: 30px;
}
.mobile-menu-close:hover {
  background: var(--pastel-pink);
  color: var(--secondary);
}

/* NAVIGATION */
header {
  width: 100%;
  background: #fff6ff;
  box-shadow: 0 2px 8px 0 rgba(195,179,237,0.05);
  padding: 0 0 0 0;
  min-height: 72px;
  position: relative;
}
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 0 0;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.logo img {
  height: 46px;
  width: auto;
  transition: transform .18s;
}
.logo:hover img {
  transform: scale(1.06);
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  color: var(--primary);
  background: transparent;
  padding: 8px 14px;
  border-radius: 16px;
  margin: 0 4px;
  opacity: .92;
  transition: background .16s, color .18s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: var(--pastel-yellow);
  outline: none;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 12px;
  margin-right: 8px;
  z-index: 90;
  transition: color .18s, background .16s;
}
.mobile-menu-toggle:hover {
  color: var(--secondary);
  background: var(--pastel-pink);
}

/* MOBILE MENU (Overlay Navigation) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(254,250,254,95%);
  z-index: 2000;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.72,.11,.4,1.13);
  box-shadow: 0 2px 40px 0 rgba(66,72,122,.13);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 84px;
  margin-left: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  background: var(--pastel-blue);
  color: var(--primary);
  padding: 16px 28px;
  margin-bottom: 12px;
  border-radius: 22px;
  box-shadow: 0 2px 10px 0 rgba(86,126,188,0.06);
  width: 90vw;
  max-width: 400px;
  transition: background .18s, color .18s, box-shadow .19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-purple);
  color: var(--secondary);
  box-shadow: 0 4px 30px 0 rgba(86,126,188,0.13);
  outline: none;
}
.mobile-menu-close {
  display: block;
}

/* Footer */
footer {
  width: 100%;
  background: #ece9ff;
  padding: 24px 0 14px 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 18px 0 rgba(228, 196, 255, 0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--primary);
  background: var(--pastel-mint);
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 16px;
  border-radius: 14px;
  opacity: 0.93;
  font-size: .97rem;
  margin-bottom: 6px;
  transition: background .15s, color .15s;
}
.footer-nav a:hover {
  background: var(--secondary);
  color: #fff;
}
.contact-details {
  font-size: .98rem;
  color: var(--primary);
  opacity: .82;
  margin-top: 4px;
}

/* Tables */
table {
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(86,126,188,0.06);
  background: var(--pastel-yellow);
  overflow: hidden;
  margin-bottom: 20px;
}
th {
  background: var(--pastel-mint);
  color: var(--primary);
  font-weight: 700;
  padding-top: 14px;
}
td {
  background: #fff;
  color: var(--primary);
}

/* Blockquotes & Citations (for testimonials) */
blockquote {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #23375a;
  margin: 0;
}
cite {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .97rem;
  color: var(--secondary);
  font-style: normal;
  opacity: .88;
}

/* Lists & ULs */
ul, ol {
  padding-left: 22px;
  margin: 12px 0;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
}
ul li::before {
  content: "";
  display: inline-block;
  width:8px; height:8px;
  border-radius: 100%;
  background: var(--pastel-blue);
  margin-right:8px;
  margin-bottom:1.5px;
  vertical-align: middle;
}
ol li {
  list-style-type: decimal;
  padding-left: 4px;
  margin-left: 8px;
}

/* HERO styles */
.hero {
  background: linear-gradient(115deg, #f7ede2 0 60%, var(--pastel-yellow) 100%);
  border-bottom-left-radius: 38px;
  border-bottom-right-radius: 38px;
  box-shadow: 0 12px 30px 0 rgba(241, 187, 255, 0.07);
  margin-bottom: 48px;
  padding: 48px 0 46px 0;
}
.hero .container {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .text-section {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.95rem;
  letter-spacing: 0.01em;
}
.hero p {
  max-width: 460px;
  font-size: 1.13rem;
  color: #2d3d5a;
  margin-bottom: 8px;
}

/* Call-to-Action Section */
.section .cta-primary {
  margin-top: 12px;
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid > div {
    min-width: 180px;
    max-width: 94vw;
  }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .hero .container { min-height: 270px; }
  .feature-grid > div { min-width: 140px; }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 10px;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .container { padding: 0 8px; }
  section, .section {
    padding: 28px 5vw;
    margin-bottom: 38px;
  }
  .hero {
    padding: 36px 0 40px 0;
    margin-bottom: 38px;
  }
  .hero h1 { font-size:1.45rem; }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 0;
    max-width: 100%;
    padding: 20px 10px 18px 10px;
  }
  .testimonial-card, .card {
    padding: 18px 8px;
    border-radius: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    gap: 10px;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .hero .container {
    min-height: 75px;
    padding-top: 10px;
  }
  .hero {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}
@media (max-width: 410px) {
  .hero, section, .section { padding: 16px 2vw; }
  .testimonial-card, .card { padding: 9px 2px; }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff8ff;
  box-shadow: 0 -2px 28px 0 rgba(196, 179, 237, 0.09);
  border-top: 2px solid #ebd6ff;
  padding: 26px 12px 20px 12px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: center;
  transition: transform .25s, opacity .22s;
  opacity: 1;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-message {
  font-size: 1.02rem;
  color: var(--primary);
  flex: 1 1 auto;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 540px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 4px 16px 4px;
  }
  .cookie-consent-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  background: rgba(44, 40, 60, 0.11);
  z-index: 4010;
  opacity: 1;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .18s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  padding: 34px 30px 30px 30px;
  max-width: 410px;
  width: 95vw;
  box-shadow: 0 12px 46px 0 rgba(196,179,237,0.14);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 4020;
  animation: cookie-modal-pop .26s cubic-bezier(.7,-0.13,.82,.77);
  position: relative;
}
@keyframes cookie-modal-pop {
  0% { opacity: 0; transform: scale(.9) translateY(-24px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 1.6rem;
  cursor: pointer;
}
.cookie-modal ul {
  margin: 14px 0 9px 0;
  padding: 0;
  list-style: none;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 9px;
  font-size: 1.00rem;
}
.cookie-modal .cookie-toggle {
  width: 38px; height: 22px;
  display: inline-flex;
  align-items: center;
  background: var(--pastel-blue);
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle .slider {
  height: 16px; width: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px 0 rgba(44,40,60,0.10);
  margin-left: 2px; margin-right: 2px;
  transition: transform .2s, background .17s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
  transform: translateX(16px);
  background: var(--secondary);
}
.cookie-modal .cookie-category {
  font-weight: 600; color: var(--primary);
  margin-right: 6px;
}

/* Micro-interactions */
a.button, button, .cta-primary, .cookie-consent-btn, .cookie-settings-btn, .mobile-menu-close {
  transition: background .16s, color .18s, transform .13s, box-shadow .19s;
}

/* Accessibility Focuses */
a:focus, button:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 3px;
  z-index: 22;
}

/* Misc Styles */
::-webkit-scrollbar {
  width: 8px; height: 8px;
  background: var(--pastel-blue);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb {
  background: #d1e7ee;
  border-radius: 99px;
}

/* Media Query: Hide desktop nav/show mobile nav */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  header { padding: 0 0; }
}

/* Z-indexes: make sure nothing overlaps incorrectly */
header { z-index: 900; position: relative; }
footer { z-index: 10; }
.hero { z-index: 15; }

/* Ensure 20px space between cards & sections */
.card, .testimonial-card, .feature-grid > div, section, .section, .content-grid > *, .card-container > * {
  margin-bottom: 20px;
}

/* Utility: visually hidden (for a11y if needed) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}