:root {
  --navy: #0f2a3a;
  --gold: #c9a24a;
  --sand: #fbfaf7;
  --border-soft: #e3ded6;
  --text-main: #444444;
}

body {
  background: var(--sand);
  margin-top: 0 !important;
  padding-top: 0;
}

/* Page wrapper refinement */
#main.wrapper {
  background: var(--sand);
  padding-top: 0 !important;
}

#main .inner {
  margin: 0 auto;
  padding: 0 2rem;     /* breathing room on edges */
}

/* Header */
header.major h2 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

/* ---------------------------------
   Sub Page Header
---------------------------------- */
.clerk-sub-hero {
  background: transparent;
  width: fit-content;
  margin: 0 auto 3rem auto;
  color: var(--text-main);
  padding: 0 2rem .5rem 2rem;
  text-align: center;
}

.clerk-sub-inner {
  max-width: 900px;
  margin: 0 auto;
}

.clerk-sub-hero h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--text-main);
}

.clerk-sub-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.clerk-sub-hero strong {
  color: #000;
  font-weight: 700;
  margin-bottom: 0;
}
/* ================================
   Clerk Profile Layout
================================ */

.clerk-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.clerk-profile-img {
  text-align: center;
}

.clerk-profile-img img {
  width: 100%;
  max-width: 240px;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.clerk-profile-float h2 {
  font-size: 1.1rem;
  color: #173a52;
}

.clerk-profile-content h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.clerk-list {
  margin: 1rem 0 1.5rem 1.25rem;
  list-style-type: none;
}

.clerk-list li {
  margin-bottom: 0.4rem;
}

.clerk-bullet-list {
  margin: 1rem 0 1.5rem 1.25rem;
}

.clerk-bullet-list li {
  margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 900px) {
  .clerk-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .clerk-profile-content {
    text-align: left;
  }
}

/* =========================
   BLUE ACTION BOXES
========================= */

.button-container {
  display: flex;
  gap: 1rem;
  margin: .5rem auto 2rem auto;
  flex-wrap: wrap;
}

.blue-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to top, #0f3560, #154680 33%, #1b5ea8);
  color: #fff;
  text-decoration: none;
  padding: 1.25rem 1.5rem;
  width: fit-content;
  border-radius: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.blue-box-link {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
}

.blue-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 700px) {

  .button-container {
    flex-direction: column;
  }

  .blue-box {
    width: 100%;
    min-height: 90px;
    padding: 1rem;
  }

  .blue-box-link {
    font-size: 0.9rem;
  }
}

/* =========================================================
   SHARED SUBPAGE STYLES
   Used across marriage, passports, about, etc.
   ========================================================= */

/* Headings */
.custom-h3 {
  font-size: 1.17em;
  font-weight: bolder;
}

.custom-h4 {
  font-size: 1em;
  font-weight: bolder;
}

.custom-h5 {
  font-size: 0.83em;
  font-weight: bolder;
}

/* Paragraph spacing */
.p-fixed-margin {
  margin-bottom: 10px;
}

/* List spacing */
.extra-space-li {
  margin-bottom: 20px;
}

.ul-fixed-bottom-margin {
  margin-bottom: 5px;
}

li {
  margin-bottom: 5px;
}

/* =================================
   ABOUT PAGE FLOAT PROFILE
================================= */

.clerk-profile-wrap {
  position: relative;
}

.clerk-profile-float {
  float: left;
  width: 260px;
  margin: 0 2rem 1rem 0;
  text-align: center;
}

.clerk-profile-float img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.clerk-profile-float h3 {
  font-size: 1.05rem;
  color: #173a52;
  line-height: 1.3;
}

/* Ensure container clears the float */
.clerk-profile-wrap::after {
  content: "";
  display: block;
  clear: both;
}

/* Mobile */
@media (max-width: 900px) {
  .clerk-profile-float {
    float: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 1.5rem;
  }

  .clerk-profile-content {
    text-align: left;
  }
}


/* =========================================================
   ALERTS
   ========================================================= */
.alert {
  background-color: rgba(255, 56, 56, 0.05);
  border-left: 4px solid #ff3838;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.alert-primary {
  background-color: rgba(64, 131, 190, 0.08);
  border-left: 4px solid #4083be;
}

.alert-content {
  padding-left: 10px;
  font-size: 14px;
  color: #555;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.blue-button {
  color: #fff !important;
  background-color: linear-gradient(to top, #0f3560, #154680 33%, #1b5ea8) !important;
}

.blue-button:hover {
  color: #fff !important;
  background-color: #337ab7;
}

/* =========================================================
   BLUE BOX CTA CARDS
   ========================================================= */
.blue-box {
  display: block;
  background: linear-gradient(to top, #0f3560, #154680 33%, #1b5ea8);
  color: #fff;
  text-decoration: none;
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: 0.4rem;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.blue-box:hover {
  background: #1b5ea8;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blue-box-link {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Container for blue boxes */
.button-container,
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Mobile stack */
@media (max-width: 700px) {
  .grid-container,
  .button-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FAQ DROPDOWN BOX
   ========================================================= */
.box {
  display: none;
  margin-bottom: 0.75rem;
}

/* =========================================================
   VIDEO BLOCK
   ========================================================= */

.clerk-sub-content iframe {
  width: 75%;
  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;
}

/* =========================================================
   FLEX TITLE + BUTTON ROW
   ========================================================= */
.title-and-button-container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .title-and-button-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   MISC
   ========================================================= */
.red {
  color: red;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  margin: 3rem auto 2rem auto;
}

.faq h3 {
  margin-bottom: 1rem;
}

.faq details {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background: #fff;
}

.faq summary {
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p,
.faq details ul {
  padding: 0 1rem 1rem 1rem;
}

.book-card-examples-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.book-card-img-text {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.book-card-img-text img {
  display: block;
  margin: 0 auto 0.5rem auto;
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px;
  background: #fff;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .book-card-examples-container {
    gap: 1.25rem;
  }

  .book-card-img-text {
    font-size: 0.85rem;
  }
}


/* =========================================================
   MARRIAGE QUICK ACTION GRID
   ========================================================= */

.marriage-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 2.5rem 0;
}

.quick-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-6px);
  border-color: #cfd9e4;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.quick-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1b5ea8,#0f3560);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.35rem;
  margin-bottom: .75rem;
}

.quick-card h4 {
  font-size: .95rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: .8rem;
}

.quick-go {
  font-size: .8rem;
  font-weight: 600;
  color: #1b5ea8;
  border: .5px solid #1b5ea8;
  padding: .25rem .5rem;
  border-radius: .5rem;
}

.quick-card:hover .quick-go {
  background-color: #0f3560;
  color: #fff;
}

.quick-spanish h4 {
  color: #c90000;
}

/* Mobile */
@media (max-width: 640px) {

  .marriage-quick-actions {
    grid-template-columns: repeat(2,1fr);
  }

}

