/* --- 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;}
article,aside,details,figcaption,figure,footer,header,main,nav,section {display:block;}
body {line-height:1;}
ol,ul {list-style:none;}
blockquote,q {quotes:none;}
blockquote:before,blockquote:after,q:before,q:after {content:''; content:none;}
table {border-collapse:collapse; border-spacing:0;}
img {max-width:100%; height:auto; display:block;}
*, *::before, *::after {box-sizing:border-box;}
html {box-sizing:border-box;}

/* --- ROOT VARIABLES: MONOCHROME + BRAND --- */
:root {
  --color-bg: #fff;
  --color-text: #181a1b;
  --color-heading: #111214;
  --color-subtle: #ececec;
  --color-border: #eee;
  --color-outline: #444;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-primary: #124672;
  --color-secondary: #D2E1F2;
  --color-accent: #FFD44D;
  --color-dark: #000;
  --color-gray: #53575A;
  --color-mid: #BFC1C3;
  --color-light: #fff;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #191A1B;
    --color-text: #f7f7f5;
    --color-subtle: #202122;
    --color-border: #2a2a2a;
    --color-outline: #383838;
    --color-shadow: rgba(0, 0, 0, 0.26);
    --color-light: #232425;
  }
}

/* --- BODY --- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* --- TYPOGRAPHY SCALE --- */
h1,h2,h3,h4,h5,h6 {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
h1 {font-size: 2.5rem; line-height:1.14; margin-bottom:32px;}
h2 {font-size: 2rem; line-height:1.2; margin-bottom:24px;}
h3 {font-size: 1.35rem; line-height:1.25; margin-bottom:20px;}
h4 {font-size: 1.125rem; line-height:1.35; margin-bottom:16px;}
p, ul, ol {font-size: 1rem; line-height:1.7; color: var(--color-gray); margin-bottom:16px;}
strong {color: var(--color-text); font-weight:600;}
em {font-style: italic; color: var(--color-primary);}
blockquote {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-style: italic;
  border-left: 4px solid var(--color-accent);
  padding-left:18px;
  margin-bottom: 12px;
}

/* --- LINKS --- */
a {color: var(--color-primary); text-decoration: none; transition: color 0.15s;}
a:hover, a:focus {color: var(--color-accent); text-decoration: underline;}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--color-light);
  border-radius: 10px;
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 28px;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-light);
  border-radius: 12px;
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-bottom: 24px;
  flex-direction: column;
}

.feature-grid,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-subtle);
  border-radius: 10px;
  padding: 20px 22px;
  min-width: 230px;
  flex: 1 1 250px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: box-shadow .22s, transform .22s;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: grayscale(100%) contrast(1.2);
}
.feature-item:hover,
.feature-item:focus {
  box-shadow: 0 4px 24px var(--color-shadow);
  transform: translateY(-4px) scale(1.03);
}

.text-section {
  margin-bottom: 60px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: var(--color-light);
  border-radius: 8px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 20px 18px;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
  flex-direction: column;
}
.course-list li {
  background: var(--color-subtle);
  border-radius: 7px;
  padding: 18px 15px;
  margin-bottom: 6px;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/*------------------- HEADER -------------------*/
header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
}
header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding-top:18px;
  padding-bottom:18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
header nav a {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 6px 12px;
  transition: color 0.16s;
}
header nav a:hover, header nav a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

header .button.primary {
  margin-left: 8px;
}

header img {
  height: 36px;
  width: auto;
  margin-right: 18px;
}

/* --- MOBILE MENU TOGGLE --- */
.mobile-menu-toggle,
.mobile-menu-close {
  display: none;
  z-index: 21;
}

@media (max-width: 1024px) {
  header nav, header .button.primary {display: none;}
  .mobile-menu-toggle {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 2rem;
    border: none;
    border-radius: 7px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    margin-right: 0;
    cursor: pointer;
    transition: background 0.18s;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: var(--color-heading);
  }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top:0;
  left:0;
  height:100vh;
  width: 100vw;
  background: rgba(15,15,18,.96);
  box-shadow: 0 2px 18px var(--color-shadow);
  padding: 30px 22px 22px 22px;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.45,1.49,.49,.93);
  z-index: 1002;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  background: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 20px;
  right: 18px;
  border: none;
  cursor: pointer;
  z-index: 1010;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top:70px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: var(--font-display);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: color 0.13s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .mobile-menu {display: flex;}
  .mobile-menu[aria-hidden="true"] {display:none;}
}

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

/*------------------- BUTTONS -------------------*/
.button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 12px 28px;
  border-radius: 32px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
  transition: background .16s, box-shadow .17s, color .16s;
  margin-top: 10px;
}
.button.primary {
  background: var(--color-primary);
  color: #fff;
}
.button.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.button.accent {
  background: var(--color-accent);
  color: var(--color-heading);
}
.button:focus, .button:hover, button:focus, button:hover {
  background: var(--color-heading);
  color: var(--color-accent);
  box-shadow: 0 6px 24px var(--color-shadow);
  outline: 2px solid var(--color-primary);
}

/* Utility Classes */
.mt-24 {margin-top:24px;}
.mt-32 {margin-top:32px;}
.mb-24 {margin-bottom:24px;}
.mb-32 {margin-bottom:32px;}

/*------------------- FOOTER -------------------*/
footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 38px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
footer nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color .16s;
}
footer nav a:hover {
  color: var(--color-primary);
}
footer img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
footer p {
  color: var(--color-mid);
  font-size: 0.98rem;
}

/*------------------- COOKIE BANNER -------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  width: 100vw;
  background: var(--color-light);
  color: var(--color-text);
  box-shadow: 0 -2px 16px var(--color-shadow);
  padding: 20px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: banner-fadein 0.6s cubic-bezier(.27,1.37,.28,.97);
}
@keyframes banner-fadein {
  from { opacity:0; transform: translateY(40px);}
  to {opacity:1; transform: translateY(0);}
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--color-heading);
  max-width: 635px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cookie-banner .button {padding: 10px 22px; font-size:1rem;}
.cookie-banner .button.settings {background:transparent;color:var(--color-primary);border:1px solid var(--color-primary);}
.cookie-banner .button.settings:hover,.cookie-banner .button.settings:focus {background:var(--color-primary);color:#fff;}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position:fixed;
  left:0;top:0;right:0;bottom:0;
  width:100vw;height:100vh;
  background:rgba(10,10,12,0.64);
  z-index:2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-backdrop-fadein .33s;
}
@keyframes modal-backdrop-fadein {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal {
  background: var(--color-light);
  border-radius:16px;
  box-shadow:0 8px 32px var(--color-shadow);
  padding:36px 32px 26px 32px;
  width: 96vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap:18px;
  animation: modal-in .34s cubic-bezier(.45,1.24,.49,.99);
  position: relative;
}
@keyframes modal-in {
  from {transform: scale(0.93) translateY(80px);opacity:0;}
  to {transform: scale(1) translateY(0);opacity:1;}
}
.cookie-modal h2 {font-size:1.35rem;margin-bottom:10px;}
.cookie-modal label {font-size:1rem;margin-bottom:6px;display: flex;align-items: center;gap: 6px;color: var(--color-heading);}
.cookie-modal input[type="checkbox"] {accent-color: var(--color-primary);width:1.05em;height:1.05em;}
.cookie-modal .cookie-category {margin-bottom:15px;}
.cookie-modal .modal-actions {
  display: flex; gap: 12px; margin-top: 10px;
}
.cookie-modal-close {
  position:absolute;
  top:14px;right:14px;
  font-size:1.4rem;
  color:var(--color-primary);
  background:none;
  border:none;
  cursor:pointer;
  z-index:33;
  padding:2px;
  border-radius:4px;
}
.cookie-modal-close:focus,.cookie-modal-close:hover{background:var(--color-accent);color:var(--color-dark);}

/*------------------- BLOG/LIST/DATA ELEMENTS -------------------*/
article {
  background: var(--color-light);
  border-radius: 8px;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  padding: 28px 22px 18px 22px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

ul, ol {
  margin-left: 20px;
  list-style: disc inside;
  margin-bottom: 18px;
}
ul ul, ol ol {margin-bottom:0;}

.text-section ul li, .content-wrapper ul li {
  margin-bottom: 8px;
  padding-left: 0;
}

.text-section li img, .content-wrapper li img {
  width: 24px; height: 24px; margin-right:8px; vertical-align: middle; filter: grayscale(100%) contrast(1.2);
}

/*------------------- CTA SECTIONS -------------------*/
.cta-section, .content-wrapper > .button.primary, .content-wrapper > a.button.primary {
  margin-top:12px;
  align-self:flex-start;
}

/*------------------- MICRO-INTERACTIONS -------------------*/
.button,button,input[type="submit"],.feature-item,.faq-item,.testimonial-card {
  transition: box-shadow .19s, transform .17s, background .17s, color .17s;
}

.testimonial-card:hover, .faq-item:hover {
  box-shadow:0 6px 28px var(--color-shadow);
  transform: scale(1.025);
}

/*------------------- RESPONSIVE DESIGN -------------------*/
@media (max-width: 1024px) {
  .container {max-width: 98vw;}
  .feature-grid, .card-container, .testimonial-slider, .content-grid {gap: 18px;}
  .feature-item, .card {min-width:180px;}
  section, .section {padding: 30px 8px; margin-bottom:44px;}
  h1 {font-size:2rem;}
  h2 {font-size:1.35rem;}
}
@media (max-width: 768px) {
  .container {padding:0 8px;}
  h1 {font-size:1.65rem;}
  h2 {font-size:1.19rem;margin-bottom:17px;}
  h3 {font-size:1.08rem;}
  header .container {
    flex-direction: row;
    padding-top:10px;
    padding-bottom:10px;
    gap:12px;
  }
  .feature-grid, .course-list, .content-grid, .card-container, .testimonial-slider {
    flex-direction: column;
    gap:16px;
  }
  .testimonial-card, .faq-item, .feature-item, .card {min-width:0;width: 100%;}
  .text-image-section {flex-direction: column; gap:14px;}
}
@media (max-width: 480px) {
  html {font-size: 15px;}
  .container {padding: 0 3px;}
  section, .section {padding: 16px 2px;}
  h1 {font-size:1.3rem;}
  h2 {font-size:1.07rem;}
  .feature-item, .card, .testimonial-card, .faq-item {padding: 10px 5px;}
  .cookie-modal {padding:18px 6px;}
}

/*------------------- VISUAL ENHANCEMENTS & HIERARCHY -------------------*/
hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}

/*------------------ ACCESSIBILITY ------------------*/
:focus {outline: 2px solid var(--color-accent); outline-offset: 2px;}
[tabindex]:focus {outline:2px solid var(--color-primary);}
::-moz-selection {background: var(--color-accent); color: var(--color-dark);}
::selection {background: var(--color-accent); color: var(--color-dark);}

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