/* ================================================================
   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;
}
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F4F6FB;
  color: #20232e;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a, button {
  color: inherit;
  text-decoration: none;
  background: transparent;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  border: none;
  background: none;
  padding: 0;
}

/* Main container for alignment */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

/* ================================================================
   TYPOGRAPHY
================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-bottom: 18px;
  font-weight: 700;
  color: #283593;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.2rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 1.7rem; margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; color: #1a237e; }
h4 { font-size: 1rem; margin-bottom: 10px; }
h5, h6 { font-size: .9rem; margin-bottom: 8px; }

p, li, a, span, label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #263154;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: #283593;
}

/* TEXT SECTION */
.text-section {
  margin-bottom: 32px;
}

/* ================================================================
   HEADER & NAVIGATION (DESKTOP)
================================================================ */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(40,53,147,0.06);
  position: sticky;
  top: 0; z-index: 900;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 0 0 4px;
  gap: 22px;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
nav ul li {
  margin: 0;
}
nav ul li a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 13px;
  border-radius: 6px;
  color: #2e4057;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.1px;
  position: relative;
}
nav ul li a:hover, nav ul li a:focus {
  background: #e3eafc;
  color: #283593;
}
nav > a > img {
  height: 44px;
  vertical-align: middle;
  margin-right: 7px;
}
nav .btn-primary {
  margin-left: 14px;
}

/* MOBILE MENU TOGGLE (burger) */
.mobile-menu-toggle {
  font-size: 2.1rem;
  background: none;
  display: none;
  border: none;
  color: #283593;
  margin-left: 10px;
  border-radius: 6px;
  padding: 2px 11px 0 11px;
  transition: background 0.18s;
  z-index: 1201;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e3eafc;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,53,147,0.98);
  transform: translateX(-110vw);
  transition: transform 0.37s cubic-bezier(0.55,0,0.45,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: transparent;
  color: #fff;
  align-self: flex-end;
  margin: 23px 28px 0 0;
  border-radius: 7px;
  transition: background 0.13s;
  z-index: 1203;
  padding: 4px 13px 1px 13px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #1a237e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 32px;
  margin-top: 55px;
  width: 85%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.11);
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #fffeae;
  background: none;
}

/* Show/hide menu on mobile */
@media (max-width: 1050px) {
  nav ul {
    display: none;
  }
  nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

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

/* HEADER NAV LAYOUT for <1050px to help spacing */
@media (max-width: 1050px) {
  header nav {
    justify-content: flex-start;
    gap: 16px;
  }
}

/* ===================================================================
   SECTIONS & LAYOUTS
==================================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 7px rgba(40, 53, 147, 0.05);
}

/* Remove background for hero/CTA sections that don't need card feel */
.section.hero, .section.cta {
  background: none;
  box-shadow: none;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 -10px; /* gives spacing with children cards */
}

.card-container {  /* For courses or resources if cards are used */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 13px;
  padding: 22px 20px;
  box-shadow: 0 1px 8px rgba(40, 53, 147, 0.04);
  transition: box-shadow 0.17s, border 0.13s;
  border: 1px solid #e3eafc;
  min-width: 250px;
  max-width: 340px;
  flex: 1 1 250px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px rgba(40, 53, 147, 0.13);
  border: 1.5px solid #283593;
  z-index: 3;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f0f4ff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(40, 53, 147, 0.06);
  border: 1px solid #dbeafe;
  color: #24324e;
  max-width: 570px;
  transition: box-shadow 0.15s;
}
.testimonial-card p, .testimonial-card blockquote p {
  color: #151b26;
  font-size: 1.08rem;
  margin-bottom: 12px;
}
.testimonial-card span, .testimonial-card blockquote footer {
  color: #00897B;
  font-style: italic;
  font-size: 0.98rem;
  margin-top: 2px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px rgba(40,53,147,0.10);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f6faff;
  padding: 20px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.cta-banner, .cta-box, .subscription-box, .confirmation-message {
  background: #283593;
  border-radius: 16px;
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #fffde7;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px rgba(40,53,147,0.13);
}
.cta-banner h2, .cta-box h2, .subscription-box h2, .confirmation-message h1 {
  color: #fffde7;
}

.confirmation-message a {
  margin-top: 16px;
}

/* Lists inside cards/sections */
ul, ol {
  padding-left: 0;
}
li {
  margin-bottom: 14px;
  line-height: 1.7;
}

/* Icons within list items (contact, features) */
li img {
  vertical-align: middle;
  width: 21px;
  margin-right: 8px;
  opacity: 0.88;
}

/* Grid/Wrap overrides for desktop */
@media (min-width: 769px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
  }
  .text-image-section {
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 16px;
    margin: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Cards stack vertically on mobile */
@media (max-width: 600px) {
  .card-container, .card-grid, .card {
    flex-direction: column;
    width: 100%;
    min-width: unset;
    max-width: 100%;
    margin-bottom: 14px;
  }
}

/* SECTION background accent */
.section-accent {
  background: #f3fcfb;
}


/* ================================================================
   BUTTONS
================================================================ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 11px 27px;
  border-radius: 7px;
  border: none;
  text-align: center;
  cursor: pointer;
  min-width: 140px;
  margin-top: 7px;
  transition: background 0.17s, color 0.13s, box-shadow 0.23s;
  box-shadow: 0 1px 6px rgba(40,53,147,0.09);
}
.btn-primary {
  background: #283593;
  color: #fffde7;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1a237e;
  color: #fffeae;
  box-shadow: 0 3px 15px rgba(0,0,0,0.10);
}

.btn-secondary {
  background: #00897B;
  color: #fffde7;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #00695c;
  color: #fffde7;
  box-shadow: 0 3px 13px rgba(24, 105, 92,0.10);
}

a.btn-primary, a.btn-secondary {
  text-decoration: none;
}


/* ================================================================
   FOOTER
================================================================ */
footer {
  background: #20223c;
  color: #e7eaf3;
  font-size: 0.97rem;
  border-top: 3px solid #283593;
  margin-top: 60px;
  padding-top: 33px;
  padding-bottom: 30px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: #b8ccf6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 5px;
  transition: background 0.12s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #283593;
  color: #fff;
}
.brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.brand-info img {
  height: 38px;
  margin-bottom: 4px;
}
.brand-info p {
  color: #dbe2f5;
  font-size: 1.02rem;
  margin-bottom: 5px;
}
.brand-info ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-info ul li {
  color: #b1c3e6;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.brand-info ul li img {
  width: 17px;
}

@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* ================================================================
   COOKIE CONSENT BANNER + COOKIE MODAL
================================================================ */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #283593;
  color: #fffde7;
  z-index: 2200;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px 12px 18px 12px;
  box-shadow: 0 -2px 18px rgba(40,53,147,0.10);
  font-size: 1rem;
  gap: 22px;
  transition: transform 0.28s, opacity 0.2s;
}
#cookie-banner.hide, .cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-btns, .cookie-banner .cookie-btns {
  display: flex;
  gap: 13px;
}
#cookie-banner button, .cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: 0 1px 6px rgba(40,53,147,0.08);
  transition: background 0.15s, color 0.10s;
}
#cookie-banner .accept, .cookie-banner .accept {
  background: #00897B; color: #fffde7;
}
#cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #00695c;
}
#cookie-banner .reject, .cookie-banner .reject {
  background: #fffde7; color: #283593; border: 1.3px solid #283593;
}
#cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e0e0ea; color: #1a237e;
}
#cookie-banner .settings, .cookie-banner .settings {
  background: #fffde7; color: #00897B; border: 1.3px solid #00897B;
}
#cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #c1f2f0; color: #00695c;
}

/* Cookie Modal Popup */
#cookie-modal, .cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(18, 21, 34, 0.77);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2202;
  transition: opacity 0.25s;
}
#cookie-modal.open, .cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  color: #2b3257;
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(33,38,67,.17);
  max-width: 440px;
  width: 100%;
  padding: 38px 30px 25px 30px;
  position: relative;
  z-index: 2230;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: fadeInModal 0.45s cubic-bezier(.36,1.01,.32,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(60px) scale(0.98);} 
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  color: #283593;
  margin-bottom: 8px;
}
.cookie-option {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  gap: 11px;
}
.cookie-option label {
  font-size: 1rem;
  cursor: pointer;
  margin-left: 5px;
}
.cookie-toggle {
  appearance: none;
  width: 34px; height: 19px;
  background: #e0e3f8;
  border-radius: 14px;
  position: relative;
  outline: none;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-toggle:checked {
  background: #00897B;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.2s;
}
.cookie-toggle:checked:before {
  left: 17px;
}

.essential-cookie {
  color: #888;
  font-size: 0.98rem;
  margin-left: 15px;
}
.cookie-modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-btns button {
  border-radius: 6px;
  font-size: 1rem;
  padding: 9px 28px;
}

#cookie-modal .close-modal, .cookie-modal .close-modal {
  position: absolute;
  right: 22px;
  top: 17px;
  background: transparent;
  font-size: 1.28rem;
  color: #283593;
  border-radius: 5px;
  padding: 2px 11px;
  z-index: 45;
}
#cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #f5f8ff;
}

@media (max-width: 520px) {
  .cookie-modal-content {
    padding: 27px 8vw 19px 8vw;
    min-width: 0;
    font-size: 0.97rem;
  }
}

/* Cookie banner mobile font */
@media (max-width: 430px) {
  #cookie-banner, .cookie-banner {
    font-size: 0.92rem;
    flex-direction: column;
    gap: 11px;
    padding: 16px 8px 14px 8px;
  }
  #cookie-banner .cookie-btns, .cookie-banner .cookie-btns {
    flex-direction: column;
    gap: 7px;
    width: 100%;
    align-items: center;
  }
}

/* ================================================================
   UTILITY, ANIMATIONS & MISCELLANEOUS
================================================================ */

/* Spacing utility classes */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.pt-2 { padding-top: 16px !important; }

/* Card shadow hover micro-interaction */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.15s, border 0.12s, background 0.11s;
}

/* Simple fade-in animation for sections/pages */
.fadein {
  animation: fade-in 0.8s cubic-bezier(0.32,1.09,0.48,1) both;
}
@keyframes fade-in {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Link styles for text content */
a:not([class^="btn-"]):not(.btn-primary):not(.btn-secondary) {
  color: #283593;
  text-decoration: underline;
  transition: color 0.14s;
}
a:not([class^="btn-"]):not(.btn-primary):not(.btn-secondary):hover, a:not([class^="btn-"]):not(.btn-primary):not(.btn-secondary):focus {
  color: #00897B;
  text-decoration: none;
}

/* Blockquote testimonial style for full-page testimonials */
blockquote {
  color: #20232e;
  font-size: 1.10rem;
  border-left: 5px solid #283593;
  padding-left: 22px;
  font-style: italic;
  margin: 0 0 8px 0;
}
blockquote footer {
  font-style: normal;
  color: #00897B;
  margin-top: 2px;
}

/* Responsive typography scaling */
@media (max-width: 600px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1rem; }
  body, p, li { font-size: 0.97rem; }
  nav > a > img, .brand-info img { height: 30px; }
}

/* Hide scroll on body when mobile menu/modal open */
body.menu-open {
  overflow: hidden !important;
  position: relative;
  height: 100vh;
}

/* Section layouts for multi-card or grid lists */
.card-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

/* Subscription-box for resources page */
.subscription-box {
  width: 100%;
  max-width: 480px;
  background: #283593;
  margin: 37px auto 0 auto;
  color: #fffde7;
  padding: 26px 17px 30px 17px;
  border-radius: 14px;
  align-items: center;
}

/* Lists inside cards/sections: bullet symbol and indentation */
ul li::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: #00897B;
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
}
nav ul li::before, .mobile-nav a::before, .footer-menu a::before {
  /* Remove bullet in nav/footers */
  display: none !important;
}

/* Clean up section padding on mobile */
@media (max-width: 640px) {
  .section {
    padding: 22px 4vw;
    margin-bottom: 36px;
  }
}

/* Accessibility: Focus ring for buttons/links */
.btn-primary:focus, .btn-secondary:focus, a:focus, .mobile-menu-close:focus, .cookie-modal .close-modal:focus {
  outline: 2px solid #00897B;
  outline-offset: 1px;
}

/* Card design for resources.html and courses.html */
.content-wrapper ul > li, .content-wrapper > ul > li {
  background: #f8fafc;
  border-radius: 11px;
  padding: 19px 16px;
  margin-bottom: 20px;
  border: 1px solid #e3eafc;
  box-shadow: 0 1px 8px rgba(40, 53, 147, 0.03);
  min-width: 220px;
  max-width: 330px;
  flex: 1 1 220px;
  transition: box-shadow 0.15s, border 0.12s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-wrapper ul > li:hover, .content-wrapper > ul > li:focus-within {
  box-shadow: 0 6px 18px rgba(40, 53, 147, 0.10);
  border: 1.7px solid #283593;
}

/* Special list for about, privacy, gdpr, terms pages (no background) */
.text-section > ul > li, .text-section ul > li {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 12px !important;
}
.text-section > ul > li::before {
  background: #283593;
}

/* CTA box on courses page */
.cta-box {
  background: #00897B;
  color: #fffde7;
  margin-top: 28px;
}
.cta-box h2 { color: #fffde7; }

/* Confirmation message for thanks.php */
.confirmation-message {
  text-align: center;
}
.confirmation-message h1 { margin-bottom: 12px; }

/* Hide empty paragraphs created by CMS or bad code */
p:empty { display: none; }

/* ===================================================================
   END OF CSS FILE
==================================================================== */