:root {
  --gov-blue: #0b3d91;
  --gov-blue-dark: #082c68;
  --gov-red: #b22222;
  --gov-gold: #f4b400;
  --light-bg: #f5f7fb;
  --border: #d8dde8;
  --text: #1f2937;
  --muted: #5f6b7a;
  --white: #ffffff;
  --section-title: #153b73;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.5;
}

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

.top-strip {
  background: #2f2f2f;
  color: #fff;
  font-size: 12px;
}

.wrap {
  width: 1200px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
}

.top-strip .wrap,
.utility-bar .wrap,
.brand-row .wrap,
.nav-row .wrap,
.ticker .wrap,
.main-grid,
.footer-top .wrap,
.footer-bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-links,
.utility-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.utility-bar {
  background: #e9eef7;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.utility-bar .wrap,
.top-strip .wrap,
.brand-row .wrap,
.nav-row .wrap,
.ticker .wrap,
.footer-top .wrap,
.footer-bottom .wrap {
  min-height: 38px;
  padding: 0 4px;
}

.brand-row {
  background: #fff;
  border-bottom: 3px solid var(--gov-blue);
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand-left img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gov-blue-dark);
  margin: 0;
}

.site-subtitle {
  margin: 2px 0 0;
  color: var(--gov-red);
  font-size: 15px;
  font-weight: 700;
}

.site-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.search-box {
  display: flex;
  gap: 0;
  border: 1px solid #b9c5d8;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.search-box input {
  border: none;
  padding: 10px 12px;
  width: 190px;
  outline: none;
  font-size: 14px;
}

.search-box button {
  background: var(--gov-blue);
  color: #fff;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

.nav-row {
  background: linear-gradient(180deg, var(--gov-blue), var(--gov-blue-dark));
  color: #fff;
  min-height: 48px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: block;
  padding: 14px 18px;
  border-right: 1px solid rgba(255,255,255,0.16);
  font-size: 14px;
  font-weight: 700;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(255,255,255,0.12);
}

.ticker {
  background: #fff8e1;
  border-top: 1px solid #f1df9d;
  border-bottom: 1px solid #f1df9d;
  color: #6b4c00;
  font-size: 14px;
}

.ticker-label {
  background: var(--gov-red);
  color: #fff;
  font-weight: 700;
  padding: 7px 12px;
  margin-right: 14px;
}

.hero {
  background: #dfe8f5;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  width: 1200px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
  padding: 16px 0;
}

.hero-banner {
  position: relative;
  min-height: 320px;
  border: 1px solid #c8d2e3;
  overflow: hidden;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #fff;
  padding: 22px;
  z-index: 2;
}

.hero-overlay h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-overlay p {
  margin: 0;
  font-size: 15px;
  max-width: 90%;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 61, 145, 0.85);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-btn:hover {
  background: rgba(8, 44, 104, 0.95);
}

.prev-btn { left: 14px; }
.next-btn { right: 14px; }

.quick-panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px;
}

.panel-title {
  margin: 0 0 12px;
  color: var(--section-title);
  border-left: 5px solid var(--gov-gold);
  padding-left: 10px;
  font-size: 20px;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-link {
  background: #f7faff;
  border: 1px solid #dbe4f2;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gov-blue-dark);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quick-link:hover {
  background: #eef4ff;
}

.main-grid {
  width: 1200px;
  max-width: calc(100% - 24px);
  margin: 18px auto;
  align-items: flex-start;
  gap: 18px;
}

.left-col { flex: 1.4; }
.mid-col { flex: 1; }
.right-col { flex: 0.9; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.card-header {
  background: linear-gradient(180deg, #fefefe, #edf2fb);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--section-title);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 16px;
}

.news-list,
.scheme-list,
.notice-list,
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li,
.scheme-list li,
.notice-list li,
.link-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #d8dee9;
}

.news-list li:last-child,
.scheme-list li:last-child,
.notice-list li:last-child,
.link-list li:last-child {
  border-bottom: none;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--gov-red);
  padding: 4px 8px;
  border-radius: 2px;
  margin-right: 8px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.schemes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.scheme-box {
  border: 1px solid #d8e0ee;
  background: #f9fbff;
  padding: 14px;
}

.scheme-box img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border: 1px solid #d7deeb;
  margin-bottom: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  background: #f8fbff;
  border: 1px solid #dbe4f3;
  padding: 16px;
  text-align: center;
}

.stat-box h3 {
  margin: 0;
  font-size: 28px;
  color: var(--gov-blue-dark);
}

.stat-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border: 1px solid #d7deeb;
}

.footer-top {
  background: #143869;
  color: #fff;
  margin-top: 24px;
  padding: 18px 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.footer-cols h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #ffd35b;
}

.footer-cols p,
.footer-cols li {
  font-size: 14px;
  color: #e7edf8;
}

.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  background: #0c2444;
  color: #d8e0ee;
  font-size: 13px;
  padding: 10px 0;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
}

#fontDecrease,
#fontNormal,
#fontIncrease {
  cursor: pointer;
  font-weight: 700;
}

#fontStatus {
  color: #ffd35b;
}

@media (max-width: 1024px) {
  .hero-inner,
  .main-grid,
  .footer-cols {
    grid-template-columns: 1fr;
    display: block;
  }

  .main-grid {
    display: block;
  }

  .search-box input { width: 180px; }
  .brand-row .wrap,
  .top-strip .wrap,
  .utility-bar .wrap,
  .footer-bottom .wrap,
  .ticker .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 4px;
  }
}

@media (max-width: 768px) {
  .brand-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-links,
  .schemes-grid,
  .gallery-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .nav-menu li a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.16);
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .hero-overlay h2 {
    font-size: 22px;
  }

  .slide-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}



/* Dual-logo header layout */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.header-side-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-side-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}

@media (max-width: 991px) {
  .brand-row .wrap {
    gap: 14px;
  }

  .header-right-group {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .header-right-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .header-side-logo img,
  .brand-left img {
    width: 58px;
    height: 58px;
  }
}


.search-area {
  position: relative;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, 100vw - 32px);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border-radius: 6px;
  z-index: 20;
}

.search-results[hidden] {
  display: none;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.search-results-header button {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.search-results li {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results li a {
  color: var(--gov-blue-dark);
  font-weight: 700;
}

.search-empty {
  color: var(--muted);
}

@media (max-width: 991px) {
  .search-area {
    width: 100%;
  }

  .search-results {
    left: 0;
    right: auto;
    width: 100%;
  }
}
