/* CSS RESET & BASE ------------------------------------------------------ */
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,
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 {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100vh;
  background: #F1F7EE;
  color: #215732;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #215732;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #208449;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.6em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong, b {
  font-weight: bold;
}

/* ----------- RETRO/VINTAGE FONTS & COLORS ---------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');

:root {
  --primary: #215732;
  --secondary: #F1F7EE;
  --accent: #208449;
  --brand-yellow: #F6E7B5;
  --brand-orange: #DF9B63;
  --brand-red: #D96D47;
  --brand-brown: #503F32;
  --retro-bg: #f9f4e5;
  --retro-blue: #9CC4E4;
  --retro-shadow: rgba(32, 132, 73, 0.15);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #215732;
  line-height: 1.14;
  letter-spacing: 0.03em;
  text-shadow: 2px 3px 0 var(--brand-yellow), 0 2px 24px var(--retro-shadow);
}
h1 { font-size: 2.25rem; margin-bottom: 0.6em; }
h2 { font-size: 1.7rem; margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

@media (min-width: 600px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
}

/* --- UTILITIES & LAYOUT CLASSES --------------------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-bg);
  border-radius: 20px;
  box-shadow: 0 2px 24px 0 var(--retro-shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffef9;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 var(--retro-shadow);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  padding: 24px 20px;
}
.card:hover {
  box-shadow: 0 8px 28px 0 #b1b7964c;
  transform: translateY(-6px) scale(1.03);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  color: #215732;
  padding: 24px 28px;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px 0 var(--retro-shadow);
  border-left: 8px solid var(--brand-orange);
  position: relative;
  font-size: 1.06em;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-brown);
  font-weight: 700;
  margin-top: 6px;
}
.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: #215732;
}
.testimonial-card:before {
  content: '\201C';
  font-family: 'Montserrat', serif;
  font-size: 4rem;
  color: var(--brand-yellow);
  position: absolute;
  top: 12px;
  left: 10px;
  opacity: 0.16;
}

.feature-item, .features-list li, .feature-highlights li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--primary);
}
.features-list li img, .feature-highlights li img {
  width: 28px;
  height: 28px;
}

.success-metrics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  margin-bottom: 0;
  margin-top: 18px;
}
.success-metrics li {
  font-size: 1.15em;
  font-weight: 900;
  color: var(--brand-orange);
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--brand-yellow);
  padding: 7px 22px;
  border-radius: 24px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 7px 0 var(--retro-shadow);
}

/* Course Cards */
.course-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
  justify-content: space-between;
}
.course-card {
  background: #fffef9;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 var(--retro-shadow);
  flex: 1 1 290px;
  min-width: 230px;
  padding: 20px 16px 22px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.course-card:hover {
  box-shadow: 0 7px 32px 0 #d96d4740;
  transform: translateY(-4px) scale(1.025);
}

/* --- HERO SECTION --------------------------------------------- */
.hero {
  background: repeating-linear-gradient(45deg, var(--brand-yellow) 0 20px, var(--retro-bg) 20px 40px);
  border-bottom: 8px solid var(--accent);
  padding-top: 48px;
  padding-bottom: 56px;
  margin-bottom: 48px;
}
.hero .container, .hero .content-wrapper {
  align-items: center;
  text-align: center;
  justify-content: center;
}
.hero h1 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  text-shadow: 4px 4px 0 var(--brand-yellow);
  margin-bottom: 0.7em;
}
.hero p {
  color: var(--brand-brown);
  font-size: 1.18em;
  margin-bottom: 1.8em;
  font-family: 'Open Sans', Arial, sans-serif;
}
@media (max-width: 600px) {
  .hero { padding-top: 24px; padding-bottom: 36px; }
}

/* --- NAVIGATION BAR -------------------------------------------- */
header {
  background: #ffffff;
  border-bottom: 4px solid var(--brand-yellow);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px -6px var(--retro-shadow);
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 16px 16px 16px 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08em;
  color: var(--primary);
  border-radius: 8px;
  padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-yellow);
  color: var(--accent);
  text-decoration: none;
}
.cta-primary {
  background: var(--brand-orange);
  color: #fff;
  border-radius: 28px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  border: none;
  outline: none;
  margin-left: 10px;
  box-shadow: 0 2px 8px 0 var(--retro-shadow);
  text-shadow: 0 2px 6px #df9b6320;
  font-size: 1em;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-red);
  color: #fffde5;
  transform: translateY(-2px) scale(1.04);
}

/* --- MOBILE MENU ------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-red);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  border-radius: 8px;
  padding: 8px 17px 7px 17px;
  cursor: pointer;
  margin-left: 24px;
  transition: background 0.18s, box-shadow 0.15s;
  box-shadow: 0 2px 18px 0 var(--retro-shadow);
}
.mobile-menu-toggle:active {
  background: var(--brand-orange);
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff9e7;
  box-shadow: 0 4px 48px 0 var(--retro-shadow);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.65,.05,.36,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-red);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 20px 22px 4px 0;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--brand-brown);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  padding: 40px 24px 16px 38px;
  height: 100%;
}
.mobile-nav a {
  font-size: 1.15em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px dotted var(--brand-yellow);
  width: 100%;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-red);
  background: var(--brand-yellow);
  outline: none;
}
@media (min-width: 1025px) {
  .mobile-menu,.mobile-menu-toggle { display: none!important; }
}

/* --- COURSE LIST & FEATURE HIGHLIGHTS ----------------------------------- */
.course-list, .outcomes-list, .features-list, .feature-highlights ul {
  list-style: disc;
  color: var(--brand-brown);
  margin-bottom: 1em;
}
.course-list li, .outcomes-list li, .features-list li, .feature-highlights li {
  margin-bottom: 12px;
  font-size: 1.08em;
}

/* --- GRIDS FOR TEACHERS AND SKILLS ------------------------------------- */
.teacher-profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: space-between;
}
.teacher-profile {
  background: #fffef9;
  border-radius: 15px;
  padding: 18px 16px;
  flex: 1 1 270px;
  min-width: 200px;
  box-shadow: 0 4px 18px 0 var(--retro-shadow);
  font-size: 1.06em;
  margin-bottom: 20px;
}
.teacher-profile h3 {
  color: var(--brand-red);
  font-size: 1.16em;
  margin-bottom: 8px;
  text-shadow: 1px 2px 0 var(--brand-yellow);
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 12px 0;
}
.skills-grid > div {
  background: var(--brand-blue, #cfe4e4);
  color: var(--brand-brown);
  border-radius: 16px;
  padding: 9px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 2px 8px 0 var(--retro-shadow);
  min-width: 120px;
  text-align: center;
}

.featured-reviews {
  margin-top: 38px;
  background: var(--retro-bg);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 2px 14px 0 var(--retro-shadow);
}
.featured-reviews h3 {
  font-size: 1.18em;
  color: var(--brand-red);
  margin-bottom: 10px;
}
.featured-reviews ul {
  list-style: square inside;
  color: var(--primary);
}

/* --- ACCORDION FOR FAQ ------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fffef9;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 11px 0 var(--retro-shadow);
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
}
.faq-item:hover, .faq-item.active {
  background: var(--brand-yellow);
  box-shadow: 0 8px 28px 0 #df9b6330;
}
.faq-item h3 {
  color: var(--brand-red);
  font-size: 1.13em;
}

/* --- CONTACT SECTION & FOOTER ------------------------------------------ */
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin-bottom: 20px;
}
.contact-info li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  color: var(--primary);
}
.contact-info img {
  width: 20px; height: 20px;
}
.contact-map {
  background: var(--retro-bg);
  padding: 18px 16px;
  border-radius: 14px;
  margin-top: 16px;
  font-size: 1.04em;
  box-shadow: 0 2px 14px 0 var(--retro-shadow);
}

footer {
  background: var(--primary);
  color: #fff;
  font-size: 1em;
  margin-top: 60px;
  padding: 40px 0 20px 0;
  box-shadow: 0 -2px 16px 0 var(--retro-shadow);
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 45px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05em;
  padding: 7px 7px;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-yellow);
}
.footer-contact {
  font-size: 0.96em;
  line-height: 1.6;
  color: #fffde2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact img {
  width: 20px; height: 20px; vertical-align: middle; margin-right: 5px;
  filter: brightness(0) invert(1);
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 10px;
  }
  .footer-nav { gap: 12px; }
}

/* --- THANK YOU PAGE -------------------------------------------------- */
.thank-you {
  background: var(--retro-bg);
  padding: 50px 0;
  text-align: center;
}
.thank-you h1 {
  margin-bottom: 0.8em;
}

/* --- LEGAL PAGE SECTION ---------------------------------------------- */
.legal {
  margin: 70px 0 60px 0;
  background: #fffef9;
  border-radius: 20px;
  padding: 40px 24px;
  box-shadow: 0 3px 16px 0 var(--retro-shadow);
}
@media (max-width: 700px) {
  .legal { margin: 38px 0 38px 0; padding: 24px 10px; }
}

/* --- COOKIE CONSENT BANNER ------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 3000;
  background: var(--primary);
  color: #ffd;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 22px 18px 22px 18px;
  box-shadow: 0 -4px 25px 0 #0002;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: transform 0.28s;
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner-message {
  font-size: 1em;
  line-height: 1.6;
  flex: 1 1 420px;
  color: #ffe;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  background: var(--brand-yellow);
  color: var(--primary);
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 2px 7px 0 var(--retro-shadow);
  transition: box-shadow 0.13s, background 0.18s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-orange);
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: transparent;
  color: #ffd;
  border: 2px solid #ffd;
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  color: var(--brand-brown);
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 330px;
  max-width: 98vw;
  width: 410px;
  background: #ffffff;
  color: var(--primary);
  border-radius: 22px;
  box-shadow: 0 12px 44px 0 #093c191c;
  z-index: 3500;
  transform: translate(-50%,-50%) scale(1);
  transition: opacity 0.28s, transform 0.18s;
  padding: 30px 28px 24px 28px;
}
.cookie-modal.open {
  display: block;
  animation: cookieModalIn 0.35s cubic-bezier(.42,0,.4,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: translate(-50%,-52%) scale(0.92); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.cookie-modal-header h2 {
  font-size: 1.22em;
  color: var(--primary);
  text-shadow: none;
  margin-bottom: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--brand-red);
  font-size: 1.6em;
  cursor: pointer;
}
.cookie-modal-categories {
  margin: 10px 0 21px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1.01em;
}
.cookie-toggle {
  appearance: none;
  background: #d5decf;
  width: 44px;
  height: 24px;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 6px;
}
.cookie-toggle:checked {
  background: var(--brand-orange);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 12px;
  background: #fff8d9;
  box-shadow: 0 1px 5px #0001;
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 24px;
}
.cookie-toggle[disabled], .cookie-toggle[aria-disabled='true'] {
  background: #e7e4bf; opacity: 0.6; pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-actions .cookie-btn {
  min-width: 100px;
}

/* --- SPACING & RESPONSIVE RULES --------------------------------------- */
@media (max-width: 1050px) {
  .course-cards, .teacher-profiles-grid { flex-direction: column; }
  .course-card, .teacher-profile { min-width: 0; }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
  .course-cards, .card-container, .teacher-profiles-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .container { padding: 0 8px; }
  .success-metrics ul { flex-direction: column; gap: 16px; }
  footer .container { flex-direction: column; gap: 10px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 13px 8px; }
  .cookie-modal { padding: 18px 8px 16px 8px; width:95vw; min-width: unset; }
}

/* Retro/Nostalgia touches */
.section, .hero, .course-card, .teacher-profile, .testimonial-card, .feature-item, .faq-item, .legal, .contact-map {
  border: 2px solid var(--brand-yellow);
  background: repeating-linear-gradient(135deg, #f8f3e3, #f8f3e3 20px, #f6e7b5 20px, #f6e7b5 40px);
  box-shadow: 0 3px 14px 0 var(--retro-shadow);
}
.section, .hero { border-width: 3px; }

/* Hide empty gaps (fix for single-column stacks) */
@media (max-width: 480px) {
  .content-wrapper { gap: 12px; }
  h1, h2, h3 { font-size: 1.12em; }
}

/* ---- Micro-interactions (focus visual, buttons) ---- */
button, .cta-primary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
  transition: box-shadow 0.13s, background 0.13s, color 0.13s, transform 0.15s;
}
button:focus, a:focus, .cta-primary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  box-shadow: 0 0 0 3px var(--brand-orange), 0 2px 8px var(--brand-yellow);
}

/* --- Scrollbar vintage styling --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--brand-yellow);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
}

/* --- Hide visually unnecessary elements for print --- */
@media print {
  .main-nav, .mobile-menu, .footer-nav, .cookie-banner, .cookie-modal { display: none !important; }
  footer { background: #fff; color: #215732; }
}
