:root {
  --primary: #8b0000;
  --secondary: #f4c20d;
  --accent: #ffffff;
  --ink: #121826;
  --muted: #5f6b7a;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --line: #dfe5ee;
  --teal: #0f766e;
  --navy: #101525;
  --shadow: 0 16px 36px rgba(18, 24, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

main {
  overflow: hidden;
  padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right));
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.top-ticker,
.disclaimer-bar {
  overflow: hidden;
  background: var(--primary);
  color: #ffffff;
  white-space: nowrap;
}

.disclaimer-bar {
  background: #151515;
}

.ticker-track {
  display: inline-block;
  min-width: 100%;
  padding: 8px 0 8px 100%;
  animation: ticker 28s linear infinite;
  font-size: 0.92rem;
  font-weight: 650;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.tvk-yellow{
    color:#ffd428;
    text-shadow:
        0 2px 8px rgba(0,0,0,.35),
        0 0 10px rgba(255,212,40,.45);
    font-weight:900;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 229, 238, 0.9);
  backdrop-filter: blur(14px);
}

.site-header.sticky {
  box-shadow: 0 10px 30px rgba(18, 24, 38, 0.08);
}

.header-shell {
  width: min(1280px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  color: var(--primary);
  font-weight: 800;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 194, 13, 0.7);
}

.brand span {
  max-width: 280px;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 auto;
}

.nav-stack {
  display: grid;
  gap: 8px;
  width: min(100%, 940px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-radius: 8px;
  padding: 6px 8px;
}

.nav-row > nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-service {
  background: linear-gradient(90deg, #7f0000, #a30d0d);
}

.nav-general {
  background: #f7f9fc;
  border: 1px solid var(--line);
}

.nav-updates {
  flex-wrap: nowrap;
  background: #fff8e1;
  border: 1px solid rgba(244, 194, 13, 0.5);
}

.site-header nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2f3643;
  font-weight: 700;
}

.nav-service a {
  min-height: 34px;
  color: #fff2a8;
  font-size: 0.88rem;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.nav-updates a {
  flex: 0 0 auto;
  color: #6a2200;
  font-size: 0.9rem;
}

.nav-updates a:hover {
  background: #ffe8a6;
  color: var(--primary);
}

.nav-updates a.nav-fact-check {
  background: linear-gradient(135deg, #8b0000, #b41414);
  color: #fff3c7;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(139, 0, 0, 0.16);
}

.nav-updates a.nav-fact-check:hover {
  background: linear-gradient(135deg, #a10000, #c52222);
  color: #fff7de;
}


/* =========================
   STUDENT AWARDS BUTTON
========================= */

.student-awards-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:10px 18px;
    border-radius:999px;

    background:linear-gradient(135deg,#ffd54a 0%, #ffb300 100%);
    color:#7b0000 !important;

    font-size:15px;
    font-weight:800;
    text-decoration:none !important;

    box-shadow:
        0 8px 18px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.35);

    transition:all .25s ease;

    position:relative;
    overflow:hidden;
}

/* ICON */

.student-awards-btn .award-icon{
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;

    width:28px;
    height:28px;

    border-radius:50%;
    background:rgba(123,0,0,.12);
}

/* SHINE EFFECT */

.student-awards-btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-80px;

    width:50px;
    height:100%;

    background:rgba(255,255,255,.28);
    transform:skewX(-20deg);

    transition:.6s;
}

.student-awards-btn:hover::before{
    left:120%;
}

/* HOVER */

.student-awards-btn:hover{
    transform:translateY(-2px);
    box-shadow:
        0 14px 28px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.4);
}

/* MOBILE */

@media(max-width:768px){

    .student-awards-btn{
        padding:9px 14px;
        font-size:13px;
        gap:6px;
    }

    .student-awards-btn .award-icon{
        width:24px;
        height:24px;
        font-size:15px;
    }

}

/* =========================
   STUDENT AWARDS BUTTON
========================= */

.student-awards-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:10px 18px;
    border-radius:999px;

    background:linear-gradient(135deg,#ffd54a 0%, #ffb300 100%);
    color:#7b0000 !important;

    font-size:15px;
    font-weight:800;
    text-decoration:none !important;

    box-shadow:
        0 8px 18px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.35);

    transition:all .25s ease;

    position:relative;
    overflow:hidden;
}

/* ICON */

.student-awards-btn .award-icon{
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;

    width:28px;
    height:28px;

    border-radius:50%;
    background:rgba(123,0,0,.12);
}

/* SHINE EFFECT */

.student-awards-btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-80px;

    width:50px;
    height:100%;

    background:rgba(255,255,255,.28);
    transform:skewX(-20deg);

    transition:.6s;
}

.student-awards-btn:hover::before{
    left:120%;
}

/* HOVER */

.student-awards-btn:hover{
    transform:translateY(-2px);
    box-shadow:
        0 14px 28px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.4);
}

/* MOBILE */

@media(max-width:768px){

    .student-awards-btn{
        padding:9px 14px;
        font-size:13px;
        gap:6px;
    }

    .student-awards-btn .award-icon{
        width:24px;
        height:24px;
        font-size:15px;
    }

}

.nav-row.nav-service a,
.nav-row.nav-service a:link,
.nav-row.nav-service a:visited {
  color: #fff2a8 !important;
}

.nav-login-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-service a.nav-logout {
  background: #ffffff;
  color: var(--primary) !important;
  text-shadow: none;
}

.nav-row.nav-service a {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-row.nav-service a:nth-child(5) {
  background: linear-gradient(135deg, #f4c20d, #ffe27a);
  color: #5a3600 !important;
  text-shadow: none;
}

.site-header nav a:hover {
  background: #f1f4f8;
  color: var(--primary);
}

.site-header nav a.nav-donate {
  background: linear-gradient(135deg, #f4c20d, #ffe17a);
  color: #4f3200;
  font-weight: 900;
}

.site-header nav a.nav-donate:hover {
  background: linear-gradient(135deg, #ffd84d, #fff0ad);
  color: #4f3200;
}

.nav-service a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff7cf !important;
}

.nav-row.nav-service a:nth-child(5):hover {
  background: linear-gradient(135deg, #ffd84d, #fff1aa);
  color: #4c2f00 !important;
}

.nav-row.nav-service a:focus-visible {
  outline: 2px solid #ffe27a;
  outline-offset: 1px;
}

.header-join {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

.header-right-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-whatsapp {
  background: #0f766e;
}

.translate-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.translate-switch span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.translate-switch select {
  width: 120px;
  min-height: 30px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-home {
  position: relative;
  min-height: min(680px, calc(100svh - 96px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(93, 8, 15, 0.98) 0%, rgba(145, 18, 26, 0.95) 48%, rgba(216, 151, 37, 0.92) 100%),
    #8b0000;
  color: #ffffff;
}

.hero-backdrop,
.hero-lines,
.hero-watermark {
  position: absolute;
  inset: 0;
}

.hero-lines {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.hero-watermark {
  width: min(540px, 46vw);
  height: min(540px, 46vw);
  inset: auto 6vw 34px auto;
  opacity: 0.16;
  object-fit: contain;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-home .eyebrow {
  color: #ffe7a5;
}

.hero-home h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.98;
}

.hero-lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.join-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.hero-home .btn-primary {
  background: #ffffff;
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: #3a2600;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.hero-home .btn-outline {
  border-color: rgba(255, 255, 255, 0.54);
  color: #ffffff;
}

.hero-metrics {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.metric-card {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.metric-card strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.section {
  padding: 66px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 0;
  color: var(--primary);
  font-weight: 900;
}

.section-automation {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.automation-grid,
.org-overview,
.gallery-grid,
.announcement-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel,
.panel-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table-wrap th {
  background: #f8fafc;
  font-size: 0.92rem;
}

.inline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.automation-card,
.org-card,
.announcement-item,
.gallery-card,
.leader-card,
.post-card,
.list-item,
.empty-panel,
.join-panel,
.join-aside,
.portal-card,
.portal-note,
.summary-card,
.org-node,
.submission-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.automation-card {
  min-height: 190px;
  padding: 20px;
}

.automation-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e7f5f3;
  color: var(--teal);
  font-weight: 900;
}

.automation-card h3,
.org-card h3,
.announcement-item h3,
.gallery-card h3,
.post-card h3,
.list-item h3 {
  margin: 14px 0 8px;
  line-height: 1.2;
}

.automation-card p,
.org-card p,
.announcement-item p,
.gallery-card p,
.post-card p,
.list-item p,
.leader-card p,
.join-panel p {
  margin: 0;
  color: var(--muted);
}

.leader-grid {
  display: grid;
  gap: 16px;
}

.leader-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  overflow: hidden;
}

.leader-card > img,
.leader-emblem {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.leader-card > img {
  object-fit: cover;
}

.leader-emblem {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.98), rgba(13, 118, 110, 0.82)),
    var(--primary);
}

.leader-emblem img {
  width: min(210px, 58%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.leader-copy {
  align-self: center;
  padding: clamp(24px, 4vw, 44px);
}

.leader-copy h3 {
  margin: 12px 0 12px;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0c2;
  color: #664000;
  font-size: 0.8rem;
  font-weight: 900;
}

.org-card {
  min-height: 180px;
  padding: 18px;
}

.org-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.post-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.post-card {
  overflow: hidden;
}

.post-card img,
.post-visual {
  width: 100%;
  height: 220px;
}

.post-media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.post-featured {
  grid-row: span 2;
}

.post-featured img,
.post-featured .post-visual,
.post-featured .post-media-frame {
  height: 350px;
}

.post-card img {
  object-fit: cover;
}

.post-media-frame img,
.post-media-frame iframe,
.post-media-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
  background: #000000;
}

.post-visual {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(244, 194, 13, 0.96), rgba(15, 118, 110, 0.82)),
    var(--secondary);
  color: #3d2600;
  text-align: center;
}

.post-visual img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.post-visual span {
  margin-top: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.94), rgba(15, 118, 110, 0.82));
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
}

.post-copy {
  padding: 18px;
}

.post-copy .media-actions {
  margin-top: 16px;
}

.announcement-band {
  background: #fff8e7;
}

.announcement-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.announcement-item {
  padding: 18px;
  box-shadow: none;
}

.announcement-media-frame {
  width: calc(100% + 36px);
  margin: -18px -18px 14px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.announcement-media-frame img,
.announcement-media-frame iframe,
.announcement-media-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
  background: #000000;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-card {
  position: relative;
  overflow: hidden;
}

.gallery-card img,
.gallery-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  object-fit: cover;
}

.gallery-card video {
  width: 100%;
  height: 220px;
  display: block;
  background: #000000;
}

.gallery-card > div:not(.media-badge) {
  padding: 16px;
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.media-frame img,
.media-frame iframe,
.media-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
  background: #000000;
}

.media-meta {
  display: grid;
  gap: 8px;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.media-actions .btn,
.share-link {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.share-link:hover {
  background: #f7f9fc;
  color: var(--primary);
}

.copy-link,
.instagram-link {
  cursor: pointer;
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16, 21, 37, 0.82);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.empty-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 20px;
}

.empty-panel img {
  width: 56px;
  height: 56px;
}

.empty-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.manifesto-grid,
.split,
.two-col,
.join-wrap,
.portal-shell,
.portal-two-col,
.org-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 18px;
  box-shadow: none;
}

.join-band {
  background: #ffffff;
}

.join-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(110deg, rgba(139, 0, 0, 0.96), rgba(139, 0, 0, 0.86) 48%, rgba(244, 194, 13, 0.95)),
    var(--primary);
  color: #ffffff;
}

.join-panel .eyebrow,
.join-panel h2,
.join-panel p {
  color: #ffffff;
}

.join-panel .btn-primary {
  background: #ffffff;
  color: var(--primary);
}

.alert {
  border-radius: 8px;
  padding: 12px 14px;
  margin: 18px 0 0;
  font-weight: 800;
}

.alert.success {
  background: #dff8ec;
  color: #17623f;
}

.alert.error {
  background: #fff0f0;
  color: #9a1b1b;
}

.join-form,
.subscribe-form,
.form-stack {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #263244;
  font-weight: 700;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #ccd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: var(--teal);
}

button {
  border: 0;
}

.join-aside {
  height: fit-content;
  padding: 20px;
}

.join-aside h3,
.portal-copy h1 {
  margin-top: 0;
}

.join-aside ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.join-aside .btn {
  width: 100%;
  margin-top: 10px;
}

.org-summary,
.portal-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.summary-card {
  padding: 18px;
  text-align: center;
}

.summary-card strong {
  display: block;
  color: var(--primary);
  font-size: 2.1rem;
  line-height: 1;
}

.org-tree {
  list-style: none;
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(139, 0, 0, 0.18);
}

.org-tree li {
  position: relative;
  margin: 12px 0;
  padding-left: 16px;
}

.org-tree li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 22px;
  width: 16px;
  border-top: 2px solid rgba(139, 0, 0, 0.18);
}

.org-node {
  padding: 16px;
}

.org-node strong,
.org-node span {
  display: block;
}

.org-node span {
  color: var(--teal);
  font-weight: 900;
}

.portal-shell-tight {
  grid-template-columns: 0.95fr 0.75fr;
}

.portal-card,
.portal-note {
  padding: 20px;
}

.portal-note {
  margin-top: 16px;
}

.portal-link-row a {
  color: var(--primary);
  font-weight: 900;
}

.portal-submission-list {
  display: grid;
  gap: 12px;
}

.submission-item {
  padding: 16px;
}

.submission-header,
.submission-status-row,
.verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pending {
  background: #fff3c4;
  color: #7a4b00;
}

.status-approved,
.status-verified {
  background: #dcfce7;
  color: #166534;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.muted,
.muted-text {
  color: var(--muted);
}

.floating-actions {
  position: fixed;
  right: 16px;
  top: 122px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
}

.membership-float {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b0000, #be4a00);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(18, 24, 38, 0.22);
  animation: membershipPulse 2.4s ease-in-out infinite;
}

.membership-float:hover {
  transform: translateY(-1px);
}

.district-float {
  background: linear-gradient(135deg, #0f766e, #1a4f97);
}

@keyframes membershipPulse {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(18, 24, 38, 0.22);
  }

  50% {
    box-shadow: 0 12px 24px rgba(18, 24, 38, 0.3), 0 0 0 10px rgba(139, 0, 0, 0.14);
  }
}

.district-hero {
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.96), rgba(26, 79, 151, 0.94));
}

.district-tabs {
  position: sticky;
  top: 96px;
  z-index: 35;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.district-tabs-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.district-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7fbfb;
  color: #0f4d68;
  font-weight: 800;
  font-size: 0.9rem;
}

.district-tabs a:hover {
  background: #e8f5f4;
}

.video-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.video-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px;
}

.video-slide {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.video-slide video,
.video-slide iframe {
  width: 100%;
  height: 200px;
  border: 0;
  background: #000000;
}

.video-slide h3 {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.video-nav {
  min-height: 42px;
  width: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.recent-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.recent-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
}

.recent-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.recent-card li {
  color: #1f2937;
  font-size: 0.92rem;
}

.site-footer {
  background: var(--navy);
  color: #dbe3ee;
}

.footer-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.1fr;
  gap: 28px;
  padding: 42px 0;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #dbe3ee;
}

.subscribe-form {
  grid-template-columns: 1fr auto;
}

.support-form-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(139, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff8e1;
  color: #4f3200;
}

.support-form-type span {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 900;
}

.support-form-type strong {
  color: var(--teal);
  font-size: 0.9rem;
}

.support-upload-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.support-upload-tab {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.support-upload-tab strong {
  color: var(--primary);
}

.support-upload-tab span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.subscribe-form button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--secondary);
  color: #372300;
  font-weight: 900;
}

.copyright {
  margin: 0;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

@media (max-width: 1120px) {
  .header-shell {
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .header-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
    display: none;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .header-actions.is-open {
    display: grid;
  }

  .nav-row {
    display: grid;
    justify-content: stretch;
    gap: 8px;
    padding: 10px;
  }

  .nav-row > nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .header-right-actions {
    display: grid;
    gap: 8px;
  }

  .header-join,
  .translate-switch {
    width: 100%;
  }

  .translate-switch {
    justify-content: space-between;
  }

  .district-tabs {
    top: 86px;
  }

  .floating-actions {
    top: 86px;
  }
}

@media (max-width: 900px) {
  main {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .section-inner,
  .footer-grid {
    width: min(100%, 1180px);
  }

  .district-tabs-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero-home {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0 42px;
  }

  .hero-metrics,
  .automation-grid,
  .org-overview,
  .recent-grid,
  .inline-grid,
  .post-grid,
  .manifesto-grid,
  .split,
  .two-col,
  .join-wrap,
  .portal-shell,
  .portal-two-col,
  .org-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .leader-card,
  .join-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .post-featured {
    grid-row: auto;
  }

  .post-featured img,
  .post-featured .post-visual,
  .post-featured .post-media-frame {
    height: 240px;
  }

  .hero-watermark {
    width: 72vw;
    height: 72vw;
    right: -8vw;
    bottom: 0;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: grid;
  }

  .video-carousel {
    grid-template-columns: 1fr;
  }

  .video-nav {
    display: none;
  }

  .form-grid,
  .subscribe-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  }

  .header-shell {
    width: min(100% - 28px, 1280px);
  }

  .support-form-type {
    display: grid;
  }

  .support-upload-tabs {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    max-width: 210px;
    font-size: 0.94rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-row > nav {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 12px;
    top: 74px;
    flex-direction: column;
    align-items: flex-end;
  }

  .membership-float {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .district-tabs {
    top: 76px;
  }

  .district-tabs-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 1120px) {
  .header-actions {
    max-height: 80vh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
  }

  .header-actions.is-open {
    display: grid !important;
  }

  .nav-stack {
    width: 100% !important;
  }

  .nav-row.nav-general {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .nav-row.nav-general nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .nav-row.nav-general nav a,
  .translate-switch {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .translate-switch select {
    width: 100% !important;
  }
}

.post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-link:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}


/* Fix clickable card + buttons */
.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card .media-actions a,
.post-card .media-actions button {
  position: relative;
  z-index: 2;
}


.video-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.video-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(159,17,24,0.92);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}


.post-cover,
.post-content video,
.post-video-box video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  margin: 18px 0;
  background: #000;
}

.post-content video,
.post-video-box video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* =========================================================
   TVK HOMEPAGE CARD UNIFORM FIX
   NON-DUPLICATE SAFE VERSION
   ========================================================= */

/* Uniform homepage card heights */
.post-card,
.gallery-card,
.announcement-item,
.video-slide {
  height: 100%;
  min-height: 430px;
  border-radius: 18px;
}

/* Uniform homepage media frame height */
.post-media-frame,
.media-frame {
  height: 220px;
}

/* Uniform image/video fitting */
.post-media-frame img,
.post-media-frame video,
.media-frame img,
.media-frame video,
.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Uniform homepage title area */
.post-card h3,
.gallery-card h3,
.announcement-item h3,
.video-slide h3 {
  min-height: 58px;
  overflow: hidden;
  line-height: 1.45;
}

/* Homepage timestamp style */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.88rem;
  color: #667085;
  font-weight: 700;
}

.post-meta i {
  color: var(--primary);
}

/* Mobile homepage card optimization */
@media (max-width: 768px) {
  .post-card,
  .gallery-card,
  .announcement-item,
  .video-slide {
    min-height: 360px;
  }

  .post-media-frame,
  .media-frame {
    height: 180px;
  }

  .post-card h3,
  .gallery-card h3,
  .announcement-item h3,
  .video-slide h3 {
    min-height: 48px;
    font-size: 0.98rem;
  }

  .post-meta {
    font-size: 0.8rem;
    gap: 8px;
  }
}

