/* === CSS 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;
  background: transparent;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8F5F2;
}
img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1A3A6B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3F8E77;
  outline: none;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
strong, b {
  font-weight: 700;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 10px;
  outline: none;
  border: none;
}

/* === Variables === */
:root {
  --color-primary: #1A3A6B;
  --color-secondary: #3F8E77;
  --color-accent: #F2F2F2;
  --color-cta: #F7971E;
  --color-bg: #F8F5F2;
  --color-white: #fff;
  --color-black: #21252A;
  --color-grey: #E5E3E0;
  --shadow: 0 4px 24px rgba(50,35,12,0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.12rem;
}
p, li, .body-text {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
.text-section p {
  margin-bottom: 18px;
  font-size: 1.08rem;
}

/* === Layout Containers === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(50,35,12,0.13);
  transform: translateY(-2px) scale(1.01);
}

.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: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fffbe8;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(158,122,50,0.07);
  min-width: 260px;
  max-width: 520px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(108deg, #FBEEDB 0%, #F7DFCB 67%, #FFF 100%);
  padding: 52px 0 42px 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.hero .content-wrapper {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
}
.hero p {
  font-size: 1.2rem;
  color: #73532F;
  margin-bottom: 30px;
}

/* === Features Grid === */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.features-grid > div {
  flex: 1 1 220px;
  background: #FFF6E8;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(249,183,61,0.08);
  padding: 30px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 18px rgba(179,102,3,0.11);
  transform: translateY(-3px) scale(1.01);
}
.features-grid img {
  width: 40px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}
.features-grid h3 {
  color: var(--color-secondary);
}
.features-grid p {
  color: #44423B;
}

/* === Buttons === */
.cta-btn, .btn, button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.cta-btn.primary, .btn.primary {
  background: var(--color-cta);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(247,151,30,0.07);
}
.cta-btn.primary:hover, .btn.primary:hover,
.cta-btn.primary:focus, .btn.primary:focus {
  background: #ffd194;
  color: var(--color-secondary);
  transform: translateY(-1px) scale(1.03);
}
.cta-btn.secondary, .btn.secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cta-btn.secondary:hover, .btn.secondary:hover {
  background: #286355;
  color: #fffbe8;
}
button, .btn, .cta-btn {
  font-size: 1.05rem;
}

/* === Header & Navigation === */
.main-header {
  background: var(--color-white);
  box-shadow: 0 1px 12px rgba(60, 60, 60, 0.04);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 14px;
}
.branding img {
  height: 46px;
  border-radius: var(--radius-sm);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: #fffbe8;
  color: var(--color-secondary);
}
.mobile-menu-toggle {
  display: none;
  margin-left: 8px;
  padding: 10px 16px;
  background: var(--color-cta);
  color: var(--color-primary);
  font-size: 1.5rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover {
  background: #ffd194;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(250,230,186,0.98);
  /* warm friendly tone, nearly opaque */
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1), opacity 0.23s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-left: 24px;
  margin-bottom: 24px;
  background: #fff9ea;
  color: var(--color-primary);
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(180,120,5,0.07);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover {
  background: #fbe6c4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1.27rem;
  font-weight: 600;
  padding: 12px 0;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition: background 0.18s, color 0.18s, padding-left 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fffbe8;
  color: var(--color-secondary);
  padding-left: 16px;
}

/* === CTA Section === */
.cta {
  background: linear-gradient(94deg, #ffefa8 0%, #ffe2b9 80%, #fff 100%);
  border-radius: var(--radius-xl);
  padding: 54px 0 46px 0;
  box-shadow: 0 4px 32px rgba(253,218,139,0.18);
  margin-bottom: 40px;
}
.cta .content-wrapper {
  text-align: center;
}
.cta h2 {
  margin-bottom: 14px;
  color: var(--color-primary);
}

/* === Testimonials === */
.testimonial-card p {
  font-size: 1.12rem;
  color: #5E3C12;
  margin-bottom: 10px;
}
.testimonial-card strong {
  color: var(--color-secondary);
}
.testimonial-card img[alt^="Stern"],
.testimonial-card img[src*="star"] {
  height: 22px;
  margin-right: 2px;
  vertical-align: middle;
}

/* === Tables (Comparison, Pricing) === */
.comparison-table, .pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(180,130,42,0.08);
  margin-bottom: 24px;
}
.comparison-table th, .pricing-table th {
  background: #F7DFCB;
  color: var(--color-primary);
  padding: 16px 8px;
  font-size: 1.07rem;
}
.comparison-table td, .pricing-table td {
  padding: 14px 8px;
  background: #fff;
  font-size: 1rem;
  color: #324019;
}
.comparison-table tr:nth-child(even), 
.pricing-table tr:nth-child(even){
  background: #FFF9EF;
}

/* === Accordions (FAQ) === */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fffbe9;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(245,188,65,0.04);
  padding: 18px 22px;
  cursor: pointer;
  transition: box-shadow 0.16s, background 0.15s;
}
.faq-item h3 {
  margin-bottom: 9px;
  font-size: 1.07rem;
  color: var(--color-primary);
}
.faq-item div {
  font-size: 1.01rem;
  color: #63534A;
}
.faq-item:hover, .faq-item:focus-within {
  background: #ffe9c5;
  box-shadow: 0 4px 18px rgba(200,150,20,0.13);
}

/* === Contact Details === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--color-primary);
}
.contact-details img {
  margin-right: 10px;
  vertical-align: middle;
  height: 20px;
}
.contact-details a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* === Footer === */
.main-footer {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 40px 0 0 0;
  font-size: 0.98rem;
  box-shadow: 0 -2px 20px rgba(30,58,107,0.09);
  margin-top: 64px;
}
.main-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
}
.footer-branding img {
  height: 48px;
  border-radius: var(--radius-sm);
  background: #fffbe9;
  padding: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #ffe9c4;
  font-size: 1.01rem;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: var(--color-cta);
}
.footer-contact {
  font-size: 1rem;
  color: #fff6e0;
}
.footer-contact img {
  margin-right: 5px;
  vertical-align: middle;
  height: 17px;
}
.legal {
  font-size: 0.92rem;
  margin-top: 18px;
  color: #ffe2b9;
  width: 100%;
  text-align: center;
}

/* === Special Card/Timeline Styles === */
.progress-timeline {
  background: #fff9ea;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(179,146,83,0.04);
  padding: 26px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.progress-timeline h3 {
  color: var(--color-secondary);
}
.progress-timeline ul {
  margin-bottom: 0;
}
.progress-timeline li {
  font-size: 1.01rem;
}

.course-levels, .text-section {
  background: #fffbe8;
  border-radius: var(--radius-md);
  padding: 18px 14px;
  margin-top: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(250,190,54,0.06);
}

/* === Spacing & Consistency === */
.content-wrapper {
  margin-bottom: 30px;
}
.content-wrapper:last-child {
  margin-bottom: 0;
}
main > section {
  margin-bottom: 44px;
}

/* === Responsive Design === */
@media (max-width: 1020px) {
  .container {
    max-width: 95vw;
  }
  .main-footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 850px) {
  .main-header .container {
    flex-wrap: wrap;
    padding: 12px 8px;
    gap: 6px;
  }
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .hero, .cta {
    padding: 32px 0 27px 0;
  }
  .section {
    padding: 22px 6px;
    margin-bottom: 32px;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }
  .progress-timeline {
    padding: 16px 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .course-levels, .text-section {
    padding: 12px 3px;
    margin: 10px 0 6px 0;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .main-footer {
    padding: 18px 0 0 0;
  }
}

/* === Hide/show nav elements for mobile === */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* === Microinteractions & Transitions === */
.card, .features-grid > div, .testimonial-card, .cta-btn, .btn,
.faq-item {
  transition: box-shadow 0.18s, background 0.17s, transform 0.17s;
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fffbe9;
  color: var(--color-primary);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 14px;
  box-shadow: 0 -2px 16px rgba(230,180,35,0.13);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  font-size: 1rem;
  max-width: 100vw;
  transition: transform 0.22s, opacity 0.22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  flex: 1;
  margin-right: 22px;
  color: #7C6C45;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: 600;
  background: var(--color-cta);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #ffd194;
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #286355;
  color: #ffe9c4;
}
.cookie-banner .cookie-reject-btn {
  background: #fff;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner .cookie-reject-btn:hover {
  background: #ffe7d0;
  color: var(--color-primary);
}

/* === Cookie Consent Modal === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,30,6,0.31);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fffbe8;
  color: var(--color-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 36px rgba(200,139,5,0.19);
  padding: 42px 30px 26px 30px;
  max-width: 410px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: popin 0.32s cubic-bezier(.77,0,.18,1);
}
@keyframes popin {
  0% { transform: scale(0.85) translateY(60px); opacity: 0; }
  80% { transform: scale(1.04) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-modal-header h2 {
  font-size: 1.19rem;
  margin: 0;
}
.cookie-modal-close {
  font-size: 1.7rem;
  background: #ffefd1;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  box-shadow: 0 2px 10px rgba(200,139,5,0.06);
  cursor: pointer;
}
.cookie-modal-close:hover {
  background: #ffe2b9;
}
.cookie-modal-section {
  background: #fff;
  padding: 14px 11px 13px 11px;
  border-radius: var(--radius-md);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-modal-section label {
  margin-left: 8px;
}
.cookie-modal-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.cookie-modal-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ffe5bc;
  transition: background 0.23s;
  border-radius: 24px;
}
.cookie-modal-toggle input:checked + .slider {
  background: var(--color-secondary);
}
.cookie-modal-toggle .slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px #ae9851a7;
  transition: transform 0.23s, background 0.13s;
}
.cookie-modal-toggle input:checked + .slider:before {
  transform: translateX(22px);
  background: var(--color-cta);
}
.cookie-modal-footer {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}
.cookie-modal-footer button {
  font-size: 1.01rem;
  border-radius: var(--radius-lg);
  background: var(--color-secondary);
  color: #fff;
  padding: 9px 26px;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal-footer button:hover, .cookie-modal-footer button:focus {
  background: #266453;
}

/* === Utility Classes === */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }

/* === Accessibility & Focus Style === */
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* === Hide visually but keep accessible === */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* === Thank-You Page CTA === */
.thank-you .cta-btn {
  margin-top: 32px;
}

/* === Prevent Content Overlap and Ensure Spacing === */
*[class*="card"] + *[class*="card"],
section + section, .section + .section {
  margin-top: 28px;
}

/* === END CSS === */
