/* =======================================================
   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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #232446;
  min-height: 100vh;
  color: #F5F8FA;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
}
a {
  background-color: transparent;
  color: #37A1B7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #5DF2FF;
  outline: none;
  text-decoration: underline;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: bold;
  letter-spacing: 0.25px;
}

/* =======================================================
   BRAND VARIABLES (COLOR & FONTS)
======================================================= */
:root {
  --color-primary: #242649;
  --color-secondary: #37A1B7;
  --color-accent: #F5F8FA;
  --color-background: #232446;
  --color-hero: #242649;
  --color-footer: #161730;
  --color-heading: #F5F8FA;
  --color-text: #E2F2F9;
  --color-card-bg: #292B57;
  --color-card-border: #2F304C;
  --color-card-shadow: 0 4px 20px 0 rgba(37,161,183,0.08), 0 1.5px 6px 0 rgba(37,161,183,0.12);
  --color-btn: #37A1B7;
  --color-btn-hover: #5DF2FF;
  --color-btn-text: #242649;
  --color-banner: #262855;
  --color-border: #333452;
  --color-neon: #5DF2FF;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', Arial, sans-serif;
}

/* Fallback for custom properties (old browsers) */
body { background: #232446; }

/* =======================================================
   TYPOGRAPHY SCALE & HIERARCHY
======================================================= */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: 0.25px;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 12px;
}
h4, .h4, h5, .h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-heading);
}
p, li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
}
blockquote {
  font-style: italic;
  border-left: 4px solid var(--color-neon);
  padding-left: 16px;
  margin-bottom: 14px;
  color: var(--color-primary);
  background: rgba(245,248,250,0.8);
}
.text-link {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.text-link:hover { color: var(--color-neon); }

/* =======================================================
   FLEXBOX LAYOUTS (MANDATORY)
======================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card,
.value,
.category,
.feature,
.resource-item,
.featured-inspiration,
.author-profile {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--color-card-shadow);
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover,
.feature:hover,
.value:hover,
.category:hover,
.resource-item:hover,
.featured-inspiration:hover,
.author-profile:hover {
  box-shadow: 0 0 0 3px var(--color-neon), 0 6px 24px 0 rgba(37,161,183,0.14);
  border-color: var(--color-secondary);
  background: #242649;
}
.content-grid, .blogs-preview, .resources-highlighted, .inspirations, .author-grid, .feature-grid, .value-list, .category-grid, .blog-list, .subject-list ul {
  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: #F5F8FA;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(55,161,183,.1);
  color: #232446;
  border: 1px solid #E1EBF0;
  font-family: var(--font-body);
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Overwrite for non-card lists */
.tips-list, .faq-list {
  list-style: disc inside;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Distinct spacing for support */
.next-steps {
  margin-bottom: 32px;
}
.next-steps ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* MOBILE FLEX WRAP AND COLUMN */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-grid, .blogs-preview, .resources-highlighted, .inspirations, .author-grid, .feature-grid, .value-list, .category-grid, .blog-list{
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =======================================================
   HEADER & NAVIGATION
======================================================= */
header {
  width: 100%;
  background: var(--color-hero);
  box-shadow: 0 3px 18px rgba(36,38,73,0.09);
  position: relative;
  z-index: 11;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 20px;
}
.logo img {
  height: 46px;
  width: auto;
  vertical-align: middle;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 600;
  padding: 9px 12px;
  transition: color 0.18s, background 0.18s;
  border-radius: 10px;
  letter-spacing: 0.03em;
}
nav a:hover, nav a:focus {
  background: var(--color-secondary);
  color: var(--color-btn-text);
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg,#37A1B7 70%, #5DF2FF 100%);
  color: var(--color-btn-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 11px 22px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--color-neon), 0 2px 16px 0 rgba(93,242,255,0.16);
  border: none;
  margin-left: 10px;
  text-align: center;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.19s, color 0.13s;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg,#5DF2FF 80%, #37A1B7 99%);
  box-shadow: 0 0 0 3px var(--color-neon), 0 4px 18px 0 rgba(93,242,255,0.24);
  color: #232446;
}

/* =================== MOBILE NAV MENU =================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-neon);
  cursor: pointer;
  margin-left: 8px;
  z-index: 51;
  transition: color 0.24s;
}
.mobile-menu-toggle:hover { color: #5DF2FF; }
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,38,73,0.96);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 28px 18px 28px;
  transition: transform 0.33s cubic-bezier(.62,.1,.78,1.01);
  will-change: transform;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
  animation: nav-slide-in 0.28s cubic-bezier(.53,.11,.87,1.04);
}
@keyframes nav-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0%); }
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 2rem;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
  z-index: 9999;
  transition: color 0.18s;
}
.mobile-menu-close:hover { color: #5DF2FF; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-neon);
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 14px 0 10px 5px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(93,242,255,0.10);
  color: #50C7E7;
}
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
  nav {
    display: flex;
  }
}

/* =======================================================
   HERO & CTA-BANNER
======================================================= */
.hero {
  background: #232446;
  padding: 60px 0 60px 0;
  border-bottom: 1px solid var(--color-border);
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}
.hero h1 {
  color: var(--color-heading);
  font-size: 2.7rem;
  text-shadow: 0 0 10px rgba(93,242,255,.22);
  background: -webkit-linear-gradient(90deg,var(--color-neon), var(--color-secondary) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  max-width: 680px;
  color: var(--color-text);
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.cta-banner {
  margin-bottom: 0;
  background: #262855;
  border-top: 1px solid var(--color-border);
  padding: 48px 0 48px 0;
}
.cta-banner .content-wrapper {
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cta-banner h2 {
  font-size: 2.1rem;
  text-align: center;
  color: #fff;
}
.cta-banner p {
  text-align: center;
  color: #E2F2F9;
}
.cta-banner .cta-btn {
  margin: 0 auto;
}

/* =======================================================
   PAGES: FEATURES, VALUE, CATEGORY, BLOGS, AUTHOR, RESOURCES
======================================================= */
.feature-grid, .value-list, .category-grid, .author-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature, .value, .category, .author-profile {
  flex: 1 1 220px;
  min-width: 250px;
  max-width: 360px;
}
.feature img, .value img {
  height: 40px; width: 40px; margin-bottom: 10px;
  filter: drop-shadow(0 0 6px #50C7E780); background: transparent;
}
.author-profile h3 {
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.blogs-preview, .blog-list, .resources-highlighted, .inspirations {
  gap: 24px;
  margin-top: 12px;
}
.blog-preview, .resource-item, .featured-inspiration {
  flex: 1 1 240px;
  min-width: 260px;
  max-width: 380px;
}
.blog-preview h3, .resource-item h3, .featured-inspiration h3 {
  font-size: 1.18rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 0 4px #5DF2FF44;
}

@media (max-width: 900px) {
  .feature-grid, .value-list, .category-grid, .author-grid,.blogs-preview,.blog-list,.resources-highlighted,.inspirations{
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* ======================= SUBJECTS & RESOURCE TYPES ======================*/
.subject-list ul,
.resource-types ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.subject-list li,
.resource-types li {
  background: var(--color-footer);
  color: var(--color-neon);
  padding: 9px 22px;
  border-radius: 11px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(55,161,183,0.06);
  letter-spacing: 0.02em;
}
@media (max-width: 800px) {
  .subject-list ul, .resource-types ul {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ======================= TESTIMONIALS ======================*/
.testimonial-card blockquote {
  border-left: 3px solid var(--color-secondary);
  background: none;
  margin: 0;
  color: #232446;
  font-size: 1rem;
  font-style: italic;
  font-family: var(--font-body);
  line-height: 1.7;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: .01em;
}

/* ======================= FOOTER ======================*/
footer {
  background: var(--color-footer);
  color: #90A3B4;
  padding: 40px 0 22px 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
  padding: 0 0px;
}
.footer-content nav {
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  margin-left: 0;
}
.footer-content nav a {
  color: #B7CADB;
  font-size: 1rem;
  padding: 2px 0;
  font-family: var(--font-body);
}
.footer-content nav a:hover {
  color: var(--color-neon);
  background: none;
}
.footer-content .contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .99rem;
  color: #B7CADB;
  margin-top: 6px;
}
.footer-content .contact-info img {
  height: 18px;
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
  filter: grayscale(30%) opacity(.6);
}
footer .logo img {
  height: 42px;
  width: auto;
  margin-bottom: 7px;
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* ======================= TEXT/PAGE SECTIONS ======================*/
.text-section {
  max-width: 880px;
  margin: 0 auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list {
  background: var(--color-banner);
  border-radius: 13px;
  padding: 18px 24px 16px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}
.faq-list li strong {
  color: var(--color-secondary);
  font-size: 1.01em;
}

/* =======================================================
   BUTTONS, FORMS, MICRO-EFFECTS & UTILITIES
======================================================= */
button, .cta-btn {
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  transition: background .18s, color .15s, box-shadow .21s;
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--color-neon);
  outline-offset: 2px;
}
/* subtle neon focus for all inputs and selectors */
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-neon);
  outline-offset: 1px;
}
/* subtle pulse on hover for main interactive elements */
.cta-btn, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a, nav a {
  transition: box-shadow .16s, background .14s, color .16s, transform .12s;
}
.cta-btn:hover, .cta-btn:focus {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 0 3px var(--color-neon), 0 6px 24px rgba(55,161,183,.23);
}

/* ======================= COOKIE BANNER ======================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #20214a;
  color: #F5F8FA;
  border-top: 2px solid var(--color-neon);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 11000;
  padding: 18px 24px;
  font-size: 1rem;
  box-shadow: 0 -3px 18px 0 rgba(36,166,185,0.16);
  animation: banner-slide-in .34s cubic-bezier(.53,.21,.91,.86);
}
@keyframes banner-slide-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: var(--color-btn);
  color: var(--color-btn-text);
  padding: 8px 22px;
  border-radius: 9px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-left: 4px;
  box-shadow: 0 0 0 2px var(--color-neon) inset;
  border: none;
  transition: background 0.2s, color 0.19s, box-shadow .2s;
}
.cookie-btn:hover { background: var(--color-neon); color: var(--color-primary); }
.cookie-btn.secondary {
  background: transparent;
  color: var(--color-neon);
  border: 1.7px solid var(--color-neon);
  box-shadow: none;
}
.cookie-btn.secondary:hover {
  background: var(--color-neon);
  color: var(--color-background);
}

/* ======================= COOKIE PREFERENCES MODAL ======================*/
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(36,38,73,0.94);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in .29s cubic-bezier(.51,.19,.82,.92);
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal__content {
  background: #232446;
  color: var(--color-accent);
  border-radius: 18px;
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 4px 40px rgba(93,242,255,0.20);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  color: var(--color-neon);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 21;
  transition: color .18s;
}
.cookie-modal__close:hover { color: #50C7E7; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  background: #292B57;
  border-radius: 9px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  margin-left: 2px;
  font-family: var(--font-display);
}
.cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--color-neon);
  margin-right: 10px;
}
.cookie-category input[disabled] { opacity: .67; }
.cookie-modal__footer {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* =================== ANIMATIONS & MICROINTERACTIONS =================== */
.card, .feature, .value, .category, .author-profile, .resource-item, .featured-inspiration, .blog-preview {
  transition: box-shadow .17s, border-color .15s, background .207s, transform .14s;
}
.card:hover, .feature:hover, .value:hover, .category:hover, .author-profile:hover, .resource-item:hover, .featured-inspiration:hover, .blog-preview:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 0 0 2px var(--color-neon), 0 5px 28px 0 rgba(37,161,183,0.16);
  border-color: var(--color-neon);
  background: #242649;
}
/* Animate cta-banner button, burger, and banner accept */
.cta-btn:active, .mobile-menu-toggle:active, .cookie-btn:active { transform: scale(.97); }

/* =======================================================
   THANK YOU PAGE
======================================================= */
.thank-you {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background: linear-gradient(120deg,#242649 80%,#37A1B7 100%);
}
.thank-you .content-wrapper {
  background: rgba(36,38,73,0.88);
  box-shadow: 0 4px 30px #37A1B729;
  border-radius: 20px;
  padding: 34px 26px;
  gap: 18px;
  align-items: center;
  color: var(--color-accent);
}
.thank-you h1 {
  font-size: 2.05rem;
  color: #fff;
}
.thank-you .cta-btn {
  margin-top: 18px;
}

/* ========================================
   UTILITIES
======================================== */
.mt-0 { margin-top: 0; }
.mt-18 { margin-top: 18px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }

/* =======================================================
   RESPONSIVE MEDIA QUERIES / TWEAKS
======================================================= */
@media (max-width: 670px) {
  .hero {
    padding: 24px 0 24px 0;
  }
  .hero h1 { font-size: 1.38rem; }
  .cta-banner { padding: 23px 0 23px 0; }
  .thank-you .content-wrapper { padding: 22px 10px; }
}
@media (max-width: 480px) {
  h1, .h1 { font-size: 1.29rem; }
  h2, .h2 { font-size: 1.02rem; }
  .hero h1, .cta-banner h2 { font-size: 1.11rem; }
  .container { padding: 0 4px; }
  .footer-content { gap: 18px; }
  .cookie-banner { flex-direction: column; gap: 13px; padding: 13px 4px; }
  .cookie-modal__content { padding: 15px 4px 15px 8px; min-width: 98vw; }
}

/* =======================================================
   END
======================================================= */