/* CSS Utama - Sistem Informasi Pengadaan Barang dan Jasa Desa Tabongo Timur */
:root {
  --primary-color: #0b2545;
  --primary-hover: #134074;
  --secondary-color: #8da9c4;
  --accent-gold: #c59b27;
  --accent-gold-hover: #a37f1e;
  --bg-light: #f8f9fa;
  --text-dark: #1d2d44;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-gold);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background-color: var(--white);
  border-bottom: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  background: transparent;
  color: var(--accent-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo svg {
  width: 32px;
  height: 32px;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.brand-badge {
  font-size: 0.75rem;
  background: rgba(197, 155, 39, 0.15);
  color: var(--accent-gold-hover);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.2rem;
}

/* Navigation */
nav.navbar {
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.nav-link:hover, .nav-item.active > .nav-link, .nav-item.dropdown-open > .nav-link {
  background-color: var(--primary-hover);
  color: var(--accent-gold);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 320px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  list-style: none;
  z-index: 1100;
  border: 1px solid var(--border-color);
  border-top: none;
}

.nav-item.dropdown-open .dropdown-menu {
  display: block;
}

.dropdown-item a {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.2rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.dropdown-item:last-child a {
  border-bottom: none;
}

.dropdown-item a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.dropdown-item .code {
  font-weight: 700;
  color: var(--accent-gold-hover);
  font-size: 0.8rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

/* Breadcrumb & Sub-header (Indikator Pages) */
.page-header {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.93) 0%, rgba(6, 23, 46, 0.89) 100%),
              url('../images/hero-bg.jpg') center 35% / cover no-repeat;
  border-bottom: 3px solid var(--accent-gold);
  padding: 2.2rem 0;
  margin-bottom: 2rem;
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-header::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 85% 25%, rgba(197, 155, 39, 0.2) 0%, transparent 55%),
              linear-gradient(to bottom, transparent 65%, rgba(11, 37, 69, 0.5) 100%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #c4d1db;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #e2e8f0;
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb span {
  color: #cbd5e1;
}

.page-title {
  font-size: 1.65rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.page-desc {
  color: #d1dde8;
  font-size: 0.95rem;
  max-width: 900px;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.92) 0%, rgba(6, 23, 46, 0.88) 100%),
              url('../images/hero-bg.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 4.2rem 0;
  overflow: hidden;
  box-shadow: inset 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(197, 155, 39, 0.22) 0%, transparent 55%),
              linear-gradient(to bottom, transparent 60%, rgba(11, 37, 69, 0.65) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.05rem;
  color: #d1dde8;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-accent {
  background-color: var(--accent-gold);
  color: #000;
}

.btn-accent:hover {
  background-color: #d6a92d;
  color: #000;
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  background: var(--bg-light);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Cards & Grid */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(11, 37, 69, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* Quick Access List */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.quick-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quick-item:hover {
  border-left-color: var(--accent-gold);
  background: #fdfdfd;
}

.quick-info .code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-hover);
  display: block;
}

.quick-info .title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Filter Controls & Search */
.filter-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.1);
}

/* Document Table & List */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.doc-table th {
  background: #f1f3f5;
  color: var(--primary-color);
  padding: 0.9rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.doc-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.doc-table tbody tr:hover {
  background-color: #f8f9fa;
}

.file-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pdf { background: #ffe3e3; color: #c92a2a; }
.badge-doc, .badge-docx { background: #e7f5ff; color: #1864ab; }
.badge-xls, .badge-xlsx { background: #ebfbee; color: #2b8a3e; }
.badge-jpg, .badge-png { background: #fff9db; color: #f59f00; }
.badge-zip { background: #f3d9fa; color: #9c36b5; }

.doc-actions {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.demo-tag {
  display: inline-block;
  font-size: 0.65rem;
  background: #fff3bf;
  color: #f59f00;
  border: 1px solid #ffe066;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 0.4rem;
}

/* Empty & Disclaimer Boxes */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.disclaimer-box {
  background: #e7f5ff;
  border-left: 4px solid #1864ab;
  padding: 1.2rem;
  border-radius: 6px;
  margin: 2rem 0;
  font-size: 0.88rem;
  color: #1864ab;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--accent-gold);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--accent-gold);
}

.footer-info p {
  font-size: 0.85rem;
  color: var(--secondary-color);
}

.footer-bottom {
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--secondary-color);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-container.active .nav-menu {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.15);
  }

  .dropdown-item a {
    color: var(--white);
  }

  .dropdown-item a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-gold);
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .page-header {
    padding: 1.6rem 0;
  }

  .page-title {
    font-size: 1.35rem;
  }
}

/* =========================================================
   REDESAIN MODERN — SISTEM INFORMASI PENGADAAN DESA
   Lapisan visual baru; struktur, konten, dan tautan lama tetap.
   ========================================================= */
:root {
  --primary-color: #102b4e;
  --primary-hover: #1b416d;
  --secondary-color: #a8bad0;
  --accent-gold: #d7ad52;
  --accent-gold-hover: #b8892e;
  --bg-light: #f3f6fb;
  --text-dark: #18283d;
  --text-muted: #69788c;
  --border-color: #e3eaf2;
  --white: #fff;
  --shadow-sm: 0 5px 18px rgba(16, 43, 78, .055);
  --shadow-md: 0 14px 34px rgba(16, 43, 78, .10);
  --shadow-lg: 0 24px 60px rgba(9, 30, 56, .18);
  --radius-lg: 20px;
  --radius-md: 14px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: radial-gradient(circle at 8% 8%, rgba(215,173,82,.075), transparent 25rem), var(--bg-light);
  color: var(--text-dark);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(215,173,82,.3); color: var(--primary-color); }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
a { transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.container { max-width: 1240px; padding-left: 28px; padding-right: 28px; }

/* Brand header */
header {
  position: relative;
  z-index: 1001;
  background: rgba(255,255,255,.92);
  border: 0;
  box-shadow: 0 4px 24px rgba(16,43,78,.055);
  backdrop-filter: blur(16px);
}
header::after { content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:linear-gradient(90deg,transparent,var(--accent-gold),transparent); }
.header-inner { min-height: 104px; padding: 18px 0; }
.brand { gap: 17px; }
.brand-logo {
  width: 66px; height: 66px; padding: 5px; border-radius: 18px;
  background: linear-gradient(145deg,#fff,#eef3f9);
  box-shadow: 0 8px 22px rgba(16,43,78,.10), inset 0 0 0 1px rgba(16,43,78,.06);
  flex: 0 0 auto;
}
.brand-logo img { border-radius: 12px; }
.brand-text h1 { font-size: clamp(.92rem,1.6vw,1.18rem); letter-spacing: .055em; line-height:1.35; font-weight:800; }
.brand-text p { margin-top: 4px; font-size:.86rem; color:#718096; }
.brand-badge {
  margin-top:8px; padding:5px 11px; border:1px solid rgba(215,173,82,.28);
  border-radius:999px; background:rgba(215,173,82,.11); color:#8b6724;
  font-size:.69rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
}

/* Navigation */
nav.navbar {
  position:sticky; top:0; z-index:1000; color:#fff;
  background:rgba(12,34,62,.96); border-bottom:1px solid rgba(255,255,255,.09);
  box-shadow:0 10px 28px rgba(9,30,56,.14); backdrop-filter:blur(18px);
}
.nav-container { justify-content:center; min-height:62px; }
.nav-menu { display:flex; align-items:stretch; justify-content:center; gap:4px; width:100%; }
.nav-link {
  position:relative; width:auto; min-height:62px; padding:0 15px;
  justify-content:center; border-radius:10px; color:rgba(255,255,255,.86);
  font-size:.76rem; font-weight:750; letter-spacing:.025em; transition:all .25s ease;
}
.nav-link::after { content:""; position:absolute; left:15px; right:15px; bottom:7px; height:2px; border-radius:5px; background:var(--accent-gold); transform:scaleX(0); transform-origin:center; transition:transform .25s ease; }
.nav-link:hover, .nav-item.active > .nav-link, .nav-item.dropdown-open > .nav-link { background:rgba(255,255,255,.075); color:#f3d18a; }
.nav-link:hover::after, .nav-item.active > .nav-link::after, .nav-item.dropdown-open > .nav-link::after { transform:scaleX(1); }
.dropdown-menu {
  top:calc(100% - 2px); min-width:285px; padding:9px; border:1px solid rgba(16,43,78,.08);
  border-radius:0 0 16px 16px; background:rgba(255,255,255,.98); box-shadow:var(--shadow-lg);
  animation:dropIn .22s ease both; transform-origin:top center;
}
.dropdown-item a { display:block; padding:12px 14px; border:0; border-radius:10px; color:var(--text-dark); font-size:.83rem; line-height:1.4; }
.dropdown-item a:hover { padding-left:18px; background:#f2f6fb; color:var(--primary-color); }
.dropdown-item .code { display:inline-block; margin:0 8px 0 0; padding:3px 7px; border-radius:6px; background:rgba(215,173,82,.16); color:#936d25; font-size:.7rem; }
.hamburger { border-radius:10px; }

/* Hero and page banners */
.hero, .page-header {
  isolation:isolate; position:relative; overflow:hidden; color:#fff;
  background:linear-gradient(112deg,rgba(7,25,48,.96),rgba(16,48,83,.88) 55%,rgba(21,58,94,.83)), url('../images/hero-bg.jpg') center 48%/cover no-repeat;
  border:0; box-shadow:inset 0 -1px rgba(255,255,255,.1);
}
.hero { min-height:440px; display:flex; align-items:center; padding:88px 0 92px; }
.hero::before, .page-header::before {
  content:""; position:absolute; z-index:-1; width:540px; height:540px; right:-120px; top:-250px;
  border:1px solid rgba(255,255,255,.13); border-radius:50%;
  box-shadow:0 0 0 45px rgba(255,255,255,.025),0 0 0 95px rgba(255,255,255,.02);
  animation:orbit 24s linear infinite;
}
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse at 82% 50%,rgba(215,173,82,.22),transparent 34%),linear-gradient(90deg,rgba(5,20,39,.25),transparent 75%);
}
.hero-content { max-width:820px; animation:heroRise .85s cubic-bezier(.2,.7,.2,1) both; }
.hero-kicker {
  display:inline-flex; align-items:center; gap:9px; margin-bottom:22px; padding:8px 13px;
  border:1px solid rgba(232,196,125,.35); border-radius:999px;
  background:rgba(255,255,255,.08); color:#f3d18a; font-size:.72rem; font-weight:800;
  letter-spacing:.12em; text-transform:uppercase; backdrop-filter:blur(10px);
}
.hero-kicker::before { content:""; width:7px; height:7px; border-radius:50%; background:#e8c47d; box-shadow:0 0 0 5px rgba(232,196,125,.14); }
.hero h2 { max-width:780px; margin-bottom:18px; font-size:clamp(2rem,4.5vw,3.45rem); line-height:1.12; font-weight:850; letter-spacing:-.035em; text-shadow:none; }
.hero p { max-width:730px; margin-bottom:30px; color:rgba(239,245,252,.82); font-size:1.04rem; line-height:1.8; text-shadow:none; }
.btn { position:relative; overflow:hidden; gap:10px; padding:13px 21px; border-radius:11px; font-size:.86rem; font-weight:750; transition:transform .25s ease,box-shadow .25s ease,background .25s ease; }
.btn::after { content:""; position:absolute; inset:0; background:linear-gradient(110deg,transparent 25%,rgba(255,255,255,.24),transparent 65%); transform:translateX(-120%); transition:transform .65s ease; }
.btn:hover::after { transform:translateX(120%); }
.btn-accent { background:linear-gradient(135deg,#e9c779,#c99b42); color:#18283d; box-shadow:0 9px 24px rgba(201,155,66,.25); }
.btn-accent:hover { transform:translateY(-3px); color:#18283d; box-shadow:0 14px 28px rgba(201,155,66,.34); }
.btn-primary { background:linear-gradient(135deg,#173b65,#0d294b); color:#fff; box-shadow:0 6px 16px rgba(16,43,78,.16); }
.btn-primary:hover { transform:translateY(-2px); background:#214b79; color:#fff; }
.btn-outline { background:#fff; border:1px solid #dce5ef; color:var(--primary-color); }
.btn-outline:hover { transform:translateY(-2px); background:#f4f7fb; border-color:#b7c8dc; color:var(--primary-color); box-shadow:0 7px 16px rgba(16,43,78,.07); }

.page-header { padding:46px 0 48px; margin-bottom:0; border:0; }
.page-header::after { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(ellipse at 85% 30%,rgba(215,173,82,.2),transparent 32%); }
.page-header .container { z-index:1; }
.breadcrumb { gap:9px; margin-bottom:16px; color:rgba(235,243,251,.65); font-size:.78rem; }
.breadcrumb a { color:#e7c77f; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb span { color:rgba(235,243,251,.8); }
.page-title { margin-bottom:10px; font-size:clamp(1.65rem,3vw,2.35rem); font-weight:850; letter-spacing:-.025em; text-shadow:none; }
.page-desc { max-width:850px; color:rgba(239,245,252,.8); font-size:.96rem; line-height:1.75; text-shadow:none; }

/* Sections and cards */
.section { padding-top:66px; padding-bottom:54px; }
.section-title { display:block; margin-bottom:9px; color:var(--primary-color); font-size:clamp(1.35rem,2.3vw,1.8rem); font-weight:850; letter-spacing:-.025em; }
.section-subtitle { max-width:760px; margin-bottom:27px; color:var(--text-muted); font-size:.94rem; line-height:1.7; }
.category-grid { gap:20px; }
.card {
  position:relative; overflow:hidden; min-height:260px; padding:25px 23px;
  border:1px solid rgba(222,231,241,.9); border-radius:var(--radius-lg);
  background:linear-gradient(150deg,#fff,#fbfcfe); box-shadow:var(--shadow-sm);
  transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease,border-color .35s ease;
}
.card::before { content:""; position:absolute; width:130px; height:130px; right:-62px; top:-65px; border-radius:50%; background:rgba(215,173,82,.09); transition:transform .45s ease; }
.card:hover { transform:translateY(-8px); border-color:rgba(215,173,82,.55); box-shadow:var(--shadow-md); }
.card:hover::before { transform:scale(1.8); }
.card-icon { position:relative; width:54px; height:54px; margin-bottom:20px; border-radius:16px; background:linear-gradient(145deg,#edf3fa,#e4ecf6); color:var(--primary-color); box-shadow:inset 0 0 0 1px rgba(16,43,78,.04); }
.card-icon svg { width:25px; height:25px; }
.card-title { position:relative; margin-bottom:9px; font-size:1.04rem; line-height:1.4; font-weight:800; }
.card-desc { position:relative; margin-bottom:22px; color:#718096; font-size:.85rem; line-height:1.7; }
.card .btn { align-self:flex-start; margin-top:auto; }
.quick-grid { gap:13px; }
.quick-item {
  position:relative; min-height:78px; padding:15px 17px; overflow:hidden;
  border:1px solid #e3eaf2; border-left:3px solid #244c76; border-radius:13px;
  background:rgba(255,255,255,.88); box-shadow:0 3px 12px rgba(16,43,78,.035);
}
.quick-item::after { content:""; position:absolute; width:80px; height:80px; right:-50px; top:-42px; border-radius:50%; background:rgba(215,173,82,.1); transition:transform .3s ease; }
.quick-item:hover { transform:translateY(-4px); border-color:#d7bd83; border-left-color:var(--accent-gold); background:#fff; box-shadow:var(--shadow-sm); }
.quick-item:hover::after { transform:scale(2.1); }
.quick-info .code { margin-bottom:4px; color:#a17a30; font-size:.67rem; letter-spacing:.08em; }
.quick-info .title { color:#273b54; font-size:.87rem; line-height:1.45; }
.disclaimer-box { margin:38px 0 12px; padding:18px 21px; border:1px solid #dbe7f3; border-left:4px solid #4c83b7; border-radius:13px; background:linear-gradient(110deg,#edf5fc,#f8fbff); color:#49647e; font-size:.86rem; line-height:1.7; }

/* Filter and document listing */
main.container:not(.section) { padding-top:36px; }
.filter-card { margin-bottom:22px; padding:21px; border:1px solid #e3eaf2; border-radius:var(--radius-lg); background:rgba(255,255,255,.92); box-shadow:var(--shadow-sm); }
.filter-grid { gap:15px; }
.form-group { gap:7px; }
.form-group label { color:#42566f; font-size:.76rem; font-weight:800; }
.form-control { min-height:45px; padding:10px 13px; border:1px solid #dce5ef; border-radius:10px; background:#fbfcfe; color:var(--text-dark); font:inherit; font-size:.85rem; transition:border .2s ease,box-shadow .2s ease,background .2s ease; }
.form-control:focus { border-color:#7898bd; background:#fff; box-shadow:0 0 0 4px rgba(60,105,155,.1); }
.table-responsive { overflow-x:auto; border:1px solid #e2e9f1; border-radius:16px; background:#fff; box-shadow:var(--shadow-sm); }
.doc-table { font-size:.85rem; }
.doc-table th { padding:15px 16px; border-bottom:1px solid #dfe7f0; background:#f2f6fa; color:#294565; font-size:.73rem; letter-spacing:.055em; text-transform:uppercase; }
.doc-table td { padding:15px 16px; border-bottom:1px solid #edf1f5; line-height:1.55; }
.doc-table tbody tr { transition:background .2s ease; }
.doc-table tbody tr:hover { background:#f7faff; }
.doc-table tbody tr:last-child td { border-bottom:0; }
.file-badge { padding:5px 8px; border-radius:7px; font-size:.67rem; letter-spacing:.04em; }
.doc-actions { gap:7px; }
.doc-actions .btn { padding:8px 11px; font-size:.72rem; }
.demo-tag { border-radius:6px; }
.empty-state { padding:55px 22px; border:1px dashed #cbd8e6; border-radius:16px; background:#fff; }
.empty-state svg { color:#91a4ba; }

/* Footer */
footer { position:relative; overflow:hidden; margin-top:70px; padding:48px 0 22px; border:0; background:linear-gradient(125deg,#0b203a,#14375d); }
footer::before { content:""; position:absolute; width:340px; height:340px; right:-110px; top:-210px; border:1px solid rgba(255,255,255,.1); border-radius:50%; box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 75px rgba(255,255,255,.02); }
.footer-inner { position:relative; padding-bottom:26px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-info h3 { margin-bottom:8px; color:#e8c47d; font-size:1.1rem; font-weight:800; }
.footer-info p { margin-top:4px; color:rgba(228,238,249,.68); font-size:.83rem; }
.footer-bottom { padding-top:19px; color:rgba(228,238,249,.55); font-size:.74rem; }

/* Motion utilities */
[data-reveal] { opacity:0; transform:translateY(22px); transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity:1; transform:translateY(0); }
.category-grid .card:nth-child(2), .quick-grid > :nth-child(3n+2) { transition-delay:.07s; }
.category-grid .card:nth-child(3), .quick-grid > :nth-child(3n+3) { transition-delay:.13s; }
.scroll-progress { position:fixed; z-index:1200; top:0; left:0; width:0; height:3px; background:linear-gradient(90deg,#d7ad52,#f3d994); box-shadow:0 0 10px rgba(215,173,82,.45); }
.back-to-top { position:fixed; z-index:1100; right:22px; bottom:22px; display:grid; place-items:center; width:44px; height:44px; border:1px solid rgba(255,255,255,.22); border-radius:14px; background:#14375d; color:#fff; box-shadow:0 9px 24px rgba(9,30,56,.22); opacity:0; visibility:hidden; transform:translateY(12px); transition:all .25s ease; cursor:pointer; }
.back-to-top.visible { opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover { background:#244e79; transform:translateY(-3px); }

@keyframes heroRise { from { opacity:0; transform:translateY(25px); } to { opacity:1; transform:translateY(0); } }
@keyframes dropIn { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes orbit { to { transform:rotate(360deg); } }

@media (max-width: 1050px) {
  .nav-container { justify-content:flex-start; }
  .nav-menu { justify-content:flex-start; }
  .nav-link { padding:0 10px; font-size:.7rem; }
}
@media (max-width: 768px) {
  .container { padding-left:20px; padding-right:20px; }
  .header-inner { min-height:88px; padding:13px 0; }
  .brand { gap:12px; }
  .brand-logo { width:54px; height:54px; border-radius:14px; }
  .brand-text h1 { max-width:290px; font-size:.82rem; }
  .brand-text p { font-size:.72rem; }
  .brand-badge { font-size:.58rem; padding:4px 8px; }
  nav.navbar { position:sticky; }
  .nav-container { min-height:54px; display:block; }
  .hamburger { display:flex; align-items:center; justify-content:center; width:48px; height:50px; padding:0; font-size:1.35rem; }
  .nav-menu { display:none; flex-direction:column; align-items:stretch; gap:2px; width:100%; padding:0 0 13px; }
  .nav-container.active .nav-menu { display:flex; animation:dropIn .22s ease both; }
  .nav-link { justify-content:space-between; width:100%; min-height:45px; padding:10px 13px; border-radius:9px; font-size:.76rem; }
  .nav-link::after { display:none; }
  .dropdown-menu { position:static; min-width:0; margin:2px 0 7px; padding:5px; border:1px solid rgba(255,255,255,.08); border-radius:11px; background:rgba(255,255,255,.07); box-shadow:none; animation:none; }
  .dropdown-item a { padding:10px 12px; color:rgba(255,255,255,.88); font-size:.78rem; }
  .dropdown-item a:hover { padding-left:16px; background:rgba(255,255,255,.1); color:#f3d18a; }
  .dropdown-item .code { background:rgba(215,173,82,.2); color:#f0cf87; }
  .hero { min-height:390px; padding:66px 0 70px; }
  .hero h2 { font-size:clamp(1.85rem,7vw,2.55rem); }
  .hero p { font-size:.91rem; }
  .hero-kicker { font-size:.62rem; }
  .section { padding-top:45px; padding-bottom:35px; }
  .category-grid { grid-template-columns:1fr; gap:14px; }
  .card { min-height:0; padding:21px; }
  .quick-grid { grid-template-columns:1fr; gap:10px; }
  .quick-item { min-height:70px; }
  .page-header { padding:35px 0 38px; }
  .page-title { font-size:1.55rem; }
  main.container:not(.section) { padding-top:24px; }
  .filter-card { padding:16px; }
  .filter-grid { grid-template-columns:1fr; }
  .table-responsive { border-radius:12px; }
  .doc-table { min-width:720px; }
  footer { margin-top:48px; padding-top:38px; }
  .back-to-top { right:15px; bottom:15px; width:42px; height:42px; }
}
@media (max-width: 420px) {
  .brand-logo { width:47px; height:47px; }
  .brand-text h1 { max-width:245px; font-size:.72rem; }
  .brand-text p { font-size:.66rem; }
  .brand-badge { font-size:.53rem; }
  .hero { min-height:360px; }
  .btn { padding:12px 15px; font-size:.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  [data-reveal] { opacity:1; transform:none; }
}
