/*
Theme Name: DfT TEST UI Theme
Author: Aqib
Version: 1.8
*/

/* ====== CORE THEME COLOURS ====== */
:root {
  --main-blue: #0082ca;
  --main-navy: #01446b;
  --mint: #1de9b6;
  --dark-grey: #626262;
  --main-bg: #fff;
  --card-bg: #eef1f2;
  --second-green: #88ef1b;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--main-bg);
  color: var(--dark-grey);
  line-height: 1.6;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  left: -370px; /* mirrors right value from bottom-right */
  top: -180px; /* mirrors bottom value */
  width: 850px;
  height: 800px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.48;
  background-image: url("images/top-left.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
  transform: rotate(180deg);
}

body::after {
  content: "";
  position: fixed; /* not fixed! */
  right: -370px; /* change for further right */
  bottom: -180px; /* change for further down */
  width: 850px; /* increases size - bigger! */
  height: 800px; /* increases size - taller! */
  z-index: -1;
  pointer-events: none;
  opacity: 0.48;
  background-image: url("images/bottom-right.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2em;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--main-navy);
}

/* ====== PROFESSIONAL HEADER ====== */
.site-header {
  position: static;
  z-index: 1100;
  background: var(--main-bg);
}

.header-bar {
  width: 100%;
  background: var(--main-bg);
  border-bottom: 3px solid var(--main-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 100;
  overflow-x: auto;
}

.header-flex {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 1.2em 0.8em 0.7em;
  min-width: 0;
  gap: 1.2em;
}

.header-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5em;
}

.test-logo-link {
  display: flex;
  text-decoration: none;
  align-items: center;
  margin-right: 0;
}

.test-logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
}

.brand-logo {
  font-size: 2em;
  font-weight: 700;
  color: var(--main-navy);
  line-height: 1em;
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.brand-subtitle {
  font-size: 1.08em;
  color: var(--dark-grey);
  opacity: 0.85;
  margin-top: 0.09em;
  line-height: 1.08;
  max-width: 300px;
  letter-spacing: 0.001em;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.1em;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.navbar-main {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-main li {
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-main a {
  color: var(--dark-grey);
  background: transparent;
  font-weight: 500;
  font-size: 1.04em;
  padding: 0.6em 1.1em;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  outline: none;
  border: none;
  display: block;
  white-space: nowrap;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  border-bottom: 2px solid transparent;
}

.nav-main .current-menu-item > a,
.nav-main a.active {
  background: var(--main-navy);
  color: var(--main-bg) !important;
  font-weight: 600;
  border-bottom-color: var(--mint);
}

.nav-main a:focus,
.nav-main a:hover {
  background: var(--card-bg);
  color: var(--main-navy);
  border-bottom-color: var(--main-blue);
  text-decoration: none;
  outline: none;
}

.nav-main .current-menu-item > a:hover,
.nav-main a.active:hover,
.nav-main .current-menu-item > a:focus,
.nav-main a.active:focus {
  background: var(--main-blue);
  color: var(--main-bg) !important;
  border-bottom-color: var(--mint);
}

.submit-idea-btn {
  font-size: 1.05em;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 0.45em 1.2em;
  margin-left: 0.25em;
  box-shadow: none;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  transition: opacity 0.16s;
  display: inline-block;
  white-space: nowrap;
  background: var(--second-green);
  color: var(--main-navy);
}

.submit-idea-btn:hover,
.submit-idea-btn:focus {
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .header-flex {
    gap: 0.5em;
    padding: 0.4em 0.5em;
  }
  .navbar-right {
    flex-wrap: wrap;
    gap: 0.6em;
  }
  .brand-logo {
    font-size: 1.45em;
  }
  .brand-subtitle {
    font-size: 0.98em;
  }
}

@media (max-width: 900px) {
  .header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25em;
  }
  .header-identity {
    justify-content: flex-start;
  }
  .navbar-right,
  .navbar-main {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .submit-idea-btn {
    width: 96%;
    margin-bottom: 0.22em;
  }
  .nav-main {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .header-flex {
    padding: 0 0.2em;
  }
  .brand-logo {
    font-size: 1em;
  }
  .brand-subtitle {
    font-size: 0.88em;
  }
  .header-identity {
    gap: 0.18em;
  }
}

/* ====================== MODERN HOME STYLES ====================== */
.home-main {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 4.8rem 2.8rem 5.5rem;
  background: var(--main-bg);
}

.hero-section {
  max-width: 1180px;
  margin: 0 auto 5rem;
  text-align: center;
}

.home-hero-title {
  font-size: clamp(2.9rem, 6vw, 4.35rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--main-navy);
  letter-spacing: -0.03em;
  margin: 0;
  padding: 0 0.8rem;
}

.home-hero-title::after {
  content: "";
  display: block;
  width: 110px;
  height: 6px;
  background: var(--main-blue);
  margin: 2.2rem auto 0;
  border-radius: 4px;
}

.home-cards-vertical {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  margin-bottom: 4.5rem;
}

.home-card {
  background: var(--main-bg);
  border-radius: 24px;
  border: 1px solid var(--card-bg);
  box-shadow: 0 12px 35px rgba(1, 68, 107, 0.07);
  padding: 3.5rem 3.2rem;
  transition: all 0.4s ease;
}

.home-card-title {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--main-navy);
  margin-bottom: 2rem;
  padding-bottom: 1.3rem;
  border-bottom: 3px solid var(--card-bg);
}

.home-card-content p {
  font-size: 1.28rem;
  line-height: 1.82;
  color: var(--dark-grey);
  margin-bottom: 1.8rem;
}

.bullet-point {
  background: var(--card-bg);
  padding: 1.65rem 2.6rem 1.65rem 3.2rem;
  border-radius: 18px;
  margin-bottom: 1.3rem;
  position: relative;
  font-size: 1.22rem;
  line-height: 1.78;
  color: var(--main-navy);
  border-left: 6px solid var(--mint);
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  min-height: 110px;
}

.bullet-point:last-child {
  margin-bottom: 0;
}

.bullet-point:hover {
  background: var(--main-bg);
  transform: translateX(8px);
  border-left-color: var(--main-blue);
  outline: 1px solid var(--card-bg);
}

.bullet-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--main-blue);
  border-radius: 18px 0 0 18px;
}

.bullet-point:hover::before {
  width: 10px;
}

.bullet-point strong,
.bullet-point b {
  color: var(--main-navy);
  font-weight: 700;
}

.home-experts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.8rem;
  border-top: 1px solid var(--card-bg);
}

.home-experts-label {
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--main-navy);
}

.home-experts-logos {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.partner-logo {
  height: 50px;
  width: auto;
}

@media (max-width: 1100px) {
  .home-main {
    padding: 4rem 2.2rem;
  }
}

@media (max-width: 768px) {
  .home-main {
    padding: 3.5rem 1.6rem;
  }
  .home-card {
    padding: 2.8rem 2rem;
  }
  .bullet-point {
    font-size: 1.18rem;
  }
}

/* ======= Modern Professional Footer ======= */
.sticky-footer-bar {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--main-navy);
  color: var(--main-bg);
  font-size: 1rem;
  padding: 2.4rem 0;
  text-align: center;
  letter-spacing: 0.01em;
  z-index: 1300;
  position: relative;
  border-top: 4px solid var(--main-blue);
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(1, 68, 107, 0.08);
  margin-top: auto;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  max-width: 100%;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 1.5rem;
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  padding-right: 2.5rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.dft-footer-logo {
  height: 2.2rem;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.dft-footer-logo:hover {
  opacity: 1;
}

.footer-content-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 1.5rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.2rem;
}

.footer-nav-link {
  color: var(--main-bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.6rem 0;
  transition: all 0.25s ease;
  border-bottom: 2px solid transparent;
  position: relative;
}

.footer-nav-link:hover,
.footer-nav-link:focus {
  color: var(--mint);
  border-bottom: 2px solid var(--mint);
  outline: none;
}

@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    position: static;
    padding: 0;
  }

  .footer-logo-section {
    position: static;
    transform: none;
    padding: 0 1.5rem 1rem;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  }

  .footer-content-section {
    width: 100%;
    padding: 1.5rem 0 0 0;
  }

  .footer-nav {
    gap: 1.4rem;
    font-size: 1rem;
    padding: 0 1.5rem;
  }

  .dft-footer-logo {
    height: 1.8rem;
  }

  .sticky-footer-bar {
    padding: 1.8rem 0;
  }
}

@media (max-width: 600px) {
  .footer-container {
    gap: 1rem;
  }

  .footer-logo-section {
    padding: 0 1.5rem 0.8rem;
  }

  .footer-nav {
    gap: 1rem;
    font-size: 0.92rem;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .footer-nav-link {
    padding: 0.4rem 0;
    font-size: 0.95rem;
  }

  .dft-footer-logo {
    height: 1.4rem;
  }

  .sticky-footer-bar {
    padding: 1.2rem 0;
    border-top: 2px solid var(--main-blue);
  }
}

/* ====== COMPONENT ACCESSIBILITY OUTLINES ====== */
a:focus,
button:focus,
input:focus,
textarea:focus,
.cta-button:focus {
  outline: 3px solid var(--mint) !important;
  outline-offset: 3px !important;
}

/* ===== MODERN SLIDING COOKIE CONSENT BANNER ===== */
.cookie-banner-toast {
  position: fixed;
  bottom: 1.8rem;
  left: 2.2rem;
  z-index: 2000;
  background: var(--main-bg);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(1, 68, 107, 0.18);
  width: calc(100% - 4.4rem);
  max-width: 440px;
  padding: 1.8rem;
  box-sizing: border-box;
  border: 1px solid var(--card-bg);

  opacity: 0;
  transform: translateY(25px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner-toast.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--dark-grey);
}

.cookie-banner-text strong {
  color: var(--main-navy);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner-actions .text-center {
  text-align: center;
}

.cookie-btn-primary {
  background: var(--main-navy);
  color: var(--main-bg);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1 1 auto;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
  background: var(--main-blue);
  color: var(--main-bg);
}

.cookie-btn-secondary {
  background: var(--main-bg);
  color: var(--main-navy);
  border: 2px solid var(--card-bg);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
  background: var(--card-bg);
  border-color: var(--card-bg);
  color: var(--main-navy);
}

.cookie-inline-link {
  color: var(--main-blue);
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-inline-link:hover,
.cookie-inline-link:focus {
  color: var(--main-navy);
}

@media (max-width: 600px) {
  .cookie-banner-toast {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 1.5rem;
    box-shadow: 0 -10px 35px rgba(1, 68, 107, 0.15);
  }

  .cookie-banner-inner {
    gap: 1.1rem;
  }

  .cookie-banner-text p {
    font-size: 0.98rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .cookie-banner-actions > * {
    width: 100%;
  }
}

/* ====== FAQS SECTION - PREMIUM ACCORDION ====== */
.faqs-main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem 2rem 5.5rem;
  box-sizing: border-box;
}

.faqs-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--main-navy);
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.faqs-hero-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 5px;
  background: var(--main-blue);
  margin: 1.8rem auto 0;
  border-radius: 4px;
}

.faqs-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-row {
  background: var(--main-bg);
  border-radius: 16px;
  border: 1px solid var(--card-bg);
  box-shadow: 0 4px 15px rgba(1, 68, 107, 0.03);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-row:hover {
  border-color: rgba(0, 130, 202, 0.2);
  box-shadow: 0 8px 25px rgba(1, 68, 107, 0.06);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.5rem 2rem;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--main-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  outline: none;
  transition: background-color 0.2s ease;
}

.faq-question:hover,
.faq-question:focus {
  background-color: rgba(238, 241, 242, 0.4);
}

.faq-question-text {
  line-height: 1.4;
}

.faq-icon-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-plus-line {
  position: absolute;
  background-color: var(--main-blue);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-plus-line.horizontal {
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
}

.faq-plus-line.vertical {
  top: 0;
  left: 9px;
  width: 2px;
  height: 100%;
}

.faq-question[aria-expanded="true"] .faq-plus-line.vertical {
  transform: rotate(90deg) scale(0);
}

.faq-question[aria-expanded="true"] .faq-plus-line.horizontal {
  transform: rotate(180deg);
  background-color: var(--main-navy);
}

.faq-answer-container {
  height: 0;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
  padding: 0 2rem 1.75rem 2rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--dark-grey);
  border-top: 1px solid rgba(238, 241, 242, 0.6);
  padding-top: 1.25rem;
}

.faq-answer-content p {
  margin: 0 0 1rem 0;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content a {
  color: var(--main-blue);
  text-decoration: underline;
  font-weight: 600;
}

.faq-answer-content a:hover {
  color: var(--main-navy);
}

@media (max-width: 768px) {
  .faqs-main {
    padding: 3rem 1.2rem;
  }
  .faqs-hero-title {
    margin-bottom: 2.5rem;
  }
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
  }
  .faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    padding-top: 1rem;
    font-size: 1.05rem;
  }
}

/* ====== UPDATES SECTION - NATURAL & CLEAN ====== */
.updates-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem 5.5rem;
  box-sizing: border-box;
}

.updates-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--main-navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.updates-subtitle {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--dark-grey);
  max-width: 800px;
  margin-bottom: 4rem;
}

.updates-card-row {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
}

.updates-card {
  background: var(--main-bg);
  border-radius: 20px;
  border: 1px solid var(--card-bg);
  box-shadow: 0 10px 30px rgba(1, 68, 107, 0.05);
  padding: 2.5rem 2.2rem;
  box-sizing: border-box;

  flex: 1 1 calc(33.333% - 1.34rem);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.updates-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(1, 68, 107, 0.1);
  border-color: rgba(0, 130, 202, 0.2);
}

.updates-card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--card-bg);
  display: flex;
  flex-direction: column;
  min-height: 8.5rem;
}

.updates-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--main-navy);
  margin: 0 0 0.75rem 0;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.updates-card-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
}

.meta-row-date,
.meta-row-time {
  display: block;
  min-height: 0;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  line-height: 1.2;
}

.date-badge {
  background: var(--main-navy);
  color: var(--main-bg);
}

.time-badge {
  background: var(--card-bg);
  color: var(--main-navy);
}

.updates-card-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-grey);
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.updates-card-content p {
  margin: 0 0 1rem 0;
}
.updates-card-content p:last-child {
  margin-bottom: 0;
}

.updates-card-action {
  margin-top: auto;
  width: 100%;
}

.updates-card-action a,
.updates-card-action .btn-fallback {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: var(--main-blue);
  color: var(--main-bg) !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(0, 130, 202, 0.15);
}

.updates-card-action a:hover,
.updates-card-action a:focus {
  background: var(--main-navy);
  box-shadow: 0 6px 18px rgba(1, 68, 107, 0.2);
  transform: translateY(-1px);
}

.updates-card-action a:active {
  transform: translateY(1px);
}

@media (max-width: 1024px) {
  .updates-card {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .updates-main {
    padding: 3rem 1.2rem;
  }
  .updates-subtitle {
    margin-bottom: 2.5rem;
  }
  .updates-card-row {
    flex-direction: column;
  }
  .updates-card {
    width: 100%;
    min-width: 100%;
    padding: 2rem 1.5rem;
  }
  .updates-card-header {
    min-height: auto;
  }
}

/* STORIES SECTION */
.stories-section {
  width: 80vw;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5em 0 2em 0;
  min-height: 70vh;
}
.stories-title {
  font-size: 2.25em;
  font-weight: 700;
  color: var(--main-navy);
  margin: 0 0 1.2em 0;
  line-height: 1.13;
  text-align: left;
}
.stories-subtitle {
  font-size: 1.18em;
  color: var(--dark-grey);
  margin: 0 0 2.5em 0;
  line-height: 1.57;
  max-width: 610px;
  text-align: left;
}

.stories-subtitle a,
.stories-block-content a {
  color: var(--main-blue);
  text-decoration: underline;
}
.stories-block {
  margin: 0 0 2.5em 0;
}

.stories-block-title {
  font-size: 1.21em;
  font-weight: 650;
  color: var(--main-navy);
  margin-bottom: 0.7em;
  border-left: 4px solid var(--main-blue);
  padding-left: 0.6em;
  line-height: 1.18;
}
.stories-block-content {
  font-size: 1.09em;
  color: var(--dark-grey);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .stories-section {
    width: 95vw;
    padding: 2em 0 1.1em 0;
  }
}

/* ====== CONTACT SECTION ====== */
.contact-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.contact-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--main-navy);
  text-align: left;
}

.contact-subtitle {
  font-size: 1.15rem;
  color: var(--dark-grey);
  margin-bottom: 2.1rem;
  line-height: 1.75;
  text-align: left;
  max-width: 100%;
}

.contact-email-label {
  font-weight: 500;
  color: var(--dark-grey);
  font-size: 1.15rem;
  margin-right: 0.2rem;
}

.contact-email-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.4rem;
  font-size: 1.1rem;
  position: relative;
}

.contact-mail-link {
  font-weight: 600;
  color: var(--main-navy);
  background: var(--card-bg);
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.07rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.contact-mail-link:hover,
.contact-mail-link:focus {
  color: var(--main-blue);
  background: rgba(238, 241, 242, 0.7);
}

.contact-icon-copy-btn {
  background: transparent;
  color: var(--main-navy);
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.copy-svg-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.15s ease;
}

.contact-icon-copy-btn:hover,
.contact-icon-copy-btn:focus {
  background: var(--card-bg);
  color: var(--main-blue);
}

.contact-icon-copy-btn:active .copy-svg-icon {
  transform: scale(0.9);
}

.contact-icon-copy-btn::after {
  content: "Copied!";
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--main-navy);
  color: var(--main-bg);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-icon-copy-btn.copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-icon-copy-btn.copied {
  color: var(--mint) !important;
  background: var(--main-navy);
}

.contact-form-label {
  text-align: left;
  margin-bottom: 15px;
  color: var(--main-navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--main-bg);
  border-radius: 18px;
  border: 1.5px solid var(--card-bg);
  box-shadow: 0 4px 20px rgba(1, 68, 107, 0.04);
  padding: 2.5rem 2.2rem;
  margin-bottom: 2rem;
}

.contact-form label {
  color: var(--main-navy);
  font-weight: 700;
  margin-bottom: -0.4rem;
}

.contact-form input,
.contact-form textarea {
  border: 1.5px solid rgba(170, 199, 217, 0.6);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1.05rem;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--main-bg);
  color: var(--main-navy);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a0aec0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--main-blue) !important;
  outline: 3px solid var(--mint) !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 1px var(--main-blue);
}

.contact-form button[type="submit"] {
  align-self: flex-end;
  background: var(--main-navy);
  color: var(--main-bg);
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 2.4rem;
  margin-top: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(1, 68, 107, 0.15);
  transition: background-color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease;
}

.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus {
  background: var(--main-blue);
  box-shadow: 0 6px 16px rgba(1, 68, 107, 0.2);
}

.contact-form button[type="submit"]:active {
  transform: translateY(1px);
}

.contact-success {
  background: var(--card-bg);
  border-radius: 12px;
  color: var(--main-navy);
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0 2rem 0;
  text-align: left;
  border-left: 5px solid var(--mint);
  line-height: 1.6;
  font-size: 1.1rem;
}

.contact-error {
  background: #fff5f5;
  color: #c53030;
  font-weight: 600;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  border-left: 5px solid #e53e3e;
  border-top: 1px solid #fed7d7;
  border-right: 1px solid #fed7d7;
  border-bottom: 1px solid #fed7d7;
  line-height: 1.6;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1.8rem 1.4rem;
    gap: 1rem;
  }

  .contact-form button[type="submit"] {
    width: 100%;
    align-self: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-email-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .contact-mail-link {
    flex-grow: 1;
    text-align: center;
  }
}

/* ====== LEGAL & POLICY CORE STYLES ====== */
.policy-main {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 4.5rem 2rem 5.5rem;
  box-sizing: border-box;
}

.policy-card {
  background: var(--main-bg);
  border-radius: 24px;
  border: 1px solid var(--card-bg);
  box-shadow: 0 12px 35px rgba(1, 68, 107, 0.06);
  padding: 3.5rem 3.2rem;
}

.policy-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--main-navy);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.policy-meta {
  font-size: 1.05rem;
  color: var(--dark-grey);
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

.policy-card h2 {
  font-size: 1.65rem;
  color: var(--main-navy);
  margin: 2.5rem 0 1.2rem 0;
  padding-bottom: 0.5rem;
}

.policy-card h3 {
  font-size: 1.25rem;
  color: var(--main-navy);
  margin: 2rem 0 1rem 0;
}

.policy-card p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--dark-grey);
  margin: 0 0 1.2rem 0;
}

.policy-card ul {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}

.policy-card li {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--dark-grey);
  margin-bottom: 0.6rem;
}

.policy-card a {
  color: var(--main-blue);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.policy-card a:hover {
  color: var(--main-navy);
}

.policy-divider {
  height: 2px;
  background: var(--card-bg);
  margin: 3rem 0;
  border-radius: 2px;
}

.policy-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1.2rem 0 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--card-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.policy-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1.05rem;
  text-align: left;
}

.policy-table th,
.policy-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--card-bg);
}

.policy-table th {
  background: #f8fafb;
  font-weight: 700;
  color: var(--main-navy);
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--card-bg);
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tr:nth-child(even) {
  background: rgba(238, 241, 242, 0.25);
}

.tech-font {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  color: var(--main-navy);
  font-weight: 600;
  background: rgba(1, 68, 107, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .policy-main {
    padding: 2.5rem 1rem 4rem;
  }
  .policy-card {
    padding: 2.2rem 1.5rem;
    border-radius: 16px;
  }
  .policy-table th,
  .policy-table td {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}

/* ====== COOKIE SETTINGS COMPONENT MODULE ====== */
.settings-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

.settings-toggle-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  background: var(--main-bg);
  padding: 1.5rem 1.8rem;
  border: 1px solid var(--card-bg);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-toggle-box:hover {
  border-color: rgba(1, 68, 107, 0.15);
  box-shadow: 0 4px 15px rgba(1, 68, 107, 0.02);
}

.settings-toggle-box.locked-box {
  background: rgba(238, 241, 242, 0.3);
  border-style: dashed;
}

.toggle-text-block {
  flex: 1;
}

.toggle-text-block h2 {
  font-size: 1.3rem !important;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
}

.toggle-text-block p {
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.segmented-control {
  display: inline-flex;
  background: var(--card-bg);
  padding: 0.3rem;
  border-radius: 10px;
  min-width: 150px;
  height: 42px;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.control-label {
  flex: 1;
  cursor: pointer;
  display: block;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 7px;
  color: var(--dark-grey);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
  user-select: none;
}

.control-label input:checked + .control-btn.btn-on {
  background: var(--mint);
  color: var(--main-navy);
  box-shadow: 0 2px 8px rgba(29, 233, 182, 0.3);
}

.control-label input:checked + .control-btn.btn-off {
  background: var(--main-navy);
  color: var(--main-bg);
  box-shadow: 0 2px 8px rgba(1, 68, 107, 0.2);
}

.active-lock {
  background: transparent;
  color: var(--main-navy);
  opacity: 0.65;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: 100%;
}

.control-label input:focus + .control-btn {
  outline: 2px solid var(--main-blue);
  outline-offset: 2px;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-bg);
}

.settings-save-btn {
  background: var(--main-navy);
  color: var(--main-bg);
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 2.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(1, 68, 107, 0.15);
}

.settings-save-btn:hover,
.settings-save-btn:focus {
  background: var(--main-blue);
  outline: none;
}

.settings-save-btn:active {
  transform: translateY(1px);
}

.settings-success-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.settings-success-alert.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.alert-icon {
  font-weight: 700;
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .settings-toggle-box {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: 1.25rem 1.2rem;
  }

  .segmented-control {
    width: 100%;
  }

  .settings-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .settings-save-btn {
    width: 100%;
    text-align: center;
  }
  .settings-success-alert {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* ====== INTEGRATED MAILING LIST MODAL OVERLAY ====== */
.ml-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important; /* Force full screen width breakout */
  height: 100vh !important;
  margin-left: 0 !important; /* Prevents matching your negative footer margins */
  background: rgba(1, 68, 107, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-sizing: border-box;
}

.ml-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content Card */
.ml-modal-card {
  background: var(--main-bg, #ffffff) !important;
  width: 100%;
  max-width: 500px;
  padding: 2.5rem 2.2rem;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(1, 68, 107, 0.2);
  border: 1.5px solid var(--card-bg);
  position: relative;
  box-sizing: border-box;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.ml-modal-overlay.active .ml-modal-card {
  transform: scale(1);
}

/* Close Window Button */
.ml-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--dark-grey, #626262);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.ml-modal-close-btn:hover {
  background: var(--card-bg);
  color: var(--main-navy);
}

.ml-modal-title {
  color: var(--main-navy);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
  text-align: left;
}

.ml-modal-desc {
  color: var(--dark-grey);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.8rem 0;
  text-align: left;
}

/* Form Styling matching your Contact UI specs */
.ml-modal-form {
  width: 100%;
}

.ml-input-group {
  display: flex;
  width: 100%;
  gap: 0.6rem;
  box-sizing: border-box;
}

.ml-modal-form input[type="email"] {
  flex-grow: 1;
  border: 1.5px solid rgba(170, 199, 217, 0.6);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1.05rem;
  font-family: inherit;
  background: var(--main-bg);
  color: var(--main-navy);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.ml-modal-form input[type="email"]:focus {
  border-color: var(--main-blue) !important;
  outline: 3px solid var(--mint) !important;
  outline-offset: 1px !important;
}

.ml-modal-form button[type="submit"] {
  background: var(--main-navy);
  color: var(--main-bg);
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(1, 68, 107, 0.15);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.ml-modal-form button[type="submit"]:hover {
  background: var(--main-blue);
}

.ml-modal-form button[type="submit"]:active {
  transform: translateY(1px);
}

.ml-underline {
  text-decoration: underline;
  font-weight: 600;
  color: var(--main-navy);
}

/* Status Notifications Layout Alerts */
.ml-status-msg {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.8rem;
  text-align: left;
  line-height: 1.4;
}

.ml-status-msg.success {
  background: var(--card-bg);
  color: var(--main-navy);
  border-left: 4px solid var(--mint);
}

.ml-status-msg.error {
  background: #fff5f5;
  color: #c53030;
  border-left: 4px solid #e53e3e;
}

.ml-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Overrides */
@media (max-width: 580px) {
  .ml-modal-card {
    width: 92vw;
    padding: 2.2rem 1.4rem;
  }

  .ml-input-group {
    flex-direction: column;
    gap: 0.8rem;
  }

  .ml-modal-form button[type="submit"] {
    width: 100%;
  }
}
