/* ============================================================
   components.css — UI Components
   ============================================================ */

/* ---- BANNER CAROUSEL — Full-image ---- */
.banner-wrap {
  position: relative;
  height: 380px;          /* ≈ 1200×400 ratio */
  overflow: hidden;
  background: #1a2e1a;
  border-radius: var(--radius-lg, 12px);
}
@media (max-width: 768px) { .banner-wrap { height: 240px; } }
@media (max-width: 480px) { .banner-wrap { height: 185px; } }

/* Track */
.banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Each slide ── */
.banner-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
  z-index: 0;
}
.banner-item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* ── Overlay gradient ── */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.06) 0%,
    rgba(0,0,0,0.42) 55%,
    rgba(0,0,0,0.70) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 36px 48px;
}
@media (max-width: 768px) { .banner-overlay { padding: 20px 18px; } }

/* ── Text content — ใช้ transition แทน animation
   เพื่อให้ slide 2-4 แสดงเนื้อหาถูกต้องเมื่อ active ── */
.banner-item .banner-content {
  max-width: 680px;
  color: #fff;
  position: relative;
  z-index: 1;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease 0.15s, transform 0.45s ease 0.15s;
}
.banner-item.active .banner-content {
  opacity: 1;
  transform: translateY(0);
}

.banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.banner-title {
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

.banner-desc {
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  line-height: 1.5;
  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  cursor: pointer;
}
.banner-btn:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Arrows ── */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.banner-arrow:hover { background: rgba(0,0,0,0.55); }
.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }
@media (max-width: 480px) {
  .banner-arrow { width: 30px; height: 30px; font-size: 12px; }
}

/* ── Dots ── */
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.banner-dot.active {
  width: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
}

/* ---- STAT CARDS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.stat-card-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.green  { background: var(--green-100); color: var(--accent-green); }
.stat-icon.blue   { background: #d4e3f7; color: var(--accent-blue); }
.stat-icon.mint   { background: #c8f0ec; color: var(--accent-mint); }
.stat-icon.yellow { background: #fdf3c0; color: var(--accent-yellow); }

.stat-body { flex: 1; min-width: 0; }
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.stat-sub { font-size: 11px; color: var(--text-muted); }

/* ---- CARD ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.card-title i { color: var(--green-400); }

.card-body { padding: 0; }

/* ---- ROW 2: PINNED DOCS + COUNTDOWN ---- */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 24px;
}

/* Pinned Documents */
.doc-list { list-style: none; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--green-50); }

.doc-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.doc-badge.urgent   { background: var(--badge-urgent-bg);    color: var(--badge-urgent-text); }
.doc-badge.new      { background: var(--badge-new-bg);       color: var(--badge-new-text); }
.doc-badge.important{ background: var(--badge-important-bg); color: var(--badge-important-text); }
.doc-badge.plan     { background: var(--badge-plan-bg);      color: var(--badge-plan-text); }
.doc-badge.activity { background: var(--badge-activity-bg);  color: var(--badge-activity-text); }

.doc-name {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.4;
  min-width: 0;
}

.doc-btn {
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--green-300);
  border-radius: 12px;
  color: var(--green-500);
  background: var(--green-50);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
  text-decoration: none;
}
.doc-btn:hover {
  background: var(--green-400);
  color: #fff;
  border-color: var(--green-400);
}

/* ---- COUNTDOWN ---- */
.countdown-card {
  display: flex;
  flex-direction: column;
}

.countdown-header {
  background: var(--grad-green-dark);
  padding: 16px 20px;
  color: #fff;
}
.countdown-header-title {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.countdown-meeting-no {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.countdown-detail {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}
.countdown-detail i { font-size: 12px; }

.countdown-body { padding: 16px 20px; flex: 1; }

.countdown-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.countdown-timer {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.countdown-unit {
  flex: 1;
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.countdown-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--green-500);
  line-height: 1;
}
.countdown-unit-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.countdown-room {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.countdown-room i { color: var(--green-400); }

.countdown-deadline {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255,165,0,0.08);
  border: 1px dashed rgba(255,165,0,0.35);
  border-radius: 6px;
}
.countdown-deadline i { color: #e67e22; font-size: 11px; }
.countdown-deadline strong { color: #c0392b; }

/* ---- ROW 3: NEWS ---- */
.row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.news-list { list-style: none; }

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--green-50); }

.news-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--green-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.news-item-body { flex: 1; min-width: 0; }

.news-item-title {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 2px;
}

.news-item-title a {
  color: var(--text-primary);
  transition: color var(--transition);
}
.news-item-title a:hover { color: var(--green-500); }

.news-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-badge-new {
  font-size: 9px;
  font-weight: 700;
  background: var(--badge-urgent-bg);
  color: var(--badge-urgent-text);
  padding: 1px 5px;
  border-radius: 8px;
}

/* ---- SERVICES GRID ---- */
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--green-400); }
.section-title-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow);
}
.service-card:hover {
  border-color: var(--green-300);
  background: var(--green-50);
  color: var(--green-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--green-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--green-500);
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--green-400);
  color: #fff;
}
.service-label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---- E-SERVICE GRID ---- */
.eservice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.eservice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow);
}
.eservice-card:hover {
  border-color: var(--green-300);
  background: var(--green-50);
  transform: translateY(-1px);
}
.eservice-card-icon {
  width: 36px;
  height: 36px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--green-500);
  flex-shrink: 0;
}
.eservice-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.eservice-card:hover .eservice-card-label { color: var(--green-600); }

/* ---- DOCUMENT PAGE CARDS ---- */
.doc-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.doc-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--green-50);
  border-bottom: 1px solid var(--border);
}
.doc-section-header i {
  color: var(--green-500);
  font-size: 16px;
}
.doc-section-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.doc-section-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--green-100);
  color: var(--green-600);
  padding: 2px 8px;
  border-radius: 10px;
}

.doc-section-body { padding: 4px 0; }

.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--green-50); }

.doc-row-icon {
  width: 32px;
  height: 32px;
  background: #fde8e8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #c93a3a;
  flex-shrink: 0;
}
.doc-row-icon.pdf-blue { background: var(--badge-plan-bg); color: var(--badge-plan-text); }

.doc-row-name {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.4;
}
.doc-row-year {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.doc-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 14px;
  border: 1px solid var(--green-300);
  border-radius: 12px;
  color: var(--green-500);
  background: var(--green-50);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
  text-decoration: none;
}
.doc-row-btn:hover {
  background: var(--green-400);
  color: #fff;
  border-color: var(--green-400);
}
.doc-row-btn i { font-size: 11px; }

/* Loading spinner */
.loading-spinner {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
}
.loading-spinner i {
  font-size: 24px;
  animation: spin 1s linear infinite;
  color: var(--green-400);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- ABOUT TEAM ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 64px;
  height: 64px;
  background: var(--green-100);
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--green-500);
  border: 2px solid var(--green-200);
}
.team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.team-position {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- ITA / SDG CARDS ---- */
.link-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}
.link-card:hover {
  border-color: var(--green-300);
  background: var(--green-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.link-card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--green-500);
  flex-shrink: 0;
}
.link-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.link-card-desc { font-size: 12.5px; color: var(--text-muted); }

/* ---- SDG SECTION CARD ---- */
.sdg-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.sdg-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sdg-section h3 i { color: var(--green-400); }
.sdg-section p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; }
.sdg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-500);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 20px;
  border: none;
  text-decoration: none;
  transition: background var(--transition);
}
.sdg-btn:hover { background: var(--green-600); color: #fff; }

/* ---- MAP EMBED ---- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 20px;
}
.map-wrap iframe { display: block; width: 100%; }

/* ---- LAWS STATIC LIST ---- */
.laws-list { padding: 8px 0; }
.laws-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.laws-item:last-child { border-bottom: none; }
.laws-item:hover { background: var(--green-50); }
.laws-item i { color: var(--green-400); font-size: 14px; flex-shrink: 0; }
.laws-item a { font-size: 13.5px; color: var(--text-primary); flex: 1; }
.laws-item a:hover { color: var(--green-500); }
.laws-item .laws-arrow { font-size: 11px; color: var(--text-muted); }

/* ---- BUDGET/ESERVICE EMBED ---- */
.embed-frame-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.embed-frame-header {
  padding: 14px 20px;
  background: var(--green-50);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.embed-frame-header i { color: var(--green-500); }
.embed-frame-header span { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.embed-frame-header a {
  margin-left: auto;
  font-size: 12px;
  color: var(--green-500);
  display: flex;
  align-items: center;
  gap: 4px;
}
.embed-frame-body iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}

/* ---- CARD VIEW ALL LINK ---- */
.card-view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--green-500);
}
.card-view-all:hover { color: var(--green-600); }

/* ============================================================
   COLOR ENHANCEMENTS — สีสันเพิ่มเติม
   ============================================================ */

/* Stat cards — gradient left border */
.stat-card { border-left: 4px solid transparent; }
.stat-card:has(.stat-icon.green)  { border-left-color: var(--green-400); }
.stat-card:has(.stat-icon.blue)   { border-left-color: #4d8fcf; }
.stat-card:has(.stat-icon.mint)   { border-left-color: #2d8c80; }
.stat-card:has(.stat-icon.yellow) { border-left-color: #c49040; }

/* Colored stat icons */
.stat-icon.green  { background: var(--green-100); color: var(--green-500); }
.stat-icon.blue   { background: #dce8fb; color: #2d5faa; }
.stat-icon.mint   { background: #c8f0ec; color: #1a6b62; }
.stat-icon.yellow { background: #fdf3c0; color: #a07820; }

/* Service cards — individual icon colors */
.service-icon.i-plan     { background: #d0f0e0; color: #1e6b43; }
.service-icon.i-report   { background: #dce8fb; color: #1e4daa; }
.service-icon.i-form     { background: #ede0fb; color: #5a1ea0; }
.service-icon.i-publish  { background: #fde8d0; color: #a04a10; }
.service-icon.i-laws     { background: #fde0e0; color: #a01e1e; }
.service-icon.i-ita      { background: #fdf6d0; color: #7a6010; }
.service-icon.i-budget   { background: #d0f0ef; color: #1a6b62; }
.service-icon.i-sdg      { background: #e0e0fb; color: #1a1a9e; }
.service-icon.i-calendar { background: #dce8fb; color: #1e3d6e; }
.service-icon.i-eservice { background: #d0f0e0; color: #1e6b43; }

.service-card:hover .service-icon.i-plan,
.service-card:hover .service-icon.i-report,
.service-card:hover .service-icon.i-form,
.service-card:hover .service-icon.i-publish,
.service-card:hover .service-icon.i-laws,
.service-card:hover .service-icon.i-ita,
.service-card:hover .service-icon.i-budget,
.service-card:hover .service-icon.i-sdg,
.service-card:hover .service-icon.i-calendar,
.service-card:hover .service-icon.i-eservice { background: var(--green-400); color: #fff; }

/* Welcome hero strip */
.hero-strip {
  background: var(--grad-green-dark);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-strip-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.hero-strip-title { font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.hero-strip-sub   { font-size: 12.5px; opacity: .85; }
.hero-strip-badge {
  margin-left: auto; background: rgba(255,255,255,0.2);
  border-radius: 8px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  flex-shrink: 0;
}

/* Section title — colorful bar */
.section-title {
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  background: var(--green-400);
  border-radius: 2px;
}

/* E-service card color icons */
.eservice-card-icon.i-blue   { background: #dce8fb; color: #1e4daa; }
.eservice-card-icon.i-green  { background: #d0f0e0; color: #1e6b43; }
.eservice-card-icon.i-teal   { background: #c8f0ec; color: #1a6b62; }
.eservice-card-icon.i-yellow { background: #fdf3c0; color: #7a6010; }
.eservice-card-icon.i-purple { background: #ede0fb; color: #5a1ea0; }
.eservice-card-icon.i-orange { background: #fde8d0; color: #a04a10; }
.eservice-card-icon.i-red    { background: #fde0e0; color: #a01e1e; }
.eservice-card-icon.i-pink   { background: #fde0ef; color: #a01e62; }

/* Page header gradient enhancement for inner pages */
.page-header {
  background: var(--grad-green-dark);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.page-header-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  color: #fff;
}
.page-header-text h1 { font-size: 20px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.page-header-text p  { font-size: 13px; margin: 0; opacity: .85; color: rgba(255,255,255,0.9); }

/* ---- News Activity with Thumbnail ---- */
.news-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  align-items: center;
}
.activity-item:last-child { border-bottom: none; }
.activity-thumb-wrap {
  flex-shrink: 0;
  display: block;
  width: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #b2dfdb;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  outline: 1px solid rgba(0,0,0,.06);
}
.activity-thumb {
  width: 90px;
  height: 68px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .25s;
}
.activity-thumb-wrap:hover {
  border-color: #2e7d32;
  box-shadow: 0 4px 16px rgba(46,125,50,.25);
}
.activity-thumb-wrap:hover .activity-thumb { transform: scale(1.07); }
.activity-thumb-placeholder {
  width: 90px;
  height: 68px;
  background: var(--green-50, #f0fdf4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-300, #86efac);
  font-size: 22px;
}
.activity-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.activity-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}
.activity-title a {
  color: var(--text-primary);
  text-decoration: none;
}
.activity-title a:hover { color: var(--green-500); }
