/* -------------------
   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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  background: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
:root {
  --primary: #244471;
  --primary-rgb: 36,68,113;
  --secondary: #F0F3F7;
  --accent: #F9B233;
  --dark-text: #222;
  --light-bg: #fff;
  --border-radius: 18px;
  --border-radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(36,68,113,0.05);
  --shadow-md: 0 4px 24px rgba(36,68,113,0.10);
  --transition: all 0.23s cubic-bezier(.39,.57,.56,1);
}

/* ---------------------
   BASE TYPOGRAPHY
----------------------- */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--primary);
  background: var(--secondary);
  min-height: 100vh;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.33rem; margin-bottom: 16px; }
h4, h5, h6 { margin-bottom: 10px; }
p, ul, ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 16px;
  max-width: 42em;
}
a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.18s;
}
a:hover {
  color: var(--primary);
}
.bold, strong { font-weight: 700; }

/* Angular/geometric font accents */
h1, h2, h3 {
  text-transform: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-feature-settings: "ss01", "ss03";
  /* Use more angular, geometric font style if supported */
}

/* ---------------------------
    LAYOUT & CONTAINERS
----------------------------- */
.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: var(--light-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 40px 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container, .services-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--light-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
}
.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;
  padding: 20px;
  background: #F7F9FB;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border-left: 6px solid var(--primary);
  color: var(--dark-text);
  min-width: 0;
  transition: transform 0.18s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-md);
}

blockquote {
  color: var(--dark-text);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 10px;
  border: none;
  background: none;
  padding: 0;
}
cite {
  display: block;
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--primary);
  font-style: normal;
}

.text-section {
  margin-bottom: 16px;
  padding: 24px 0 0 0;
}

.faq-list h3 {
  margin-top: 28px;
  font-size: 1.12rem;
}
.faq-list p {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Geometric divider/section accent */
.section:not(:first-child):before {
  content: "";
  display: block;
  width: 68px;
  height: 6px;
  background: var(--accent);
  border-radius: 3px 20px 10px 4px;
  margin-bottom: 28px;
}

/* --------------------
    BUTTONS & CTA
--------------------- */
.cta-primary {
  background: var(--accent);
  color: var(--primary);
  padding: 16px 36px;
  border-radius: 0 40px 0 40px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--accent);
  transition: var(--transition);
  margin-top: 12px;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

button, .btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  margin-right: 12px;
  transition: var(--transition);
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--accent);
  color: var(--primary);
  outline: none;
}

/* Level label for course cards */
.level-label {
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.89rem;
  margin-left: 10px;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* -------------------
   MAIN NAVIGATION
--------------------- */
header {
  background: var(--light-bg);
  box-shadow: var(--shadow-sm);
  z-index: 40;
  width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  padding: 18px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.main-nav img {
  height: 38px;
  margin-right: 22px;
  border-radius: 10px;
}
.main-nav a {
  color: var(--primary);
  border-radius: 4px;
  padding: 8px 12px;
  transition: background 0.18s;
  margin-right: 4px;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
}
.main-nav .cta-primary {
  margin-left: auto;
  margin-right: 0;
  padding: 12px 28px;
  font-size: 1.07rem;
}

/* ---------------------
   MOBILE NAVIGATION
--------------------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 120;
  border: 2px solid var(--primary);
  transition: var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(36,68,113,0.98);
  color: #fff;
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.25,.8,.25,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.4rem;
  color: #fff;
  position: absolute;
  right: 24px; top: 18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(249,178,51,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  border: 2px solid var(--accent);
}
.mobile-menu-close:hover {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 34px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  padding: 14px 20px 14px 0;
  border-radius: 2px;
  transition: background 0.16s;
  min-width: 200px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* -----------
  MAIN CONTENT
------------- */
main {
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  width: 100%;
}

.services-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.services-grid article, .services-grid > div {
  background: var(--secondary);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-height: 182px;
}
.services-grid h3 {
  font-size: 1.17rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.services-grid article span, .services-grid > div span {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.02rem;
  margin-left: 9px;
}

/* Feature list with icon */
.features-list, .services ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 12px 0;
}
.features-list li, .services ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--primary);
}
.features-list img, .services ul img {
  width: 28px;
  height: 28px;
}

/* Standard UL and OL styling */
ul, ol {
  margin-bottom: 18px;
  margin-left: 1.5em;
}
ul li, ol li {
  margin-bottom: 11px;
  position: relative;
  padding-left: 0.6em;
}
ol { counter-reset: customcounter; }
ol li { counter-increment: customcounter; }
ol li:before {
  content: counter(customcounter) ". ";
  position: absolute;
  left: -1.2em;
  font-weight: 700;
  color: var(--accent);
}
ul li:before {
  content: '';
}

/* FAQ and misc lists */
.faq-list {
  margin: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cookie banner overrides for sectioning */
section:last-of-type {
  margin-bottom: 80px;
}

/* ------------
   FOOTER
------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 22px 0;
  box-shadow: 0 -2px 12px rgba(36,68,113,0.11);
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.footer-nav a {
  color: #fff;
  opacity: 0.87;
  transition: opacity 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  opacity: 1;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  font-size: 0.99rem;
}
.footer-info img {
  width: 48px;
  margin-bottom: 12px;
}
.footer-info a {
  color: var(--accent);
  font-weight: 600;
}

/* -----------------
   COOKIE BANNER
------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 -2px 16px rgba(36,68,113,0.18);
  z-index: 400;
  padding: 22px 18px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: transform 0.29s cubic-bezier(.31,.76,.71,1);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner p {
  color: #fff;
  font-size: 1.06rem;
  margin: 0 0 0 0;
  flex: 1 1 auto;
}
.cookie-banner .cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 10px 23px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-right: 8px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.17s;
  font-size: 1.05rem;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--light-bg);
  color: var(--primary);
  border: 1.5px solid var(--accent);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-btn.reject:hover,
.cookie-banner .cookie-btn.reject:focus {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.cookie-banner .cookie-btn.settings:hover,
.cookie-banner .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--primary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-bg {
  position: fixed;
  z-index: 405;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(36,68,113,0.60);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-bg.open {
  display: flex;
  animation: fade-in 0.21s linear;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--light-bg);
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 40px 36px 32px 36px;
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modal-pop 0.28s cubic-bezier(.53,1.41,.78,0.81);
}
@keyframes modal-pop {
  0% { transform: scale(0.97) translateY(38px); opacity: 0.36; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin: 0 0 18px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: var(--secondary);
  border-radius: 12px;
  position: relative;
  outline: none;
  border: 1.5px solid var(--primary);
  transition: background 0.17s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--accent);
}
.cookie-modal .cookie-toggle:after {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 2px; top: 1.3px;
  transition: left 0.19s cubic-bezier(0.39, 0.58, 0.57, 1);
}
.cookie-modal .cookie-toggle:checked:after {
  left: 18px;
  background: var(--primary);
}
.cookie-modal .cookie-btn-bar {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.41rem;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ------------
   RESPONSIVE
-------------- */
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
  .content-wrapper { padding: 30px 10px; }
  .section { padding-left: 12px; padding-right: 12px; }
  .services-grid article, .services-grid > div {
    min-width: 46vw;
    max-width: 98vw;
  }
}
@media (max-width: 860px) {
  .services-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.12rem; }
  h2 { font-size: 1.42rem; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container, .content-wrapper {
    padding-left: 8px; padding-right: 8px;
    max-width: 100vw;
  }
  .section { padding: 36px 6px; }
  .content-grid, .card-grid, .card-container, .services-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { flex-direction: column; gap: 10px; }
  .text-image-section { flex-direction: column; gap: 14px; }
  .footer-info { font-size: 0.93rem; gap: 6px; }
  .footer-info img { width: 36px; margin-bottom: 7px; }
  .cookie-modal {
    min-width: 96vw;
    max-width: 99vw;
    padding: 24px 10px 24px 10px;
  }
}
@media (max-width: 450px) {
  .content-wrapper { padding: 14px 2px; border-radius: 0; }
  .section { padding: 20px 0; }
  .cta-primary { padding: 10px 10vw; }
  .footer-info img { width: 28px; }
}

/* -----------
   GEOMETRIC ACCENTS
-------------- */
.content-wrapper, .card, .services-grid article, .services-grid > div {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 2.5px solid var(--secondary);
}
/* Example geometric shape accent for articles, cards, etc. */
.card:before, .services-grid article:before, .services-grid > div:before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px 20px 8px 3px;
  margin-bottom: 11px;
}

/* Remove accent in mobile for less clutter */
@media (max-width:500px) {
  .card:before, .services-grid article:before, .services-grid > div:before { display: none; }
}

/* -------------
   ANIMATIONS & TRANSITIONS
--------------- */
.card, .services-grid article, .services-grid > div, .cta-primary, button, .testimonial-card {
  transition: var(--transition);
}
.card:hover, .services-grid article:hover, .services-grid > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.015);
}

input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  border: 1.5px solid var(--secondary);
  border-radius: var(--border-radius-sm);
  outline: none;
  font-size: 1.07rem;
  padding: 11px 12px;
  transition: box-shadow 0.18s;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249,178,51,0.18);
}

/* Accessibility: focus outlines */
a:focus,
button:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

/* -------------
   MISC
---------------- */
::-webkit-scrollbar {
  width: 6px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 12px;
}
::selection {
  background: var(--accent);
  color: #fff;
}

/* Utility: visually hidden (for a11y labels etc) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
