:root {
  --ink: #17212b;
  --muted: #627282;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --line: #dbe3dd;
  --teal: #0c7c74;
  --teal-dark: #075e59;
  --gold: #d29b22;
  --rose: #c85656;
  --green-soft: #e5f4ec;
  --shadow: 0 20px 45px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-logo {
    width: 100%;
    max-width: 50px; /* desktop */
    height: auto;
    display: block;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 768px) {
    .brand-logo {
        max-width: 60px;
    }
}

/* HP */
@media (max-width: 480px) {
    .brand-logo {
        max-width: 60px;
    }
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--green-soft);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 64px) 28px;
}

.hero-copy {
  max-width: 760px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5.15rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy > p:not(.section-kicker),
.section-heading p,
.zi-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 18px;
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-media {
  position: relative;
  min-height: 420px;
}

.hero-media img {
  width: 100%;
  height: min(58vw, 560px);
  min-height: 390px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-stat {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 230px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
  box-shadow: 0 18px 35px rgba(23, 33, 43, 0.18);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.quick-links a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  background: var(--surface);
  padding: 22px;
}

.quick-links span,
.meta {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-links small {
  color: var(--muted);
}

.section-shell {
  padding: clamp(58px, 9vw, 106px) clamp(18px, 4vw, 64px);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.article-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.article-card div {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-card a {
  color: var(--teal-dark);
  font-weight: 800;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.featured-article {
  display: flex;
  min-height: 100%;
  align-items: end;
  background:
    linear-gradient(rgba(23, 33, 43, 0.08), rgba(23, 33, 43, 0.76)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=900&q=80")
      center/cover;
  color: #ffffff;
}

.featured-article p,
.featured-article a,
.featured-article .meta {
  color: #ffffff;
}

.video-section {
  background: #eef6f1;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.video-player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-list{
    max-height: 580px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: .5rem;
}

.video-list{
    position: relative;
    mask-image: linear-gradient(
        to bottom,
        transparent 0,
        black 15px,
        black calc(100% - 15px),
        transparent 100%
    );
}

/* Scrollbar Modern */
.video-list::-webkit-scrollbar{
    width: 8px;
}

.video-list::-webkit-scrollbar-track{
    background: transparent;
}

.video-list::-webkit-scrollbar-thumb{
    background: rgba(100,100,100,.35);
    border-radius: 999px;
}

.video-list::-webkit-scrollbar-thumb:hover{
    background: rgba(100,100,100,.55);
}

.video-item {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 18px;
  text-align: left;
}

.video-item{
    flex-shrink: 0;
}

.video-item span {
  font-size: 1rem;
  font-weight: 850;
}

.video-item small {
  color: var(--muted);
}

.video-item.active {
  border-color: var(--teal);
  box-shadow: inset 5px 0 0 var(--teal);
}

.zi-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 10vw, 112px) clamp(18px, 4vw, 64px);
  background: var(--teal-dark);
  color: #ffffff;
}

.zi-section .section-kicker,
.zi-copy p {
  color: #d9f4ed;
}

.zi-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: clamp(18px, 4vw, 32px);
}

.integrity-score {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    border-radius: 14px;

    /* Glass Morphic */
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);

    box-shadow:
        0 8px 32px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.25);
}

.zi-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: block;
    object-fit: cover;
    border-radius: 24px;
    transition: transform .4s ease;
}

.integrity-score:hover .zi-image {
    transform: scale(1.05);
}

.integrity-score::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.35) 0%,
            rgba(255,255,255,.05) 40%,
            rgba(255,255,255,.15) 100%
        );
    pointer-events: none;
    z-index: 2;
}

.integrity-score span {
  color: var(--gold);
  font-weight: 900;
}

.integrity-score strong {
  font-size: 2.5rem;
  line-height: 1;
}

.integrity-score small {
  max-width: 130px;
  color: var(--muted);
}

.zi-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

/* ==========================
   FAQ SECTION
========================== */

.faq-section {
    position: relative;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow:
        0 8px 30px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.2);
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-question span {
    font-size: 1.5rem;
    transition: transform .3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all .35s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
}

.service-card span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.service-card small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 26px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.footer-social,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a,
.social-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  font-weight: 900;
  padding: 9px 12px;
}

.social-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(42px, 7vw, 76px) clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #f3f8f4;
}

.social-section h2 {
  margin: 0;
}

.social-links {
  justify-content: flex-end;
}

.alert {
  margin: 18px clamp(18px, 4vw, 64px) 0;
  border: 1px solid #b7d8ca;
  border-radius: 8px;
  background: #e8f7f0;
  color: #155d47;
  padding: 14px 16px;
  font-weight: 700;
}

.alert.danger {
  border-color: #edb8b8;
  background: #fff0f0;
  color: #8a2424;
}

.alert.success {
  margin: 0 0 18px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 24px;
}

.admin-body {
  min-height: 100vh;
  background: #f5f8f6;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
}

.admin-nav a:hover {
  background: var(--green-soft);
  color: var(--teal-dark);
}

.admin-nav form {
  margin: 0;
}

.admin-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.auth-card,
.admin-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(23, 33, 43, 0.08);
  padding: clamp(20px, 4vw, 34px);
}

.auth-card {
  width: min(460px, 100%);
  margin: 48px auto;
}

.auth-card h1,
.admin-section h1 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.admin-section.narrow {
  max-width: 820px;
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

.form-stack textarea {
  resize: vertical;
}

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(12, 124, 116, 0.16);
}

.form-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 18px 0 0;
}

.current-image {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.current-image img {
  width: min(320px, 100%);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 4px 10px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions a,
.actions button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-detail {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 84px) 0;
}

.article-detail h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.04;
}

.article-date {
  color: var(--muted);
  font-weight: 800;
}

.article-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}

.article-body {
  color: #283645;
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 28px 0;
}

.article-body p {
  margin: 0 0 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.pagination a {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  font-weight: 900;
}

.pagination a.active {
  background: var(--teal);
  color: #ffffff;
}

@media (max-width: 960px) {
  .hero,
  .video-layout,
  .zi-section,
  .social-section {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .service-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    inset: 78px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav.always-open {
    position: static;
    display: flex;
    flex-direction: row;
    box-shadow: none;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  .hero-stat {
    right: 14px;
    bottom: 14px;
  }

  .quick-links,
  .article-grid,
  .service-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .zi-panel {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .admin-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* Professional glass theme */
:root {
  --paper: #f4f8f7;
  --surface: rgba(255, 255, 255, 0.74);
  --line: rgba(126, 150, 142, 0.22);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --blue: #2563eb;
  --mint: #21a67a;
  --shadow: 0 22px 55px rgba(18, 33, 45, 0.13);
  --shadow-soft: 0 12px 32px rgba(18, 33, 45, 0.09);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(33, 166, 122, 0.14), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.1), transparent 24rem),
    linear-gradient(180deg, #f7fbfa 0%, #eef6f3 44%, #f8faf7 100%);
}

.site-header,
.admin-header {
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 28px rgba(18, 33, 45, 0.07);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px rgba(12, 124, 116, 0.24);
}

.main-nav,
.admin-nav {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  padding: 5px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.main-nav a,
.admin-nav a {
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.admin-nav a:hover,
.admin-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-dark);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-copy {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 38px);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

h1,
h2 {
  color: #132331;
}

.section-kicker {
  color: var(--teal);
}

.button,
.video-item,
.service-card,
.article-card,
.quick-links a,
.auth-card,
.admin-section,
.zi-panel,
.social-section,
.pagination a {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 28px rgba(12, 124, 116, 0.2);
}

.button.secondary,
.nav-toggle,
.article-card,
.quick-links a,
.service-card,
.video-item,
.auth-card,
.admin-section,
.pagination a,
.form-stack input,
.form-stack textarea,
.form-stack select {
  border-color: rgba(255, 255, 255, 0.62);
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.button:hover,
.article-card:hover,
.quick-links a:hover,
.service-card:hover,
.video-item:hover,
.pagination a:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(18, 33, 45, 0.14);
}

.hero-media img,
.article-card,
.video-player,
.integrity-score,
.article-hero-image {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
}

.hero-media img {
  filter: saturate(1.06) contrast(1.02);
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.quick-links {
  gap: 14px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.quick-links a {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
}

.article-card {
  overflow: hidden;
}

.article-card img {
  transition: transform 450ms ease, filter 450ms ease;
}

.article-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.video-section {
  background:
    linear-gradient(180deg, rgba(238, 246, 241, 0.88), rgba(241, 247, 249, 0.72));
}

.video-player {
  box-shadow: 0 28px 64px rgba(18, 33, 45, 0.18);
}

.video-item.active {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 5px 0 0 var(--teal), var(--shadow-soft);
}

.zi-section {
  background:
    linear-gradient(135deg, rgba(7, 94, 89, 0.96), rgba(16, 85, 130, 0.94)),
    linear-gradient(180deg, #075e59, #123c62);
}

.zi-panel {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.service-card span {
  background: linear-gradient(135deg, rgba(229, 244, 236, 0.95), rgba(219, 234, 254, 0.95));
}

.social-section {
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer-social a,
.social-links a {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 22px rgba(18, 33, 45, 0.08);
}

.admin-body {
  background:
    radial-gradient(circle at 10% 4%, rgba(33, 166, 122, 0.13), transparent 25rem),
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.1), transparent 24rem),
    #f5f8f6;
}

.pdf-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));
    gap:1.5rem;
}

.pdf-card{
    background:var(--glass-bg);
    border:1px solid var(--glass-border);
    border-radius:24px;
    overflow:hidden;
    backdrop-filter:blur(20px);
}

.pdf-card iframe{
    width:100%;
    height:350px;
    border:none;
}

.pdf-info{
    padding:1rem;
}

.testimonial-item{
    text-align:left;
}

table {
  overflow: hidden;
  border-radius: 14px;
}

th {
  background: rgba(255, 255, 255, 0.58);
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.46);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-media {
  animation: floatMedia 8s ease-in-out infinite;
}

@keyframes floatMedia {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .main-nav,
  .admin-nav {
    background: rgba(255, 255, 255, 0.86);
  }

  .hero-copy {
    padding: 22px;
  }
}

/* Final professional typography, footer, and theme system */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  --text-xs: 0.78rem;
  --text-sm: 0.88rem;
  --text-base: 0.96rem;
  --text-md: 1.02rem;
  --title-sm: 1.35rem;
  --title-lg: 2.25rem;
  --title-xl: 3.05rem;
}

body {
  color: #1b2836;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.brand strong,
.button,
.main-nav a,
.admin-nav a {
  font-family: var(--font-display);
}

h1,
h2,
h3 {
  color: #142230;
  font-weight: 720;
  letter-spacing: 0;
}

h1 {
  font-size: var(--title-xl);
  line-height: 1.08;
  max-width: 12.5em;
}

h2 {
  font-size: var(--title-lg);
  line-height: 1.14;
  max-width: 13em;
}

h3 {
  font-size: var(--title-sm);
  line-height: 1.24;
  font-weight: 700;
}

.section-kicker,
.quick-links span,
.meta,
th {
  font-size: var(--text-xs);
  font-weight: 760;
  letter-spacing: 0;
}

.brand {
  min-width: 190px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  font-size: 0.92rem;
  font-weight: 760;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.15;
  font-weight: 760;
}

.brand small {
  font-size: 0.74rem;
  line-height: 1.2;
}

.site-header,
.admin-header {
  padding-top: 12px;
  padding-bottom: 12px;
}

.main-nav a,
.admin-nav a,
.theme-toggle {
  font-size: var(--text-sm);
  font-weight: 650;
}

.main-nav a,
.admin-nav a {
  padding: 8px 10px;
}

.hero {
  gap: 44px;
  padding-top: 58px;
  padding-bottom: 32px;
}

.hero-copy {
  max-width: 650px;
  padding: 30px;
}

.hero-copy > p:not(.section-kicker),
.section-heading p,
.zi-copy p {
  color: #5d6d7e;
  font-size: var(--text-md);
  line-height: 1.72;
  max-width: 620px;
}

.button {
  min-height: 42px;
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 720;
  padding: 10px 15px;
}

.hero-media {
  min-height: 360px;
}

.hero-media img {
  height: 470px;
  min-height: 350px;
}

.quick-links a {
  min-height: 128px;
  padding: 18px;
}

.quick-links strong,
.service-card strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.quick-links small,
.service-card small,
.video-item small,
.article-card p,
.article-card a {
  font-size: var(--text-sm);
  line-height: 1.55;
}

.section-shell {
  padding-top: 78px;
  padding-bottom: 78px;
}

.article-card img {
  height: 205px;
}

.article-card div,
.service-card {
  padding: 18px;
}

.video-item {
  min-height: 92px;
  padding: 15px;
}

.video-item span {
  font-size: var(--text-base);
  font-weight: 720;
}

.zi-section {
  padding-top: 82px;
  padding-bottom: 82px;
}

.integrity-score {
  min-height: 185px;
}

.integrity-score strong {
  font-size: 2.05rem;
  font-weight: 760;
}

.service-card {
  min-height: 158px;
}

.service-card span {
  width: 42px;
  height: 42px;
  font-size: var(--text-sm);
}

.auth-card h1,
.admin-section h1,
.article-detail h1 {
  font-size: var(--title-lg);
  line-height: 1.14;
}

.auth-card,
.admin-section {
  padding: 26px;
}

.form-stack input,
.form-stack textarea,
.form-stack select,
.form-stack label,
th,
td,
.badge {
  font-size: var(--text-sm);
}

.article-detail {
  width: min(820px, calc(100% - 36px));
}

.article-body {
  font-size: var(--text-md);
  line-height: 1.82;
}

.theme-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--teal-dark);
  cursor: pointer;
  padding: 7px 10px;
}

.theme-toggle-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(12, 124, 116, 0.12);
  font-size: 0.82rem;
}

.footer-dark {
  display: block;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 10% 15%, rgba(33, 166, 122, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.18), transparent 30rem),
    linear-gradient(135deg, rgba(9, 19, 31, 0.96), rgba(15, 39, 48, 0.94));
  color: rgba(255, 255, 255, 0.78);
  padding: 44px clamp(18px, 4vw, 64px) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(160px, 0.8fr));
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-brand,
.footer-column {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 20px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(12, 124, 116, 0.92), rgba(37, 99, 235, 0.85));
  color: #ffffff;
  font-weight: 800;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.2;
}

.footer-brand p,
.footer-column p {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-sm);
  line-height: 1.62;
  margin: 8px 0 0;
}

.footer-column h2 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.2;
  margin: 0 0 12px;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  line-height: 1.35;
  padding: 6px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 22px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-sm);
  padding-top: 18px;
}

.admin-footer {
  margin-top: 28px;
}

.admin-footer .footer-grid {
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(160px, 0.8fr));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eef4;
  --muted: #a9b6c5;
  --paper: #08111d;
  --surface: rgba(18, 29, 44, 0.74);
  --line: rgba(255, 255, 255, 0.12);
  --green-soft: rgba(33, 166, 122, 0.16);
  --glass: rgba(18, 29, 44, 0.58);
  --glass-strong: rgba(18, 29, 44, 0.78);
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .admin-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(33, 166, 122, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.18), transparent 26rem),
    linear-gradient(180deg, #07111d 0%, #0d1a27 48%, #08111d 100%);
  color: #e8eef4;
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .admin-header,
:root[data-theme="dark"] .main-nav,
:root[data-theme="dark"] .admin-nav,
:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .article-card,
:root[data-theme="dark"] .quick-links a,
:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .video-item,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .admin-section,
:root[data-theme="dark"] .pagination a,
:root[data-theme="dark"] .form-stack input,
:root[data-theme="dark"] .form-stack textarea,
:root[data-theme="dark"] .form-stack select {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 27, 42, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .brand strong,
:root[data-theme="dark"] .form-stack label {
  color: #f6f8fb;
}

:root[data-theme="dark"] .hero-copy > p:not(.section-kicker),
:root[data-theme="dark"] .section-heading p,
:root[data-theme="dark"] .zi-copy p,
:root[data-theme="dark"] .article-card p,
:root[data-theme="dark"] .service-card small,
:root[data-theme="dark"] .brand small,
:root[data-theme="dark"] .article-body,
:root[data-theme="dark"] .article-date,
:root[data-theme="dark"] td,
:root[data-theme="dark"] th {
  color: #a9b6c5;
}

:root[data-theme="dark"] .main-nav a,
:root[data-theme="dark"] .admin-nav a,
:root[data-theme="dark"] .article-card a,
:root[data-theme="dark"] .actions a,
:root[data-theme="dark"] .actions button {
  color: #aee9dc;
}

:root[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #e8eef4;
}

:root[data-theme="dark"] .theme-toggle-icon {
  background: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .video-section,
:root[data-theme="dark"] .social-section {
  background: rgba(10, 21, 34, 0.7);
}

:root[data-theme="dark"] .integrity-score {
  background: rgba(255, 255, 255, 0.9);
  color: #142230;
}

:root[data-theme="dark"] .integrity-score {
    background: rgba(15, 27, 42, 0.45);
    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 10px 40px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.08);
}

:root[data-theme="dark"] .integrity-score::before {
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.08) 0%,
            rgba(255,255,255,.02) 40%,
            rgba(255,255,255,.05) 100%
        );
}

@media (max-width: 960px) {
  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .footer-grid,
  .admin-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.05rem;
  }

  h2,
  .auth-card h1,
  .admin-section h1,
  .article-detail h1 {
    font-size: 1.65rem;
  }

  h3 {
    font-size: 1.14rem;
  }

  .footer-grid,
  .admin-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}
