/* ==== CSS RESET & BASE ==== */
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;
}

html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #FFFDF9;
  color: #2D2D2D;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

ul,ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: #15397D;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2B705;
}

button, .cta-primary, .cta-link {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  outline: none;
}

/* ==== BRAND VARIABLES (fallbacks for legacy) ==== */
:root {
  --primary: #15397D;
  --secondary: #F2B705;
  --accent: #E6ECFA;
  --knockout-bg: #FFFDF9;
  --card-bg: #FFFFFF;
  --shadow: 0 4px 16px 0 rgba(241,181,82,0.10);
  --radius: 18px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ==== CONTAINER & GENERAL SPACING ==== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #15397D;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
}
h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #E88D36;
}
h4, h5, h6 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #BC7605;
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #2D2D2D;
  letter-spacing: 0.05em;
}
strong, b {
  font-weight: 700;
  color: #15397D;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #15397D;
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}
.cta-link::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #F2B705;
  border-radius: 1px;
  transition: background 0.15s;
}
.cta-link:hover, .cta-link:focus {
  color: #E88D36;
}
.cta-link:hover::after, .cta-link:focus::after {
  background: #E88D36;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  box-shadow: var(--shadow);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #15397D;
  font-weight: 500;
  padding: 8px 5px;
  border-radius: 11px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #FFE6B6;
  color: #BC7605;
}

.cta-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  background: linear-gradient(90deg, #F2B705 70%, #E88D36 100%);
  color: #15397D;
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(242,183,5,0.16);
  padding: 15px 32px;
  margin-left: 18px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  cursor: pointer;
  letter-spacing: 0.07em;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #E6ECFA 0, #F2B705 70%);
  color: #BC7605;
  box-shadow: 0 3px 16px 0 rgba(242,183,5,0.23);
}

.header-main img {
  height: 50px;
  border-radius: 10px;
}

/* ==== MOBILE NAV ==== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 19px;
  font-size: 2rem;
  background: #FFE6B6;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #15397D;
  z-index: 31;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(242,183,5,0.12);
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F2B705;
  color: #fff;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFBEA;
  box-shadow: 0 8px 32px 0 rgba(183, 116, 0, 0.19);
  z-index: 40;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.7,1.58,.59,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: #FFE6B6;
  color: #15397D;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 22px 24px 10px 0;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(242,183,5,0.12);
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F2B705;
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  margin-top: 24px;
  align-items: flex-start;
  padding-left: 28px;
}
.mobile-nav a {
  font-size: 1.27rem;
  color: #15397D;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 0 10px 3px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  width: calc(100vw - 60px);
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE6B6;
  color: #E88D36;
}

@media (max-width: 1023px) {
  .header-main nav, .header-main .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== HERO ==== */
.hero {
  background: #FFE6B6;
  border-radius: var(--radius);
  box-shadow: 0 6px 28px 0 rgba(242,183,5,0.13);
  padding: 48px 0 34px 0;
  margin-bottom: 44px;
  width: 100%;
  overflow: hidden;
}
.hero h1 {
  color: #15397D;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.25rem;
  color: #684A00;
  margin-bottom: 22px;
}
.hero .cta-primary {
  margin-left: 0;
}

/* ==== FEATURE & CARD GRIDS ==== */
.feature-grid, .timeline, .impact-stories, .topic-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 6px 0;
}
.feature-grid > div, .timeline > div, .impact-stories > div, .topic-cards > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex: 1 1 250px;
  min-width: 230px;
  padding: 24px 20px;
  transition: box-shadow 0.18s, transform 0.2s;
  margin-bottom: 12px;
}
.feature-grid > div:hover, .timeline > div:hover, .impact-stories > div:hover, .topic-cards > div:hover {
  box-shadow: 0 6px 32px 0 rgba(242,183,5,0.15);
  transform: translateY(-3px) scale(1.022);
}

/* CRITICAL: FLEXBOX card-container layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 34px 0 rgba(241,181,82,0.15);
  transform: translateY(-1px) scale(1.015);
}

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

/* ==== SECTION SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

/* ==== TEXT-IMAGE SECTION ==== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(183, 116, 0, 0.11), var(--shadow);
  padding: 20px 28px;
  margin-bottom: 18px;
  color: #15397D;
  min-width: 0;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: #15397D;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #BC7605;
  font-size: 1.03rem;
}

/* ==== FEATURE ITEM FLEX (for future) ==== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px 0 rgba(242,183,5,0.14);
  padding: 22px 16px;
  margin-bottom: 20px;
}

/* ==== SOCIAL LINKS ==== */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 18px;
}
.social-links a img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #FFE6B6;
  box-shadow: 0 1px 4px 0 rgba(242,183,5,0.09);
  transition: background 0.2s, box-shadow 0.18s;
}
.social-links a:hover img {
  background: #F2B705;
  box-shadow: 0 4px 16px 0 rgba(242,183,5,0.15);
}

/* ==== NEWSLETTER ==== */
.newsletter {
  background: #FFD479;
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(242,183,5,0.09);
  padding: 40px 0 36px 0;
  margin-top: 42px;
}
.newsletter h2 {
  color: #9B5A04;
}
.newsletter ul li {
  color: #684A00;
  margin-bottom: 7px;
  font-weight: 500;
}

/* ==== FOOTER ==== */
footer {
  background: #15397D;
  color: #fff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 44px 0 18px 0;
  margin-top: 48px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  justify-content: space-between;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-main nav a {
  color: #FFE6B6;
  font-family: var(--font-display);
  font-size: 1.09rem;
  margin-bottom: 4px;
  border-radius: 7px;
  padding: 4px 7px;
  transition: background 0.12s, color 0.14s;
}
.footer-main nav a:hover, .footer-main nav a:focus {
  background: #FFE6B6;
  color: #15397D;
}
.footer-contact {
  font-size: 0.99rem;
  line-height: 1.7;
  color: #FFE6B6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ==== FAQ ==== */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.faq-list > div {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 8px 0 rgba(242,183,5,0.13);
  padding: 20px 18px;
  flex: 1 1 270px;
  min-width: 220px;
}
.faq-list h3 {
  margin-bottom: 9px;
  color: #E88D36;
  font-size: 1.14rem;
  font-weight: 600;
}

/* ==== Utility + State Classes ==== */
.mr-20 { margin-right: 20px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #FFE6B6;
  color: #684A00;
  width: 100vw;
  box-shadow: 0 -3px 30px 0 rgba(242,183,5,0.13);
  padding: 26px 7vw 26px 7vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  animation: cookiebanner-enter 0.44s cubic-bezier(.73,1.13,.56,1.36);
}
@keyframes cookiebanner-enter {
  0% { transform: translateY(120%); opacity: 0; }
  65% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.06rem;
  color: #684A00;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 7px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 11px;
  padding: 10px 23px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 5px 0 rgba(242,183,5,0.10);
  transition: background 0.17s, color 0.15s;
}
.cookie-banner .cookie-accept {
  background: #F2B705;
  color: #15397D;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #E88D36;
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: #E6ECFA;
  color: #15397D;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #BC7605;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: none;
  border: 2px solid #BC7605;
  color: #BC7605;
  padding: 9px 23px;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #BC7605;
  color: #fff;
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(21,57,125,0.24);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookiemodal-enter 0.34s cubic-bezier(.39,1.19,.6,1.23);
}
@keyframes cookiemodal-enter {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 38px 0 rgba(242,183,5,0.19);
  width: 98vw;
  max-width: 425px;
  padding: 30px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookiemodal-contententer 0.37s cubic-bezier(.44,1.08,.62,1.18);
}
@keyframes cookiemodal-contententer {
  0% { transform: scale(.93) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: #15397D;
  margin-bottom: 6px;
  font-size: 1.18rem;
  font-weight: 600;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 3px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F9F6EC;
  border-radius: 9px;
  padding: 11px 12px 11px 14px;
}
.cookie-category label {
  flex: 1;
  color: #15397D;
  font-weight: 500;
  font-size: 1.01rem;
}
.cookie-category input[type=checkbox] {
  appearance: none;
  background: #fff;
  border: 2.2px solid #F2B705;
  box-shadow: 0 2px 9px 0 rgba(242,183,5,0.09);
  border-radius: 6px;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  outline: none;
  position: relative;
  transition: border-color 0.11s, background 0.11s;
}
.cookie-category input[type=checkbox]:checked {
  background: #F2B705;
  border-color: #E88D36;
}
.cookie-category input[type=checkbox]:checked::after {
  content: '';
  display: block;
  width: 10px; height: 10px;
  background: #15397D;
  border-radius: 2px;
  position: absolute;
  left: 4px; top: 4px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-save {
  background: #F2B705;
  color: #15397D;
}
.cookie-modal .cookie-save:hover, .cookie-modal .cookie-save:focus {
  background: #E88D36;
  color: #fff;
}
.cookie-modal .cookie-cancel {
  background: #E6ECFA;
  color: #BC7605;
}
.cookie-modal .cookie-cancel:hover, .cookie-modal .cookie-cancel:focus {
  background: #BC7605;
  color: #fff;
}

/***** Responsive breakpoints *****/
@media (max-width: 1023px) {
  .footer-main {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .feature-grid, .timeline, .impact-stories, .topic-cards, .faq-list {
    gap: 18px;
  }
  .feature-grid > div, .timeline > div, .impact-stories > div, .topic-cards > div {
    min-width: 180px;
    padding: 18px 11px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 97vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  .header-main img {
    height: 36px;
  }
  .hero {
    padding: 30px 0 24px 0;
  }
  .feature-grid > div, .timeline > div, .impact-stories > div, .topic-cards > div {
    min-width: 90vw;
    flex: 1 1 100%;
    padding: 20px 10px;
  }
  .section, section {
    padding: 30px 0 0 0;
    margin-bottom: 37px;
  }
  .newsletter {
    padding: 24px 0 18px 0;
    margin-top: 20px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .content-grid, .feature-grid, .timeline, .impact-stories, .topic-cards, .faq-list {
    flex-direction: column;
    gap: 18px;
  }
  .footer-main {
    gap: 12px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .mobile-nav a {
    font-size: 1.09rem;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 15px 7px;
    text-align: left;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
@media (max-width: 500px) {
  .cookie-banner {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .cookie-modal {
    padding: 12vw 3vw;
  }
  .footer-contact {
    font-size: 0.94rem;
  }
}
/* Extra: Hide scroll when mobile menu/cookie modal is active */
body.menu-open, body.cookie-modal-open {
  overflow: hidden !important;
}
