/* ============================================
   Housing Scheme — Modern Design System
   ============================================ */

:root {
  --hs-primary: #0d9488;
  --hs-primary-dark: #0f766e;
  --hs-primary-darker: #134e4a;
  --hs-accent: #f59e0b;
  --hs-accent-hover: #d97706;
  --hs-surface: #ffffff;
  --hs-bg: #f1f5f9;
  --hs-bg-alt: #e2e8f0;
  --hs-text: #0f172a;
  --hs-text-muted: #64748b;
  --hs-border: #e2e8f0;
  --hs-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --hs-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --hs-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --hs-radius: 12px;
  --hs-radius-lg: 20px;
  --hs-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --hs-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--hs-font);
  color: var(--hs-text);
  background: var(--hs-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  min-height: 60vh;
}

::selection {
  background: var(--hs-primary);
  color: #fff;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--hs-primary-darker);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--hs-transition);
}

.top-bar a:hover {
  color: #fff;
}

.top-bar i {
  margin-right: 0.35rem;
}

/* ---- Navbar ---- */
.navbar-hs {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 0.75rem 0;
  transition: all var(--hs-transition);
  z-index: 1030;
}

.navbar-hs.scrolled {
  box-shadow: var(--hs-shadow);
  border-bottom-color: var(--hs-border);
  padding: 0.5rem 0;
}

.navbar-brand-hs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--hs-primary-darker) !important;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-footer {
  height: 44px;
}

.brand-logo-secondary {
  height: 70px;
}

.navbar-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

@media (max-width: 991.98px) {
  .navbar-end {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hs-border);
    justify-content: space-between;
  }

  .brand-logo-secondary {
    height: 60px;
  }
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.nav-link-hs {
  color: var(--hs-text) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all var(--hs-transition);
  position: relative;
}

.nav-link-hs:hover,
.nav-link-hs.active {
  color: var(--hs-primary-dark) !important;
  background: rgba(13, 148, 136, 0.08);
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-dark));
  color: #fff !important;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--hs-transition);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  color: #fff !important;
}

/* ---- Hero Carousel ---- */
.hero-carousel .carousel-item {
  height: 520px;
}

@media (max-width: 768px) {
  .hero-carousel .carousel-item {
    height: 400px;
  }
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 78, 74, 0.88) 0%, rgba(13, 148, 136, 0.55) 50%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.btn-hero {
  background: var(--hs-accent);
  color: var(--hs-text);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--hs-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero:hover {
  background: var(--hs-accent-hover);
  color: var(--hs-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0.7rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all var(--hs-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  margin: 0 4px;
}

.hero-carousel .carousel-indicators .active {
  background: var(--hs-accent);
  border-color: var(--hs-accent);
}

/* ---- Section ---- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--hs-surface);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  color: var(--hs-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--hs-text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--hs-text-muted);
  font-size: 1.0625rem;
}

/* ---- Cards ---- */
.card-hs {
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  overflow: hidden;
  transition: all var(--hs-transition);
  height: 100%;
  box-shadow: var(--hs-shadow-sm);
}

.card-hs:hover {
  transform: translateY(-4px);
  box-shadow: var(--hs-shadow-lg);
  border-color: transparent;
}

.card-hs-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.card-hs-body {
  padding: 1.5rem;
}

.card-hs-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--hs-text-muted);
}

.card-hs-tag {
  background: rgba(13, 148, 136, 0.1);
  color: var(--hs-primary-dark);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
}

.card-hs-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--hs-text);
  line-height: 1.4;
}

.card-hs-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hs-transition);
}

.card-hs-title a:hover {
  color: var(--hs-primary);
}

.card-hs-text {
  color: var(--hs-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-hs-link {
  color: var(--hs-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--hs-transition);
}

.card-hs-link:hover {
  color: var(--hs-primary-dark);
  gap: 0.6rem;
}

/* ---- Quick Links ---- */
.quick-link-card {
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--hs-text);
  transition: all var(--hs-transition);
  display: block;
  height: 100%;
}

.quick-link-card:hover {
  background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-dark));
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--hs-shadow-lg);
  border-color: transparent;
}

.quick-link-icon {
  width: 56px;
  height: 56px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--hs-primary);
  transition: all var(--hs-transition);
}

.quick-link-card:hover .quick-link-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.quick-link-title {
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ---- Progress ---- */
.progress-card {
  background: var(--hs-surface);
  border-radius: var(--hs-radius);
  padding: 1.5rem;
  border: 1px solid var(--hs-border);
  transition: all var(--hs-transition);
  height: 100%;
}

.progress-card:hover {
  box-shadow: var(--hs-shadow);
}

.progress-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.progress-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.progress-icon.roads { background: #dbeafe; color: #2563eb; }
.progress-icon.sewerage { background: #fef3c7; color: #d97706; }
.progress-icon.electricity { background: #fce7f3; color: #db2777; }
.progress-icon.water { background: #cffafe; color: #0891b2; }
.progress-icon.construction { background: #ede9fe; color: #7c3aed; }

.progress-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.progress-bar-hs {
  height: 8px;
  background: var(--hs-bg-alt);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--hs-primary), var(--hs-primary-dark));
  transition: width 1s ease-out;
}

.progress-percent {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--hs-primary-dark);
}

/* ---- Stats Strip ---- */
.stats-strip {
  background: linear-gradient(135deg, var(--hs-primary-darker), var(--hs-primary-dark));
  padding: 3rem 0;
  color: #fff;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
  font-weight: 500;
}

/* ---- Intro ---- */
.intro-block {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.intro-image {
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  box-shadow: var(--hs-shadow-lg);
  position: relative;
}

.intro-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.intro-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--hs-accent);
  border-radius: var(--hs-radius);
  z-index: -1;
}

.intro-content h2 {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.intro-content p {
  color: var(--hs-text-muted);
  margin-bottom: 1.5rem;
}

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--hs-radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--hs-primary);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 78, 74, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--hs-transition);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  pointer-events: none;
}

.gallery-overlay i {
  font-size: 1.125rem;
  opacity: 0.9;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ---- Gallery Albums ---- */
.gallery-album-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}

.gallery-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.gallery-album-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-album-card:hover .gallery-album-cover img {
  transform: scale(1.05);
}

.gallery-album-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.gallery-album-body {
  padding: 1.25rem;
}

.gallery-album-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #1a1a2e;
}

.gallery-album-desc {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-album-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hs-primary, #1a5f4a);
}

.gallery-album-sidebar {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 90px;
}

.gallery-album-sidebar-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.gallery-album-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-album-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: background 0.2s ease;
}

.gallery-album-sidebar-item:hover {
  background: #f3f4f6;
  color: inherit;
}

.gallery-album-sidebar-item img {
  width: 56px;
  height: 56px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.gallery-album-sidebar-item strong {
  font-size: 0.875rem;
  display: block;
}

.gallery-album-empty {
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 1rem;
}

/* ---- Contact Strip ---- */
.contact-strip {
  background: var(--hs-surface);
  border-radius: var(--hs-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--hs-shadow);
  border: 1px solid var(--hs-border);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hs-primary);
  flex-shrink: 0;
}

/* ---- Footer ---- */
.footer-hs {
  background: var(--hs-primary-darker);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
}

.footer-hs h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-hs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--hs-transition);
  font-size: 0.9375rem;
}

.footer-hs a:hover {
  color: #fff;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--hs-transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--hs-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Page Header (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--hs-primary-darker), var(--hs-primary));
  padding: 4rem 0 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-hero h1 {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero-compact {
  padding: 2.5rem 0 2rem;
}

.section-tight-top {
  padding-top: 2rem;
}

/* ---- News Detail ---- */
.news-detail {
  overflow: hidden;
}

.news-detail-figure {
  margin: 0;
  line-height: 0;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.news-detail-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.news-detail-body {
  padding: 2rem 2rem 2.25rem;
}

@media (min-width: 992px) {
  .news-detail-body {
    padding: 2.5rem 2.75rem 2.75rem;
  }
}

.news-detail-excerpt {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--hs-text-muted);
  border-left: 4px solid var(--hs-primary);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}

.news-detail-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--hs-text);
}

.news-detail-content p {
  margin-bottom: 1.25rem;
}

.news-detail-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hs-border);
}

.news-detail-sidebar {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

.news-detail-sidebar-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.news-detail-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-detail-sidebar-list li + li {
  border-top: 1px solid var(--hs-border);
}

.news-detail-sidebar-link {
  display: block;
  padding: 0.875rem 0;
  text-decoration: none;
  color: inherit;
  transition: color var(--hs-transition);
}

.news-detail-sidebar-link:hover {
  color: var(--hs-primary);
}

.news-detail-sidebar-link-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.news-detail-sidebar-link-date {
  display: block;
  font-size: 0.8125rem;
  color: var(--hs-text-muted);
}

.breadcrumb-hs {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-hs .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb-hs .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-hs .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Forms ---- */
.form-control-hs,
.form-select-hs {
  border: 1.5px solid var(--hs-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: all var(--hs-transition);
}

.form-control-hs:focus,
.form-select-hs:focus {
  border-color: var(--hs-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.btn-primary-hs {
  background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-dark));
  border: none;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all var(--hs-transition);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary-hs:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  color: #fff;
}

/* ---- Download List ---- */
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  margin-bottom: 0.75rem;
  transition: all var(--hs-transition);
}

.download-item:hover {
  box-shadow: var(--hs-shadow);
  border-color: var(--hs-primary);
}

.download-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.download-icon.pdf { background: #fee2e2; color: #dc2626; }
.download-icon.doc { background: #dbeafe; color: #2563eb; }
.download-icon.xls { background: #d1fae5; color: #059669; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--hs-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--hs-transition);
  box-shadow: var(--hs-shadow);
  z-index: 1020;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--hs-primary-dark);
  transform: translateY(-2px);
}

/* ---- Search ---- */
.search-box {
  position: relative;
}

.search-box input {
  padding-left: 2.75rem;
  border-radius: 50px;
  border: 1.5px solid var(--hs-border);
  height: 48px;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hs-text-muted);
}

/* ---- Notification badge ---- */
.notice-badge {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---- Admin Panel ---- */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  overflow-y: auto;
  transition: transform var(--hs-transition);
}

.admin-sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-sidebar-brand h6 {
  margin: 0;
  font-weight: 700;
  font-size: 0.9375rem;
}

.admin-nav {
  padding: 1rem 0.75rem;
}

.admin-nav-section {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.75rem 1rem 0.35rem;
  font-weight: 700;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--hs-transition);
  margin-bottom: 2px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(13, 148, 136, 0.2);
  color: #fff;
}

.admin-nav-link i {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
}

.admin-nav-button {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-nav-button:hover {
  background: rgba(13, 148, 136, 0.2);
  color: #fff;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
}

.admin-topbar {
  background: #fff;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--hs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.admin-content {
  padding: 1.5rem;
}

.admin-stat-card {
  background: #fff;
  border-radius: var(--hs-radius);
  padding: 1.5rem;
  border: 1px solid var(--hs-border);
  transition: all var(--hs-transition);
}

.admin-stat-card:hover {
  box-shadow: var(--hs-shadow);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.admin-table-card {
  background: #fff;
  border-radius: var(--hs-radius);
  border: 1px solid var(--hs-border);
  overflow: hidden;
}

.admin-table-card .table {
  margin: 0;
}

.admin-table-card .table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--hs-text-muted);
  border-bottom: 1px solid var(--hs-border);
  padding: 0.875rem 1rem;
}

.admin-table-card .table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  font-size: 0.9375rem;
}

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0d9488 100%);
  padding: 2rem;
}

.admin-login-card {
  background: #fff;
  border-radius: var(--hs-radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.admin-login-card h2 {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.show {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .intro-block {
    flex-direction: column;
  }
}

/* CKEditor admin */
.ck-editor__editable {
  min-height: 220px;
}

.ck.ck-editor {
  width: 100%;
}

/* Public HTML content from rich text editor */
.content-html p:last-child {
  margin-bottom: 0;
}

.content-html ul,
.content-html ol {
  padding-left: 1.25rem;
}

/* ---- About Page ---- */
.about-pillar-card {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all var(--hs-transition);
}

.about-pillar-card:hover {
  box-shadow: var(--hs-shadow);
  transform: translateY(-4px);
}

.about-pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.about-pillar-icon.vision {
  background: #dbeafe;
  color: #2563eb;
}

.about-pillar-icon.mission {
  background: #d1fae5;
  color: #059669;
}

.about-pillar-icon.objectives {
  background: #fef3c7;
  color: #d97706;
}

.about-pillar-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.about-objective-list {
  margin: 0;
  padding-left: 1.1rem;
}

.about-objective-list li {
  margin-bottom: 0.5rem;
}

.foundation-page-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--hs-shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.06));
}

.foundation-page-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.foundation-page-icon.vision {
  background: #dbeafe;
  color: #2563eb;
}

.foundation-page-icon.mission {
  background: #d1fae5;
  color: #059669;
}

.foundation-page-icon.objectives {
  background: #fef3c7;
  color: #d97706;
}

.foundation-page-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4b5563;
}

.foundation-sidebar {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--hs-shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.06));
  position: sticky;
  top: 90px;
}

.foundation-sidebar-title {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.foundation-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.foundation-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.foundation-nav-link:hover {
  background: #f3f4f6;
  color: var(--hs-primary, #1a5f4a);
}

.foundation-nav-link.active {
  background: rgba(26, 95, 74, 0.08);
  color: var(--hs-primary, #1a5f4a);
  font-weight: 600;
}

.foundation-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.foundation-nav-icon.vision {
  background: #dbeafe;
  color: #2563eb;
}

.foundation-nav-icon.mission {
  background: #d1fae5;
  color: #059669;
}

.foundation-nav-icon.objectives {
  background: #fef3c7;
  color: #d97706;
}

.dropdown-menu-hs {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
}

.dropdown-menu-hs .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.dropdown-menu-hs .dropdown-item:hover {
  background: rgba(26, 95, 74, 0.08);
  color: var(--hs-primary, #1a5f4a);
}

.about-chairman-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #fff 50%, #fffbeb 100%);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 2.5rem;
}

.about-chairman-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--hs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--hs-primary);
  box-shadow: var(--hs-shadow);
}

.about-chairman-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--hs-primary);
  box-shadow: var(--hs-shadow);
}

.about-chairman-quote {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--hs-text-muted);
}

.about-info-card {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 1.5rem;
  height: 100%;
  text-align: center;
}

.about-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--hs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ---- Leadership Messages (Home) ---- */
.leadership-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 1.75rem;
  height: 100%;
  overflow: hidden;
  transition: all var(--hs-transition);
}

.leadership-card:hover {
  box-shadow: var(--hs-shadow-lg);
  transform: translateY(-4px);
}

.leadership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hs-primary);
}

.leadership-card.leadership-cm::before {
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.leadership-card.leadership-se::before {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.leadership-card.leadership-dg::before {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.leadership-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.leadership-card-header-text {
  width: 100%;
}

.leadership-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.leadership-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.leadership-cm .leadership-photo {
  outline: 3px solid #dbeafe;
}

.leadership-se .leadership-photo {
  outline: 3px solid #ccfbf1;
}

.leadership-dg .leadership-photo {
  outline: 3px solid #fef3c7;
}

.leadership-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hs-border);
}

.leadership-cm .leadership-avatar {
  background: #dbeafe;
  color: #1d4ed8;
}

.leadership-se .leadership-avatar {
  background: #ccfbf1;
  color: #0f766e;
}

.leadership-dg .leadership-avatar {
  background: #fef3c7;
  color: #b45309;
}

.leadership-designation {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hs-primary);
  margin-bottom: 0.25rem;
}

.leadership-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.leadership-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2.5rem;
  opacity: 0.08;
  pointer-events: none;
}

.leadership-message {
  color: var(--hs-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.leadership-message p {
  margin-bottom: 0.75rem;
}

.leadership-message p:last-child {
  margin-bottom: 0;
}

/* Organization Structure Chart */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0 2rem;
  overflow-x: auto;
}

.org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.org-node--has-children > .org-member-card::after {
  content: "";
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1.25rem;
  background: var(--hs-primary, #1a5f4a);
  opacity: 0.35;
}

.org-children {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  position: relative;
}

.org-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--hs-primary, #1a5f4a);
  opacity: 0.35;
}

.org-node--has-children .org-children > .org-node::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1.25rem;
  background: var(--hs-primary, #1a5f4a);
  opacity: 0.35;
}

.org-member-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  width: 220px;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.org-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.org-member-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid rgba(26, 95, 74, 0.15);
}

.org-member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5f4a 0%, #2d8a6e 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
}

.org-member-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1a1a2e;
}

.org-member-designation {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hs-primary, #1a5f4a);
  margin-bottom: 0.25rem;
}

.org-member-department {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.org-member-bio {
  font-size: 0.75rem;
  color: #6c757d;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.org-member-contact {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.org-member-contact a {
  color: var(--hs-primary, #1a5f4a);
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.org-member-contact a:hover {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .org-children {
    flex-direction: column;
    align-items: center;
  }

  .org-children::before {
    display: none;
  }

  .org-node--has-children .org-children > .org-node::before {
    display: none;
  }

  .org-member-card {
    width: 100%;
    max-width: 280px;
  }
}

/* Team Page */
.team-department-section {
  margin-bottom: 3rem;
}

.team-department-section:last-child {
  margin-bottom: 0;
}

.team-member-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.team-member-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid rgba(26, 95, 74, 0.15);
}

.team-member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5f4a 0%, #2d8a6e 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 1rem;
}

.team-member-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1a1a2e;
}

.team-member-designation {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hs-primary, #1a5f4a);
  margin-bottom: 0.5rem;
}

.team-member-bio {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.team-member-contact {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.team-member-contact a {
  color: var(--hs-primary, #1a5f4a);
  font-size: 1.1rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.team-member-contact a:hover {
  opacity: 1;
}

/* Date Archive */
.date-archive-group {
  margin-bottom: 2.5rem;
}

.date-archive-group:last-child {
  margin-bottom: 0;
}

.date-archive-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hs-primary, #1a5f4a);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(26, 95, 74, 0.12);
}

/* Transfer Procedure */
.transfer-procedure-content .content-html h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hs-primary, #1a5f4a);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.transfer-procedure-content .content-html h3:first-child {
  margin-top: 0;
}

.transfer-procedure-content .content-html ol,
.transfer-procedure-content .content-html ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.transfer-procedure-content .content-html li {
  margin-bottom: 0.5rem;
}
