/* Aesthetic + Official Theme — Fully Responsive Version */
:root {
  --primary: #0b5ea8;
  --accent: #ffb400;
  --muted: #586069;
  --bg: #f4f7fb;
  --card: #ffffff;
  --radius: 12px;
  --max: 1100px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: #122432;
  margin: 0;
  line-height: 1.45;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
}

img, iframe {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ---------- HEADER ---------- */
.top-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #fff3e0, #fff);
  border-bottom: 4px solid rgba(11, 94, 168, 0.06);
  padding: 10px 0;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  z-index: 9999;
  text-align: center;
}

.top-alert .alert-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-alert 15s linear infinite;
}
/* --- Fix for overlapping alert bar --- */
body {
  padding-top: 45px; /* equal to alert height */
}

.top-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #fff3e0, #fff);
  border-bottom: 4px solid rgba(11, 94, 168, 0.06);
  padding: 10px 0;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  z-index: 9999;
  text-align: center;
}

.top-alert .alert-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-alert 15s linear infinite;
}


@keyframes scroll-alert {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 22px rgba(11, 94, 168, 0.08);
}

.brand-text h1 {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

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

.top-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.top-nav a:hover {
  background: rgba(11, 94, 168, 0.1);
}

.top-nav a.active {
  background: var(--primary);
  color: #fff;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
  margin-bottom: 18px;
}

/* ---------- HERO SECTION ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: center;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.hero-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 12px;
}

.lead {
  color: #213b52;
}

.cta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

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

.btn:hover {
  opacity: 0.9;
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.quick-stats div {
  background: linear-gradient(180deg, #f8fbff, #fff);
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 90px;
  text-align: center;
  flex: 1;
}

/* ---------- GRID + LINKS ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.links-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.links-grid a {
  background: var(--accent);
  color: #111;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.links-grid a:hover {
  filter: brightness(1.1);
}

/* ---------- MAP + WEATHER ---------- */
.map-weather {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

.map-placeholder {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
}

.map, .weather {
  flex: 1 1 300px;
  padding: 1rem;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.weather {
  text-align: center;
}

/* ---------- OFFICIALS HIERARCHY ---------- */
.officials-hierarchy h3 {
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.officials-hierarchy .muted {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hierarchy-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.state-level, .village-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* State-level cards */
.state-level .official-card {
  background: linear-gradient(135deg, #0b5ea8, #58a6ff);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  width: 200px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.state-level .official-card:hover {
  transform: translateY(-8px);
}

.state-level img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 12px;
}

/* Village-level cards */
.village-level .official-card {
  background: #f9f9f9;
  padding: 18px;
  border-radius: 12px;
  width: 180px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.village-level .official-card:hover {
  transform: translateY(-6px);
}

.village-level img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  margin-bottom: 10px;
}

.contact {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- VIDEO SECTION ---------- */
.village-video h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.village-video .muted {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(16,24,40,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #071a2a;
  color: #dbeaf6;
  padding: 18px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.legal {
  padding: 12px 0;
  text-align: center;
  color: #9fc9e9;
}

/* ---------- RESPONSIVE FONTS ---------- */
h1, h2, h3 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
}

p, a, span {
  font-size: clamp(0.9rem, 2vw, 1rem);
}
