/* === 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,hgroup,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: none; }
table { border-collapse: collapse; border-spacing: 0; }
*,*::before,*::after { box-sizing: border-box; }

/* === CSS VARS FOR BRAND + VIBRANT ENERGETIC === */
:root {
  --color-primary: #15344C;
  --color-secondary: #298986;
  --color-accent: #E7F3F7;
  /* Vibrant energetic additions */
  --color-electric1: #00E3A4;  /* Electric green */
  --color-electric2: #FC0F6C;  /* Neon pink */
  --color-electric3: #08A6F8;  /* Electric blue */
  --color-electric4: #FFBC0A;  /* Energetic yellow */
  /* Text */
  --text-dark: #15344C;
  --text-light: #fff;
  /* Shadows */
  --shadow-card: 0 8px 32px 0 rgba(21,52,76,0.12);
  --shadow-btn: 0 2px 12px 0 rgba(44,115,235,0.16);
  --shadow-pop: 0 6px 36px 0 rgba(44,115,235,0.19);
  /* Rounding */
  --radius-base: 16px;
  --radius-btn: 24px;
  /* Spacing scale */
  --space-1: 8px; --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-5: 40px; --space-6: 60px;
}

/* === BASE TYPOGRAPHY === */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--color-accent);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Roboto Slab', 'Open Sans', serif;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 0.5em;
  letter-spacing: -0.03em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }
p,ul,ol {
  font-size: 1rem;
  margin-bottom: 1em;
  line-height: 1.7;
  color: var(--text-dark);
}
a { color: var(--color-electric2); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--color-electric1); text-decoration: underline; }
strong { font-weight: bold; }

/* === CONTAINER UTILS === */
.container {
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
  padding-left: 16px; padding-right: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-left: 0; margin-right: 0;
}


/* === SECTION LAYOUTS & SPACING === */
section, .section {
  margin-bottom: var(--space-6);
  padding: var(--space-5) var(--space-2);
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
}
.hero { background: linear-gradient(90deg, var(--color-electric1) 0%, var(--color-secondary) 100%); color: var(--text-light); box-shadow: var(--shadow-pop); position: relative; overflow: hidden; }
.hero .content-wrapper { color: var(--text-light); }
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(21,52,76,0.14);
}
.cta {
  background: var(--color-electric3);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-6);
}
@media (max-width: 768px) {
  section, .section, .cta, .hero { padding: var(--space-3) var(--space-1); }
}

/* === HEADER & NAV === */
header {
  background: #fff;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-3); }
header img { height: 44px; max-width: 180px; }
nav {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
nav a.cta-primary {
  background: var(--color-electric2);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  transition: background 0.18s, transform 0.18s;
  letter-spacing: 0.03em;
}
nav a.cta-primary:hover, nav a.cta-primary:focus {
  background: var(--color-electric1);
  color: var(--text-dark) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 24px 0 var(--color-electric1);
}
nav a:hover:not(.cta-primary), nav a:focus:not(.cta-primary) {
  background: var(--color-accent);
  color: var(--color-electric2);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-electric2);
  color: #fff;
  border: none;
  border-radius: var(--radius-base);
  font-size: 2rem;
  padding: 4px 20px 4px 14px;
  cursor: pointer;
  z-index: 101;
  margin-left: var(--space-2);
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-electric1);
  color: var(--color-primary);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.75,.05,.5,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-pop);
  padding-top: var(--space-5);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-electric2);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 2rem;
  position: absolute;
  top: 20px; right: 28px;
  cursor: pointer;
  padding: 2px 14px 2px 10px;
  transition: background 0.18s;
  z-index: 301;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { background: var(--color-electric1); color: var(--color-primary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.mobile-nav a {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
  padding: 14px 20px;
  width: 90%;
  border-radius: var(--radius-base);
  text-align: center;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a.cta-primary {
  background: var(--color-electric2);
  color: #fff !important;
  margin-top: var(--space-2);
}
.mobile-nav a.cta-primary:hover, .mobile-nav a.cta-primary:focus { background: var(--color-electric1); color: var(--color-primary) !important; }
.mobile-nav a:hover, .mobile-nav a:focus { background: var(--color-accent); color: var(--color-electric2); }
@media (max-width: 1100px) {
  nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* === CARD CONTAINER / FLEX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: var(--space-3) var(--space-2);
  position: relative;
  transition: box-shadow 0.23s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px 0 var(--color-electric3), 0 2px 6px 0 var(--color-electric2);
  transform: translateY(-4px) scale(1.015);
}

/* === FLEX GRID UTILS === */
.content-grid, .feature-grid, .benefits-grid, .guide-list, .resource-list, .course-list, .post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid .feature, .benefits-grid>div, .guide-list>div, .course-list > .course, .resource-list > .resource, .post-list>article  {
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 330px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-base);
  padding: var(--space-3);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-grid .feature:hover, .course-list > .course:hover, .resource-list > .resource:hover, .benefits-grid>div:hover, .post-list>article:hover {
  box-shadow: 0 8px 32px 0 var(--color-electric1), 0 3px 8px 0 var(--color-electric2);
  transform: translateY(-2px) scale(1.01);
}

/* === FLEX LAYOUTS === */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .content-grid, .feature-grid, .benefits-grid, .guide-list, .resource-list, .course-list, .post-list {
    flex-direction: column;
  }
}

/* === TESTIMONIALS === */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: var(--space-2);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 24px 22px 24px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  min-width: 280px;
  max-width: 400px;
  flex: 1 1 320px;
  position: relative;
  border-left: 8px solid var(--color-electric2);
  transition: border-color 0.22s, box-shadow 0.15s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-left-color: var(--color-electric1);
  box-shadow: 0 8px 44px 0 var(--color-electric1), var(--shadow-pop);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-primary);
  margin-bottom: 0;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.testimonial-meta span { font-weight: bold; color: var(--color-electric2); letter-spacing: 0.01em; }
.testimonial-meta img {
  width: 22px; height: 22px; display: inline-block;
  vertical-align: middle;
}

/* === CTA BUTTONS === */
.cta-primary, .btn-download, .newsletter-form button, .cookie-banner .btn, .cookie-modal .btn {
  display: inline-block;
  background: var(--color-electric2);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.15s, color 0.13s, transform 0.13s;
  margin-top: var(--space-2);
  letter-spacing: 0.04em;
  outline: none;
}
.cta-primary:focus, .cta-primary:hover, .btn-download:focus, .btn-download:hover, .newsletter-form button:focus, .newsletter-form button:hover, .cookie-banner .btn:hover, .cookie-modal .btn:hover {
  background: var(--color-electric1);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.02);
}
.btn-download {
  background: var(--color-electric3);
  color: var(--text-light);
  padding: 10px 24px;
  font-size: 1rem;
  margin-top: 8px;
}
.btn-download:focus, .btn-download:hover {
  background: var(--color-electric2);
  color: #fff;
}

/* === FORMS & INPUTS === */
input,select,textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-btn);
  outline: none;
  transition: border 0.15s;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-electric1);
}
.newsletter-form {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.newsletter-form label {
  color: var(--color-electric3);
  font-weight: bold;
  margin-right: 12px;
}
.newsletter-form button {
  margin: 0; padding: 12px 24px;
  font-size: 1rem;
  background: var(--color-electric2);
}
@media (max-width: 670px) {
  .newsletter-form { flex-direction: column; gap: 12px; align-items: flex-start; }
  .newsletter-form input { width: 100%; }
}

/* === FAQ ACCORDION === */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-accordion details {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 18px 24px;
  border-left: 6px solid var(--color-electric3);
  transition: border-color 0.19s, box-shadow 0.15s;
}
.faq-accordion details[open] {
  border-left-color: var(--color-electric2);
  box-shadow: 0 6px 32px 0 var(--color-electric3), var(--shadow-pop);
}
.faq-accordion summary {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.06rem;
  cursor: pointer;
  outline: none;
}
.faq-accordion div {
  margin-top: 12px;
  color: var(--color-primary);
  font-size: 1rem;
}

/* === CONTACT INFO === */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: var(--space-3);
}
.contact-info > div {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-info img {
  width: 34px; height: 34px;
  flex-shrink: 0;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: var(--space-2);
  background: var(--color-accent);
  border-radius: var(--radius-base);
  padding: 14px 18px;
  color: var(--color-primary);
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-base) var(--radius-base) 0 0;
  margin-top: var(--space-6);
  box-shadow: 0 -4px 32px 0 rgba(21,52,76,0.07);
}
footer .container {
  gap: 0;
  padding-top: var(--space-4);
  padding-bottom: var(--space-2);
}
.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255,255,255,0.13);
  gap: var(--space-3);
}
.footer-top img { height: 36px; }
.footer-top nav {
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
}
.footer-top nav a {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  opacity: 0.92;
  padding: 6px;
  border-radius: var(--radius-btn);
  transition: background 0.15s, color 0.13s;
}
.footer-top nav a:hover, .footer-top nav a:focus {
  background: var(--color-electric1);
  color: var(--color-primary);
}
.footer-bottom {
  text-align: left;
  margin-top: var(--space-2);
  color: #D2EEFA;
  font-size: 0.92rem;
}
@media (max-width: 900px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .footer-bottom { text-align: left; }
}

/* === VIBRANT ENERGETIC EXTRAS === */
section, .section {
  border-left: 5px solid var(--color-electric1);
}
.cta, .hero, .footer-top, .footer-bottom {
  border-left: none;
}
h2::after {
  content: '';
  display: block;
  height: 4px;
  width: 68px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--color-electric2) 10%, var(--color-electric1) 100%);
  border-radius: 2px;
}
.feature-grid .feature h3, .benefits-grid > div h3, .course-list .course h3, .resource-list .resource h3, .guide-list h4 {
  color: var(--color-electric2);
  font-family: 'Roboto Slab', serif;
  font-size: 1.18rem;
}

/* === ULTRA BOLD HEADLINE EFFECT === */
h1, h2 {
  background: linear-gradient(90deg, var(--color-electric2), var(--color-electric1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.hero h1, .hero h2 { -webkit-text-fill-color: #fff; text-fill-color: #fff; background: none; }

/* === MICRO INTERACTIONS === */
.card, .feature-grid .feature, .benefits-grid > div, .guide-list>div, .course-list>.course, .resource-list>.resource, .testimonial-card, .faq-accordion details {
  transition: box-shadow 0.23s, border-color 0.25s, transform 0.12s;
}
.card:hover, .feature:hover, .benefits-grid>div:hover, .guide-list>div:hover, .course-list>.course:hover, .resource-list>.resource:hover {
  z-index: 2;
  box-shadow: 0 8px 40px 0 var(--color-electric2), 0 4px 18px 0 var(--color-electric3);
  border-color: var(--color-electric1);
}
input[type="email"]:valid { border-color: var(--color-electric1); }
input[type="email"]:invalid { border-color: var(--color-electric2); }

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -4px 38px 0 rgba(21,52,76,0.13);
  padding: 20px 12px 14px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  z-index: 10000;
  font-size: 1rem;
  border-top: 5px solid var(--color-electric1);
  transition: transform 0.33s cubic-bezier(.85,.04,.31,1);
}
.cookie-banner.hide {
  transform: translateY(160%);
}
.cookie-banner .btn {
  margin-left: 10px; min-width: 130px;
  margin-top: 0;
  padding: 10px 18px;
  font-size: 0.99rem;
}
.cookie-banner .btn.settings {
  background: var(--color-electric3);
}
.cookie-banner .btn.reject {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .btn.reject:hover, .cookie-banner .btn.reject:focus { background: var(--color-electric2); color: #fff; }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie-banner .btn { width: 100%; margin: 8px 0 0 0; }
}

/* === COOKIE MODAL === */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 11000;
  background: rgba(21,52,76,0.22);
  align-items: center;
  justify-content: center;
  animation: fade-in 0.18s;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  padding: 44px 32px 28px;
  max-width: 420px;
  width: 94vw;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  margin-left: 12px; margin-right: 12px;
}
.cookie-modal h2 {
  font-size: 1.38rem;
  background: none; -webkit-text-fill-color: unset; text-fill-color: unset; color: var(--color-electric2);
  margin-bottom: 8px;
}
.cookie-modal .close {
  background: var(--color-electric2);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 2rem;
  position: absolute;
  top: 12px; right: 24px;
  cursor: pointer;
  padding: 2px 17px 2px 11px;
  transition: background 0.12s;
  z-index: 1;
}
.cookie-modal .close:focus, .cookie-modal .close:hover { background: var(--color-electric1); color: var(--color-primary); }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 8px 0;
}
.cookie-categories label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-categories input[type="checkbox"] {
  accent-color: var(--color-electric2);
  width: 19px; height: 19px;
}
.cookie-categories .mandatory {
  color: var(--color-primary);
  font-weight: bold;
  opacity: 0.8;
}
.cookie-modal .btn {
  margin-top: 20px; padding: 13px 28px;
}
@media (max-width: 470px) {
  .cookie-modal-content { padding: 25px 8px 22px; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* === RESPONSIVE, SPACING, AND MISC === */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }
  .container, .content-wrapper { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 420px) {
  .card, .feature-grid .feature, .testimonial-card, .footer-top nav a, .contact-info > div { padding: 12px 8px; }
}

/* === LIST STYLE OVERRIDES === */
ul, ol { margin-left: var(--space-2); }
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 20px;
  position: relative;
  color: var(--color-primary);
  font-size: 1.07rem;
}
ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--color-electric2);
  display: inline-block;
}

/* === MISC === */
.next-steps ul {
  display: flex; flex-direction: column; gap: 11px; padding-left: 0;
}
.next-steps ul li { font-size: 1rem; }
.contact-suggestion { margin-top: var(--space-2); }
.contact-suggestion .cta-primary { margin-top: 0; }

/* Accessibility */
:focus { outline: 2px solid var(--color-electric2) !important; outline-offset: 2px; }

/* Hide visually but keep accessible */
.sr-only { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
