/* RESET & BASELINE --------------------------------------------------------------- */
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, menu, 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, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #143661;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #38AFA7;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.5,1.35,.26,1);
}
a:hover {
  color: #143661;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 8px;
}
strong, b {
  font-weight: bold;
}

/* BRAND COLORS AND TYPOGRAPHY ------------------------------------------------------ */
:root {
  --primary: #143661;
  --secondary: #38AFA7;
  --accent: #F1F5FB;
  --card-bg: #fff;
  --text-dark: #143661;
  --text-light: #fff;
  --shadow-md: 0 4px 24px 0 rgba(20,54,97,0.10);
  --shadow-light: 0 2px 6px 0 rgba(20,54,97,0.08);
  --radius-main: 16px;
  --radius-btn: 32px;
  --radius-card: 24px;
  --transition-main: 0.2s cubic-bezier(.5,1.5,.26,1);
  --border-hr: #E3E9F0;
  --highlight: #38AFA7;
  --error: #e94242;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.19;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
}
p {
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--primary);
}

/* LAYOUT STRUCTURE & SPACING -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

header, footer {
  background: var(--accent);
  box-shadow: var(--shadow-light);
}
header .container,
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header nav, footer nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
footer nav {
  gap: 16px;
  font-size: 1rem;
}
header img, footer img {
  max-height: 44px;
  margin-right: 24px;
}
footer > .container > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--primary);
  font-size: 0.95rem;
}
footer span {
  margin-right: 18px;
}

.section, main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FEATURE GRIDS, CARDS, TESTIMONIALS ----------------------------------------------- */
.feature-grid, .blog-list, .faq-list, .card-grid, .benefit-grid, .infographic-listing, .partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 8px;
}
.feature-grid > div,
.card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  border: 2px solid transparent;
}
.feature-grid > div:hover, .card:hover {
  box-shadow: 0 6px 32px 0 rgba(52,175,167,0.13);
  border-color: var(--highlight);
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.partner-logos {
  align-items: center;
  gap: 32px;
  margin-top: 20px;
}
.partner-logos img {
  max-height: 36px;
  opacity: 0.8;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 330px;
  flex: 1 1 250px;
  position: relative;
}

.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-top: 8px;
}
.benefit-grid ul {
  flex: 3 1 260px;
  list-style: none
}
.benefit-grid ul li span {
  color: var(--highlight);
  font-weight: 800;
  font-size: 1.5rem;
  vertical-align: middle;
}
.benefit-grid .stat-overview {
  flex: 1 1 200px;
  background: var(--highlight);
  color: var(--text-light);
  padding: 24px 18px;
  font-size: 1.2rem;
  border-radius: var(--radius-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  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(--accent);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--highlight);
  font-size: 1.11rem;
  flex-direction: column;
  color: #143661;
}
.testimonial-card p {
  margin-bottom: 10px;
  color: #143661;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--primary);
}

.faq-list {
  flex-direction: column;
  gap: 20px;
}
.faq-list > div {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-light);
  padding: 20px 24px;
}

/* BLOG & CATEGORY FILTERS --------------------------------------------------------- */
.blog-list {
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}
.blog-list article {
  background: #fff;
  border-radius: var(--radius-main);
  padding: 24px 20px;
  box-shadow: var(--shadow-light);
  border-left: 5px solid var(--highlight);
}
.category-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.category-filters a {
  color: var(--highlight);
  font-weight: bold;
  letter-spacing: -0.2px;
  position: relative;
  padding: 2px 8px;
  border-radius: 14px;
  transition: background var(--transition-main);
}
.category-filters a:hover, .category-filters a:active {
  background: var(--accent);
  color: var(--primary);
}

/* BUTTONS & CTA BUTTONS ---------------------------------------------------------- */
.cta-btn, button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-size: 1.18rem;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 36px;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(56,175,167,0.10);
  transition: background 0.18s cubic-bezier(.5,1.5,.26,1), transform 0.15s cubic-bezier(.5,1.3,.26,1);
  outline: none;
  display: inline-block;
  margin-right: 12px;
  text-align: center;
  line-height: 1.14;
  letter-spacing: 0.3px;
}
.cta-btn:hover, .cta-btn:focus, .cta-btn:active,
button:hover, button:focus,
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus,
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.04);
}
.cta-btn:active,
button:active,
.mobile-menu-toggle:active, .mobile-menu-close:active {
  background: #144991;
  color: #fff;
}
/* Small standard secondary button */
button.secondary, .btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--highlight);
  font-weight: 700;
}
button.secondary:hover, .btn-secondary:hover {
  background: var(--highlight);
  color: #fff;
}

/* MOBILE MENU (BURGER MENU) ------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  position: relative;
  z-index: 102;
  padding: 6px 16px;
  transition: color var(--transition-main), background var(--transition-main);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,54,97, 0.97);
  color: #fff;
  z-index: 1001;
  transform: translateX(-100%);
  will-change: transform;
  transition: transform 0.34s cubic-bezier(.45,1,.29,1.2);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding: 0px 0 0 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  font-weight: 900;
  position: absolute;
  top: 18px;
  right: 26px;
  cursor: pointer;
  z-index: 1002;
  padding: 4px 12px;
  border-radius: 24px;
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--highlight);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 80px 32px 32px 36px;
  width: 100vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.39rem;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  padding: 14px 0px 12px 12px;
  border-radius: 10px;
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--highlight);
  color: var(--primary);
}

@media (max-width: 1020px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .benefit-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .partner-logos {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 8px;
  }
  .section, main section {
    padding: 26px 4px;
    margin-bottom: 32px;
  }
  .card, .feature-grid > div {
    padding: 22px 12px 16px 14px;
  }
  .testimonial-card {
    padding: 12px 8px;
  }
}

/* FORMS -------------------------------------------------------------------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.6px solid #C4D6EA;
  margin-bottom: 16px;
  background: #FAFAFA;
  color: var(--primary);
  width: 100%;
  box-sizing: border-box;
  transition: border var(--transition-main), box-shadow var(--transition-main);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--highlight);
  outline: none;
  box-shadow: 0 0 0 2px #38AFA7aa;
}
label {
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

/* MISCELLANEOUS DECORATIVE EFFECTS ----------------------------------------------- */
section {
  position: relative;
  z-index: 1;
}

/* Infographic Listing (icons row) */
.infographic-listing {
  flex-direction: row;
  gap: 30px;
  align-items: center;
  margin-top: 18px;
}
.infographic-listing img {
  width: 54px;
  height: 54px;
  opacity: 0.97;
}

/* ICONS in resource list --------------------------------------------------------- */
.content-wrapper ul li img {
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 10px;
}
.content-wrapper ul li a {
  padding-left: 6px;
  color: var(--highlight);
  font-weight: 700;
  text-decoration: underline;
  font-size: 1rem;
}

/* FAQ & TEXT LISTS ENHANCEMENTS ------------------------------------------------- */
.content-wrapper ul li strong {
  color: var(--primary);
  font-weight: 900;
}

/* Cookie Consent Banner --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: var(--primary);
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 20px 0 rgba(20,54,97,0.09);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 26px 36px 24px 44px;
  gap: 24px;
  font-size: 1.02rem;
  opacity: 1;
  transition: opacity 0.18s cubic-bezier(.5,1.5,.26,1);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-banner .cookie-actions {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-banner button {
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 22px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: #fff;
  transition: background var(--transition-main), transform var(--transition-main);
}
.cookie-banner button.secondary {
  background: #fff;
  color: var(--highlight);
  border: 2px solid var(--highlight);
  font-weight: 700;
}
.cookie-banner button.secondary:hover {
  background: var(--highlight);
  color: #fff;
}
.cookie-banner button:active {
  background: #144991;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    padding: 18px 8px 18px 8px;
    gap: 10px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
}

/* Cookie Settings Modal ---------------------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(20,54,97,.78);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s cubic-bezier(.5,1.3,.26,1);
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: 20px;
  box-shadow: 0 8px 48px 0 rgba(20,54,97,0.17);
  padding: 36px 32px 32px 32px;
  max-width: 490px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h3 {
  color: var(--highlight);
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.32rem;
  margin-bottom: 14px;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .category-row span {
  flex: 1;
  font-weight: 600;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 46px;
  height: 24px;
}
.cookie-modal .toggle-switch input[type=checkbox] {
  opacity: 0;
  width: 46px;
  height: 24px;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
}
.cookie-modal .toggle-switch .slider {
  position: absolute;
  left: 0; top: 0;
  width: 46px;
  height: 24px;
  background: var(--accent);
  border-radius: 18px;
  transition: background 0.18s;
  box-shadow: 0 1px 3px 0 rgba(20,54,97,0.09);
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--highlight);
}
.cookie-modal .slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.18s cubic-bezier(.22,1.5,.26,1), box-shadow 0.13s;
  box-shadow: 0 2px 4px 0 rgba(20,54,97,0.13);
}
.cookie-modal .toggle-switch input:checked + .slider::before {
  left: 23px;
  background: #fff;
  box-shadow: 0 2px 6px 0 rgba(56,175,167,0.18);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  font-size: 1rem;
  padding: 9px 22px;
}
.cookie-modal .cookie-modal-actions .secondary {
  background: #fff;
  color: var(--highlight);
  border: 2px solid var(--highlight);
}
.cookie-modal .cookie-modal-actions .secondary:hover {
  background: var(--highlight);
  color: #fff;
}

@media (max-width: 500px) {
  .cookie-modal .modal-content {
    padding: 20px 5vw 18px 5vw;
  }
}

/* Animations & Interactions ------------------------------------------------------ */
.card, .feature-grid > div, .testimonial-card,
.cta-btn, button, .category-filters a,
.cookie-banner, .cookie-modal .modal-content,
.card-container > .card,
.content-wrapper > .card, .card-grid > .card {
  transition:
    box-shadow var(--transition-main),
    border-color var(--transition-main),
    background var(--transition-main),
    color var(--transition-main),
    transform var(--transition-main),
    opacity 0.18s;
}

.cta-btn:active {
  transform: scale(0.98);
}

/* VISUAL HIERARCHY via SPACING -------------------------------------------------- */
.section + .section, main section + section {
  margin-top: 0;
}
.text-section > h2,
.content-wrapper > h2 {
  margin-top: 0;
}

/* Responsive table tweaks (no grid/columns) -------------------------------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-hr);
}

/* MISC UTILS -------------------------------------------------------------------- */
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-6 { margin-top: 24px; }
.mb-6 { margin-bottom: 24px; }

/*-- Hide visually but accessible -------------------------------------------------*/
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: 0;
}

/* Hide Scrollbar for burger menu -------------------------------------------------*/
.mobile-menu::-webkit-scrollbar {
  display: none;
}
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* GEOMETRIC SHAPES (Visual Decor, only for accent 'bold') ------------------------ */
.section::after {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 90px;
  opacity: .08;
}
.section:nth-child(odd)::after {
  right: 2vw; bottom: 12px;
  width: 140px;
  height: 54px;
  background: var(--highlight);
  transform: rotate(-8deg);
}
.section:nth-child(even)::after {
  left: 2vw; top: 7px;
  width: 90px;
  height: 40px;
  background: var(--primary);
  transform: rotate(-11deg);
}
@media (max-width: 700px) {
  .section::after {
    display: none;
  }
}

/* ACCESSIBLE FOCUS ---------------------------------------------------------------- */
a:focus, button:focus, .cta-btn:focus, .mobile-menu a:focus {
  outline: 2.4px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--primary)!important;
  box-shadow: 0 0 0 2px #38AFA7bb;
}

/* PRINT STYLES ------------------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  .section, main section {
    box-shadow: none !important;
    background: #fff !important;
  }
}
