/* ===========================================================
   CSS RESET & BASELINE NORMALIZATION
   =========================================================== */

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;
}

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    line-height: 1.6;
    background: #fff;
    color: #1a1a1a;
    min-height: 100vh;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
strong {
    font-weight: 700;
}
ul, ol {
    list-style: none;
}
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    outline: none;
    color: inherit;
    appearance: none;
}

/* ===========================================================
   BRAND TYPOGRAPHY & MONOCHROME SOPHISTICATED HIERARCHY
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Montserrat:wght@400;500;700&display=swap');

:root {
  --primary: #653AA6;
  --secondary: #90C145;
  --accent: #F7FAFD;
  --white: #fff;
  --black: #151515;
  --gray-100: #f6f6f7;
  --gray-200: #e3e3e3;
  --gray-400: #bdbdbd;
  --gray-600: #888;
  --gray-800: #333;

  --shadow-soft: 0 2px 16px rgba(21,21,21,0.10);
  --shadow-hover: 0 4px 32px rgba(21,21,21,0.18);

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 7px;

  --font-display: 'Baloo 2', cursive;
  --font-body: 'Montserrat', Arial, sans-serif;
}

h1, .hero-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--black);
  letter-spacing: -1px;
  font-weight: 700;
  line-height: 1.13;
  margin-bottom: 20px;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--black);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--black);
  font-weight: 700;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--gray-800);
}
p, ul li, ol li, span, label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.7;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 30px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s;
}

.section:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Flex layouts for grids and cards */
.features-grid, .course-categories, .educator-profiles, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.achievement-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}
.card, .features-grid > div, .course-categories > div, .educator-profiles > div {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 340px;
  z-index: 1;
}
.card:hover, .features-grid > div:hover, .course-categories > div:hover, .educator-profiles > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.022);
}


.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--white);
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
  min-width: 0;
  max-width: 600px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.012);
}
.testimonial-card p {
  color: var(--black);
  font-style: italic;
  flex: 1 1 180px;
  margin-right: 12px;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--gray-600);
  font-weight: 500;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -----------------------------------------------
   HEADER & NAVIGATION
   ----------------------------------------------- */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 7px rgba(21,21,21,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 16px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--black);
  font-size: 1.01rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}
nav a:hover, nav a:focus {
  background: var(--gray-100);
  color: var(--primary);
}
nav a.cta {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-left: 14px;
  box-shadow: var(--shadow-soft);
  padding: 10px 26px;
  transition: box-shadow 0.17s, background 0.17s, color 0.14s;
}
nav a.cta:hover, nav a.cta:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-hover);
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  margin-left: 12px;
  cursor: pointer;
  border: none;
  transition: background 0.18s, box-shadow 0.15s;
  z-index: 99;
  box-shadow: 0 1px 5px rgba(0,0,0,0.09);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--white);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  z-index: 2000;
  background: rgba(35,35,40, 0.89);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.7,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-right: 22px;
  margin-top: 22px;
  font-size: 2.2rem;
  color: var(--white);
  background: none;
  border: none;
  transition: color 0.16s;
  cursor: pointer;
  z-index: 1001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 38px 38px 32px 38px;
  width: 100%;
  background: #fff;
  min-height: 100vh;
  max-width: 380px;
  box-shadow: -2px 0 16px rgba(31,31,31,0.06);
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--black);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 13px 0;
  width: 100%;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gray-100);
  color: var(--primary);
}

/* Hide mobile menu by default on desktop */
@media (min-width: 1040px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  nav {
    gap: 24px;
  }
}
@media (max-width: 1039px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===========================================================
   BUTTONS & CTAs
   =========================================================== */
.cta, .btn, .cookie-btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.11rem;
  padding: 11px 33px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.17s, box-shadow 0.18s, color 0.14s;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta:hover, .btn:hover, .cookie-btn:hover, .cta:focus, .btn:focus, .cookie-btn:focus {
  background: var(--primary);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

/* Accent Secondary (for cookie or info) */
.btn-secondary, .cookie-btn-secondary {
  background: var(--gray-100);
  color: var(--black);
  border: 1px solid var(--gray-400);
}
.btn-secondary:hover, .cookie-btn-secondary:hover {
  background: var(--gray-400);
  color: var(--white);
}
.btn-outline, .cookie-btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

/* ===========================================================
   CARD, GRID & FLEX PATTERNS
   =========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 340px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: var(--black);
  color: var(--white);
  width: 100%;
  margin-top: 50px;
  padding: 0 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 16px 22px 16px;
}
.footer-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer-main nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.footer-main nav a {
  color: var(--white);
  font-size: 1.01rem;
  font-family: var(--font-body);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.14s, background 0.14s;
}
.footer-main nav a:hover {
  color: var(--secondary);
  background: #232323;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px;
  font-size: 0.99rem;
}
.footer-contact img {
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.88;
}


/* ===========================================================
   SPECIAL SECTIONS & DECORATIVE ICONS
   =========================================================== */
.features-grid img,
.course-categories img,
.educator-profiles img,
.trust-icons img,
.opening-hours img,
.footer-contact img,
.achievement-highlights img {
  width: 36px;
  height: 36px;
  min-width: 30px;
  margin-bottom: 8px;
  filter: grayscale(100%);
}
.testimonial-card img {
  width: 22px;
  margin-right: 1.5px;
  filter: grayscale(0%);
}

.trust-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.helpful-tips {
  background: var(--gray-100);
  padding: 15px 22px;
  border-radius: var(--radius-md);
  margin-top: 18px;
  font-weight: 500;
}
.opening-hours {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray-100);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

/* Thank You Page Styling */
.thank-you-message {
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 22px;
}
.next-steps-info {
  background: var(--gray-100);
  padding: 17px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}

/* ===========================================================
   COOKIE CONSENT BANNER & MODAL
   =========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100vw;
  left: 0;
  background: var(--gray-800);
  color: var(--white);
  padding: 26px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 -3px 24px rgba(0,0,0,0.13);
  z-index: 20010;
  font-size: 1.03rem;
  animation: cookie-fadein 0.32s ease-in-out;
}
.cookie-banner span, footer span {
  color: white !important;
}
@keyframes cookie-fadein {
  from { transform: translateY(70px); opacity: 0.01;} to {transform: translateY(0); opacity:1;}
}
.cookie-banner .cookie-btn {
  margin-right: 12px;
  margin-bottom: 0;
  margin-top: 0;
}
.cookie-banner .cookie-btn-settings {
  background: var(--gray-100);
  color: var(--black);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-400);
  margin-right: 0;
}
.cookie-banner .cookie-btn-settings:hover {
  background: var(--gray-200);
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,32,36,0.77);
  z-index: 20100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in 0.23s cubic-bezier(.6,0,.2,1);
}
@keyframes cookie-modal-in {
 from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-lg);
  padding: 38px 26px 32px 26px;
  max-width: 400px;
  box-shadow: 0 8px 42px rgba(21,21,21, 0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-content-in 0.17s cubic-bezier(.6,0,.2,1);
}
@keyframes cookie-modal-content-in { from {transform: scale(0.98); opacity:0.2;} to {transform: scale(1); opacity:1;} }
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  position: relative;
  width: 37px;
  height: 23px;
  background: var(--gray-200);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--primary);
}
.cookie-toggle .toggle-knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--white);
  transition: left 0.15s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-toggle[aria-checked="true"] .toggle-knob {
  left: 17px;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 11px;
  top: 8px;
  background: none;
  font-size: 1.55rem;
  color: var(--gray-600);
  border: none;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover {
  color: var(--black);
}

/* ===========================================================
   RESPONSIVE DESIGN: MOBILE FIRST
   =========================================================== */
@media (max-width: 900px) {
  .features-grid, .course-categories, .educator-profiles {
    gap: 16px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 14px;
  }
  .section {
    padding: 32px 8px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 93vw;
    padding: 0 7vw;
  }
  .section {
    margin-bottom: 38px;
    padding: 22px 6px;
  }
  h1, .hero-title {font-size: 2.0rem;}
  h2 {font-size: 1.33rem;}
  .features-grid, .course-categories, .educator-profiles{
    flex-direction: column;
    gap: 12px;
  }
  .card-container {gap: 12px;}
  .content-grid {gap: 8px;}
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 15px 10px;
    min-width: 0;
  }
  .cookie-modal {
    max-width: 94vw;
    padding: 28px 7vw 24px 7vw;
  }
  .footer-main nav {
    gap: 8px;
  }
  .footer-contact {
    font-size: 0.93rem;
    gap: 7px;
  }
}
@media (max-width: 500px) {
  .container {
    max-width: 100vw;
    padding: 0 2.5vw;
  }
  .footer-main nav a {
    font-size: 0.93rem;
    padding: 6px 7px;
  }
  .hero-title, h1 {
    font-size: 1.22rem;
  }
}

/* ========== FOCUS and ACCESSIBILITY STATES ========== */
a:focus, .cta:focus, button:focus, .cookie-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== MICRO-INTERACTIONS (hover/transition) ========== */
.cta, .btn, .cookie-btn, nav a, .card, .features-grid > div {
  transition: background 0.18s, box-shadow 0.16s, transform 0.13s, color 0.15s;
}

/* ========== ENSURE NO CONTENT OVERLAP & SPACING ========== */
.card, .features-grid > div, .testimonial-card {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
}
.card-container, .features-grid, .course-categories, .educator-profiles, .content-grid {
  gap: 24px;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 8px; }

/* ========== PRINT =================================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body {
    background: #fff !important;
    color: #111;
  }
}

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