/* ==========================================================================
   DBDC4BADINH - CỔNG THÔNG TIN ĐIỆN TỬ ĐỊA BÀN DÂN CƯ SỐ 4 — PHƯỜNG BA ĐÌNH
   CSS Main & State Portal Styling (baohiemxahoi.gov.vn style)
   ========================================================================== */

:root {
  --bhxh-cyan: #0088cc;
  --bhxh-cyan-dark: #006699;
  --bhxh-red: #b91c1c;
  --bhxh-red-light: #dc2626;
  --bhxh-bg-header: #e0f2fe;
  --bhxh-text: #1e293b;
  --bhxh-border: #cbd5e1;
}

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

body {
  font-family: Arial, Helvetica, system-ui, -apple-system, sans-serif;
  background-color: #e2e8f0;
  color: var(--bhxh-text);
  line-height: 1.5;
  padding-bottom: 40px;
}

/* MAIN WRAPPER CONTAINER WITH PAPER SHADOW */
.gov-portal-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
}

/* 1. STATE GOVERNMENT HEADER */
.gov-header {
  background: #e0f2fe url('https://upload.wikimedia.org/wikipedia/commons/1/1a/Bronze_drum_vector_icon.svg') no-repeat right 40px center;
  background-size: 260px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid #bae6fd;
}

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

.gov-emblem {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.gov-agency-sub {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--bhxh-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gov-portal-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--bhxh-cyan-dark);
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.gov-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.gov-hotline-bar {
  font-size: 0.92rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gov-hotline-number {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--bhxh-red);
}

.gov-search-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--bhxh-cyan);
  border-radius: 2px;
  background: #ffffff;
  overflow: hidden;
}

.gov-search-input {
  border: none;
  padding: 6px 10px;
  font-size: 0.82rem;
  outline: none;
  width: 180px;
}

.gov-search-btn {
  background: #ffffff;
  color: var(--bhxh-cyan);
  border: none;
  padding: 6px 12px;
  cursor: pointer;
}

/* 2. CYAN MAIN NAVIGATION BAR WITH DROPDOWN MENU */
.gov-main-nav {
  background: var(--bhxh-cyan);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.gov-nav-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: bold;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.22);
  transition: background 0.15s ease;
  cursor: pointer;
}

.gov-nav-item i {
  font-size: 0.88rem;
}

.gov-nav-item:hover {
  background: var(--bhxh-cyan-dark);
}

.gov-nav-item.active {
  background: var(--bhxh-red);
}

/* DROPDOWN MENU FOR ĐOÀN THỂ & TỔ CHỨC */
.gov-dropdown {
  position: relative;
  display: inline-block;
}

.gov-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border: 1.5px solid var(--bhxh-cyan);
  border-radius: 2px;
  z-index: 1000;
}

.gov-dropdown:hover .gov-dropdown-menu {
  display: block;
}

.gov-dropdown-item {
  color: #1e293b;
  padding: 10px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: bold;
  border-bottom: 1px dashed #cbd5e1;
  transition: all 0.15s ease;
}

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

.gov-dropdown-item:hover {
  background: #e0f2fe;
  color: var(--bhxh-cyan-dark);
  padding-left: 18px;
}

/* 3. EVENT TICKER BAR */
.gov-ticker-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--bhxh-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.gov-ticker-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 300px;
}

.gov-ticker-label {
  font-weight: 900;
  color: var(--bhxh-red);
  text-transform: uppercase;
  white-space: nowrap;
}

.gov-ticker-content {
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gov-ticker-right {
  color: #64748b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

/* 4. MAIN CONTENT 3-COLUMN GRID */
.gov-content-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 20px;
  padding: 18px 20px;
}

@media (max-width: 920px) {
  .gov-content-grid {
    grid-template-columns: 1fr;
  }
}

.news-section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 680px) {
  .news-section-grid {
    grid-template-columns: 1fr;
  }
}

/* CAROUSEL SLIDER */
.carousel-box {
  background: #ffffff;
  border: 1px solid var(--bhxh-border);
}

.carousel-img-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #0f172a;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}

.carousel-dot.active {
  background: #ffffff;
}

.carousel-title {
  padding: 12px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--bhxh-cyan-dark);
  line-height: 1.4;
  cursor: pointer;
}

.carousel-title:hover {
  color: var(--bhxh-red);
}

/* CENTER NEWS LIST ("TIN NỔI BẬT") */
.section-red-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--bhxh-red);
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--bhxh-red);
  padding-bottom: 4px;
}

.news-thumb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-thumb-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.news-thumb-img {
  width: 85px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
}

.news-thumb-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
  cursor: pointer;
}

.news-thumb-title:hover {
  color: var(--bhxh-cyan-dark);
}

/* RIGHT SIDEBAR */
.sidebar-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

.sidebar-media-box {
  background: #f8fafc;
  border: 1px solid var(--bhxh-border);
  padding: 12px;
  margin-bottom: 16px;
}

.media-video-container {
  position: relative;
  width: 100%;
  height: 150px;
  background: #000000;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  margin-top: 8px;
}

.media-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.media-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(185,28,28,0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* FOOTER */
.gov-portal-footer {
  background: #f8fafc;
  border-top: 3px solid var(--bhxh-cyan);
  padding: 24px;
  font-size: 0.82rem;
  color: #475569;
}

.gov-footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
