/* ===================================================
   CSS Reset & Normalize for Consistent Appearance
 =================================================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F2F4F7;
  color: #212943;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================
   Brand Variables
================== */
:root {
  --color-primary: #212943;
  --color-secondary: #6EBFC6;
  --color-accent: #F2F4F7;
  --color-gold: #BE9F56;
  --color-gold-light: #ddc890;
  --color-dark: #181b2c;
  --color-text: #212943;
  --color-light: #fff;
  --color-muted: #b1b5c3;
  --color-shadow: rgba(44,49,70,0.09);
  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-card: 18px;
  --radius-btn: 28px;
  --shadow-lg: 0 8px 32px rgba(44,49,70,0.13);
  --shadow-md: 0 2px 12px rgba(44,49,70,0.09);
}

/* ====================
   Typography Settings
===================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.001em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--color-primary);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-text);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
.text-section ul, .text-section ol {
  margin-left: 22px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ===============
   Container Sizing & Layout
================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}
@media (max-width: 991px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 42px;
  }
}

/* ===============
   Header Layout
================ */
header {
  background: var(--color-light);
  box-shadow: 0 2px 8px rgba(44,49,70,0.04);
  position: sticky;
  top: 0;
  z-index: 201;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0 18px 0;
}
header .container a img {
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 4px;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-gold);
  background: var(--color-accent);
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-light);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(190, 159, 86, 0.13);
  margin-left: 16px;
  transition: background 0.2s, color 0.17s, box-shadow 0.18s;
  cursor: pointer;
  outline: none;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-dark);
  color: var(--color-gold);
  box-shadow: 0 3px 16px rgba(190,159,86,0.15);
}
.btn-secondary {
  background: var(--color-light);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-btn);
  padding: 11px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  transition: background 0.18s, color 0.18s, border-color 0.13s, box-shadow 0.16s;
  box-shadow: 0 1px 4px rgba(190, 159, 86, 0.09);
  cursor: pointer;
  outline: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-gold);
  color: var(--color-light);
  box-shadow: 0 2px 7px rgba(190, 159, 86, 0.14);
}

/* Mobile Header Nav */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 9px;
  margin-left: 10px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-gold);
  outline: none;
}
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================
   Mobile Menu Overlay
===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(33, 41, 67, 0.97);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.76,0,.24,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-gold);
  font-size: 2.25rem;
  border: none;
  margin: 28px 28px 8px 0;
  cursor: pointer;
  padding: 3px 10px;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
  outline: none;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin-top: 34px;
  padding-left: 40px;
  z-index: 2;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.26rem;
  color: var(--color-light);
  padding: 10px 0;
  border-radius: 6px;
  margin-bottom: 0px;
  transition: color 0.22s, background 0.15s;
  display: block;
  width: 92vw;
  max-width: 360px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-gold);
  color: var(--color-dark);
  outline: none;
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none;
  }
}

/* ========================
   Hero & Section Patterns
=========================== */
section {
  background: var(--color-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 991px) {
  section {
    padding: 28px 0;
    margin-bottom: 40px;
  }
}
h1 + p, h2 + p {
  margin-top: 10px;
  margin-bottom: 26px;
  font-size: 1.2rem;
  color: var(--color-muted);
}
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin: 30px 0 16px 0;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 30px;
  margin-bottom: 14px;
}

/* ===============
   Card Patterns
================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.18s, border 0.18s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 10px 36px rgba(190, 159, 86, 0.07), 0 2px 18px rgba(33,41,67,0.12);
  border: 1px solid var(--color-gold-light);
  transform: translateY(-6px) scale(1.03);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* =========================
   Content Grid & Features
========================== */
.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 {
  background: var(--color-accent);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(33,41,67,0.05);
  border-left: 5px solid var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-body);
}
.testimonial-card p {
  font-size: 1.13rem;
  margin-bottom: 8px;
  color: var(--color-dark);
  line-height: 1.5;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
.feature-grid,
.resource-list,
.event-listings,
.blog-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px 0 10px 0;
}
.feature-grid > div,
.resource-list > div,
.event-listings > div,
.blog-card-grid > div {
  background: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px rgba(33,41,67,0.07);
  padding: 28px 20px 22px 20px;
  flex: 1 1 280px;
  min-width: 240px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-gold-light);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.18s;
  position: relative;
}
.feature-grid > div:hover,
.resource-list > div:hover,
.event-listings > div:hover,
.blog-card-grid > div:hover {
  box-shadow: 0 6px 18px rgba(190, 159, 86, 0.09), 0 1px 8px rgba(33,41,67,0.11);
  border-left-color: var(--color-gold);
  transform: translateY(-4px);
}
.feature-grid img,
.feature-list img {
  height: 45px;
  width: 45px;
  margin-bottom: 8px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(33,41,67,0.05));
}

.resource-list a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.16s;
}
.resource-list a:hover {
  color: var(--color-gold);
}

.event-calendar {
  margin-top: 24px;
  background: var(--color-light);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(110, 191, 198, 0.07);
  padding: 14px 12px 10px 18px;
  border-left: 4px solid var(--color-secondary);
  font-size: 1rem;
  color: var(--color-primary);
}

/* ============
   Blog Section
============== */
.blog-card-grid {
  margin-bottom: 0;
}
.blog-card-grid > div {
  position: relative;
}
.blog-card-grid a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.18s;
}
.blog-card-grid a:hover {
  color: var(--color-gold);
}

/* =============
   Footer Styles
============== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  margin-top: auto;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 52px 0 22px 0;
}
.footer-flex > div {
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  color: var(--color-accent);
  font-size: 1rem;
  padding: 3px 0;
  transition: color 0.16s;
  font-family: var(--font-body);
}
.footer-nav a:hover {
  color: var(--color-gold);
}
.footer-contact h4 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.09rem;
  margin-bottom: 11px;
}
.footer-contact p {
  color: var(--color-accent);
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-legal a {
  color: var(--color-muted);
  font-size: 0.97rem;
  transition: color 0.15s;
}
.footer-legal a:hover {
  color: var(--color-gold);
}
.footer-bottom {
  border-top: 1px solid #334166;
  text-align: center;
  padding: 20px 0 10px 0;
  font-size: 0.97rem;
  color: #7A8499;
}
footer img {
  height: 34px;
  margin-bottom: 12px;
}
@media (max-width: 991px) {
  .footer-flex {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 34px 0 12px 0;
  }
  .footer-flex > div {
    margin-bottom: 0px;
  }
}

/* =============
   CTA Sections
============= */
.section .btn-primary,
.content-wrapper .btn-primary {
  margin-top: 20px;
  align-self: flex-start;
}

/* =============
   Special Lists (Events etc.)
============= */
.event-listings {
  width: 100%;
}
.event-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}
.event-item h3 {
  margin-bottom: 3px;
}
/* =============
   Cookie Consent Banner
============= */
#cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 3px 22px rgba(33,41,67,0.14);
  padding: 22px 34px 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2030;
  transition: transform .34s cubic-bezier(.7,0,.3,1);
  border: 1px solid var(--color-gold-light);
  font-family: var(--font-body);
  gap: 16px;
}
#cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
#cookie-banner-text {
  flex: 1 1 320px;
  color: var(--color-dark);
  font-size: 1rem;
  margin-right: 40px;
  min-width: 180px;
}
#cookie-banner-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  border-radius: 24px;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.14s, color 0.15s, box-shadow 0.14s;
}
.cookie-btn.accept {
  background: var(--color-gold);
  color: var(--color-light);
  box-shadow: 0 1px 4px #BE9F5695;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-dark);
  color: var(--color-gold);
}
.cookie-btn.reject {
  background: var(--color-light);
  border: 1px solid var(--color-gold-light);
  color: var(--color-gold);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f8f8f4;
  color: var(--color-dark);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-light);
  font-weight: 700;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-gold);
  color: var(--color-dark);
}
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    gap: 19px;
    padding: 22px 14px 16px 15px;
    left: 8px;
    right: 8px;
  }
  #cookie-banner-text {
    margin-right: 0;
  }
  #cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
}

/* =====================
   Cookie Settings Modal
======================== */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 5002;
  background: rgba(33,41,67,0.86);
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-modal.show {
  display: flex;
  animation: fadeInModal .33s cubic-bezier(.82,0,.45,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-light);
  padding: 38px 26px 34px 30px;
  border-radius: 24px;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 10px 42px rgba(33,41,67,0.16);
  position: relative;
  color: var(--color-dark);
}
#cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--color-gold);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.19s;
}
#cookie-modal-close:hover, #cookie-modal-close:focus {
  color: var(--color-secondary);
}
.cookie-modal-content h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.24rem;
  margin-bottom: 18px;
}
.cookie-cat-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 24px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}
.cookie-cat label {
  font-size: 1rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  margin-right: 12px;
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  border-radius: 14px;
  background: #e3e3e3;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
  display: flex;
  align-items: center;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-gold);
  transition: left 0.15s, background 0.17s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 20px;
  background: var(--color-secondary);
}
.cookie-toggle[aria-disabled="true"] {
  background: #f4e6bd;
  cursor: not-allowed;
}
.cookie-toggle[aria-disabled="true"] .cookie-toggle-slider {
  background: var(--color-gold-light);
  opacity: 0.7;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}

/* ==============
   RESPONSIVE LAYOUTS
============== */
@media (max-width: 991px) {
  .feature-grid,
  .resource-list,
  .event-listings,
  .blog-card-grid,
  .card-container,
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .partner-logos {
    gap: 14px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .content-wrapper,
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .content-grid, .card-container, .testimonial-list {
    flex-direction: column;
    gap: 17px;
  }
  .feature-grid, .resource-list, .event-listings, .blog-card-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .section { padding: 24px 8px; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.09rem; }
}

/* Subtle Animations & Transitions */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.22s, color 0.16s, box-shadow 0.2s, border-color 0.18s, transform 0.12s;
}
.card, .feature-grid > div, .resource-list > div, .event-listings > div, .blog-card-grid > div {
  transition: box-shadow 0.13s, border-left-color 0.13s, transform 0.12s;
}

/* Miscellaneous Utility */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.gap-24 { gap: 24px; }
.gap-16 { gap: 16px; }
.m-b-24 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; }

/* Focus/Accessibility Enhancements */
a, button, .btn-primary, .btn-secondary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
}
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  box-shadow: 0 0 0 2px var(--color-gold-light);
}

/* ========== End of CSS ========== */
