/* =========================================================
   Global Reset
   ========================================================= */
* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth !important;
  overflow-x: hidden;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 0;
}

body.is-loading {
  padding-top: 0 !important;
}

/* Anchor reset */
a {
  color: inherit;
  text-decoration: none;
  border: none !important;
  box-shadow: none !important;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Improve text wrapping */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

hr {
  width: 90%;
  margin: 5rem auto;
  background-color: #bbbbbb;
}

#header {
  position: relative;
  z-index: 10;
}

/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
  --hero-image: url("../../images/hero.png");
  --navy: #0f2a3a;
  --gold: #eec159;
  --sand: #f4efe8;
  --text: #14212b;
}

/* =========================================================
   HERO
   ========================================================= */
.clerk-hero {
  position: relative;
  background: var(--hero-image) center/cover no-repeat;
  min-height: 66vh;
  display: flex;
  align-items: center;
}

/* Dark overlay */
.clerk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.clerk-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 420px;
}

.clerk-hero-text {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}


.clerk-eyebrow {
  color: #c46a2d;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.clerk-hero-text h1 {
  font-size: 2.6rem;
  color: #ffffff;
  line-height: 1.15;
}

.hero-btn {
  width: fit-content;
  padding: 1rem 2rem;
  color: #fff;
  background-color: #154680;
  border: 1px solid #001d30;
  border-radius: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.hero-btn:hover {
  transform: translateY(-5px);
  background-color: #001d30;
}

.clerk-hero-text .clerk-subtitle {
  font-size: 1rem;
  margin: 2rem auto;
  color: #fff;
}

.clerk-hero-text .clerk-subtitle p:first-child {
  margin: 0 0 1rem 0;
}

.clerk-hero-text .clerk-subtitle p:last-child {
  margin: 0;
}

/* =========================================================
   HERO RESPONSIVE
   ========================================================= */

/* Large tablets */
@media (max-width: 1100px) {
  .clerk-hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
  }

  .clerk-hero-text {
    padding: 3rem 2.5rem;
  }

  .clerk-hero-text h1 {
    font-size: 2.2rem;
  }
}


/* Tablets */
@media (max-width: 900px) {
  .clerk-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .clerk-hero-image {
    min-height: 260px;
  }

  .clerk-hero-text {
    padding: 2.5rem 2rem;
    text-align: center;
    align-items: center;
  }

  .clerk-hero-text h1 {
    font-size: 2rem;
    max-width: 28rem;
  }

  .clerk-hero-text .clerk-subtitle {
    margin: 1.5rem auto 0;
    max-width: 32rem;
  }
}


/* Mobile phones */
@media (max-width: 600px) {
  .clerk-hero {
    padding-top: 0;
    margin-top: 0;
  }

  .clerk-hero-text {
    padding: 1rem 1.4rem;
  }

  .clerk-hero-text h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .clerk-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }

  .clerk-hero-text .clerk-subtitle {
    font-size: 0.95rem;
    margin-top: 1.25rem;
  }

  .clerk-hero-inner .clerk-hero-text .hero-btn {
    margin-top: 0;
    padding: 0.55rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
  }

  .clerk-hero-image {
    min-height: 200px;
  }
}


/* Small phones */
@media (max-width: 400px) {
  .clerk-hero-text h1 {
    font-size: 1.45rem;
  }

  .clerk-hero-text {
    padding: 1.6rem 1.1rem;
  }
}

/* =========================================================
   CARD STRIP — HORIZONTAL SCROLL + ARROWS
   ========================================================= */

.clerk-card-section {
  position: relative;
  background: #f4f6f8;
  padding: 2rem 3rem;
  text-align: center;
}

.card-section-title {
  text-align: left;
  margin-left: 2rem;
  margin-bottom: 0;
}

.clerk-cards {
  display: flex;
  gap: 1.5rem;
  width: 97%;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
}

/* Individual cards */
.clerk-cards .post {
  flex: 0 0 260px;
  display: flex;
  background: #ffffff;
  padding: 1.75rem;
  border-radius: .25rem;
  border: 0.5px solid rgba(15, 42, 58, 0.2);
}

.clerk-cards .post .content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push button to bottom */
.clerk-cards .post .button {
  margin-top: auto;
  border: 1px solid #154680;
  background-color: #154680;
  color: #fff !important;
  padding: .75rem 1rem;
}

.clerk-cards .post .button:hover {
  transform: translateY(-3px);
  background-color: rgba(15, 42, 58, 0.15);
  border-color: rgba(15, 42, 58, 0.5);
  color: #5b6b78 !important;
}

.clerk-card-img {
  text-align: center;
}

.clerk-card-img img {
  width: 5rem;
  height: auto;
  margin: 0 auto;
}

.clerk-cards .post .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #173a52;
  margin-bottom: 0.4rem;
}

.clerk-cards .post p {
  font-size: 0.9rem;
  color: #5b6b78;
}

/* Scroll buttons */
.card-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(23, 58, 82, 0.9) !important;
  background-color: transparent;
  font-size: 3rem;
  cursor: pointer;
  z-index: 5;
  border: none;
  padding: 0;
  box-shadow: none;
}

.card-scroll-btn.left {
  left: 7px;
}

.card-scroll-btn.right {
  right: 7px;
  margin-right: 1rem;
}

.card-scroll-btn:hover {
  background-color: rgba(23, 58, 82, 0.25);
  color: #173a52 !important;
}

/* Hide arrow when disabled */
.card-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* =========================================================
   CARD STRIP RESPONSIVE
   ========================================================= */

/* Large tablets */
@media (max-width: 1100px) {
  .clerk-card-section {
    padding: 1rem 2rem;
  }

  .clerk-cards .post {
    flex: 0 0 240px;
    padding: 1.5rem;
  }

  .card-scroll-btn {
    font-size: 3.5rem;
  }
}


/* Tablets */
@media (max-width: 900px) {
  .clerk-card-section {
    padding: 1rem 1.25rem;
  }

  .clerk-cards {
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .clerk-cards .post {
    flex: 0 0 220px;
    padding: 1.35rem;
  }

  .clerk-card-img {
    width: 4.5rem;
  }

  .card-scroll-btn {
    font-size: 3rem;
  }
}


/* Mobile phones */
@media (max-width: 600px) {
  .clerk-card-section {
    position: relative;
    padding: 0.75rem 0.75rem;
    overflow: hidden;
  }

  .clerk-cards {
    gap: 1rem;
    padding: 0 0.5rem 1.25rem;
  }

  /* Show partial next card to indicate scroll */
  .clerk-cards .post {
    flex: 0 0 75%;
    padding: 1.25rem;
  }

  .clerk-card-img {
    width: 4rem;
  }

  .clerk-cards .post h3 {
    font-size: 1rem;
  }

  .clerk-cards .post p {
    font-size: 0.85rem;
  }

  /* Hide arrows on mobile */
  .card-scroll-btn {
    display: none;
  }

  /* Edge fade indicators */
  .clerk-card-section::before,
  .clerk-card-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 3;
  }

  .clerk-card-section::before {
    left: 0;
    background: linear-gradient(
      to right,
      #f4f6f8 0%,
      rgba(244, 246, 248, 0) 100%
    );
  }

  .clerk-card-section::after {
    right: 0;
    background: linear-gradient(
      to left,
      #f4f6f8 0%,
      rgba(244, 246, 248, 0) 100%
    );
  }
}


/* Small phones */
@media (max-width: 400px) {
  .clerk-cards .post {
    flex: 0 0 88%;
    padding: 1rem;
  }

  .clerk-card-img {
    width: 3.5rem;
  }
}


/* Highlight every even card */
/*
.clerk-cards .post:nth-child(even) {
  background: #173a52;
}

.clerk-cards .post:nth-child(even) h3,
.clerk-cards .post:nth-child(even) p {
  color: #ffffff;
}

.clerk-cards .post:nth-child(even) .button {
  color: #14212b !important;
  border: .5px solid #fff !important;
  background-color: rgba(255, 255, 255, 0.75);
}

.clerk-cards .post:nth-child(even) .button:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-5px);
}

.clerk-cards .post:nth-child(odd) .button {
  background-color: rgba(23, 58, 82, .75);
  border: #173a52;
  color: #fff !important;
}

.clerk-cards .post:nth-child(odd) .button:hover {
  background-color: rgba(23, 58, 82, 1);
  transform: translateY(-5px);
}
*/

/* =========================================================
   MISSION / WELCOME BAND
   (unchanged)
   ========================================================= */

/* =========================
   MISSION / WELCOME BAND
========================= */
.welcome-section {
  position: relative;
  background: linear-gradient(
      180deg,
      rgba(15, 42, 58, 0.92),
      rgba(15, 42, 58, 0.85)
    ),
    url("../../images/mission-texture.png"); /* optional subtle texture */
  background-size: cover;
  background-position: center;

  padding: clamp(3rem, 6vw, 4.5rem) 1rem;
  text-align: center;
  color: #ffffff;
  margin-top: 0;
}

.welcome-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Title with divider lines */
.welcome-section h3 {
  position: relative;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.welcome-section h3::before,
.welcome-section h3::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.welcome-section h3::before {
  right: 100%;
  margin-right: 1rem;
}

.welcome-section h3::after {
  left: 100%;
  margin-left: 1rem;
}

/* Mission text */
.welcome-section p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75rem;
}

/* CTA button */
.mission-cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1b1b1b;
  background: linear-gradient(180deg, #d4b05c, #b8923f);
  border-radius: 0.45rem;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.mission-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .welcome-section h3::before,
  .welcome-section h3::after {
    width: 45px;
  }

  .welcome-section p {
    font-size: 0.95rem;
  }
}

/* =========================================================
   VIDEO BLOCK
   ========================================================= */

.clerk-content iframe {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
  margin: 1.5rem auto 2.5rem;
  display: block;
}

/* VIDEO BLOCK ENHANCEMENTS (ACCESSIBLE + NON-DESTRUCTIVE) */

.clerk-videos {
  margin-top: 3rem;
}

.clerk-videos .video-block {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

/* Keep your existing iframe styling — just ensure spacing consistency */
.clerk-videos iframe {
  margin-bottom: 0.75rem;
}

/* Description under video */
.video-description {
  font-size: 0.95rem;
  color: #5b6b78; /* matches your paragraph tone */
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* YouTube fallback link */
.video-links a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #154680;
  text-decoration: underline;
  transition: color 120ms ease, transform 120ms ease;
}

/* Hover state (matches your button behavior) */
.video-links a:hover {
  color: #001d30;
  transform: translateY(-1px);
}

/* Focus state (important for accessibility) */
.video-links a:focus-visible {
  outline: 3px solid #6fa8dc;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Optional subtle divider between videos */
.clerk-videos .video-block:not(:last-child) {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 42, 58, 0.15);
}


/* =========================================================
   NOTICES SECTION
   ========================================================= */

.clerk-notices {
  padding: 3rem 1rem 4rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #173a52;
  margin-bottom: 2rem;
}

/* Grid layout */
.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual notice cards */
.notice-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(15, 42, 58, 0.3) !important;
  border-radius: 2rem;
  font-weight: 600;
  color: #173a52;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.notice-card i {
  font-size: 1.4rem;
  color: #173a52;
}

.notice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  background-color: rgba(23, 58, 82, 0.07);
}

/* =========================================================
   NOTICES RESPONSIVE
   ========================================================= */

/* Large tablets */
@media (max-width: 1100px) {
  .clerk-notices {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.75rem;
  }

  .notices-grid {
    max-width: 900px;
    gap: 1.1rem;
  }
}


/* Tablets */
@media (max-width: 900px) {
  .clerk-notices {
    padding: 2.25rem 1.25rem 3rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .notices-grid {
    gap: 1rem;
  }

  .notice-card {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .notice-card i {
    font-size: 1.25rem;
  }
}


/* Mobile phones */
@media (max-width: 600px) {
  .clerk-notices {
    padding: 2rem 1rem 2.5rem;
    background-color: #fff;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }

  .notices-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .notice-card {
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
  }

  .notice-card i {
    font-size: 1.15rem;
  }
}


/* Small phones */
@media (max-width: 400px) {
  .clerk-notices {
    padding: 1.75rem 0.85rem 2.25rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .notice-card {
    font-size: 0.9rem;
    padding: 0.75rem 0.85rem;
  }

  .notice-card i {
    font-size: 1.05rem;
  }
}

.paperless-card:hover {
  transform: translateY(-5px);
}

.paperless-wrap {
  text-align: center;
}