/*
Theme Name: DfT TEST UI Theme
Author: Aqib
Version: 1.8
WCAG compliant
*/

/* ====== HAMBURGER MENU - MOBILE RESPONSIVE ====== */
.hamburger-menu-btn {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.4rem;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--main-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu-btn:focus {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ====== MOBILE RESPONSIVE HEADER ====== */
@media (max-width: 900px) {
  .hamburger-menu-btn {
    display: flex;
  }

  .navbar-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--main-bg);
    border-bottom: 3px solid var(--main-navy);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0;
    margin: 0;
  }

  .navbar-right.active {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 0;
  }

  .navbar-main {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-main {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-main li {
    width: 100%;
  }

  .nav-main a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--card-bg);
    border-radius: 0;
  }

  .nav-main .current-menu-item > a,
  .nav-main a.active {
    background: var(--main-navy);
    color: var(--main-bg) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--card-bg);
    border-left: 4px solid var(--mint);
  }

  .submit-idea-btn {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    width: calc(100% - 3rem);
  }

  .header-flex {
    position: relative;
  }
}
.skip-to-main-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--main-blue);
  color: var(--main-bg);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}

.skip-to-main-content:focus {
  top: 0;
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

/* ====== 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;
  overflow-x: hidden;
}

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;
  width: 100%;
  box-sizing: border-box;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2em;
  box-sizing: border-box;
  width: 100%;
}

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: sticky;
  top: 0;
  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: visible;
}

.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;
}

/* New Responsive Image Rules */
.site-logo {
  --logo-height: 100px;
  height: var(--logo-height);
  width: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.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;
  }
  /* Scale logo slightly down for tablets */
  .site-logo {
    height: calc(var(--logo-height) * 0.85);
  }
}

/* @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: auto;
    margin-bottom: 0.22em;
  }
  .nav-main {
    justify-content: flex-start;
  }
} */

@media (max-width: 700px) {
  .header-flex {
    padding: 0 0.2em;
  }
  /* Scale logo to prevent clipping on small phone screens */
  .site-logo {
    height: calc(var(--logo-height) * 0.7);
  }
  .header-identity {
    gap: 0.18em;
  }

  /* Ensure no horizontal scroll on mobile */
  .container {
    padding: 0 1rem;
  }

  * {
    max-width: 100%;
  }
}

/* ====================== MODERN HOME STYLES ====================== */
.home-main {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 4.8rem 2.8rem 5.5rem;
  background: transparent;
}

.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--no-title {
  position: relative;
  padding-top: 2.8rem;
}

.home-card--no-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3.2rem;
  right: 3.2rem;
  height: 6px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--main-blue) 0%, var(--mint) 100%);
}

.home-card-title {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--main-navy);
  margin: 0 0 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;
}

.home-card-intro {
  font-size: 1.2rem;
  line-height: 1.72;
  color: var(--dark-grey);
  margin: 0 0 1.6rem;
}

.home-card--no-title .home-card-intro {
  font-size: 1.28rem;
  line-height: 1.82;
}

.bullet-point-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-point-list .bullet-point {
  list-style: none;
}

.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);
  display: flex;
  align-items: center;
  min-height: 110px;
}

.bullet-point-list--compact .bullet-point {
  min-height: 0;
  align-items: flex-start;
  padding: 1.2rem 1.5rem 1.2rem 2.2rem;
  margin-bottom: 0.95rem;
  font-size: 1.12rem;
  line-height: 1.65;
}

.home-card--no-title .bullet-point-list {
  display: grid;
  gap: 1rem;
}

.home-card--no-title .bullet-point-list--compact .bullet-point {
  margin-bottom: 0;
  padding: 1.3rem 1.5rem 1.3rem 2.2rem;
  font-size: 1.18rem;
  line-height: 1.72;
}

.bullet-point:last-child {
  margin-bottom: 0;
}

.bullet-point:hover {
  background: 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 strong,
.bullet-point b {
  color: var(--main-navy);
  font-weight: 700;
}

.bullet-point-link a {
  color: var(--main-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.bullet-point-link a:hover,
.bullet-point-link a:focus {
  color: var(--main-blue);
}

.home-link-list {
  display: grid;
  gap: 1rem;
}

.home-link-item {
  background: linear-gradient(135deg, rgba(0, 130, 202, 0.07) 0%, rgba(29, 233, 182, 0.06) 100%);
  border: 1px solid rgba(0, 130, 202, 0.16);
  border-left: none;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(1, 68, 107, 0.08);
}

.home-link-item::before {
  display: none;
}

.home-link-item:hover {
  transform: none;
  background: linear-gradient(135deg, rgba(0, 130, 202, 0.12) 0%, rgba(29, 233, 182, 0.1) 100%);
  border-color: rgba(1, 68, 107, 0.24);
  outline: none;
  box-shadow: 0 12px 24px rgba(1, 68, 107, 0.12);
}

.home-link-anchor,
.home-link-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 1.25rem 1.35rem 1.25rem 1.5rem;
  color: var(--main-navy);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.72;
}

.home-link-anchor {
  text-decoration: none;
}

.home-link-anchor::after {
  content: "\2192";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--main-blue);
  color: var(--main-bg);
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-link-anchor:hover,
.home-link-anchor:focus-visible {
  color: var(--main-navy);
}

.home-link-anchor:hover::after,
.home-link-anchor:focus-visible::after {
  transform: translateX(4px);
  background: var(--main-navy);
}

.home-link-anchor:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: -3px;
  background: rgba(255, 255, 255, 0.65);
}

.about-test-main {
  padding-top: 3.8rem;
}

.about-test-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--main-navy);
  margin: 2rem 0 1rem;
}

.about-test-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--card-bg);
  margin: 1rem auto 0.5rem auto; /* Center horizontally */
  display: block;
}
.about-test-image--smaller {
  width: 40%;
  max-width: 40%;
  margin-left: auto;
  margin-right: auto; /* Make sure it's centered for narrower size too */
}

.about-test-cta {
  margin-top: 2rem;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, rgba(0, 130, 202, 0.08) 0%, rgba(29, 233, 182, 0.08) 100%);
  border: 1px solid rgba(0, 130, 202, 0.15);
  border-left: 5px solid var(--main-blue);
  border-radius: 16px;
  color: var(--main-navy);
  font-size: 1.18rem;
  line-height: 1.78;
  box-shadow: 0 10px 24px rgba(1, 68, 107, 0.08);
}

.about-test-cta-content p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.about-test-cta-content a {
  display: inline;
  margin: 0;
  padding: 0 0.08em;
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    transparent 58%,
    rgba(0, 130, 202, 0.14) 58%
  );
  color: var(--main-blue);
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  box-shadow: none;
  transition: color 0.2s ease, background-color 0.2s ease, outline-color 0.2s ease;
}

.about-test-cta-content a:hover,
.about-test-cta-content a:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--main-navy);
  box-shadow: none;
  text-decoration-thickness: 3px;
}

.about-test-cta-content a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.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;
}

.home-card-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-card-grid > * {
  flex: 1 1 calc(50% - 1rem);
  min-width: 300px;
}

.card-section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--main-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--card-bg);
}

.card-section-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-grey);
}

@media (max-width: 768px) {
  .home-main {
    padding: 3.5rem 1.6rem;
  }
  .home-card {
    padding: 2.8rem 2rem;
  }
  .home-card--no-title {
    padding-top: 2.4rem;
  }
  .home-card--no-title::before {
    left: 2rem;
    right: 2rem;
  }
  .bullet-point {
    font-size: 1.18rem;
  }
  .bullet-point-list--compact .bullet-point {
    padding: 1rem 1.2rem 1rem 2rem;
  }
  .home-link-anchor,
  .home-link-text {
    padding: 1.1rem 1.2rem 1.1rem 2rem;
    font-size: 1.12rem;
  }
}

/* ======= 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: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 2rem;
  box-sizing: border-box;
  position: relative;
  min-height: 3rem;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: absolute;
  left: 2rem;
  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 clamp(12rem, 16vw, 18rem);
  box-sizing: border-box;
}

.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;
}

/* Strip default system button styles so it behaves exactly like an anchor tag link */
button.footer-nav-link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  cursor: pointer;
  vertical-align: baseline;
  line-height: inherit;
  text-align: inherit;
}

.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;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    min-height: 0;
  }

  .footer-logo-section {
    position: static;
    justify-content: center;
    padding: 0 0 1rem;
    transform: none;
  }

  .footer-content-section {
    display: flex;
    justify-content: center;
    padding: 0;
    width: auto;
    margin: 0 auto;
  }

  .footer-nav {
    gap: 1.4rem;
    font-size: 1rem;
    padding: 0;
  }

  .dft-footer-logo {
    height: 1.8rem;
  }

  .sticky-footer-bar {
    padding: 1.8rem 0;
  }
}

@media (max-width: 600px) {
  .footer-container {
    gap: 1rem;
    padding: 0 1rem;
  }

  .footer-content-section {
    width: auto;
    margin: 0 auto;
  }

  .footer-logo-section {
    padding: 0 0 0.8rem;
  }

  .footer-nav {
    gap: 0.75rem 1rem;
    font-size: 0.92rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .footer-nav-link {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .dft-footer-logo {
    height: 1.4rem;
  }

  .sticky-footer-bar {
    padding: 1.2rem 0;
    border-top: 2px solid var(--main-blue);
  }
}

/* ====== COMPONENT ACCESSIBILITY OUTLINES ====== */
/* Ensures 3px minimum focus indicator visibility for WCAG 2.2 Level AA compliance */
a:focus,
button:focus,
input:focus,
textarea:focus,
.cta-button:focus,
[role="button"]:focus,
[role="tab"]:focus,
[role="link"]:focus,
[role="menuitem"]:focus {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

/* Remove default browser outlines since we have custom focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="link"]:focus-visible,
[role="menuitem"]:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

/* For elements that need different focus treatment */
input:focus,
textarea:focus {
  box-shadow: inset 0 0 0 2px var(--mint);
}

/* ====== ACCESSIBILITY COLOR CONTRAST NOTES ====== */
/* All color combinations have been verified to meet WCAG 2.2 AA standards (minimum 4.5:1 for normal text, 3:1 for large text).
   Primary colors: Navy (#01446b), Blue (#0082ca), Mint (#1de9b6), Dark Grey (#626262), White (#fff)
   All interactive elements have clear focus indicators and sufficient contrast ratios.
*/

/* ====== ENHANCED FORM ACCESSIBILITY ====== */
input[aria-invalid="false"]:focus,
textarea[aria-invalid="false"]:focus {
  border-color: var(--main-blue) !important;
  box-shadow: inset 0 0 0 2px var(--mint);
}

input:required::after,
textarea:required::after {
  content: " *";
  color: #d32f2f;
  font-weight: 700;
}

/* ====== ENHANCED LINK CONTRAST ====== */
a {
  color: var(--main-blue);
  text-decoration: underline;
}

a:visited {
  color: #0055a1;
}

a:hover,
a:focus {
  color: var(--main-navy);
  text-decoration: none;
}
.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-hero-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(0, 130, 202, 0.14);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(1, 68, 107, 0.08);
  text-align: left;
  color: var(--dark-grey);
  position: relative;
  overflow: hidden;
}

.faqs-hero-intro::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  pointer-events: none;
}

.faqs-hero-intro p {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.85;
  position: relative;
  padding-left: 1.2rem;
}

.faqs-hero-intro p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--main-blue);
  box-shadow: 0 0 0 4px rgba(0, 130, 202, 0.12);
}

.faqs-hero-intro p:last-child {
  margin-bottom: 0;
}

.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;
  }
  .faqs-hero-intro {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.35rem;
    border-left-width: 5px;
    border-radius: 16px;
  }
  .faqs-hero-intro p {
    font-size: 1rem;
    line-height: 1.75;
    padding-left: 1rem;
  }
  .faqs-hero-intro p::before {
    top: 0.68rem;
  }
  .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 IMAGE COLLAGE - RESPONSIVE GRID ====== */
.stories-image-collage {
  margin-top: 4rem;
  padding: 0;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.collage-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(1, 68, 107, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.collage-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(1, 68, 107, 0.12);
}

.collage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease;
}

.collage-item:hover .collage-image {
  transform: scale(1.03);
}

.collage-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--main-navy);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1rem;
  margin: 0;
  text-align: center;
  border-top: 2px solid var(--main-blue);
}

/* Responsive Collage Grid */
@media (max-width: 1024px) {
  .collage-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .stories-image-collage {
    margin-top: 3rem;
  }

  .collage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .collage-item {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .collage-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .collage-caption {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .stories-image-collage {
    margin-top: 2rem;
  }
}
.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;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.4rem;
  font-size: 1.1rem;
  position: relative;
  max-width: 100%;
}

.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;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.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;
}

.required {
  color: #d32f2f;
  font-weight: 700;
  margin-left: 0.2rem;
  aria-label: "required";
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-error {
  color: #d32f2f;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.3rem;
  display: block;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #d32f2f !important;
  background-color: #fff5f5;
}

.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) {
  .footer-content-section {
    padding: 0 clamp(10rem, 14vw, 14rem);
  }

  .footer-nav {
    gap: 1.6rem;
  }

  .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: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
  }

  .contact-mail-link {
    flex: 1 1 100%;
    text-align: left;
  }
}

/* ====== 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);
  -webkit-backdrop-filter: blur(4px);
  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;
}

.footer-nav-link:visited,
.footer-nav-link:active {
  color: var(--main-bg) !important;
  text-decoration: none;
}

.footer-nav-link:hover:visited,
.footer-nav-link:focus:visited {
  color: var(--mint) !important;
  border-bottom-color: var(--mint);
}

/* 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%;
  }
}

/* ====== HOW TO APPLY PAGE STYLES ====== */
.apply-main {
  width: 100%;
  background: var(--main-bg);
}

.apply-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 2rem 5.5rem;
  box-sizing: border-box;
}

.apply-hero {
  text-align: center;
  margin-bottom: 5rem;
}

.apply-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--main-navy);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

.apply-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 6px;
  background: var(--main-blue);
  margin: 2rem auto 0;
  border-radius: 4px;
}

.apply-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--dark-grey);
  max-width: 800px;
  margin: 0 auto;
}

.apply-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.apply-step {
  background: var(--main-bg);
  border-radius: 20px;
  border: 1.5px solid var(--card-bg);
  box-shadow: 0 8px 25px rgba(1, 68, 107, 0.05);
  padding: 3rem 3rem 3rem 4rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
}

.apply-step:hover {
  border-color: rgba(0, 130, 202, 0.2);
  box-shadow: 0 12px 40px rgba(1, 68, 107, 0.08);
  transform: translateY(-2px);
}

.apply-step-number {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--main-blue);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.25;
  position: absolute;
  left: 2rem;
  top: 2.5rem;
}

.apply-step-content {
  flex: 1;
  min-width: 0;
  margin-left: 2rem;
}

.apply-step-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main-navy);
  margin: 0 0 1.2rem 0;
  line-height: 1.25;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--card-bg);
}

.apply-step-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-grey);
  margin-bottom: 1.5rem;
}

.apply-step-body p {
  margin: 0 0 1rem 0;
}

.apply-step-body p:last-child {
  margin-bottom: 0;
}

.apply-step-body ul,
.apply-step-body ol {
  margin: 0 0 1rem 0;
  padding-left: 2rem;
}

.apply-step-body li {
  margin-bottom: 0.8rem;
  line-height: 1.75;
}

.apply-pdf-section {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.apply-btn {
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  white-space: nowrap;
}

.apply-btn-primary {
  background: var(--main-blue);
  color: var(--main-bg);
  flex-shrink: 0;
}

.apply-btn-primary:hover,
.apply-btn-primary:focus {
  background: var(--main-navy);
  box-shadow: 0 6px 18px rgba(1, 68, 107, 0.2);
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.apply-btn-secondary {
  background: var(--main-bg);
  color: var(--main-navy);
  border: 2px solid var(--card-bg);
  flex-shrink: 0;
}

.apply-btn-secondary:hover,
.apply-btn-secondary:focus {
  background: var(--card-bg);
  border-color: var(--main-blue);
  color: var(--main-blue);
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.btn-chevron {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.apply-btn-secondary[aria-expanded="true"] .btn-chevron {
  transform: rotate(180deg);
}

.apply-pdf-viewer {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-bg);
  background: #f5f7f9;
}

.apply-pdf-viewer embed {
  width: 100% !important;
  height: 600px !important;
  display: block;
}

.apply-cta-button {
  margin-top: 2rem;
}

.apply-btn-cta {
  background: var(--second-green);
  color: var(--main-navy);
  padding: 1.1rem 2.5rem;
  font-size: 1.15rem;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(136, 239, 27, 0.25);
}

.apply-btn-cta:hover,
.apply-btn-cta:focus {
  opacity: 0.88;
  box-shadow: 0 6px 22px rgba(136, 239, 27, 0.35);
  transform: translateY(-2px);
}

.apply-step-final {
  background: linear-gradient(
    135deg,
    rgba(29, 233, 182, 0.05) 0%,
    rgba(0, 130, 202, 0.05) 100%
  );
}

@media (max-width: 900px) {
  .apply-container {
    padding: 3rem 1.5rem 4rem;
  }

  .apply-step {
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 0;
  }

  .apply-step-number {
    position: static;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    opacity: 0.2;
  }

  .apply-step-content {
    margin-left: 0;
  }

  .apply-step-title {
    font-size: 1.5rem;
  }

  .apply-pdf-section {
    flex-direction: column;
  }

  .apply-btn {
    width: 100%;
    justify-content: center;
  }

  .apply-pdf-viewer embed {
    height: 500px !important;
  }
}

@media (max-width: 640px) {
  .apply-container {
    padding: 2rem 1rem 3rem;
  }

  .apply-title {
    font-size: 2rem;
  }

  .apply-step {
    padding: 2rem 1.5rem;
  }

  .apply-step-title {
    font-size: 1.3rem;
  }

  .apply-step-body {
    font-size: 1rem;
  }

  .apply-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .apply-pdf-viewer embed {
    height: 400px !important;
  }
}

/* ====== FAQ SECTIONS NAVIGATION ====== */
.faqs-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.faqs-hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--dark-grey);
  max-width: 800px;
  margin: 1.5rem auto 0;
}

.faqs-section-nav {
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
}

.faqs-section-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.faqs-section-btn {
  background: var(--main-bg);
  color: var(--main-navy);
  border: 2px solid var(--card-bg);
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

.faqs-section-btn:hover,
.faqs-section-btn:focus {
  border-color: var(--main-blue);
  background: var(--card-bg);
  color: var(--main-blue);
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.faqs-section-btn[aria-selected="true"] {
  background: var(--main-navy);
  color: var(--main-bg);
  border-color: var(--main-navy);
  box-shadow: 0 6px 20px rgba(1, 68, 107, 0.2);
}

.faqs-section-btn[aria-selected="true"]:hover,
.faqs-section-btn[aria-selected="true"]:focus {
  background: var(--main-blue);
  border-color: var(--main-blue);
}

.faqs-container {
  margin-bottom: 3rem;
}

.faq-section {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--main-navy);
  margin: 0 0 2.2rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--main-blue);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .faqs-section-buttons {
    gap: 0.8rem;
  }

  .faqs-section-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .faq-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
  }
}

/* ====== STORIES MAILING LIST LINK ====== */
.stories-mailing-link {
  background: none;
  border: none;
  color: var(--main-blue);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  transition: all 0.2s ease;
}

.stories-mailing-link:hover,
.stories-mailing-link:focus {
  color: var(--main-navy);
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.stories-mailing-link:active {
  opacity: 0.85;
}
