/* ======================
   CSS RESET & BASE STYLES
   ====================== */
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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F8F9F4;
  color: #173D67;
  min-height: 100vh;
  line-height: 1.7;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
a {
  color: #27B278;
  text-decoration: none;
  transition: color 0.23s;
}
a:hover, a:focus {
  color: #173D67;
  text-decoration: underline;
}
ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  padding: 0 20px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* =====================
   BASIC TYPOGRAPHY
   ===================== */
h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #173D67;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #27B278;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: #173D67;
}
p, ul li {
  font-size: 1rem;
  color: #173D67;
}
strong {
  font-weight: 700;
}

/* =====================
   SPACING & UTILITIES
   ===================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 28px;
}
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  width: 100%;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px 0 rgba(23,61,103,0.09);
  padding: 32px 25px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: transform 0.22s, box-shadow 0.24s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(39,178,120,0.19);
  z-index: 1;
}
.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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 22px rgba(23,61,103,0.09);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
  flex-wrap: wrap;
  min-width: 260px;
}
.testimonial-card blockquote {
  color: #222;
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-style: italic;
  border-left: 5px solid #27B278;
  margin-right: 18px;
  padding-left: 18px;
  line-height: 1.6;
}
.testimonial-card strong {
  color: #27B278;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px rgba(23,61,103,0.19);
}

/* =====================
   HEADERS & NAVIGATION
   ===================== */
header {
  background: #fff;
  width: 100%;
  box-shadow: 0 3px 15px 0 rgba(23,61,103,0.15);
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 17px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #173D67;
  padding: 4px 12px 6px 12px;
  border-radius: 8px;
  transition: background 0.16s, color 0.22s;
}
header nav a:hover, header nav a:focus {
  background: #27B278;
  color: #fff;
}
.btn-primary {
  display: inline-block;
  background: #27B278;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 25px;
  padding: 11px 32px;
  box-shadow: 0 4px 18px rgba(39,178,120,0.17);
  cursor: pointer;
  outline: none;
  transition: background 0.23s, transform 0.17s;
  margin-left: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #173D67;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: #27B278;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.24s, box-shadow 0.21s;
  min-width: 42px;
  min-height: 42px;
  box-shadow: 0 2px 9px 0 rgba(39,178,120,0.13);
  z-index: 201;
}
.mobile-menu-toggle:active {
  background: #173D67;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }
  header nav,
  header .btn-primary {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-100vw);
  transition: transform 0.43s cubic-bezier(.79,.14,.15,.86);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 4px 0 22px 0 rgba(23,61,103,0.11);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #27B278;
  border: none;
  font-size: 2.6rem;
  padding: 18px 24px 2px 24px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.21s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #173D67;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin: 40px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.23rem;
  font-weight: 600;
  padding: 13px 0 13px 0;
  color: #173D67;
  width: 100%;
  border-radius: 6px;
  transition: background 0.17s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #27B278;
  color: #fff;
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    row-gap: 18px;
  }
  .hero h1 { font-size: 1.42rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  .section {
    margin-bottom: 30px;
    padding: 22px 6px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* =====================
   HERO SECTIONS
   ===================== */
.hero {
  width: 100%;
  background: #27B278;
  background-image: linear-gradient(90deg, #27B278 0%, #29C2E4 100%);
  /* fallback in case no CSS custom props are available */
  color: #fff;
  padding: 64px 0 38px 0;
  margin-bottom: 0;
}
.hero h1, .hero h2, .hero p {
  color: #fff;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
  text-shadow: 1px 3px 18px rgba(23,61,103,0.13);
}
.hero p {
  font-size: 1.17rem;
  margin-bottom: 26px;
}
.hero .btn-primary {
  background: #fff;
  color: #27B278;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: #173D67;
  color: #fff;
}
@media (max-width: 768px) {
  .hero {
    padding: 30px 0 14px 0;
  }
  .hero h1 { font-size: 1.28rem; }
}

/* =====================
   FEATURES / COURSES
   ===================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 17px 0 rgba(23,61,103,0.11);
  padding: 26px 25px 28px 25px;
  min-width: 220px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.19s, transform 0.19s;
  margin-bottom: 12px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px 0 rgba(39,178,120,0.19);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid h3 {
  color: #27B278;
  font-size: 1.22rem;
  margin-bottom: 9px;
  margin-top: 12px;
}
.feature-grid img {
  width: 48px;
  height: 48px;
}

/* =====================
   CTA & ACTIONS
   ===================== */
.cta-section, .cta {
  background: #173D67;
  color: #fff !important;
  border-radius: 18px;
  box-shadow: 0 5px 24px 0 rgba(23,61,103,0.13);
  padding: 32px 25px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 17px;
}
.cta-section h2,.cta h2 { color: #fff; }
.cta-section .btn-primary,
.cta .btn-primary {
  background: #27B278;
  color: #fff;
  font-size: 1.1rem;
}
.cta-section .btn-primary:hover, .cta .btn-primary:hover {
  background: #fff;
  color: #27B278;
}

/* =====================
   FOOTER
   ===================== */
footer {
  width: 100%;
  background: #173D67;
  color: #fff;
  margin-top: 50px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -5px 25px 0 rgba(23,61,103,0.12);
  padding: 48px 0 20px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-direction: column;
}
footer nav a {
  color: #27B278;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.footer-logo img {
  width: 70px;
  height: auto;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 8px;
  }
  .footer-logo img { margin-top: 12px; }
}

/* =====================
   LISTS (ABOUT, BLOG...)
   ===================== */
.content-wrapper ul {
  padding-left: 18px;
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: #173D67;
}
.content-wrapper ul li {
  position: relative;
  padding-left: 15px;
}
.content-wrapper ul li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #27B278;
  border-radius: 50%;
}

/* =====================
   VIBRANT DECOR SHAPES (decorative only)
 ===================== */
.hero::after {
  content: '';
  display: block;
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: 38px;
  background: #F8F9F4;
  border-bottom-left-radius: 55% 90%;
  border-bottom-right-radius: 60% 60%;
  z-index: 1;
  pointer-events: none;
}
.hero { position: relative; z-index: 3; }

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #173D67;
  color: #fff;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 500;
  box-shadow: 0 -2px 16px rgba(23,61,103,0.14);
  gap: 14px;
  animation: fadeInBanner 0.7s cubic-bezier(.29,.54,.22,1.25);
}
@keyframes fadeInBanner {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.19s;
}
.cookie-btn-accept {
  background: #27B278;
  color: #fff;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #22a46a;
}
.cookie-btn-reject {
  background: #fff;
  color: #173D67;
  border: 1px solid #173D67;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #173D67;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn-settings {
  background: #29C2E4;
  color: #fff;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #27B278;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 12px 6px;
    font-size: 0.97rem;
  }
  .cookie-consent-banner .cookie-buttons {
    gap: 7px;
  }
}

/* =====================
   COOKIE MODAL
   ===================== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 600;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,61,103,0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.35s;
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #173D67;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(23,61,103,0.19);
  max-width: 400px;
  width: 93vw;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 { color: #27B278; margin-bottom: 10px; font-size: 1.3rem; }
.cookie-prefs-list { display: flex; flex-direction: column; gap: 18px; }
.cookie-pref-row { display: flex; align-items: center; justify-content: space-between; }
.cookie-pref-row label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
.cookie-pref-toggle {
  width: 45px; height: 24px;
  background: #F8F9F4;
  border-radius: 14px;
  border: 1px solid #c0c5d2;
  position: relative;
  margin-left: 10px;
  display: inline-block;
  transition: background 0.22s, border 0.21s;
}
.cookie-pref-toggle[aria-checked="true"] {
  background: #27B278;
  border: 1px solid #27B278;
}
.cookie-pref-toggle span {
  display: block;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px; left: 2px;
  transition: left 0.18s;
}
.cookie-pref-toggle[aria-checked="true"] span {
  left: 22px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 16px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 19px;
  box-shadow: none;
}
.cookie-modal-close {
  position: absolute;
  top: 9px; right: 15px;
  background: none;
  color: #27B278;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover { color: #173D67; }

/* =====================
   RESPONSIVE LAYOUT
   ===================== */
@media (max-width: 991px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .cta-section, .cta {
    padding: 14px 7px;
    font-size: 0.97rem;
    border-radius: 10px;
  }
}

/* =====================
   FORMS & BUTTONS
   ===================== */
input, textarea, button, select {
  font-family: inherit;
  font-size: 1em;
}
button:focus, .btn-primary:focus {
  outline: 2px solid #27B278;
  outline-offset: 2px;
}

/* =====================
   ANIMATIONS & INTERACTIONS
   ===================== */
.card, .feature-grid > div, .btn-primary, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.19s, background 0.17s, color 0.17s;
}

/* =====================
   Misc Spacing
   ===================== */
main {
  min-height: 60vh;
  width: 100%;
  padding-bottom: 48px;
}

/* Ensure minimum 20px between section cards */
.section + .section,
.content-wrapper > .testimonial-card + .testimonial-card,
.feature-grid > div + div {
  margin-top: 20px;
}
/* Responsive margins for testimonials */
@media (max-width: 600px) {
  .testimonial-card {
    margin-bottom: 14px;
    padding: 13px 6px;
    font-size: 1rem;
  }
}

/* =====================
   SPECIAL: ACCESSIBILITY HIGH CONTRAST
   ===================== */
.testimonial-card, .testimonial-card blockquote, .testimonial-card strong {
  color: #222;
}

/* ===============
   PRINT SUPPORT
   =============== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
}
  