/* ====== CSS RESET & NORMALIZE ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #223162;
  background: #FCFCFC;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #0F8C58;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #F7CB5E;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
  padding-left: 0;
}
li {
  margin-bottom: 12px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  /* To keep content centered and readable on big screens */
}

/* ====== BRAND & TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: #223162;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.12;
  margin-bottom: 22px;
}
h2 {
  font-size: 2rem;
  color: #0F8C58;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  color: #223162;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, .author, .rating, span, strong, em {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #223162;
}
.author {
  font-weight: 700;
  color: #223162;
}
.rating {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #F7CB5E;
  font-weight: bold;
}
strong {
  font-weight: 800;
  color: #0F8C58;
}
em {
  color: #0F8C58;
}

/* ====== LAYOUT: FLEXBOX PATTERNS ====== */
.card-container, .feature-grid, .testimonial-slider, .testimonial-list, .course-grid, .latest-posts, .footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-grid, .calendar-overview, .confirmation-message, .next-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.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;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(15,140,88,.08), 0 6px 32px 0 rgba(247,203,94,.05);
  padding: 28px 26px;
  flex: 1 1 220px;
  min-width: 240px;
  max-width: 300px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover {
  box-shadow: 0 2px 24px 0 rgba(15,140,88,.18), 0 16px 32px 0 rgba(247,203,94,.2);
  transform: translateY(-3px) scale(1.03);
}
.card {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px 0 rgba(34,49,98, .07), 0 6px 20px 0 rgba(247,203,94,.06);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 300px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FAFAFA;
  border-radius: 18px;
  border-left: 8px solid #0F8C58;
  box-shadow: 0 4px 24px 0 rgba(34,49,98,.13);
  padding: 20px 28px 20px 28px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 430px;
  transition: 0.17s box-shadow, 0.16s border-color;
  color: #223162;
}
.testimonial-card.highlighted {
  background: #FFF6DD;
  border-color: #F7CB5E;
  box-shadow: 0 2px 20px 0 rgba(247,203,94,.20);
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(15,140,88,.18), 0 24px 32px 0 rgba(247,203,94,.13);
  border-color: #0F8C58;
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: #223162;
  width: 100%;
  margin-bottom: 0;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
header img {
  height: 40px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 0; /* for touch areas */
  transition: color 0.18s, background 0.18s;
  border-radius: 5px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F7CB5E;
  background: rgba(15,140,88,0.11);
}
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background .16s, box-shadow .23s, color .17s;
  box-shadow: 0 2px 16px 0 rgba(15,140,88,.10);
  margin-left: 14px;
}
.button-primary {
  background: linear-gradient(90deg,#0F8C58 0,#F7CB5E 100%);
  background: #0F8C58;
  color: #FFF;
  letter-spacing: .05em;
}
.button-primary:hover, .button-primary:focus {
  background: #223162;
  color: #F7CB5E;
  box-shadow: 0 8px 20px 0 rgba(34,49,98,.18);
}
.button-secondary {
  background: #F7CB5E;
  color: #223162;
  font-weight: 800;
}
.button-secondary:hover, .button-secondary:focus {
  background: #0F8C58;
  color: #FFF;
  box-shadow: 0 8px 20px 0 rgba(34,49,98,.14);
}

/* ====== MOBILE BURGER MENU ====== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #F7CB5E;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  z-index: 1102;
  margin-left: 16px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,49,98,0.98);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.83,0,.22,1);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 52px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F7CB5E;
  font-size: 2.15rem;
  align-self: flex-end;
  margin-right: 18px;
  cursor: pointer;
  margin-bottom: 24px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  padding: 16px 0;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  transition: background .14s, color .18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: #F7CB5E;
  background: rgba(247,203,94, 0.10);
}

/* Hide main nav and show burger on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* ====== HERO, CARDS, FEATURES, STEPS ====== */
.course-grid, .steps-diagram, .filters, .ratings-overview, .pricing-overview, .certificate-info, .important-dates, .signup-links, .faq-preview, .confirmation-message, .next-steps {
  margin-top: 32px;
}
.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.course-card {
  background: #FFF6DD;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(247,203,94,.13);
  padding: 26px 24px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  max-width: 340px;
  transition: box-shadow 0.15s, transform 0.19s;
}
.course-card:hover {
  box-shadow: 0 8px 32px 0 rgba(34,49,98,0.10);
  transform: scale(1.025);
}
.steps-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.steps-diagram > div {
  background: #E8F8F3;
  border-radius: 16px;
  padding: 22px 18px;
  min-width: 180px;
  flex: 1 1 200px;
  box-shadow: 0 2px 12px 0 rgba(15,140,88,.08);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.steps-diagram > div:hover {
  box-shadow: 0 4px 24px 0 rgba(15,140,88,.17);
  transform: translateY(-2.5px) scale(1.025);
}
.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.filter-tag {
  background: #0F8C58;
  color: #FFF;
  border-radius: 13px;
  padding: 5px 14px;
  margin-right: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.filter-tag:hover, .filter-tag.active {
  background: #F7CB5E;
  color: #0F8C58;
}

/* ====== BLOG ====== */
.latest-posts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-post {
  border-radius: 20px;
  background: #FFF;
  box-shadow: 0 2px 16px 0 rgba(34,49,98, .08);
  padding: 24px 22px;
  flex: 1 1 300px;
  min-width: 230px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.blog-post:hover {
  box-shadow: 0 4px 24px 0 rgba(15,140,88,.14);
  transform: translateY(-3px) scale(1.03);
}
.categories-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.categories-nav a {
  background: #E8F8F3;
  padding: 6px 18px;
  border-radius: 13px;
  color: #0F8C58;
  font-weight: 700;
  transition: background 0.13s, color 0.13s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.categories-nav a:hover, .categories-nav a:focus {
  background: #0F8C58;
  color: #FFF;
}
.featured-article {
  background: #FFF6DD;
  border-radius: 18px;
  padding: 28px 28px;
  margin-top: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 16px 0 rgba(247,203,94,.13);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ====== TESTIMONIALS ====== */
.testimonial-slider,.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.star-ratings, .ratings-overview {
  margin-top: 16px;
  font-weight: 800;
  color: #0F8C58;
  font-size: 1.14rem;
}

/* ====== CALENDAR/SCHEDULE ====== */
.calendar-overview ul,
.upcoming ul {
  list-style: disc inside;
}
.calendar-overview ul li,
.upcoming ul li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.upcoming {
  margin: 24px 0;
}
.signup-links {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ====== CONTACT ====== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-details img {
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.contact-details p {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}
.google-map {
  background: #FAFAFA;
  border-radius: 15px;
  padding: 18px 16px;
  margin: 24px 0;
  font-size: .98rem;
  color: #223162;
}
.faq-preview ul {
  list-style: disc inside;
}
.faq-preview li {
  margin-bottom: 12px;
}
.faq-preview h3 {
  color: #F7CB5E;
}

/* ====== FOOTER ====== */
footer {
  background: #223162;
  color: #FFF;
  padding-top: 32px;
  padding-bottom: 20px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 42px;
  justify-content: space-between;
  padding-bottom: 15px;
}
.footer-main a img {
  height: 38px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #F7CB5E;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #0F8C58;
}
.footer-contact {
  color: #FFF;
  font-size: 1rem;
  line-height: 1.8;
}
.footer-contact a {
  color: #F7CB5E;
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  font-size: .95rem;
  color: #F7CB5E;
  opacity: .88;
  letter-spacing: 0.02em;
}

/* ====== COOKIE BANNER & MODAL ====== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #223162;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1200;
  padding: 22px 30px 19px 30px;
  box-shadow: 0 -4px 24px 0 rgba(34,49,98,.19);
  font-size: 1rem;
  animation: cb_slidein 0.45s cubic-bezier(.64, .27, .12, 1) forwards;
}
@keyframes cb_slidein {
  from { transform: translateY(150%); }
  to   { transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn,
.cookie-modal .cookie-btn {
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-btn.accept {
  background: #0F8C58;
  color: #FFF;
}
.cookie-btn.accept:hover {
  background: #F7CB5E;
  color: #223162;
}
.cookie-btn.reject {
  background: #F7CB5E;
  color: #0F8C58;
}
.cookie-btn.reject:hover {
  background: #0F8C58;
  color: #FFF;
}
.cookie-btn.settings {
  background: #c0e7d3;
  color: #223162;
}
.cookie-btn.settings:hover {
  background: #0F8C58;
  color: #FFF;
}
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,49,98, 0.84);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cb_modalin 0.34s cubic-bezier(.65, .13, .13, 1.01);
}
@keyframes cb_modalin {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF;
  color: #223162;
  border-radius: 18px;
  min-width: 320px;
  max-width: 95vw;
  padding: 32px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  box-shadow: 0 16px 64px 0 rgba(34,49,98,0.17);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 12px;
  border-radius: 14px;
  background: #FAFAFA;
}
.cookie-category input[type="checkbox"] {
  accent-color: #0F8C58;
  width: 22px;
  height: 22px;
  margin-left: 10px;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #F7CB5E;
}
.cookie-close-btn {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: none;
  color: #0F8C58;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
}

/* ====== VISUAL ELEMENTS & MICRO-INTERACTIONS ====== */
img, .feature-item img, .course-card img, .testimonial-card img {
  display: inline-block;
  border-radius: 12px;
  box-shadow: 0 1.5px 10px 0 rgba(34,49,98, .05);
  margin-bottom: 14px;
}
.card, .card-content, .course-card, .feature-item, .testimonial-card, .blog-post, .featured-article {
  transition: box-shadow 0.25s, transform 0.23s;
}
section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 40px 0 rgba(15,140,88,.06);
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  section {
    padding: 22px 7px;
    margin-bottom: 38px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    padding: 0 2px;
  }
}

.card, .course-card, .blog-post, .feature-item, .testimonial-card, .featured-article {
  margin-bottom: 22px;
}
.button-primary, .button-secondary, .cookie-btn {
  transition: background .17s, color .15s, box-shadow .21s, transform 0.12s;
}
.button-primary:active, .button-secondary:active, .cookie-btn:active {
  transform: scale(0.98)
}

/* ====== RESPONSIVE FLEX & MOBILE-FIRST ADJUSTMENTS ====== */
@media (max-width: 1024px) {
  .feature-grid, .testimonial-slider, .testimonial-list, .course-grid, .latest-posts, .footer-main {
    gap: 16px;
  }
}
@media (max-width: 850px) {
  .feature-grid, .testimonial-slider, .testimonial-list, .course-grid, .footer-main, .latest-posts {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-main {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .testimonial-slider, .testimonial-list, .course-grid, .latest-posts, .footer-main {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .content-grid, .calendar-overview, .confirmation-message, .next-steps {
    flex-direction: column;
    gap: 14px;
  }
  .card, .course-card, .feature-item, .blog-post, .testimonial-card, .featured-article {
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-contact {
    font-size: .97rem;
    line-height: 1.6;
  }
  header .container {
    height: 59px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 7px 10px 7px;
    font-size: 0.98rem;
  }
}
@media (max-width: 420px) {
  .certificate-info, .important-dates, .pricing-overview, .cookie-modal-content,
  .faq-preview, .confirmation-message, .next-steps {
    padding: 10px 2.5vw !important;
    font-size: .98rem;
  }
}

/* ====== MISC LINE & VISIBILITY ====== */
hr {
  border: none;
  height: 2px;
  background: #E8F8F3;
  margin: 30px 0;
}
::-webkit-scrollbar {
  width: 12px;
  background: #E8F8F3;
}
::-webkit-scrollbar-thumb {
  background: #0F8C58;
  border-radius: 10px;
}

/* ====== OVERRIDES FOR DARK TESTIMONIALS ACCENT ====== */
.testimonial-card, .testimonial-card * {
  color: #223162 !important;
  background: inherit;
}
.testimonial-card.highlighted, .testimonial-card.highlighted * {
  color: #223162 !important;
}

/* ====== PRINT ADJUSTMENTS ====== */
@media print {
  header, footer, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  section, .container, .content-wrapper {
    box-shadow: none !important;
    background: #FFF !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
