/* Crimson Bridge: Monochrome Sophisticated CSS Theme - Flexbox Only  */

/* ----------------------------------
   CSS RESET & BASE TYPOGRAPHY
---------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #191919;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* Typography scale & hierarchy */
h1, .hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.16;
  color: #191919;
  margin-bottom: 0.4em;
  letter-spacing: -0.03em;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #373737;
  margin-bottom: 0.3em;
  letter-spacing: -0.01em;
}
h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #434343;
}
p, li, span, label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #191919;
}
strong {
  font-weight: 700;
  color: #000;
}
i, em {
  font-style: italic;
  color: #555;
}


/* ----------------------------------
   GLOBAL LAYOUT STRUCTURE
---------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}

/* Card spacing + layouts (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.16);
  transform: translateY(-3px);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 20px;
  margin-bottom: 20px;
}
.testimonial-author {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-style: italic;
  color: #555;
  margin-top: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* List base styles */
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
  margin-top: 0.6em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}

/* ----------------------------------
   HEADER & NAVIGATION
---------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 999;
}
nav {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
nav a.brand-logo img {
  height: 36px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
}
nav ul li a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #222;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.19s, color 0.19s;
}
nav ul li a:hover, nav ul li a:focus {
  color: #990F1B;
  background: #f0f0f0;
}
.cta-primary {
  display: inline-block;
  background: #191919;
  color: #fff!important;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(25,25,25,0.07);
  transition: background 0.16s, color 0.19s, box-shadow 0.19s, transform 0.135s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #990F1B;
  color: #fff;
  box-shadow: 0 8px 28px rgba(153,15,27,0.10);
  transform: translateY(-2px);
}
.cta-secondary {
  display: inline-block;
  background: #fff;
  color: #191919!important;
  border: 2px solid #191919;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  border-radius: 24px;
  padding: 12px 28px;
  margin-left: 12px;
  margin-top: 12px;
  transition: background 0.16s, border-color 0.18s, color 0.19s, transform 0.135s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #191919;
  color: #fff;
  border-color: #990F1B;
  transform: translateY(-1px);
}

/* ----------------------------------
   MOBILE MENU
---------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #191919;
  font-size: 2rem;
  padding: 6px 10px;
  border-radius: 8px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.15s, color 0.19s;
  z-index: 1201;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #990F1B;
  background: #f9f9f9;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 15, 0.96);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(.5,0,.2,1), opacity 0.3s;
  display: flex;
  flex-direction: column;
  z-index: 1200;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 18px 20px 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.13s;
}
.mobile-menu-close:focus {
  outline: 2px solid #990F1B;
  background: #252525;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 30px 30px 0 30px;
}
.mobile-nav a {
  display: block;
  width: 100%;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  padding: 12px 0;
  border-radius: 2px;
  transition: color 0.14s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #222;
  padding-left: 8px;
}

/* Hamburger visible on tablet/mobile only */
@media (max-width: 1024px) {
  nav ul, nav .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Show desktop nav on wider screens */
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none!important;
  }
}

/* ----------------------------------
   HERO / SECTION STYLES
---------------------------------- */
.hero {
  background: #191919;
  color: #fff;
  padding: 68px 0 68px 0;
  border-bottom: 4px solid #990F1B;
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.hero h1,
.hero p {
  color: #fff;
}
.hero a.cta-primary {
  margin-top: 22px;
  background: #990F1B;
  color: #fff;
  box-shadow: 0 4px 24px rgba(153,15,27,0.10);
}
.hero a.cta-primary:hover,
.hero a.cta-primary:focus {
  background: #fff;
  color: #990F1B;
  box-shadow: 0 8px 36px rgba(0,0,0,0.13);
}

/* Feature grid and items */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
}
.feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 270px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(51,51,51,0.055);
  padding: 28px 20px 24px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature img {
  height: 38px;
  margin-bottom: 10px;
}
.feature:hover {
  box-shadow: 0 6px 28px rgba(51,51,51,0.13);
  transform: translateY(-2px);
}

/* Card/grid systems for resource or article blocks */
.resources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.resource-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 270px;
  background: #f6f6f6;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(51,51,51,0.05);
  padding: 26px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.resource-card:hover {
  box-shadow: 0 6px 24px rgba(153,15,27,0.09);
  transform: translateY(-2px);
}

/* Event Cards */
.event-card {
  background: #fff;
  border-left: 6px solid #191919;
  border-radius: 10px;
  box-shadow: 0 2px 18px rgba(30,30,30,0.05);
  margin-bottom: 20px;
  padding: 20px 28px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-card h3 {
  color: #191919;
}

/* Articles preview section */
.articles-preview ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.articles-preview ul li {
  background: #f6f6f6;
  border-radius: 10px;
  padding: 20px 24px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Article listing grid */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}
.article-list li {
  background: #fafafc;
  border-radius: 11px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.04);
  padding: 22px 24px 14px 18px;
  min-width: 0;
  transition: box-shadow 0.13s, transform 0.12s;
}
.article-list li:hover {
  box-shadow: 0 4px 16px rgba(51,51,51,0.09);
  transform: translateY(-1px);
}
.article-list li h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.filter-bar button {
  background: #fff;
  border: 1px solid #222;
  color: #222;
  border-radius: 16px;
  padding: 7px 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.filter-bar button:hover, .filter-bar button:focus {
  background: #222;
  color: #fff;
  border-color: #990F1B;
}

/* Category list */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 16px 0 0 0;
}
.category-list li {
  display: inline-block;
  background: #ececec;
  color: #222;
  padding: 7px 18px;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ----------------------------------
   TEAM SECTION
---------------------------------- */
.team {
  margin-bottom: 60px;
}
.team-member {
  background: #fff;
  border-left: 5px solid #191919;
  border-radius: 9px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.055);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-member h3 {
  color: #191919;
}

/* Brand Philosophy - brand-philosophy section */
.brand-philosophy ul {
  margin-bottom: 10px;
}

/* ----------------------------------
   CTA & NEWSLETTER
---------------------------------- */
.cta-section, .newsletter-cta {
  background: #f3f3f4;
  border-radius: 18px;
  box-shadow: 0 3px 18px rgba(30,30,40,0.08);
  padding: 40px 22px 38px 22px;
  text-align: center;
  margin-bottom: 54px;
}

.newsletter-cta form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}
.newsletter-cta form label {
  display: none;
}
.newsletter-cta form input[type="email"] {
  padding: 10px 16px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  width: 210px;
  background: #fff;
  color: #191919;
}
.newsletter-cta form button[type="submit"] {
  background: #191919;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Roboto', Arial, sans-serif;
  transition: background 0.14s, color 0.16s;
}
.newsletter-cta form button[type="submit"]:hover {
  background: #990F1B;
  color: #fff;
}

/* ----------------------------------
   TABLES
---------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
  margin-top: 10px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 8px rgba(51,51,51,0.04);
  overflow: hidden;
}
thead tr {
  background: #191919;
}
thead th {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  color: #fff;
  padding: 15px;
  text-align: left;
}
tbody td {
  color: #1a1a1a;
  font-size: 1rem;
  padding: 13px;
  border-top: 1px solid #ededed;
}
tbody tr:nth-child(odd) {
  background: #faf9fa;
}

/* ----------------------------------
   FORMS & CONTACT FORM
---------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
input[type="text"],
input[type="email"],
select,
textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #f9f9f9;
  color: #191919;
  width: 100%;
  margin-top: 2px;
  transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #990F1B;
}
textarea {
  resize: vertical;
  min-height: 110px;
  font-size: 1rem;
}
form button[type="submit"] {
  background: #990F1B;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 12px 26px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Roboto', Arial, sans-serif;
  margin-top: 8px;
  align-self: flex-start;
  transition: background 0.13s, color 0.16s, box-shadow 0.12s;
}
form button[type="submit"]:hover {
  background: #222;
  color: #fff;
  box-shadow: 0 3px 14px rgba(25,25,25,0.09);
}

/* ----------------------------------
   CONTACT INFO LIST
---------------------------------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin-left: 0;
  margin-top: 10px;
}
.contact-info li {
  font-size: 1.05rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #191919;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info li img {
  width: 22px;
  height: 22px;
}

/* ----------------------------------
   FOOTER
---------------------------------- */
footer {
  background: #191919;
  color: #fff;
  padding: 50px 0 34px 0;
  border-top: 4px solid #990F1B;
}
footer .container {
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
  color: #bbb;
  font-size: 1rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
}
footer a {
  color: #fff;
  font-weight: 500;
  transition: color 0.16s;
}
footer a:hover, footer a:focus {
  color: #990F1B;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 16px 0 0 0;
  list-style: none;
}
footer ul li a {
  font-size: 1rem;
  color: #ececec;
}
footer ul li a:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
}

/* Footer logo */
footer .container > a > img {
  height: 38px;
  width: auto;
  margin-bottom: 8px;
}

/* ----------------------------------
   COOKIE CONSENT BANNER/MODAL
---------------------------------- */
#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1202;
  background: rgba(245,245,245,0.98);
  color: #191919;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  border-top: 1.5px solid #3331;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 22px 18px 18px 18px;
  opacity: 1;
  transition: opacity 0.22s;
}
#cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-text {
  font-size: 1rem;
  color: #191919;
  margin-right: 24px;
  max-width: 480px;
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
#cookie-banner button, #cookie-banner .cookie-actions > button {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 14px;
  padding: 9px 20px;
  cursor: pointer;
  border: none;
  margin: 0 3px;
  background: #fff;
  color: #191919;
  border: 1.4px solid #222;
  transition: background 0.14s, color 0.13s, border-color 0.16s;
  box-shadow: 0 1px 6px rgba(51,51,51,0.01);
}
#cookie-banner button.accept {
  background: #990F1B;
  color: #fff;
  border-color: #990F1B;
}
#cookie-banner button.accept:hover {
  background: #222;
  border-color: #191919;
  color: #fff;
}
#cookie-banner button.reject {
  background: #fff;
  border-color: #191919;
  color: #191919;
}
#cookie-banner button.reject:hover {
  background: #bbb;
  color: #191919;
}
#cookie-banner button.settings {
  background: #191919;
  color: #fff;
  border: 1.4px solid #191919;
}
#cookie-banner button.settings:hover {
  background: #fff;
  color: #191919;
}

/* Cookie modal overlay */
#cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,46,46,0.82);
  display: none;
  z-index: 1203;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
#cookie-modal-overlay.active {
  display: flex;
}
#cookie-modal {
  background: #fff;
  color: #191919;
  border-radius: 16px;
  box-shadow: 0 8px 42px rgba(0,0,0,0.15);
  padding: 34px 28px 28px 28px;
  min-width: 300px;
  min-height: 160px;
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: modalFadeIn 0.24s cubic-bezier(.57,.01,.38,1.05);
}
@keyframes modalFadeIn {
  from { transform: translateY(60px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
#cookie-modal h2 {
  font-size: 1.22rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1a1a1a;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
#cookie-modal .cookie-category label {
  font-weight: 500;
}
#cookie-modal .cookie-switch {
  appearance: none;
  width: 32px;
  height: 18px;
  background: #dedede;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.11s;
}
#cookie-modal .cookie-switch:checked {
  background: #990F1B;
}
#cookie-modal .cookie-switch::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.14s;
}
#cookie-modal .cookie-switch:checked::before {
  left: 16px;
}
#cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 9px;
  background: none;
  border: none;
  color: #191919;
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 6px;
}
#cookie-modal .modal-close:hover {
  background: #ececec;
}

/* ----------------------------------
   RESPONSIVE DESIGN (mobile first)
---------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 90vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  nav {
    max-width: 98vw;
  }
  .footer-contact {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  nav {
    flex-direction: row;
    gap: 10px;
    padding: 10px 8px 10px 8px;
  }
  .hero {
    padding: 38px 0 38px 0;
  }
  .hero .content-wrapper {
    max-width: 100%;
    gap: 16px;
  }
  .features-grid {
    flex-direction: column;
    gap: 22px;
  }
  .resources-grid {
    flex-direction: column;
    gap: 22px;
  }
  .section {
    margin-bottom: 32px !important;
    padding: 30px 8px !important;
  }
  .testimonial-card, .event-card {
    padding: 16px 13px 14px 13px;
  }
  .cta-section, .newsletter-cta {
    padding: 24px 6px 22px 6px;
    margin-bottom: 28px;
    border-radius: 12px;
  }
  .article-list li, .articles-preview ul li {
    padding: 16px 11px 12px 11px;
    border-radius: 8px;
  }
  footer {
    padding: 34px 0 24px 0;
  }
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 6px 16px 6px;
    font-size: 0.97rem;
  }
  #cookie-banner .cookie-text {
    margin-right: 0;
    max-width: 100%;
  }
  #cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
  }
  #cookie-modal {
    padding: 18px 6vw 18px 6vw;
    min-width: unset;
  }
  .contact-info {
    font-size: 0.96rem;
    gap: 12px;
  }
  .newsletter-cta form {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}
@media (max-width: 470px) {
  nav {
    gap: 0px;
    padding: 6px 2px 6px 2px;
  }
  .card, .feature, .resource-card, .team-member {
    padding: 13px 7px;
    border-radius: 7px;
  }
  .contact-info li img {
    width: 16px;
    height: 16px;
  }
  footer .container > a > img {
    height: 28px;
    margin-bottom: 4px;
  }
}

/* Flex direction column for text-image-section on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* Ensure adequate spacing, no overlap for all content cards/sections */
.card-container > *,
.features-grid > *,
.resources-grid > *,
.article-list > *,
.articles-preview ul > *,
.team > *,
.brand-philosophy > *,
.testimonial-card,
.event-card,
.resource-card,
.feature,
.team-member {
  margin: 0;
}

/* Prevent content overflow and maintain white space */
main, section, .container, .content-wrapper {
  min-width: 0;
}

/* Utility: visually hide but still accessible (used in newsletter label) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
