:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f1f4f7;
  --text: #15202b;
  --muted: #64717f;
  --line: #dce3ea;
  --brand: #c82232;
  --brand-dark: #9f1725;
  --accent: #0f766e;
  --gold: #c69026;
  --shadow: 0 18px 45px rgba(21, 32, 43, 0.09);
  --radius: 8px;
  --max: 1120px;
  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(200, 34, 50, 0.06), rgba(200, 34, 50, 0) 340px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover,
a:focus {
  color: var(--brand-dark);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 234, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  min-width: 220px;
}

.brand:hover,
.brand:focus {
  color: var(--text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(200, 34, 50, 0.22);
}

.brand__name,
.brand__caption {
  display: block;
}

.brand__name {
  font-size: 16px;
  font-weight: 800;
}

.brand__caption {
  margin-top: -3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #374151;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #fff1f2;
  color: var(--brand);
}

.site-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: stretch;
  gap: 22px;
  margin: 18px 0 22px;
}

.hero__content,
.hero__aside,
.section-card,
.stats-grid article,
.popular-links,
.site-main > div[align="center"],
.site-main > div[align="justify"],
.site-main table[width="60%"] {
  border: 1px solid rgba(220, 227, 234, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__content {
  padding: clamp(30px, 5vw, 58px);
}

.hero h1,
.site-main h1 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 a,
.site-main h1 a {
  color: inherit;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #465464;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.hero__aside {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__aside img {
  width: 100%;
  min-height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero__stat {
  padding: 18px;
  border-radius: var(--radius);
  background: #18212c;
  color: #fff;
}

.hero__stat strong {
  display: block;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 850;
}

.hero__stat span {
  display: block;
  margin-top: 8px;
  color: #cad3dd;
}

.search-panel,
.site-main form[action="carikodepos.php"] {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 32, 43, 0.08);
}

.search-panel label,
.site-main form[action="carikodepos.php"] {
  color: #526170;
  font-size: 14px;
  font-weight: 700;
}

.search-panel__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}

.site-main form[action="carikodepos.php"]:not(.search-panel) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search-panel input,
.site-main form[action="carikodepos.php"] input[type="text"],
.site-main form[action="carikodepos.php"] input[type="search"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font: 600 16px/1.4 var(--font);
  padding: 0 16px;
  outline: none;
}

.search-panel input:focus,
.site-main form[action="carikodepos.php"] input[type="text"]:focus,
.site-main form[action="carikodepos.php"] input[type="search"]:focus {
  border-color: rgba(200, 34, 50, 0.42);
  box-shadow: 0 0 0 4px rgba(200, 34, 50, 0.08);
  background: #fff;
}

.search-panel button,
.site-main form[action="carikodepos.php"] input[type="submit"],
.btnAction {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font: 800 15px/1 var(--font);
  padding: 0 24px;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(200, 34, 50, 0.22);
}

.search-panel button:hover,
.site-main form[action="carikodepos.php"] input[type="submit"]:hover,
.btnAction:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.stats-grid article {
  padding: 22px;
}

.stats-grid strong {
  display: block;
  color: var(--brand);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  font-weight: 850;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
}

.section-card {
  padding: clamp(22px, 4vw, 34px);
  margin-top: 22px;
}

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

.section-heading h2,
.site-main h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.site-main h3 {
  margin: 10px 0 20px;
  color: #526170;
  font-size: 16px;
  font-weight: 700;
}

.site-main h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 4px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #394756;
  font-size: 14px;
}

.site-main h3 a:hover,
.site-main h3 a:focus {
  border-color: rgba(200, 34, 50, 0.28);
  background: #fff1f2;
  color: var(--brand);
}

.site-main > div[align="center"] {
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 24px;
}

.site-main > div[align="justify"] {
  padding: clamp(20px, 4vw, 34px);
  margin: 24px auto;
  color: #465464;
  text-align: left;
}

.site-main table[width="60%"] {
  width: min(100%, 880px) !important;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  display: block;
}

.site-main table[width="60%"] tbody,
.site-main table[width="60%"] tr,
.site-main table[width="60%"] td {
  display: block;
  width: 100%;
}

.blueTable {
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px auto 22px !important;
  border: 1px solid var(--line) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  text-align: left !important;
  box-shadow: 0 14px 34px rgba(21, 32, 43, 0.08) !important;
}

.blueTable thead {
  background: #18212c !important;
  border-bottom: 0 !important;
}

.blueTable th {
  padding: 14px 16px !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.blueTable td {
  padding: 13px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  color: #344252 !important;
  font-size: 15px !important;
  vertical-align: middle !important;
}

.blueTable tr:nth-child(even) {
  background: #f8fafc !important;
}

.blueTable tbody tr:hover {
  background: #fff7f7 !important;
}

.blueTable tbody tr:last-child td {
  border-bottom: 0 !important;
}

.blueTable a {
  color: #b91c2b;
  font-weight: 750;
}

.province-table {
  text-align: center !important;
}

.province-table td {
  text-align: center !important;
  font-size: 16px !important;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.pagination li {
  display: inline-flex;
}

.pagination a,
.pagination .disabled a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #374151;
  font-weight: 750;
}

.pagination li:not(.disabled) a:hover,
.pagination li:not(.disabled) a:focus {
  border-color: rgba(200, 34, 50, 0.3);
  background: #fff1f2;
  color: var(--brand);
}

.pagination .disabled a {
  color: #9aa5b1;
  background: #f3f6f9;
  cursor: default;
}

.site-main iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#frmContact {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

#frmContact label {
  display: inline-block;
  margin: 16px 0 6px;
  color: #334155;
  font-weight: 760;
}

.demoInputBox {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--text);
  font: 600 15px/1.45 var(--font);
  outline: none;
}

textarea.demoInputBox {
  min-height: 150px;
  resize: vertical;
}

.demoInputBox:focus {
  border-color: rgba(200, 34, 50, 0.42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 34, 50, 0.08);
}

.info {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.success,
.Error,
.error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 750;
}

.success {
  border: 1px solid rgba(15, 118, 110, 0.3);
  background: #ecfdf5;
  color: var(--accent);
}

.Error,
.error {
  border: 1px solid rgba(200, 34, 50, 0.25);
  background: #fff1f2;
  color: var(--brand-dark);
}

.popular-links {
  padding: clamp(20px, 4vw, 28px);
  margin-top: 28px;
}

.popular-links h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 820;
}

.popular-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.popular-links__list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #394756;
  font-weight: 720;
}

.popular-links__list a:hover,
.popular-links__list a:focus {
  border-color: rgba(200, 34, 50, 0.28);
  background: #fff1f2;
  color: var(--brand);
}

.site-footer {
  background: #18212c;
  color: #d8e0e8;
}

.site-footer__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
  gap: 36px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 820;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: #b8c3cf;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #d8e0e8;
  font-weight: 650;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
}

.site-footer__bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(216, 224, 232, 0.18);
  color: #aeb9c5;
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

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

  .section-heading {
    display: block;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-main {
    width: min(100% - 24px, var(--max));
    padding-top: 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand__caption {
    display: none;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero__content,
  .hero__aside,
  .section-card,
  .site-main > div[align="center"],
  .site-main > div[align="justify"] {
    padding: 18px;
  }

  .search-panel__row {
    grid-template-columns: 1fr;
  }

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

  .blueTable {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap;
  }

  .blueTable th,
  .blueTable td {
    padding: 12px 13px !important;
  }
}

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