/* --- CSS Reset & Normalize --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #212529;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #174B78;
  text-decoration: none;
  transition: color .2s;
}
a:hover, .main-nav a:focus {
  color: #708C3B;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #174B78;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size:1rem; margin-bottom: 8px; }
p, ul, ol, dl {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* --- Header & Navigation --- */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 1px 8px 0 rgba(23,75,120,0.04);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
header img {
  height: 40px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 4px;
  color: #174B78;
  font-weight: 400;
  border-radius: 4px;
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a:active {
  background: #F5F4F0;
  color: #708C3B;
}
.cta-button {
  display: inline-block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #174B78;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  box-shadow: 0 2px 12px 0 rgba(23,75,120,0.08);
  transition: background .25s, box-shadow .25s, transform .18s;
  cursor: pointer;
  margin-left: 16px;
  outline: none;
  letter-spacing: 0.02em;
}
.cta-button:hover, .cta-button:focus {
  background: #708C3B;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px 0 rgba(112,140,59,0.12);
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 980px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 51;
    font-size: 2rem;
    background: none;
    border: none;
    color: #174B78;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
  }
}
.mobile-menu {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 48px 0 rgba(23,75,120,0.08);
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.63,.06,.27,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
  overflow-y: auto;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #708C3B;
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #174B78;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 64px 0 0 32px;
  gap: 24px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #174B78;
  padding: 8px 0;
  border-radius: 4px;
  transition: color .2s, background .2s;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:active, .mobile-nav a:focus {
  background: #F5F4F0;
  color: #708C3B;
  outline: none;
}

/* --- Hero Section --- */
.hero {
  background: #F5F4F0;
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 0;
}
.hero .container,
.section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  max-width: 650px;
  padding: 0 0;
}
.hero h1 {
  color: #174B78;
  font-size: 2.6rem;
  margin-bottom: 20px;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
}
.hero p {
  font-size: 1.25rem;
  color: #2E3440;
  margin-bottom: 24px;
}


/* --- Sections & Wrappers --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px 0 rgba(23,75,120,0.02);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

/* --- Card & Card Containers --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(23,75,120,0.06);
  padding: 32px 24px;
  min-width: 250px;
  flex: 1 1 280px;
  transition: box-shadow .18s, transform .16s;
}
.card:hover,
.card:focus {
  box-shadow: 0 5px 24px 0 rgba(23,75,120,0.16);
  transform: translateY(-4px) scale(1.01);
  outline: none;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* --- Content Grid --- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* --- Text-Image Section --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* --- Feature/Plan Grid & Feature Items --- */
.feature-grid,
.plan-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div,
.plan-cards > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(23,75,120,0.05);
  padding: 32px 24px;
  margin-bottom: 20px;
  flex: 1 1 300px;
  transition: box-shadow .16s, transform .12s;
}
.feature-grid > div:hover,
.plan-cards > div:hover {
  box-shadow: 0 5px 24px 0 rgba(112,140,59,0.12);
  transform: translateY(-3px) scale(1.01);
}
.feature-grid img, .plan-cards img {
  height: 38px;
  width: 38px;
  margin-bottom: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #F5F4F0;
  box-shadow: 0 1px 8px 0 rgba(112,140,59,0.08);
  color: #2E3440;
  font-size: 1.06rem;
  max-width: 600px;
  min-width: 220px;
  border: 1px solid #ECEBE7;
}
.testimonial-card p {
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #174B78;
  font-weight: 700;
}

/* --- News Filter Tabs --- */
.news-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}
.news-filter-tabs a {
  padding: 6px 18px;
  background: #F5F4F0;
  border-radius: 20px;
  font-size: 1rem;
  color: #174B78;
  font-weight: 500;
  transition: background .16s, color .16s;
}
.news-filter-tabs a:hover,
.news-filter-tabs a:focus {
  background: #174B78;
  color: #fff;
}

/* --- List/Article Styles --- */
ul > li, ol > li, dl {
  margin-bottom: 16px;
  font-size: 1.04rem;
}
ul > li > a, ol > li > a {
  color: #708C3B;
  font-weight: 500;
  text-decoration: underline;
  margin-left: 8px;
  font-size: 0.98rem;
  transition: color .2s;
}
ul > li > a:hover, ol > li > a:focus {
  color: #174B78;
}

/* --- Timeline (About page) --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}

/* --- Footer --- */
footer {
  background: #F5F4F0;
  color: #174B78;
  padding: 40px 0 20px 0;
  border-top: 1px solid #ececec;
}
.footer-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.footer-sections > div {
  flex: 1 1 200px;
  min-width: 180px;
}
.footer-sections img {
  height: 32px;
  margin-bottom: 8px;
 }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #174B78;
  font-size: 0.99rem;
  font-weight: 400;
}
.footer-nav a:hover {
  color: #708C3B;
}
.footer-brand-social {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e6e4e1;
  padding-top: 22px;
  font-size: 0.97rem;
  color: #174B78;
  opacity: 0.82;
}

/* --- Details/FAQs --- */
dt {
  font-weight: 700;
  font-family: 'Merriweather', Georgia, serif;
  color: #174B78;
  margin-bottom: 4px;
  font-size: 1.1rem;
}
dd {
  margin-left: 0;
  margin-bottom: 18px;
  color: #2E3440;
  font-size: 1rem;
}

/* --- Forms, Inputs, Buttons --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #174B78;
  margin-bottom: 16px;
  outline: none;
  transition: border-color .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #708C3B;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  cursor: pointer;
  background: #174B78;
  color: #fff;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 1px 5px rgba(23,75,120,.05);
}
button:hover, button:focus {
  background: #708C3B;
  outline: none;
  box-shadow: 0 3px 16px 0 rgba(23,75,120,.12);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 24px 0 rgba(23,75,120,0.07);
  border-top: 1px solid #e6e4e1;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform .35s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 24px;
  box-shadow: 0 1px 8px 0 rgba(23,75,120,0.04);
}
.cookie-accept {
  background: #174B78;
  color: #fff;
}
.cookie-accept:hover {
  background: #708C3B;
}
.cookie-reject {
  background: #ECEBE7;
  color: #174B78;
}
.cookie-reject:hover {
  background: #fff8f4;
}
.cookie-settings {
  background: #fff;
  color: #708C3B;
  border: 1px solid #708C3B;
}
.cookie-settings:hover {
  background: #F5F4F0;
}

/* --- Cookie Settings Modal --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 11000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,75,120,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .22s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 36px 0 rgba(23,75,120,0.13);
  max-width: 410px;
  width: 90vw;
  padding: 34px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideInUp .28s cubic-bezier(.39,.59,.21,1.21);
}
@keyframes slideInUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-header {
  font-family: 'Merriweather', Georgia, serif;
  color: #174B78;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cookie-modal-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1rem;
  padding: 0 0 6px 0;
}
/* Custom switches for toggles */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #ECEBE7;
  border-radius: 18px;
  transition: background .18s;
}
.cookie-switch input:checked + .slider {
  background: #708C3B;
}
.cookie-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .19s;
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(16px);
}
/* "Always enabled" (essential) note */
.cookie-essential-note {
  color: #708C3B;
  font-size: 0.97rem;
  margin-left: 12px;
  font-style: italic;
}
/* Modal Footer */
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 980px) {
  .footer-sections {
    flex-direction: column;
    gap: 24px;
  }
  .footer-sections > div {
    min-width: 0;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section, .hero {
    margin-bottom: 38px;
    padding: 34px 10px;
    border-radius: 8px;
  }
  .content-grid, .feature-grid, .plan-cards, .card-container, .footer-sections {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-grid > div, .plan-cards > div {
    min-width: 0;
    padding: 20px 14px;
  }
  .testimonial-card {
    padding: 16px;
    font-size: 1rem;
  }
  .hero {
    min-height: 0;
    padding: 34px 0;
    border-radius: 0;
  }
  .hero h1 { font-size: 2rem; }
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper { gap: 16px; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .main-nav, .cta-button {
    display: none;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  h1 {
    font-size: 1.35rem;
  }
  .footer-brand-social { font-size: 0.88rem; }
  .hero {
    min-height: 0;
    padding: 20px 0;
  }
  .section {
    padding: 18px 4px;
  }
}

/* --- Micro-interactions --- */
.cta-button, .main-nav a, .plan-cards > div, .card {
  transition: box-shadow .18s, background .21s, color .18s, transform .18s;
}

/* Hide scrollbars for mobile menu on iOS */
.mobile-menu {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
}

/* --- Custom Utility Spacings --- */
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* --- Hide elements for accessibility if needed --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Z-index Stack Management --- */
header { z-index: 50; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 9999; }
.cookie-modal-overlay { z-index: 11000; }

/* --- Disable absolute positioning for content, only used for overlays/decorations --- */
/* (No absolute positioning on .card, .feature-item, .testimonial-card, etc) */
