/* === CSS Reset and 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #F6F5FA;
  color: #1E2036;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
}

/* === Font Imports === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --primary: #0B2243;
  --secondary: #FFB300;
  --accent: #F2F4F6;
  --pastel-blue: #CEDCF6;
  --pastel-yellow: #FFF7CC;
  --pastel-rose: #FDE2E2;
  --pastel-mint: #D4F7DC;
  --pastel-purple: #F3E8FF;
  --heading: 'Montserrat', Arial, Helvetica, sans-serif;
  --body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-soft: 0 2px 12px 0 rgba(46, 61, 84, 0.07);
  --radius: 18px;
}

/* === Layout Utility Classes === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.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: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px 24px;
  min-width: 290px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(46, 61, 84,0.12);
}
.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 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-width: 250px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 2px solid var(--pastel-blue);
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(99, 114, 150, 0.13);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
p, ul, ol, li {
  font-family: var(--body);
  font-size: 1rem;
  color: #232648;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.15rem;
  color: #5666a5;
  margin-bottom: 14px;
  font-family: var(--body);
}
strong { font-weight: 700; }

/* === Header & Navigation === */
header {
  background: linear-gradient(90deg, #FDE2E2 0%, #FFF7CC 100%);
  box-shadow: 0 2px 10px 0 rgba(180, 200, 220, 0.05);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  font-family: var(--heading);
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 7px;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, 
.main-nav a:focus {
  background: var(--pastel-blue);
  color: #1E3399;
  outline: none;
}
.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--heading);
  border: none;
  outline: none;
  padding: 9px 22px;
  border-radius: 10px;
  box-shadow: 0 2px 7px 0 rgba(240, 215, 140, 0.12);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffd679;
  color: var(--primary);
  box-shadow: 0 4px 18px 0 rgba(240, 215, 140, 0.22);
}

/* === Mobile Burger Menu === */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  display: none;
  cursor: pointer;
  margin-left: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus {
  background: var(--pastel-blue);
  outline: none;
}

.mobile-menu {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100%;
  height: 100vh;
  background: linear-gradient(120deg, #FDE2E2 38%, #D4F7DC 100%);
  box-shadow: 0 4px 40px rgba(110,100,80,0.13);
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(.77,.2,.05,1.0);
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 25px 28px 0 0;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-close:focus {
  background: var(--pastel-blue);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 32px 0 46px;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: var(--heading);
  color: var(--primary);
  text-decoration: none;
  padding: 13px 0;
  font-weight: 600;
  transition: color 0.16s, background 0.12s;
  width: 100%;
  border-radius: 7px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: #1E4F85;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .main-nav, .cta-btn {
    font-size: 0.97rem;
    padding: 7px 10px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === Hero Section === */
.hero {
  padding: 64px 0 50px;
  background: linear-gradient(90deg, #CEDCF6 40%, #D4F7DC 100%);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 700;
  text-shadow: 0 2px 10px #F3E8FF77;
}
.hero .subheadline {
  font-size: 1.22rem;
  color: #2b3d78;
  margin-bottom: 26px;
}

/* === Features, Cards and Grids (Index, Courses) === */
.feature-grid,
.course-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature,
.course {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px;
  min-width: 240px;
  flex: 1 0 260px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.16s;
  margin-bottom: 20px;
  border: 2px solid var(--pastel-mint);
}
.feature img {
  width: 44px;
  height: 44px;
  padding: 7px;
  background: var(--pastel-rose);
  border-radius: 12px;
  margin-bottom: 6px;
  box-shadow: 0 2px 5px #FDE2E266;
}
.feature:hover, .course:hover {
  box-shadow: 0 6px 26px 0 rgba(185,165,245,0.16);
  transform: translateY(-2px) scale(1.01);
}
.course .price {
  font-size: 1.07rem;
  color: #6b485c;
  margin-bottom: 11px;
  font-weight: 700;
}

/* === Testimonial Cards === */
.testimonials {
  background: linear-gradient(90deg, #F3E8FF 60%, #FFF7CC 100%);
  padding: 40px 0;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 22px;
}
.star-rating {
  color: #FFD740;
  font-size: 1.28rem;
  letter-spacing: 2px;
  font-family: var(--heading);
  margin-bottom: 6px;
}
.testimonial-meta {
  font-size: .98rem;
  color: #57275d;
  font-family: var(--body);
  margin-top: 5px;
  opacity: 0.95;
}

/* === Call to Action Section === */
.cta {
  background: linear-gradient(100deg, #D4F7DC 30%, #CEDCF6 95%);
  margin-bottom: 0;
}
.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
}

/* === About/Contact Blocks, Maps, Info === */
.about-section, .about-block, .about-blog, .contact-block, .service-details, .customer-list, .values {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 48px;
  padding: 40px 28px;
}
.contact-info, .map-snippet {
  margin-bottom: 18px;
  font-size: 1rem;
  font-family: var(--body);
  color: #303458;
}
.map-snippet {
  background: var(--pastel-blue);
  border-radius: 11px;
  padding: 13px 17px;
  margin-bottom: 20px;
  color: #10596b;
}

/* === Blog Section === */
.blog-list ul {
  margin-left: 18px;
  margin-bottom: 18px;
  line-height: 1.7;
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}
.category-filter li {
  background: var(--pastel-mint);
  color: #13503f;
  font-family: var(--heading);
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 5px #D4F7DC44;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.category-filter li:hover {
  background: #CEDCF6;
  color: var(--primary);
}

/* === Footer === */
footer {
  background: linear-gradient(90deg, #FDE2E2 0%, #D4F7DC 100%);
  padding: 32px 0 10px 0;
  border-top-left-radius: 29px;
  border-top-right-radius: 29px;
  box-shadow: 0 -3px 13px #f3e8ff12;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 7px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--heading);
  font-size: 1rem;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--pastel-blue);
  color: #1E3399;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  color: #696EA5;
  font-size: 1rem;
  margin-top: 7px;
}
.footer-brand img {
  height: 28px;
}

/* === Thank You Page === */
.thankyou-hero {
  background: linear-gradient(100deg, #D4F7DC 40%, #F3E8FF 100%);
  padding: 56px 0 40px;
}
.thankyou-hero h1 {
  color: #437b95;
  text-shadow: 0 2px 8px #a2c7e2a7;
}
.next-steps {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-top: 0;
  margin-bottom: 64px;
  padding: 40px 28px;
}

/* === Lists, Forms, Details === */
ul, ol {
  margin-left: 25px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
/* FAQ Teaser Highlight */
.faq-teaser {
  background: var(--pastel-yellow);
  border-radius: 7px;
  padding: 11px 14px;
  color: #7c5200;
  font-size: 1rem;
  font-family: var(--body);
  margin-top: 14px;
}

/* === Cookie Consent Banner and Modal === */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100%;
  background: linear-gradient(86deg, #FFF7CC 40%, #D4F7DC 100%);
  box-shadow: 0 -4px 25px #FFECCC44;
  padding: 26px 20px 19px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  z-index: 11122;
  border-top-right-radius: 28px;
  border-top-left-radius: 28px;
  transition: transform .26s cubic-bezier(.42,.15,.48,1);
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner-content {
  color: #2b3054;
  font-size: 1rem;
  font-family: var(--body);
}
.cookie-banner-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: var(--heading);
  border: none;
  padding: 8px 19px;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 3px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 7px #FDE2E244;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffd679;
}
.cookie-btn.reject {
  background: var(--pastel-rose);
  color: #7e344e;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffb3b3;
  color: #521e31;
}
.cookie-btn.settings {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--pastel-mint);
  color: #307274;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(28, 34, 67, 0.22);
  z-index: 11123;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 8px 40px #CEDCF677;
  padding: 38px 32px 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  animation: modalIn .33s cubic-bezier(.66,.07,.53,.89);
}
@keyframes modalIn {
  0% { transform: scale(.92) translateY(60px); opacity:0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-modal input[type="checkbox"] {
  width: 23px;
  height: 23px;
  accent-color: var(--secondary);
}
.cookie-modal .cookie-category label {
  font-family: var(--body);
  font-size: 1rem;
  color: #33395c;
  cursor: pointer;
}
.cookie-modal .category-desc {
  font-size: .98rem;
  opacity: .78;
  margin-left: 38px;
  margin-bottom: 7px;
  color: #777399;
}
.cookie-modal-btns {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #303958;
  position: absolute;
  top: 14px; right: 15px;
  cursor: pointer;
  border-radius: 7px;
  padding: 3px 7px;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--pastel-blue);
}

/* === Responsive Design === */
@media (max-width: 1100px) {
 .container { max-width: 96vw; }
}
@media (max-width: 950px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
  .feature, .course {
    min-width: 210px;
    padding: 22px 12px;
  }
}
@media (max-width: 800px) {
  .card,
  .testimonial-card,
  .about-section, .about-block, .about-blog, .contact-block, .service-details, .customer-list, .values,
  .next-steps {
    padding: 24px 11px;
  }
  .hero {
    padding: 38px 0 26px;
  }
}
@media (max-width: 700px) {
  .content-wrapper { gap: 19px; }
  .feature-grid, .course-list-grid, .testimonial-grid { gap: 16px; }
  .about-section, .about-block, .about-blog, .contact-block, .service-details, .customer-list, .values, .next-steps {
    padding: 13px 5px;
    min-width: unset;
  }
  .footer-brand img { height: 23px; }
  footer { padding: 18px 0 8px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 8px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.08rem; }
  .main-nav { display: none; }
  .mobile-menu-toggle {
    font-size: 2rem;
    padding: 2px 3px;
  }
  .footer-brand { gap: 6px; font-size: .95rem; }
  .feature-grid, .course-list-grid, .testimonial-grid, .about-block, .customer-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .feature, .course, .testimonial-card, .about-block, .card {
    min-width: 90vw;
    max-width: 98vw;
  }
  .cta .container, .cta .content-wrapper { align-items: stretch; }
  .footer-nav {
    flex-direction: column;
    padding-left: 0;
    gap: 5px;
    align-items: center;
  }
}
@media (max-width: 468px) {
  .cookie-modal {
    padding: 20px 4vw 19px 4vw;
    min-width: unset;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 14px; }
}

/* === Microinteractions / Button States === */
button, .cta-btn, .cookie-btn, .main-nav a, .mobile-nav a {
  transition: background 0.17s, color 0.15s, box-shadow 0.11s, transform 0.11s;
}
button:active, .cta-btn:active, .cookie-btn:active{
  transform: scale(0.98);
}
a:focus { outline: 2px solid #98C7F2; outline-offset: 2px; }

/* === Accessibility === */
::-webkit-input-placeholder { color: #aaa; }
:-moz-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }

/* == Hide Scrollbar in Mobile Menu == */
.mobile-menu::-webkit-scrollbar {width: 0; background: transparent;}

/* === Prevent Overlapping & Z-index Management === */
main, footer, .cookie-banner, .cookie-modal-overlay {
  z-index: 1;
  position: relative;
}

/* === Misc Classes for Spacing and Helper === */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mb-2 { margin-bottom: 2px !important; }
.mt-4 { margin-top: 4px !important; }
.mb-4 { margin-bottom: 4px !important; }
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }

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