/* =============================================================
   CSS RESET & FONT IMPORTS
   ============================================================= */
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;
  /* Prevent font boosting from interfering on mobile */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  background: #101F33;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #101F33;
  color: #F1F1F1;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

/* =============================================================
   ROOT BRAND VARIABLES (with fallbacks)
   ============================================================= */
:root {
  --primary: #133C73;
  --primary-light: #295da9;
  --secondary: #F1F1F1;
  --accent: #F6B700;
  --accent-neon: #ffd900;
  --bg-dark: #101F33;
  --bg-gradient: linear-gradient(120deg, #133C73 0%, #295da9 100%);
  --neon-blue: #31bdf8;
}

/* =============================================================
   TYPOGRAPHY SYSTEM
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #F6B700;
  margin-bottom: 16px;
  line-height: 1.12;
  text-shadow: 0 2px 10px rgba(246,183,0,0.07);
}
h1 {
  font-size: 2.4rem;
  color: #F6B700;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  color: #F6B700;
}
h3 {
  font-size: 1.4rem;
  color: #31bdf8;
  margin-top: 32px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--secondary);
}
p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.07rem;
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: #F6B700;
}

ul, ol {
  margin-left: 26px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
}

/* List icons */
ul li::before {
  content: '';
  margin-right: 12px;
}
ul li {
  position: relative;
  padding-left: 0px;
}
ul li {
  color: #F1F1F1;
}
/* Add a neon accent for any check/approval unicode bullets */
ul li:has(> strong)::before {
  content: '';
  margin: 0;
}
ul li:before {
  /* Acceptable for accent styling */
  display: inline-block;
  vertical-align: middle;
}
li:has(> strong) { color: #ffefa0; }


/* =============================================================
   LAYOUT & SPACING
   ============================================================= */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1220px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.section:last-child {
  margin-bottom: 0;
}
.text-section {
  max-width: 800px;
  width: 100%;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-container,
.card-grid { /* For course/feature/testimonial flexibility */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.card {
  background: #192a4d;
  border-radius: 22px;
  box-shadow: 0 2px 32px 0 rgba(49,189,248,0.07), 0 1px 3px 0 rgba(19,60,115,0.09);
  padding: 28px 24px;
  color: #F1F1F1;
  margin-bottom: 20px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 420px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 3px 38px 0 #31bdf8, 0 1px 8px 0 #f6b700;
  transform: translateY(-6px) scale(1.015);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.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;
  align-items: center;
  gap: 20px;
  background: #F1F1F1;
  color: #162f50;
  border-radius: 18px;
  box-shadow: 0 2px 28px 0 rgba(49,189,248,0.10), 0 1px 3px 0 rgba(19,60,115,0.11);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.15rem;
  position: relative;
  min-width: 280px;
  max-width: 570px;
  transition: box-shadow 0.28s;
}
.testimonial-card span {
  display: block;
  font-size: 0.98rem;
  color: #133C73;
  font-weight: 600;
  margin-top: 8px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 5px 35px #31bdf8, 0 3px 15px #f6b700;
}

/* Ensure spacing between any card/testimonial groups */
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* CRITICAL: Minimum 20px between all cards/sections */
.section + .section, .content-wrapper + .content-wrapper {
  margin-top: 60px;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}


/* ===========================================================
   HERO & ACCENT EFFECTS
   =========================================================== */
.hero-section {
  background: linear-gradient(120deg, #133C73 0%, #295da9 100%), #133C73;
  min-height: 340px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 80px 0 70px;
  position: relative;
}
.hero-section h1 {
  font-size: 2.8rem;
  color: #FFF;
  text-shadow: 0 0 13px #31bdf8, 0 4px 26px #f6b700;
  margin-bottom: 16px;
}
.hero-section p {
  color: #f1f1f1;
  font-size: 1.24rem;
  margin-bottom: 30px;
  max-width: 600px;
}
.hero-section .cta {
  margin-top: 10px;
}

/* ===========================================================
   BUTTONS & CTA
   =========================================================== */
.cta {
  display: inline-block;
  background: #F6B700;
  color: #133C73;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.025em;
  border: none;
  border-radius: 13px;
  padding: 15px 36px;
  margin-top: 10px;
  box-shadow: 0 0 0 3px rgba(246,183,0,0.12);
  cursor: pointer;
  transition: background 0.22s, color 0.24s, box-shadow 0.32s, transform 0.19s;
  text-decoration: none;
  position: relative;
  outline: none;
}
.cta:hover, .cta:focus {
  background: #FFFAD2;
  color: #133C73;
  box-shadow: 0 5px 24px 0 #f6b700, 0 0px 15px 0 #31bdf8;
  transform: translateY(-2px) scale(1.02);
}

/* Accent Button variant for cookie banner */
.button-accent {
  background: #31bdf8;
  color: #101F33;
  border: none;
  border-radius: 11px;
  padding: 13px 27px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  box-shadow: 0 0 0 2px #31bdf8;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.22s, color 0.22s, box-shadow 0.28s, transform 0.22s;
}
.button-accent:hover, .button-accent:focus {
  background: #3cedfd;
  color: #101F33;
  box-shadow: 0 3px 22px #31bdf8, 0 1px 9px #f6b700;
}

.button-secondary {
  background: #F1F1F1;
  color: #133C73;
  border: none;
  border-radius: 11px;
  padding: 13px 27px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  box-shadow: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.22s, color 0.22s;
}
.button-secondary:hover, .button-secondary:focus {
  background: #FFFAD2;
  color: #133C73;
}

/* Content links */
a {
  color: #31bdf8;
  text-decoration: underline;
  transition: color 0.17s;
}
a:hover, a:focus {
  color: #F6B700;
  text-decoration: none;
}


/* ==========================================================
   MAIN NAVIGATION
   ========================================================== */
header {
  width: 100%;
  padding: 0;
  background: #101F33;
  box-shadow: 0 2px 15px rgba(19,60,115,0.09), 0 1px 3px 0 rgba(49,189,248,0.08);
  position: sticky;
  top: 0;
  z-index: 90;
}
header nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #F1F1F1;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.23s, color 0.22s;
}
header nav a img {
  height: 38px;
  vertical-align: middle;
}
header nav a.cta {
  margin-left: 16px;
  background: #F6B700;
  color: #133C73;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #FFFAD2;
  color: #133C73;
}
header nav a:hover, header nav a:focus {
  background: #192a4d;
  color: #F6B700;
}

/* Hide mobile nav by default, show hamburger */
.mobile-menu-toggle {
  display: none;
}

/* ===============================
  MOBILE NAVIGATION (Burger menu)
  =============================== */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    color: #F6B700;
    font-size: 2.5rem;
    border: none;
    position: absolute;
    right: 20px;
    top: 15px;
    padding: 8px 16px;
    z-index: 110;
    cursor: pointer;
    transition: color 0.22s, background 0.22s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #fffad222;
    color: #31bdf8;
    border-radius: 8px;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(19,60,115,0.99);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 999999;
    transform: translateX(-100vw);
    transition: transform 0.44s cubic-bezier(0.4, 0.82, 0.22, 1) 0s;
    opacity: 1;
  }
  .mobile-menu.open {
    transform: translateX(0%);
    opacity: 1;
    box-shadow: 0 5px 24px #133c73af;
  }
  .mobile-menu-close {
    background: none;
    border: none;
    color: #F6B700;
    font-size: 2.2rem;
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1002;
    cursor: pointer;
    padding: 6px 16px;
    transition: color 0.18s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #31bdf8;
  }
  .mobile-nav {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 76px;
    gap: 14px;
  }
  .mobile-nav a {
    color: #F1F1F1;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 8px;
    box-shadow: 0 1px 10px 0 rgba(49,189,248,0.05);
    transition: background 0.22s, color 0.22s;
    min-width: 68vw;
    text-align: center;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: #f6b700;
    color: #133C73;
  }
}

/* Expand touch targets on mobile menu links */
@media (max-width: 768px) {
  .mobile-nav a { min-width: 83vw; font-size: 1.23rem; }
}

/* Make sure mobile-menu is hidden on desktop */
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}


/* =============================================================
   MAIN CONTENT LAYOUT
   ============================================================= */
main {
  width: 100%;
  background: #101F33;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 58vh;
  padding-bottom: 32px;
}

section {
  width: 100%;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Section backgrounds for accent */
section:nth-child(odd):not(.hero-section) {
  background: #13254a55;
}
section.hero-section {
  background: linear-gradient(120deg, #133C73 0%, #295da9 100%), #133C73;
  box-shadow: 0 8px 40px #31bdf80d, 0 1px 3px 0 rgba(246,183,0,0.09);
  position: relative;
  z-index: 2;
}

/* ACCENT LINES */
.section-title:after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, #f6b700 30%, #31bdf8 100%);
  border-radius: 2px;
  margin: 18px 0;
}


/* =============================================================
   FOOTER
   ============================================================= */
footer {
  width: 100%;
  background: #152B46;
  color: #F1F1F1;
  padding: 40px 0 30px 0;
  box-shadow: 0 -2px 15px rgba(49,189,248,0.03);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer img {
  height: 38px;
  margin-bottom: 6px;
  filter: drop-shadow(0 1px 5px #133c7325);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  margin: 10px 0 4px 0;
}
footer nav a {
  color: #F6B700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.16s, text-shadow 0.18s;
}
footer nav a:hover {
  color: #31bdf8;
  text-shadow: 0 0 10px #31bdf888;
}
footer div {
  color: #F1F1F1;
  font-size: 1rem;
  margin-bottom: 7px;
}
footer div img {
  height: 18px;
  width: 18px;
  vertical-align: -3px;
  margin-right: 7px;
}
footer span {
  display: block;
  font-size: 0.97rem;
  color: #ffefa0;
  margin-top: 8px;
}

/* =============================================================
   RESPONSIVE LAYOUTS
   ============================================================= */
@media (max-width: 980px) {
  .container { max-width: 95vw; }
  .content-wrapper, .text-section { padding: 0; }
  .hero-section { padding: 54px 0 36px; }
  .hero-section h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 7vw; }
  .content-wrapper { gap: 10px; }
  .section { padding: 24px 0; }
  .hero-section { padding: 42px 0 18px; }
  .card, .testimonial-card { min-width: 85vw; max-width: 99vw; }
  .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .testimonial-card { font-size: 1.05rem; }
  .text-section { max-width: 98vw; }
}
@media (max-width: 580px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  .hero-section { padding: 21px 0 8px; }
  .section { padding: 12px 0; margin-bottom: 34px; }
  .card, .testimonial-card { padding: 13px 7px; min-width: 96vw; max-width: 98vw; }
}

/* Text-image section stacking */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* Robust justify and gap on all flex lists */
.card-container, .card-grid, .content-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

/* Ensure spacing below all main headings */
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
h1 + p, h2 + p, h3 + p { margin-top: 3px; }

/* =============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================================= */
@keyframes neonGlow {
  0%,100% { text-shadow: 0 0 10px #31bdf8,0 0 12px #F6B700; }
  50% { text-shadow: 0 0 18px #f6b700,0 0 25px #31bdf8; }
}
.hero-section h1, .cta {
  animation: neonGlow 3.2s infinite alternate;
}

.card, .cta, .testimonial-card, .button-accent, .button-secondary {
  transition: box-shadow 0.25s, background 0.22s, color 0.22s, transform 0.18s;
}

.card:active, .testimonial-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 16px #133c7330;
}

input, button, select, textarea { font-family: inherit; font-size: 1rem; }

/* =============================================================
   COOKIE CONSENT BANNER + MODAL
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9940;
  background: #192a4d;
  color: #FFF;
  box-shadow: 0 -3px 32px #31bdf870, 0 1px 8px #f6b70033;
  padding: 20px 9vw 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.04rem;
  animation: slideUpBanner 0.9s 0.3s cubic-bezier(0.42,0.44,0.22,1) backwards;
}
@keyframes slideUpBanner {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.cookie-banner button {
  margin: 0 5px;
}

@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 4vw 12px 9vw;
    font-size: 0.99rem;
  }
}
@media (max-width: 520px) {
  .cookie-banner { padding: 5px 1vw 5px 1vw; gap: 6px; font-size: 0.97rem; }
  .cookie-banner .cookie-actions { flex-direction: column; gap: 7px; }
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(18,40,80,0.88);
  z-index: 9950;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.45s cubic-bezier(0.48,0.6,0.22,1.05) backwards;
}
@keyframes modalFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

.cookie-modal {
  background: #192a4d;
  border-radius: 19px;
  max-width: 460px;
  width: 98vw;
  color: #fff;
  padding: 32px 26px 22px 26px;
  box-shadow: 0 12px 45px #31bdf847, 0 6px 28px #f6b70034;
  animation: modalShow 0.34s cubic-bezier(0.39,0.52,0.22,1) backwards;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
@keyframes modalShow { 0% {transform: scale(0.97); opacity:0;} 100% {transform:scale(1);opacity:1;} }

.cookie-modal h2 {
  color: #f6b700;
  font-size: 1.3rem;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
}
.cookie-modal label {
  color: #FFF;
  font-size: 1.06rem;
  margin-right: 12px;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 9px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 11px;
  right: 18px;
  background: transparent;
  border: none;
  color: #f6b700;
  font-size: 1.47rem;
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #31bdf8;
}

/* Cookie switches */
.cookie-switch {
  display: inline-block;
  position: relative;
  width: 38px; height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background: #295da9;
  top: 0; left: 0;
  right: 0; bottom: 0;
  border-radius: 34px;
  transition: background 0.22s;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background: #f6b700;
  border-radius: 50%;
  box-shadow: 0 2px 8px #f6b70028;
  transition: transform 0.2s, background 0.17s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #31bdf8;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
  background: #31bdf8;
}
.cookie-switch input:disabled + .cookie-slider {
  background: #54585e;
}
.cookie-modal .cookie-category[aria-disabled="true"] label,
.cookie-modal .cookie-category[aria-disabled="true"] {
  color: #aaa;
}

/* =============================================================
   MISC / UTILITY
   ============================================================= */
::-webkit-input-placeholder { color: #e5e9ea; }
::-moz-placeholder { color: #e5e9ea; }
:-ms-input-placeholder { color: #e5e9ea; }
::placeholder { color: #e5e9ea; }

img {
  max-width: 100%;
  display: block;
}

/* Remove outline for mouse users, but keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
:focus-visible {
  outline: 3px solid #31bdf8;
  outline-offset: 1px;
}

/* Utility for hiding (e.g., cookie modal) */
.hidden { display: none !important; }

/* =============================================================
   PRINT STYLES – Remove nav, footer, unnecessary elements
   ============================================================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, main, .content-wrapper, .text-section, .card, .testimonial-card { background: #fff !important; color: #111 !important; border: none !important; box-shadow: none !important; }
}
