/* =========================
   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,
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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: linear-gradient(135deg,#e9eff4 0%, #ffffff 100%);
  font-family: 'Roboto', Arial, sans-serif;
  color: #194368;
  min-height: 100vh;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, textarea, select {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* =========================
   CUSTOM FONT FAMILIES
========================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600|Roboto:400,500,700&display=swap');
h1, h2, h3, h4, .btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* =========================
   COLOR VARIABLES
========================= */
:root {
  --color-primary: #194368;
  --color-secondary: #E9EFF4;
  --color-accent: #FAA728;
  --color-background: #E9EFF4;
  --color-surface: #fff;
  --color-dark: #102132;
  --color-text: #194368;
  --color-muted: #8797af;
  --color-shadow: rgba(25,67,104,0.08);
  --color-shadow-strong: rgba(25,67,104,0.16);
  --color-light: #ffffff;
}

/* =========================
   LAYOUT CONTAINERS
========================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  background: var(--color-surface);
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 var(--color-shadow);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 280px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 22px var(--color-shadow-strong);
  transform: translateY(-3px) scale(1.01);
  z-index: 2;
}

.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;
  border-radius: 12px;
  background: var(--color-secondary);
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  flex: 1 1 340px;
  color: #102132;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #102132;
  font-size: 1.1rem;
  flex: 1;
  margin-right: 12px;
}
.testimonial-card cite {
  font-size: 1rem;
  color: var(--color-accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.listing-card {
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 2px 11px var(--color-shadow);
  padding: 26px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.listing-card:hover {
  box-shadow: 0 5px 30px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.01);
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.team-member {
  background: var(--color-secondary);
  border-radius: 14px;
  flex: 1 1 230px;
  min-width: 220px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 20px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.team-member:hover {
  box-shadow: 0 4px 18px var(--color-shadow-strong);
  transform: translateY(-2px);
}

.article-preview {
  background: var(--color-secondary);
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 18px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.article-preview:hover {
  box-shadow: 0 4px 18px var(--color-shadow-strong);
  transform: translateY(-2px);
}

.resource-categories {
  margin: 18px 0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 1px 6px var(--color-shadow);
}

.tips-section {
  background: #f6f9fb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 18px;
  box-shadow: 0 1px 6px var(--color-shadow);
}

.faq-accordion > div {
  background: var(--color-secondary);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 14px 18px;
}

/* =========================
  HEADINGS & TYPOGRAPHY
========================= */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 18px;
  color: var(--color-primary);
}
h3 {
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-primary);
}
h4 {
  font-size: 1.13rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-primary);
}
p, ul li, ol li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 10px;
}
strong {
  font-weight: 600;
  color: var(--color-dark);
}
blockquote {
  font-style: italic;
  color: var(--color-dark);
}

.text-section {
  max-width: 680px;
}

/* =========================
   BUTTONS & INTERACTIONS
========================= */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(92deg, var(--color-primary) 75%, var(--color-accent) 100%);
  color: #fff;
  border: none;
  margin-right: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(100deg, #12365a 75%, #e39c28 100%);
  box-shadow: 0 4px 20px var(--color-shadow-strong);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  background: var(--color-accent);
  color: #fff;
  border: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #e39c28;
  color: #fff;
  box-shadow: 0 4px 19px var(--color-shadow);
  transform: translateY(-1px) scale(1.01);
}

a.btn-primary,
a.btn-secondary {
  text-align: center;
  text-decoration: none;
}

/* =========================
   MAIN NAVIGATION
========================= */
header {
  background: var(--color-surface);
  box-shadow: 0 2px 10px var(--color-shadow-strong);
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 8px;
  max-width: 1140px;
  margin: 0 auto;
}
.main-nav a {
  padding: 7px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: 7px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.main-nav a.btn-primary {
  padding: 9px 28px;
  margin-left: auto;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 9px;
  vertical-align: middle;
}

/* Burger Menu toggle (mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-size: 2.15rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 105;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #ffd892;
  color: var(--color-primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 90vw;
  max-width: 360px;
  background: var(--color-surface);
  box-shadow: 3px 0 24px var(--color-shadow-strong);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  transform: translateX(-110%);
  transition: transform 0.32s cubic-bezier(0.52,0,0.31,1);
  padding: 28px 24px 18px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-left: auto;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 3px 16px;
  cursor: pointer;
  transition: background 0.17s;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.mobile-nav {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: var(--color-primary);
  padding: 10px 0 10px 4px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Global overlay backdrop for mobile menu */
body.menu-open::after {
  content: '';
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(25,67,104, 0.22);
  z-index: 1015;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 44px 0 18px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  font-size: 1.00rem;
  transition: color 0.18s, opacity 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.footer-brand img {
  height: 38px;
  margin-bottom: 5px;
}
.footer-brand p {
  color: #fff;
  font-size: 1rem;
  opacity: 0.8;
}

/* =========================
   ICONS & IMAGES
========================= */
ul img, li img {
  vertical-align: middle;
  margin-right: 9px;
  height: 24px;
  width: 24px;
  display: inline-block;
}

ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.45;
}
section ul {
  padding-left: 0;
}
.section ol {
  padding-left: 18px;
  list-style: decimal inside;
}

/* =========================
   MISCELLANEOUS
========================= */
a {
  transition: color 0.18s, background 0.18s;
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
em {
  color: var(--color-accent);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1060px) {
  .container {
    max-width: 94vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .team-list {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 3vw;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-nav {
    gap: 10px;
    font-size: 0.97rem;
  }
  .content-wrapper {
    padding: 20px 7vw;
    border-radius: 14px;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 35px;
  }
  .card-container,
  .content-grid,
  .team-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
    font-size: 0.97rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.31rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 10px 18px;
  }
}

/* =========================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-secondary);
  box-shadow: 0 -4px 24px var(--color-shadow-strong);
  padding: 18px 24px 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  z-index: 4000;
  transition: transform 0.32s cubic-bezier(0.52,0,0.31,1);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner p {
  flex: 1;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 0;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 24px;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background 0.18s, color 0.15s, transform 0.13s;
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #e39c28;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #faf6ea;
  color: #d38d08;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-muted);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #eff3f9;
  color: var(--color-accent);
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 18px 7vw 18px 7vw;
    font-size: 0.97rem;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: var(--color-surface);
  border-radius: 18px;
  box-shadow: 0 8px 44px var(--color-shadow-strong);
  max-width: 420px;
  width: 92vw;
  z-index: 4100;
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.26s, transform 0.18s;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translate(-50%,-37%) scale(0.95);
  pointer-events: none;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: var(--color-secondary);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.cookie-category label {
  font-size: 1.04rem;
  color: var(--color-dark);
}
.cookie-cat-essential label:after {
  content: ' (required)';
  font-size: 0.91rem;
  color: var(--color-muted);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  font-size: 1rem;
  padding: 8px 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.34rem;
  border-radius: 50%;
  border: none;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #d08b0f;
}

/* =========================
      ANIMATIONS
========================= */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(28px) scale(0.98); }
  100% { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.section, .content-wrapper, .card, .testimonial-card, .listing-card, .team-member, .article-preview {
  animation: fadeInUp 0.7s ease; /* For gradient_modern dynamism */
}

/* =============================
 ICON BUTTONS, CHECKLISTS, ETC.
============================= */
.tips-section ul li img,
.faq-accordion h3::before, .resource-categories h3::before {
  /* placeholder for icons that may be added for enhancement */
}

/* =========================
   MISC FOR A11Y & CONTRAST
========================= */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* Accessibility: Focus ring for tab navigation */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =========================
 SECTION & CARD SPACING
========================= */
section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { gap: 24px; margin-bottom: 24px; }
.card { margin-bottom: 20px; }
.content-grid { gap: 20px; }
.text-image-section { gap: 30px; }
.testimonial-card { margin-bottom: 20px; gap: 20px; }
.feature-item { gap: 15px; }

/* Prevent absolute and grid usage for main layout (only for overlays/decor) */

/* End of CSS */
