/* 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 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1a2338;
  background: #fff;
  min-height: 100vh;
  font-size: 16px;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
}
a {
  color: #223668;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
a:hover,
a:focus {
  color: #87C544;
}
ul, ol {
  margin-left: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #223668;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
.lead {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
}
strong {
  font-weight: 700;
}
p {
  margin-bottom: 14px;
}
.text-section p,
.text-section ul,
.text-section ol {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* LAYOUT & CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ACCENTED SECTION BACKGROUND */
.accent-bg {
  background: #F6F7F9;
  border-radius: 36px;
}

/* NAVIGATION */
header {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 16px 0 rgba(34,54,104,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 80px;
}
.header .container {
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #223668;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 3px;
  background: #87C544;
  border-radius: 2px;
  transition: width 0.25s;
  position: absolute;
  left: 0;
  bottom: -3px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover {
  color: #87C544;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  background: #87C544;
  color: #223668;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 12px 0 rgba(135,197,68,0.07);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .1s, transform .1s;
  text-transform: uppercase;
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #223668;
  color: #F6F7F9;
  box-shadow: 0 4px 20px 0 rgba(34,54,104,0.16);
  transform: translateY(-2px) scale(1.03);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #F6F7F9;
  color: #223668;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  z-index: 300;
  transition: background .18s, color .18s, transform .2s;
  position: absolute;
  top: 16px;
  right: 22px;
}
.mobile-menu-toggle:active {
  background: #87C544;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(34,54,104,0.93);
  color: #fff;
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  transition: transform .3s cubic-bezier(.7,.3,.3,1.1);
  will-change: transform;
}
.mobile-menu.open {
  display: flex;
  animation: mobileMenuSlideIn 0.38s cubic-bezier(.7,.3,.3,1.1);
}
@keyframes mobileMenuSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes mobileMenuSlideOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 22px 35px 0 0;
  cursor: pointer;
  align-self: flex-end;
  z-index: 1100;
  transition: color .2s;
}
.mobile-menu-close:hover {
  color: #87C544;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-end;
  width: 100%;
  padding: 40px 32px 0 0;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color .16s, background .12s;
  padding: 10px 0 10px 12px;
  border-radius: 6px 0 0 6px;
  text-align: right;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #87C544;
  color: #223668;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 7px;
    font-size: 0.97rem;
  }
  .nav-flex {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .main-nav,
  .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-flex {
    padding-right: 52px;
  }
}

@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* HERO BANNER */
.hero {
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #F6F7F9 70%, #87C544 110%);
  padding: 64px 0 54px 0;
  border-radius: 0 0 44px 44px;
  box-shadow: 0 10px 24px rgba(34,54,104,0.08);
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  color: #223668;
  font-size: 2.7rem;
  margin-bottom: 10px;
}
.hero .lead {
  color: #223668;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero .btn-primary {
  margin-top: 18px;
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 0 20px 0;
    border-radius: 0 0 22px 22px;
  }
}

/* FLEX UTILITY CLASSES */
.card-container, .feature-grid, .service-grid, .course-grid, .testimonial-grid, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(34,54,104,0.07);
  border-radius: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(34,54,104,0.08);
  margin-bottom: 24px;
  min-width: 260px;
  max-width: 390px;
  flex: 1 1 290px;
}
.testimonial-card p {
  color: #223668;
  font-size: 1.06rem;
  font-weight: 500;
}
.testimonial-card strong {
  color: #87C544;
  font-size: 1rem;
  font-weight: 800;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(34,54,104, .07);
  padding: 18px;
  margin-bottom: 20px;
}

/* FEATURES & SERVICES CARDS */
.feature, .service-card, .course-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 14px 0 rgba(135,197,68,0.08), 0 1.5px 6px 0 rgba(34,54,104,0.07);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 320px;
  padding: 26px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow .21s, transform .19s, border .17s;
  margin-bottom: 0;
}
.feature:hover, .service-card:hover, .course-card:hover {
  box-shadow: 0 6px 28px 0 rgba(34,54,104,0.15);
  transform: translateY(-2px) scale(1.03);
}
.feature img, .service-card img, .course-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
}
.feature h3, .service-card h3, .course-card h3 {
  color: #223668;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* LIST FOR SERVICES */
.service-list {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.service-list li {
  background: #fff;
  border-left: 4px solid #87C544;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.1rem;
}

/* CTA BANNER */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #223668;
  color: #F6F7F9;
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 35px 0 40px 0;
  box-shadow: 0 4px 16px 0 rgba(34,54,104,0.14);
}
.cta-banner h2,
.cta-banner p {
  color: #fff;
}
.cta-banner .btn-primary {
  margin-top: 24px;
  background: #87C544;
  color: #223668;
}
.cta-banner .btn-primary:hover {
  background: #fff;
  color: #87C544;
}

/* ABOUT PAGE STYLES */
.about-snippet ul,
.team ul,
.values ul {
  margin-top: 5px;
  margin-left: 20px;
  font-size: 1rem;
  font-weight: 500;
}

/* FAQ SECTION */
.faq-list {
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(34,54,104, .07);
  padding: 18px 18px 12px 20px;
}
.faq-item h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #223668;
}

/* LEGAL / TEXTUAL SECTIONS */
.legal, .confirmation {
  border-radius: 30px;
  background: #F6F7F9;
  padding: 40px 20px;
  margin-bottom: 60px;
}
.legal h1,
.legal h2 {
  color: #223668;
}
.legal ul {
  margin-bottom: 12px;
  margin-left: 22px;
}
.text-section {
  margin-bottom: 15px;
}

/* FOOTER STYLES */
footer {
  background: #223668;
  color: #fff;
  padding: 44px 0 16px 0;
  margin-top: 90px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #87C544;
  font-weight: 700;
  font-size: 1rem;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-contact p, .footer-contact a {
  color: #F6F7F9;
  font-size: 0.98rem;
}

/* MOBILE RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
  }
  .feature-grid, .service-grid, .course-grid, .testimonial-grid {
    gap: 18px;
  }
}
@media (max-width: 820px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature, .service-card, .course-card {
    min-width: 90vw;
    max-width: 99vw;
    padding: 22px 11px;
  }
  .testimonial-card {
    min-width: 80vw;
    max-width: 99vw;
    padding: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .footer-nav {
    flex-direction: row;flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .section, .accent-bg {
    padding: 20px 6px;
    border-radius: 11px;
  }
  .hero {
    padding: 18px 0 12px 0;
    border-radius: 0 0 12px 12px;
  }
  .feature-grid, .service-grid, .course-grid, .testimonial-grid, .content-grid,
  .faq-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonials .container, .content-wrapper {
    padding: 0;
  }
  .testimonial-card {
    max-width: 98vw;
    flex-basis: 100%;
    padding: 15px;
    margin-bottom: 14px;
  }
  .cta-banner {
    flex-direction: column;
    border-radius: 14px;
    text-align: center;
    padding: 24px 6px 26px 6px;
  }
  .footer-contact {
    margin-top: 16px;
  }
  .faq-list {
    gap: 12px;
    margin-bottom: 0;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 3vw;
  }
  .cta-banner {
    border-radius: 7px;
    padding: 17px 2vw 18px 2vw;
    font-size: 1rem;
  }
  .section {
    margin-bottom: 32px;
    padding: 12px 2vw;
    border-radius: 7px;
  }
  .testimonial-card,
  .feature,
  .service-card,
  .course-card {
    min-width: 94vw;
    max-width: 99vw;
    padding: 13px 7px;
    border-radius: 8px;
  }
  input, button, .btn-primary {
    font-size: 1rem;
    padding: 11px 10px;
    border-radius: 7px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #223668;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0 -2px 10px rgba(34,54,104,0.15);
  padding: 24px 14px 24px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  z-index: 2500;
  justify-content: space-between;
  animation: fadeIn 0.7s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #87C544;
  color: #223668;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 18px;
  padding: 12px 19px;
  margin: 0;
  cursor: pointer;
  transition: background .2s, color .2s, transform .13s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #fff;
  color: #223668;
  transform: scale(1.04);
}
.cookie-banner .cookie-settings-btn {
  background: none;
  color: #fff;
  border: 2px solid #87C544;
  margin-left: 10px;
  padding: 12px 18px;
  border-radius: 18px;
  transition: background .18s, color .16s;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #87C544;
  color: #223668;
}
@media (max-width: 780px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    font-size: 0.98rem;
    padding: 22px 6vw 24px 8vw;
  }
  .cookie-banner .cookie-actions {
    gap: 9px;
  }
}

/* COOKIE CONSENT MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2700;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,54,104, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn .3s;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(34,54,104,0.19);
  max-width: 420px;
  width: 94vw;
  padding: 36px 28px 30px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #223668;
  animation: modalIn .3s cubic-bezier(.7,.3,.25,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.90) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #223668;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-modal label {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #223668;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #87C544;
  border-radius: 5px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.cookie-modal .btn {
  background: #87C544;
  color: #223668;
  border: none;
  padding: 10px 19px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .19s, color .13s;
}
.cookie-modal .btn:hover {
  background: #223668;
  color: #F6F7F9;
}
.cookie-modal .close-modal {
  background: none;
  color: #223668;
  border: none;
  font-size: 2em;
  position: absolute;
  right: 22px;
  top: 18px;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal .close-modal:hover {
  color: #87C544;
}

/* INPUT FIELDS (if needed) */
input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #223668;
  padding: 11px 16px;
  background: #fff;
  color: #223668;
  box-shadow: none;
  margin-bottom: 15px;
  outline: none;
  transition: border-color .19s;
}
input:focus, textarea:focus {
  border-color: #87C544;
}

/* Animation helpers */
.fade-in {
  animation: fadeIn .6s ease;
}
.slide-in-up {
  animation: slideInUp .4s cubic-bezier(0.32,1.2,0.48,1) forwards;
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Miscellaneous Spacing & Microinteractions */
.section:not(:last-child) {
  margin-bottom: 60px !important;
}
.feature:not(:last-child),
.service-card:not(:last-child),
.course-card:not(:last-child) {
  margin-right: 0;
}

::-webkit-scrollbar {
  width: 11px;
  background: #F6F7F9;
  border-radius: 11px;
}
::-webkit-scrollbar-thumb {
  background: #d4dbe7;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #87C544;
}

/* Color fallback */
body {
  background: #fff;
  color: #223668;
}

/* Ensure high-contrast testimonial cards */
.testimonials .testimonial-card, .testimonial-card {
  background: #fff;
  color: #223668;
  box-shadow: 0 4px 20px rgba(34,54,104,0.09);
}
.testimonials .testimonial-card strong {
  color: #87C544;
}

/* Prevent accidental overlap, enforce spacing */
.feature-grid, .service-grid, .course-grid, .testimonial-grid, .faq-list {
  margin-bottom: 0;
  gap: 24px !important;
}
.feature, .service-card, .course-card,.testimonial-card,.faq-item {
  margin-bottom: 20px;
}

/* Geometric (modern_bold) accents */
.feature, .service-card, .course-card {
  border-bottom: 6px solid #87C544;
  border-right: 6px solid transparent;
  transition: border 0.18s;
}
.feature:hover {
  border-right: 6px solid #87C544;
}

/* Section overrides for homepage accent sections */
.features, .services-summary, .cta-banner {
  margin-bottom: 60px;
  border-radius: 28px;
}

/* Hamburger fix for higher z-index & click area */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    z-index: 3000;
  }
}
