/* ==== 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, main, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #FBFBFB;
  color: #222869;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #222869;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  font-size: 1em;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #F87537;
  outline-offset: 2px;
}

/* ==== BRAND TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #222869;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.175rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #222869;
  margin-bottom: 16px;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
}

/* ==== CONTAINER & SPACING ==== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 800px;
  margin: 0 auto;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 32px 24px;
  min-width: 280px;
  flex: 1 1 280px;
  box-shadow: 0 2px 16px rgba(34,40,105,0.04), 0 1.5px 8px rgba(34,40,105,0.04);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px rgba(34,40,105,0.16), 0 2px 16px rgba(34,40,105,0.07);
  z-index: 2;
}
.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: 14px;
  box-shadow: 0 2px 16px rgba(34,40,105,0.03);
  margin-bottom: 20px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px rgba(34,40,105,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: #FBFBFB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 1px 4px rgba(34,40,105,0.04);
}
header img {
  height: 42px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus-visible {
  background: #F87537;
  color: #fff !important;
}
.cta-primary {
  background: #222869;
  color: #fff !important;
  border-radius: 26px;
  padding: 11px 26px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(34,40,105,0.09);
  margin-left: 6px;
  transition: background 0.2s, transform 0.15s;
}
.cta-primary:hover, .cta-primary:focus-visible {
  background: #F87537;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: #222869;
  color: #fff;
  border-radius: 7px;
  font-size: 1.75rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus-visible {
  background: #F87537;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,40,105,0.92);
  flex-direction: column;
  align-items: flex-end;
  z-index: 200;
  animation: mobileMenuIn 0.24s cubic-bezier(.85,.01,.5,1.48);
  overflow-y: auto;
}
@keyframes mobileMenuIn {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2.2rem;
  padding: 16px 24px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus-visible {
  color: #F87537;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  align-items: flex-start;
  padding: 28px 40px 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 8px;
  width: 100%;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible {
  background: #F87537;
  color: #fff !important;
}

/* ==== MAIN ==== */
main {
  width: 100%;
  min-height: 75vh;
  margin: 0 auto 60px auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
section {
  padding: 0;
  margin-bottom: 60px;
}

/* ==== FOOTER ==== */
footer {
  width: 100%;
  background: #fff;
  padding: 36px 20px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  border-top: 1px solid #ededed;
  justify-content: space-between;
}
footer img {
  height: 42px;
  margin-bottom: 16px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
footer nav a {
  font-size: 0.98em;
  padding: 2px 0;
  color: #222869;
  border-radius: 0;
  background: none;
}
footer nav a:hover, footer nav a:focus-visible {
  color: #F87537!important;
  background: none;
}
footer div p {
  font-size: 0.97em;
  color: #75798C;
  margin-bottom: 7px;
}

/* ==== BUTTONS & LINKS ==== */
a, button {
  transition: background 0.17s, color 0.17s, box-shadow 0.22s, border 0.17s, transform 0.12s;
}
.button, .btn, .cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  border: none;
}
.button:active, .btn:active, .cta-primary:active {
  transform: scale(.97);
}

/* ==== TESTIMONIALS ==== */
.testimonial-card p {
  color: #222869;
  font-size: 1.08em;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #222869;
  font-size: 1em;
  letter-spacing: 0.1px;
}
.testimonial-card div {
  display: flex;
  gap: 3px;
}
.testimonial-card img {
  height: 18px;
  width: 18px;
}

/* ==== ICONS IN FEATURES/LISTS ==== */
ul li img, .feature-item img {
  height: 22px;
  width: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* ==== BLOG TAGS ==== */
div span {
  background: #22286910;
  color: #222869;
  font-size: 0.9em;
  padding: 3px 13px;
  border-radius: 12px;
  margin-right: 7px;
}

/* ==== GENERAL UTILITIES ==== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(34,40,105,0.11);
  padding: 26px 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 210;
  gap: 24px;
  animation: cookieBannerIn 0.32s cubic-bezier(.85,.01,.5,1.38);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(45px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #222869;
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 480px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 22px;
  padding: 9px 20px;
  font-size: 1em;
  font-weight: 600;
  border: 1.5px solid #222869;
  background: #FBFBFB;
  color: #222869;
  transition: background 0.17s, color 0.17s, border 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus-visible {
  background: #F87537;
  color: #fff;
  border-color: #F87537;
}
.cookie-btn.accept {
  background: #222869;
  color: #fff;
  border: 1.5px solid #222869;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus-visible {
  background: #F87537;
  border-color: #F87537;
  color: #fff;
}
.cookie-btn.settings {
  background: #FBFBFB;
  color: #222869;
  border: 1.5px solid #222869;
}

/* ==== COOKIE MODAL POPUP ==== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,40,105,0.19);
  justify-content: center;
  align-items: center;
  z-index: 3500;
}
.cookie-modal.active {
  display: flex;
  animation: fadeIn 0.22s cubic-bezier(.85,.01,.5,1.18);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(34,40,105,0.18);
  padding: 38px 24px 29px 24px;
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.cookie-toggle {
  appearance: none;
  width: 38px; height: 22px;
  background: #ededed;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: #222869;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3.2px; top: 3.2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-toggle:checked:before {
  left: 17px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #222869;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus-visible {
  color: #F87537;
}

/* ==== MEDIA QUERIES ==== */
@media (max-width: 1030px) {
  .container { max-width: 93vw; }
}
@media (max-width: 768px) {
  header {
    padding: 14px 7px 14px 14px;
    flex-direction: row;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 8px;
  }
  .footer div, footer nav {
    margin-bottom: 16px;
  }
  .section {
    padding: 24px 6px 28px 6px;
    margin-bottom: 40px;
  }
  .text-image-section, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px !important;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: 0;
  }
  main {
    gap: 26px;
  }
  footer {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    padding: 24px 10px 16px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 8px 12px 8px;
    gap: 10px;
  }
  .cookie-banner p {
    font-size: 14px;
    max-width: 94vw;
  }
  .cookie-modal-content {
    min-width: 0;
    padding: 28px 7vw 22px 7vw;
  }
}
@media (max-width: 426px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1em; }
  .cta-primary {
    font-size: 0.96em;
    padding: 9px 16px;
  }
  .content-wrapper {
    padding: 0;
  }
  main {
    gap: 18px;
  }
  .card {
    padding: 21px 10px;
  }
  .cookie-banner {
    font-size: 13px;
    padding: 13px 2px 9px 2px;
  }
  .cookie-modal-content {
    padding: 18px 6vw 15px 6vw;
  }
}

/* ==== MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .cta-primary, .cookie-btn {
  will-change: transform, box-shadow;
}
.card:active, .testimonial-card:active {
  transform: scale(0.98);
}
.card:focus-within, .testimonial-card:focus-within {
  z-index: 3;
  box-shadow: 0 6px 32px rgba(248,117,55,0.07);
}
.cookie-btn:active {
  transform: scale(.97);
}

/* ==== SPECIAL SECTION STYLES ==== */
.index-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 0;
}
.index-courses > div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0 !important;
}
.index-courses > div > div {
  min-width: 260px;
  flex: 1 1 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(34,40,105,0.04);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .16s;
}
.index-courses > div > div:hover, .index-courses > div > div:focus-within {
  box-shadow: 0 4px 22px rgba(248,117,55,0.11);
}

/* ==== OVERRIDES FOR ACCESSIBILITY ==== */
[aria-current="page"] {
  text-decoration: underline 2px #F87537;
  text-underline-offset: 4px;
}

/* ==== REMOVE SCROLL FOR MODALS ==== */
body.modal-open {
  overflow: hidden;
}
