/* ==========================================================================
   Sangguniang Bayan — Municipality of Rizal, Zamboanga del Norte
   Legislative Information System · Main stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #071730;
  --navy-900: #0b2244;
  --navy-800: #102d57;
  --navy-700: #173b6e;
  --navy-600: #24508f;
  --navy-50: #f1f5fb;

  --gold-700: #8c6a1f;
  --gold-600: #a8822c;
  --gold-500: #c49a3a;
  --gold-400: #d9b65f;
  --gold-100: #f7f0dd;

  --ivory: #faf8f3;
  --paper: #ffffff;
  --ink: #18202f;
  --body: #3d4657;
  --muted: #687184;
  --line: #e8e3d7;
  --line-cool: #e2e7ef;

  --ph-blue: #0038a8;
  --ph-red: #ce1126;
  --ph-yellow: #fcd116;

  --ok: #1d7448;      --ok-bg: #e5f3eb;
  --warn: #8a5d00;    --warn-bg: #fcf1d6;
  --info: #1d4f91;    --info-bg: #e6eef9;
  --danger: #9f2229;  --danger-bg: #fae8e9;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 68, .06), 0 2px 10px rgba(11, 34, 68, .05);
  --shadow: 0 14px 34px -14px rgba(11, 34, 68, .25);
  --shadow-lg: 0 30px 70px -24px rgba(7, 23, 48, .45);
  --header-h: 82px;

  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--body);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--navy-700);
  --bs-link-color-rgb: 23, 59, 110;
  --bs-link-hover-color: var(--gold-600);
  --bs-link-hover-color-rgb: 168, 130, 44;
  --bs-border-color: var(--line);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
}

a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }

img { max-width: 100%; height: auto; }

::selection { background: var(--gold-400); color: var(--navy-950); }

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 2000;
  padding: .6rem 1rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

section, .section { scroll-margin-top: calc(var(--header-h) + 8px); }

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--ivory); }
.section-navy { background: var(--navy-900); color: rgba(255, 255, 255, .82); }
.section-navy h2, .section-navy h3 { color: #fff; }

@media (max-width: 767.98px) {
  .section { padding: 68px 0; }
}

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.eyebrow-light { color: var(--gold-400); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-navy .section-head p { color: rgba(255, 255, 255, .72); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold-500);
  margin: 0 auto 1.1rem;
}
.ornament::before, .ornament::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.ornament::after { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-family: var(--font-sans);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-border-radius: 999px;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .2s ease;
}
.btn-sm { --bs-btn-padding-x: .95rem; --bs-btn-padding-y: .38rem; --bs-btn-font-size: .875rem; }

.btn-gold {
  --bs-btn-color: var(--navy-950);
  --bs-btn-bg: var(--gold-400);
  --bs-btn-border-color: var(--gold-400);
  --bs-btn-hover-color: var(--navy-950);
  --bs-btn-hover-bg: #e4c475;
  --bs-btn-hover-border-color: #e4c475;
  --bs-btn-active-bg: var(--gold-500);
  --bs-btn-active-border-color: var(--gold-500);
  --bs-btn-active-color: var(--navy-950);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(196, 154, 58, .8); }

.btn-navy {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--navy-800);
  --bs-btn-border-color: var(--navy-800);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--navy-700);
  --bs-btn-hover-border-color: var(--navy-700);
  --bs-btn-active-bg: var(--navy-900);
  --bs-btn-active-border-color: var(--navy-900);
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: #9aa6b8;
  --bs-btn-disabled-border-color: #9aa6b8;
  --bs-btn-disabled-color: #fff;
}

.btn-outline-navy {
  --bs-btn-color: var(--navy-800);
  --bs-btn-border-color: #c9d2e0;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--navy-800);
  --bs-btn-hover-border-color: var(--navy-800);
  --bs-btn-active-bg: var(--navy-900);
  --bs-btn-active-color: #fff;
}

.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .45);
  --bs-btn-hover-color: var(--navy-950);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
}

.btn-facebook {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1877f2;
  --bs-btn-border-color: #1877f2;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0f65d4;
  --bs-btn-hover-border-color: #0f65d4;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--navy-700);
}
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Government bar ---------- */
.gov-bar {
  position: relative;
  background: var(--navy-950);
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  padding: 8px 0;
}
.gov-bar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ph-blue) 0 40%, var(--ph-yellow) 40% 60%, var(--ph-red) 60% 100%);
}
.gov-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2px; }
.gov-bar strong { color: #fff; font-weight: 600; letter-spacing: .04em; }
.gov-bar .sep { opacity: .35; margin: 0 .55rem; }
.gov-bar a { color: rgba(255, 255, 255, .85); }
.gov-bar a:hover { color: var(--gold-400); }
.gov-bar-right { display: flex; align-items: center; gap: 1.1rem; white-space: nowrap; }
.pst-clock { font-variant-numeric: tabular-nums; }

@media (max-width: 767.98px) {
  .gov-bar .hide-sm, .gov-bar .sep { display: none; }
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 26px -14px rgba(11, 34, 68, .35); }

.site-header .navbar { min-height: var(--header-h); padding: 10px 0; }

.brand { display: flex; align-items: center; gap: .85rem; color: var(--ink); margin-right: 1.5rem; }
.brand:hover { color: var(--ink); }
.brand img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .12)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--font-serif); font-size: 1.32rem; font-weight: 700; color: var(--navy-900); }
.brand-sub {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 3px;
}

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .35rem .6rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy-900);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(217, 182, 95, .45); }

.site-header .nav-link {
  position: relative;
  font-weight: 600;
  font-size: .98rem;
  color: var(--navy-900);
  padding: .5rem .95rem !important;
}
.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: .95rem;
  right: .95rem;
  bottom: .2rem;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--navy-700); }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }

.header-cta { margin-left: 1rem; }

@media (max-width: 1199.98px) {
  .brand img { width: 46px; height: 46px; }
  .brand-title { font-size: 1.12rem; }
  .brand-sub { font-size: .62rem; letter-spacing: .12em; }
  .site-header .navbar-collapse {
    margin-top: .75rem;
    padding: .75rem 0 1rem;
    border-top: 1px solid var(--line);
  }
  .site-header .nav-link { padding: .7rem .25rem !important; border-bottom: 1px solid var(--line-cool); }
  .site-header .nav-link::after { display: none; }
  .header-cta { margin: 1rem 0 0; width: 100%; }
}

@media (max-width: 419.98px) {
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(1200px 520px at 85% 30%, rgba(196, 154, 58, .18), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  padding: 96px 0 150px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .12;
  filter: grayscale(.35);
  mix-blend-mode: luminosity;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 182, 95, .6), transparent);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.4rem;
  letter-spacing: -.01em;
}
.hero h1 span { display: block; color: var(--gold-400); font-style: italic; font-weight: 500; }
.hero .lead { font-size: 1.15rem; max-width: 600px; color: rgba(255, 255, 255, .8); margin-bottom: 2rem; }

.hero-search {
  display: flex;
  align-items: stretch;
  max-width: 640px;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.hero-search select {
  border: 0;
  background: var(--navy-50);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: 999px;
  padding: 0 2rem 0 1.1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23102d57' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 12px;
  cursor: pointer;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: .7rem 1rem;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
}
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(217, 182, 95, .45); }
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 1.4rem;
  background: var(--gold-400);
  color: var(--navy-950);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s ease;
}
.hero-search button:hover { background: #e4c475; }

@media (max-width: 575.98px) {
  .hero-search { flex-wrap: wrap; border-radius: var(--radius); gap: 6px; }
  .hero-search select { flex: 1 1 100%; padding: .65rem 1.1rem; border-radius: 10px; }
  .hero-search input { flex: 1 1 auto; }
  .hero-search button { border-radius: 10px; padding: .6rem 1rem; }
  .hero-search button span { display: none; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 2.2rem;
  margin-top: 2.6rem;
}
.hero-stats div { display: flex; flex-direction: column; border-left: 2px solid rgba(217, 182, 95, .55); padding-left: 1rem; }
.hero-stats strong { font-family: var(--font-serif); font-size: 1.85rem; color: #fff; font-weight: 600; line-height: 1.1; }
.hero-stats span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-top: .3rem; }

@media (max-width: 767.98px) {
  .hero { padding: 64px 0 120px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 1.4rem 2rem; }
}

.hero-seal {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.hero-seal::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px solid rgba(217, 182, 95, .35);
  box-shadow: 0 0 0 18px rgba(217, 182, 95, .06), 0 0 0 40px rgba(217, 182, 95, .04);
}
.hero-seal::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%);
}
.hero-seal img {
  position: relative;
  z-index: 1;
  width: 88%;
  border-radius: 50%;
  background: #fff;
  padding: 3%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 6px rgba(217, 182, 95, .55);
}

/* ---------- Quick links (overlapping hero) ---------- */
.quick-links { position: relative; z-index: 2; margin-top: -88px; padding-bottom: 24px; }
.quick-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--body);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-400); color: var(--body); }
.quick-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: var(--gold-600);
  background: var(--gold-100);
  margin-bottom: 1.1rem;
}
.quick-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.quick-card p { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.quick-card .link-arrow { font-size: .92rem; }

/* ---------- About ---------- */
.about-lead { font-size: 1.15rem; color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.pillar { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pillar i { font-size: 1.5rem; color: var(--gold-600); }
.pillar h4 { font-size: 1.08rem; margin: .55rem 0 .25rem; }
.pillar p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 575.98px) { .pillars { grid-template-columns: 1fr; } }

.mandate-card {
  position: relative;
  height: 100%;
  padding: 2.6rem 2.4rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(196, 154, 58, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mandate-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  background: url("../img/rizallogo.png") center / contain no-repeat;
  opacity: .07;
}
.mandate-card h3 { color: #fff; font-size: 1.5rem; }
.mandate-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #fff;
  border-left: 3px solid var(--gold-400);
  padding-left: 1.1rem;
  margin: 1.2rem 0 .5rem;
}
.mandate-card cite { display: block; font-size: .82rem; font-style: normal; color: var(--gold-400); letter-spacing: .06em; margin-bottom: 1.4rem; }
.mandate-card ul { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.mandate-card li { display: flex; gap: .75rem; padding: .55rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.mandate-card li i { color: var(--gold-400); margin-top: .15rem; }

/* ---------- Status pills ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .7rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); background: var(--ok-bg); }
.status-warn { color: var(--warn); background: var(--warn-bg); }
.status-info { color: var(--info); background: var(--info-bg); }
.status-danger { color: var(--danger); background: var(--danger-bg); }

.sample-tag {
  display: inline-block;
  padding: .1rem .5rem;
  border: 1px dashed var(--gold-500);
  border-radius: 6px;
  color: var(--gold-700);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Latest legislation (home) ---------- */
.latest-panel {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.latest-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--ivory));
}
.latest-panel-head h3 { margin: 0; font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; }
.latest-panel-head h3 i { color: var(--gold-600); font-size: 1.2rem; }
.latest-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.latest-list li + li { border-top: 1px solid var(--line-cool); }
.latest-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem 1rem;
  padding: 1.05rem 1.6rem;
  color: var(--body);
  transition: background .2s ease;
}
.latest-list a:hover { background: var(--navy-50); }
.latest-list .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .82rem; color: var(--muted); }
.latest-list .meta .no { font-weight: 700; color: var(--navy-700); letter-spacing: .02em; }
.latest-list .title {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-list .status { align-self: start; }
.latest-panel-foot { padding: 1rem 1.6rem; border-top: 1px solid var(--line); }

.empty-state { padding: 2.5rem 1.6rem; text-align: center; color: var(--muted); }
.empty-state i { display: block; font-size: 2rem; color: var(--gold-500); margin-bottom: .5rem; }

/* Pending band */
.pending-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.pending-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(217, 182, 95, .55); color: rgba(255, 255, 255, .9); transform: translateY(-3px); }
.pending-card .top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .8rem; margin-bottom: .8rem; }
.pending-card .no { color: var(--gold-400); font-weight: 700; letter-spacing: .04em; }
.pending-card h3 { font-size: 1.12rem; color: #fff; line-height: 1.45; margin-bottom: .9rem; flex: 1; }
.pending-card .by { font-size: .88rem; color: rgba(255, 255, 255, .65); display: flex; gap: .45rem; }
.pending-card .stage {
  display: inline-block;
  margin-top: .8rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--gold-400);
  padding: .2rem .6rem;
  border-radius: 6px;
  align-self: flex-start;
}

/* ---------- Process timeline ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.process-step {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -18px;
  left: 1.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-950);
  background: var(--gold-400);
  border: 4px solid var(--ivory);
  border-radius: 999px;
  padding: .1rem .7rem;
}
.process-step h3 { font-size: 1.15rem; margin: .2rem 0 .5rem; }
.process-step p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 991.98px) { .process { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; } }
@media (max-width: 575.98px) { .process { grid-template-columns: 1fr; } }

/* ---------- Explainers ---------- */
.explainer {
  height: 100%;
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--gold-500);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.explainer .label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); }
.explainer h3 { font-size: 1.3rem; margin: .4rem 0 .8rem; }
.explainer p { font-size: .97rem; margin: 0; }

/* ---------- Officials ---------- */
.exec-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}
.exec-card .photo { background: var(--navy-900); }
.exec-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.exec-card .body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.exec-card .role { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); }
.exec-card h3 { font-size: 1.65rem; margin: .4rem 0 .3rem; }
.exec-card .title { color: var(--muted); margin-bottom: 1rem; }
.exec-card .motto { font-family: var(--font-serif); font-style: italic; color: var(--navy-700); border-left: 3px solid var(--gold-400); padding-left: .9rem; margin: 0; }
@media (max-width: 575.98px) {
  .exec-card { grid-template-columns: 1fr; }
  .exec-card .photo img { aspect-ratio: 4 / 4.2; }
}

.milestone {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.milestone .media { overflow: hidden; aspect-ratio: 16 / 9; }
.milestone img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.milestone:hover img { transform: scale(1.04); }
.milestone .caption { flex: 1; padding: 1.4rem 1.6rem 1.5rem; border-top: 3px solid var(--gold-400); }
.milestone .caption .eyebrow { margin-bottom: .4rem; }
.milestone .caption h3 { color: #fff; font-size: 1.3rem; margin: 0 0 .3rem; }
.milestone .caption p { margin: 0; font-size: .93rem; color: rgba(255, 255, 255, .78); }
.milestone .caption .zoom { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-size: .85rem; font-weight: 600; color: var(--gold-400); }
.milestone:hover { color: #fff; }

.presiding {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 1.6rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-lg);
}
.presiding img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold-400); flex-shrink: 0; }
.presiding .role { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); }
.presiding h3 { color: #fff; font-size: 1.6rem; margin: .3rem 0 .2rem; }
.presiding p { margin: 0; }
@media (max-width: 575.98px) {
  .presiding { flex-direction: column; text-align: center; padding: 1.8rem 1.4rem; }
}

.member-card {
  height: 100%;
  text-align: center;
  padding: 1.8rem 1.2rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-400); }
.member-card img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-400), 0 12px 24px -12px rgba(11, 34, 68, .45);
  margin-bottom: 1.1rem;
}
.member-card h4 { font-size: 1.08rem; margin-bottom: .3rem; }
.member-card .pos { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.member-card .tag {
  display: inline-block;
  margin-top: .6rem;
  padding: .2rem .65rem;
  border-radius: 8px;
  line-height: 1.4;
  background: var(--gold-100);
  color: var(--gold-700);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.member-card.secretary { background: var(--ivory); }

.group-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin: 2.6rem 0 1.4rem;
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Facebook ---------- */
.fb-section .fb-points { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.fb-section .fb-points li { display: flex; gap: .8rem; padding: .45rem 0; }
.fb-section .fb-points i { color: var(--gold-400); }
.fb-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 524px;
  margin: 0 auto;
}
.fb-frame iframe { display: block; width: 100%; border: 0; border-radius: 10px; overflow: hidden; }

/* ---------- Contact ---------- */
.contact-info { display: grid; gap: 1rem; }
.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card i {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--gold-600);
  background: var(--gold-100);
}
.info-card h3 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: .1rem 0 .3rem; }
.info-card p { margin: 0; color: var(--ink); }

.contact-form {
  height: 100%;
  padding: 2.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.contact-form .form-label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.form-control, .form-select {
  border-color: #d9dfe8;
  border-radius: 10px;
  padding: .7rem .95rem;
  font-size: 1rem;
}
.form-control:focus, .form-select:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(217, 182, 95, .25); }
.form-status { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .95rem; }
.form-status.is-visible { display: block; }
.form-status.is-loading { background: var(--navy-50); color: var(--navy-700); }
.form-status.is-success { background: var(--ok-bg); color: var(--ok); }
.form-status.is-error { background: var(--danger-bg); color: var(--danger); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-check-input:checked { background-color: var(--navy-800); border-color: var(--navy-800); }
.form-check-input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(217, 182, 95, .25); }

/* FAQ */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; overflow: hidden; background: #fff; }
.faq .accordion-item + .accordion-item { margin-top: .6rem; border-top: 1px solid var(--line); }
.faq .accordion-header { margin: 0; }
.faq .accordion-button { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; color: var(--ink); background: #fff; padding: 1rem 1.2rem; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--navy-800); background: var(--navy-50); }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(217, 182, 95, .35); }
.faq .accordion-body { font-size: .97rem; color: var(--body); }

.map-frame { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer-top { padding: 72px 0 48px; }
.footer-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.footer-brand img { width: 60px; height: 60px; background: #fff; border-radius: 50%; padding: 2px; }
.footer-brand .t1 { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; display: block; line-height: 1.2; }
.footer-brand .t2 { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); }
.site-footer h4 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .3rem 0; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 1.05rem;
  transition: all .2s ease;
}
.footer-social a:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-950); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; font-size: .85rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }
.footer-stripe { height: 4px; background: linear-gradient(90deg, var(--ph-blue) 0 40%, var(--ph-yellow) 40% 60%, var(--ph-red) 60% 100%); }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1020;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--gold-400); color: var(--navy-950); }

/* ---------- Inner page banner ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(800px 320px at 90% 0%, rgba(196, 154, 58, .2), transparent 60%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translateY(-50%);
  background: url("../img/rizallogo.png") center / contain no-repeat;
  opacity: .08;
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: .8rem; }
.page-hero p { max-width: 680px; font-size: 1.08rem; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(255, 255, 255, .4); }
.breadcrumbs a { color: var(--gold-400); }
.breadcrumbs a:hover { color: #fff; }
.page-hero-stats { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; position: relative; z-index: 1; }
.page-hero-stats span {
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .9rem;
}
.page-hero-stats strong { color: #fff; margin-right: .3rem; }

/* ---------- Legislation browser ---------- */
.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filters h2 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.filters .form-label { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.filters .mb-3 { margin-bottom: 1.05rem !important; }
.search-field { position: relative; }
.search-field i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .form-control { padding-left: 2.4rem; }
@media (max-width: 991.98px) { .filters { position: static; } }

.filters-aside {
  margin-top: 1.4rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--gold-100);
  border: 1px solid #ecdcb0;
  font-size: .93rem;
}
.filters-aside h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.filters-aside p { margin: 0; color: #5b4a22; }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.results-bar .count { color: var(--muted); font-size: .95rem; }
.results-bar .count strong { color: var(--ink); }
.results-bar .form-select { width: auto; padding-top: .45rem; padding-bottom: .45rem; font-size: .92rem; }

.sample-note {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .9rem 1.1rem;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  border: 1px dashed var(--gold-500);
  background: #fffaf0;
  color: #5b4a22;
  font-size: .92rem;
}
.sample-note i { color: var(--gold-600); font-size: 1.1rem; }
.sample-note code { color: var(--navy-700); }

.legis-item {
  position: relative;
  padding: 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.legis-item + .legis-item { margin-top: 1rem; }
.legis-item:hover { box-shadow: var(--shadow); border-left-color: var(--gold-500); }
.legis-item.is-pending { border-left-color: var(--gold-500); }
.legis-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.legis-meta .no { font-weight: 700; color: var(--navy-700); letter-spacing: .02em; }
.legis-meta i { margin-right: .3rem; }
.legis-title { font-size: 1.2rem; line-height: 1.45; margin-bottom: .5rem; }
.legis-title a { color: var(--ink); }
.legis-title a:hover { color: var(--navy-700); }
.legis-summary { font-size: .97rem; color: var(--body); margin-bottom: 1rem; }
.legis-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; font-size: .88rem; color: var(--muted); padding-top: .9rem; border-top: 1px dashed var(--line); }
.legis-foot .actions { margin-left: auto; display: flex; gap: .5rem; }
@media (max-width: 575.98px) {
  .legis-foot .actions { margin-left: 0; width: 100%; }
  .legis-foot .actions .btn { flex: 1; }
}

.legis-empty { padding: 3.5rem 1.5rem; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.legis-empty i { font-size: 2.4rem; color: var(--gold-500); display: block; margin-bottom: .6rem; }
.legis-empty h3 { font-size: 1.3rem; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pager button {
  min-width: 42px;
  height: 42px;
  padding: 0 .8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-800);
  font-weight: 600;
  transition: all .2s ease;
}
.pager button:hover:not(:disabled) { border-color: var(--navy-700); }
.pager button[aria-current="page"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* Record modal */
.record-modal .modal-content { border: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.record-modal .modal-header {
  align-items: flex-start;
  padding: 1.6rem 1.8rem;
  border: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, .8);
}
.record-modal .modal-header .no { color: var(--gold-400); font-weight: 700; letter-spacing: .04em; font-size: .9rem; }
.record-modal .modal-title { color: #fff; font-size: 1.4rem; line-height: 1.4; margin-top: .4rem; }
.record-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .8; }
.record-modal .modal-body { padding: 1.8rem; }
.record-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 1.4rem; }
.record-facts div { background: #fff; padding: .8rem 1rem; }
.record-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.record-modal .modal-header .sample-tag { color: var(--gold-400); border-color: var(--gold-400); margin-left: .4rem; }
.record-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.record-facts dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 575.98px) { .record-facts { grid-template-columns: 1fr; } }
.record-pdf { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ivory); }
.record-pdf iframe { display: block; width: 100%; height: 62vh; border: 0; }
.record-nopdf { display: flex; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 12px; background: var(--navy-50); color: var(--navy-800); font-size: .95rem; }
.record-nopdf i { font-size: 1.4rem; color: var(--navy-600); }
.record-modal .modal-footer { border-top: 1px solid var(--line); padding: 1rem 1.8rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { width: 120px; margin-bottom: 1.5rem; }
.notfound .code { font-family: var(--font-serif); font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--navy-900); font-weight: 700; }
.notfound .code span { color: var(--gold-500); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
