/* =============================================
   BASE RESET & VARIABLES
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1a5276;
  --secondary: #148f77;
  --accent:    #f39c12;
  --dark:      #1e293b;
  --gray:      #64748b;
  --light:     #f1f5f9;
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 4px 20px rgba(0,0,0,.08);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad { padding: 4rem 0; }
.bg-light     { background: var(--light); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  padding-bottom: .5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.view-all {
  font-size: .875rem;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: var(--transition);
}
.view-all:hover { color: var(--accent); }

.empty-msg {
  color: var(--gray);
  font-size: .95rem;
  padding: 2rem 0;
}
.text-center { text-align: center; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-menu a {
  padding: .5rem .875rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray);
  padding: .4rem;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-icon-btn:hover { color: var(--primary); background: var(--light); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 600;
}
.lang-toggle a { color: var(--gray); transition: var(--transition); }
.lang-toggle a.active { color: var(--primary); }
.lang-toggle a:hover  { color: var(--primary); }
.lang-toggle span     { color: #cbd5e1; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search bar */
.nav-search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--light);
}
.nav-search-bar.open { max-height: 70px; }
.nav-search-bar form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  gap: .5rem;
}
.nav-search-bar input {
  flex: 1;
  padding: .6rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .9rem;
  outline: none;
}
.nav-search-bar input:focus { border-color: var(--primary); }
.nav-search-bar button {
  padding: .6rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 70px; left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 998;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: .75rem 1rem; border-radius: 8px; }
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-section { position: relative; overflow: hidden; }

.hero-slider { position: relative; height: 560px; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,82,118,.75) 0%, rgba(20,143,119,.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  color: var(--white);
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slider controls */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }
.slider-prev:hover,
.slider-next:hover { background: rgba(255,255,255,.35); }

.slider-dots {
  position: absolute;
  bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: .5rem;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--white); transform: scale(1.3); }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.breadcrumb {
  font-size: .875rem;
  opacity: .85;
}
.breadcrumb a { color: var(--white); opacity: .8; }
.breadcrumb a:hover { opacity: 1; }

@media (max-width: 640px) {
  .hero-slider { height: 420px; }
  .hero-btns   { flex-direction: column; }
}

/* =============================================
   BUTTONS & BADGES
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.75rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover { background: #d68910; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(243,156,18,.35); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.75rem;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-sm:hover { background: var(--secondary); }

.badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-active { background: #dcfce7; color: #16a34a; }
.badge-open   { background: #dbeafe; color: #1d4ed8; }
.badge-closed { background: #fee2e2; color: #dc2626; }
.badge-expired{ background: #f1f5f9; color: var(--gray); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 600;
  margin-top: .75rem;
  transition: var(--transition);
}
.read-more:hover { color: var(--accent); gap: .6rem; }

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3.5rem 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }

.stat-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}

.stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .4rem;
}

.stat-label {
  font-size: .875rem;
  opacity: .85;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-num   { font-size: 1.75rem; }
}

/* =============================================
   BLOG CARDS & POST
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }

.blog-card-img {
  display: block;
  position: relative;
  overflow: hidden;
  height: 200px;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-placeholder {
  width: 100%; height: 100%;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1; font-size: 2.5rem;
}

.blog-cat {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 20px;
}

.blog-card-body { padding: 1.25rem; }
.blog-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: .5rem;
}
.blog-card-body h3 a { color: var(--dark); transition: var(--transition); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-size: .875rem; color: var(--gray); line-height: 1.6; }

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--gray);
}
.blog-meta span { display: flex; align-items: center; gap: .3rem; }

/* Blog layout (listing page) */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Category filter */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.cat-btn {
  padding: .4rem 1rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  border: 1.5px solid #e2e8f0;
  color: var(--gray);
  transition: var(--transition);
}
.cat-btn:hover,
.cat-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Single post */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.post-featured-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .875rem;
  color: var(--gray);
}
.post-meta-bar span { display: flex; align-items: center; gap: .3rem; }

.post-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}
.post-content h2,.post-content h3 { margin: 1.5rem 0 .75rem; font-weight: 600; }
.post-content p  { margin-bottom: 1rem; }
.post-content ul,.post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-content img { border-radius: 8px; margin: 1rem 0; }

.post-video {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-video iframe { width: 100%; height: 100%; border: none; }

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}
.gallery-item img {
  width: 100%; height: 130px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition);
}
.gallery-item:hover img { opacity: .85; transform: scale(1.03); }

.share-section {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  font-weight: 600;
  font-size: .9rem;
}
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: .9rem;
  transition: var(--transition);
}
.share-btn:hover { transform: translateY(-3px); }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.telegram { background: #0088cc; }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.sidebar-widget h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar-search {
  display: flex;
  gap: .4rem;
}
.sidebar-search input {
  flex: 1;
  padding: .55rem .875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .875rem;
  outline: none;
}
.sidebar-search input:focus { border-color: var(--primary); }
.sidebar-search button {
  padding: .55rem .875rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.sidebar-cats li a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 0;
  font-size: .875rem;
  color: var(--gray);
  border-bottom: 1px solid #f8fafc;
  transition: var(--transition);
}
.sidebar-cats li a::before { content: '›'; color: var(--accent); font-weight: 700; }
.sidebar-cats li a:hover { color: var(--primary); padding-left: .4rem; }

.recent-post {
  display: flex;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid #f8fafc;
}
.recent-post:last-child { border: none; }
.recent-post img {
  width: 60px; height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.recent-post div a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--dark);
  display: block;
  line-height: 1.4;
  transition: var(--transition);
}
.recent-post div a:hover { color: var(--primary); }
.recent-post div span { font-size: .75rem; color: var(--gray); margin-top: .2rem; display: block; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray);
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  transition: var(--transition);
}
.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

@media (max-width: 900px) {
  .blog-grid   { grid-template-columns: repeat(2, 1fr); }
  .blog-layout,
  .post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ANNOUNCEMENTS & VACANCIES (homepage lists)
   ============================================= */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Announcement list */
.announcement-list { display: flex; flex-direction: column; gap: .75rem; }

.announcement-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}
.announcement-item:hover { transform: translateX(4px); }

.ann-icon {
  width: 40px; height: 40px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.ann-body h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: .3rem;
}
.ann-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--gray);
}

/* Announcement full page cards */
.ann-full-list { display: flex; flex-direction: column; gap: 1rem; }

.ann-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--secondary);
  transition: var(--transition);
}
.ann-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,.1); }

.ann-card-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ann-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .5rem;
}
.ann-card-body p { font-size: .875rem; color: var(--gray); line-height: 1.6; margin-bottom: .75rem; }
.ann-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--gray);
}

/* Vacancy list (homepage) */
.vacancy-list { display: flex; flex-direction: column; gap: .75rem; }

.vacancy-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.vacancy-item:hover { transform: translateX(4px); }

.vac-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.vac-body { flex: 1; }
.vac-body h4 { font-size: .9rem; font-weight: 600; color: var(--dark); }
.vac-dept    { font-size: .8rem; color: var(--gray); display: block; }
.vac-deadline{ font-size: .78rem; color: #ef4444; display: block; margin-top: .2rem; }

/* Vacancy grid (vacancy page) */
.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.vacancy-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.vacancy-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }

.vac-card-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vac-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
}

.vac-card-body { padding: 1.25rem; }
.vac-card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.vac-dept { font-size: .85rem; color: var(--gray); display: flex; align-items: center; gap: .3rem; margin-bottom: .5rem; }
.vac-desc { font-size: .875rem; color: var(--gray); line-height: 1.6; }

.vac-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.vac-deadline { font-size: .8rem; color: #ef4444; display: flex; align-items: center; gap: .3rem; }

/* About page */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.mv-card:hover { transform: translateY(-5px); }

.mv-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

.mv-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; color: var(--dark); }
.mv-card p  { font-size: .9rem; color: var(--gray); line-height: 1.7; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h3,
.contact-form-wrap h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-details li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-details strong { display: block; font-size: .85rem; color: var(--gray); margin-bottom: .2rem; }
.contact-details a { color: var(--dark); font-weight: 500; transition: var(--transition); }
.contact-details a:hover { color: var(--primary); }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,82,118,.08);
}
.form-group textarea { resize: vertical; }

.form-msg {
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
}
.form-msg.success { background: #dcfce7; color: #16a34a; }
.form-msg.error   { background: #fee2e2; color: #dc2626; }

/* Map */
.map-section { padding: 3rem 0; }
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 900px) {
  .two-col-grid  { grid-template-columns: 1fr; }
  .mv-grid       { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vacancy-grid  { grid-template-columns: 1fr; }
}

/* =============================================
   SEARCH RESULTS
   ============================================= */
.search-form-bar {
  display: flex;
  gap: .75rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
.search-form-bar input {
  flex: 1;
  padding: .75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
}
.search-form-bar input:focus { border-color: var(--primary); }
.search-form-bar button {
  padding: .75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
}

.search-results { display: flex; flex-direction: column; gap: 1rem; }

.search-result-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.search-result-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,.1); }
.search-result-item img {
  width: 90px; height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-result-body { flex: 1; }
.result-type {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: .05em;
  display: block;
  margin-bottom: .3rem;
}
.search-result-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.search-result-body h3 a { color: var(--dark); transition: var(--transition); }
.search-result-body h3 a:hover { color: var(--primary); }
.search-result-body p { font-size: .875rem; color: var(--gray); line-height: 1.6; }
.result-date { font-size: .8rem; color: var(--gray); margin-top: .4rem; display: flex; align-items: center; gap: .3rem; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s ease;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--light);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }

.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: #0d1b2a; color: rgba(255,255,255,.8); }

.footer-top { padding: 3.5rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
  line-height: 1.4;
}
.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col p { font-size: .875rem; line-height: 1.7; }

.footer-logo { height: 50px; margin-bottom: .75rem; }

.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: .3rem; }
.footer-col ul li a i { font-size: .7rem; color: var(--accent); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .875rem;
}
.footer-contact li i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; }
.footer-contact li a { color: rgba(255,255,255,.7); transition: var(--transition); }
.footer-contact li a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }

/* Visitor counter */
.visitor-counter { display: flex; flex-direction: column; gap: .75rem; }
.counter-item {
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .75rem 1rem;
  text-align: center;
}
.counter-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.counter-label { font-size: .78rem; color: rgba(255,255,255,.6); }

.footer-bottom {
  background: rgba(0,0,0,.3);
  text-align: center;
  padding: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(26,82,118,.4);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 500;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover   { background: var(--accent); transform: translateY(-3px); }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   FOOTER RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================
   NAV DROPDOWN
   ============================================= */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: .3rem; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  min-width: 220px;
  padding: .5rem 0;
  z-index: 999;
  border: 1px solid #f1f5f9;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .875rem;
  color: var(--dark);
  transition: var(--transition);
  white-space: nowrap;
  background: none;
}
.dropdown-menu li a:hover { background: var(--light); color: var(--primary); padding-left: 1.5rem; }

@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 0;
    margin: .25rem 0 .25rem 1rem;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu li a { padding: .5rem .75rem; font-size: .85rem; }
}

/* =============================================
   DEPARTMENTS PAGES
   ============================================= */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dept-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.dept-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }

.dept-card-head {
  padding: 1.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dept-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--light);
  flex-shrink: 0;
}
.dept-avatar-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dept-card-body { padding: 0 1.25rem 1.25rem; }
.dept-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.dept-head-name { font-size: .85rem; color: var(--primary); font-weight: 600; }
.dept-head-role { font-size: .8rem; color: var(--gray); margin-bottom: .75rem; }
.dept-card-body p { font-size: .875rem; color: var(--gray); line-height: 1.6; margin-bottom: 1rem; }
.dept-card-footer {
  padding: .875rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

/* Sector detail */
.sector-hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  border-left: 5px solid var(--primary);
}
.sector-head-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light);
  flex-shrink: 0;
}
.sector-head-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  flex-shrink: 0;
}
.sector-hero-info h2 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.sector-hero-info .head-name { font-size: 1rem; font-weight: 600; color: var(--primary); }
.sector-hero-info .head-role { font-size: .875rem; color: var(--gray); margin-bottom: .75rem; }
.sector-hero-info p { font-size: .9rem; color: var(--gray); line-height: 1.7; }

.head-message-box {
  background: var(--light);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: .9rem;
  color: #374151;
  line-height: 1.7;
  font-style: italic;
}

/* Directorate cards */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.dir-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.dir-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.11); }

.dir-card-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dir-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}
.dir-photo-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.dir-card-header-info { color: var(--white); }
.dir-card-header-info h4 { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.dir-card-header-info span { font-size: .8rem; opacity: .85; }

.dir-card-body { padding: 1.25rem; }
.dir-card-body p { font-size: .875rem; color: var(--gray); line-height: 1.6; margin-bottom: .75rem; }
.dir-message {
  background: var(--light);
  border-left: 3px solid var(--accent);
  padding: .75rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: .85rem;
  color: #374151;
  font-style: italic;
  margin-bottom: .75rem;
  line-height: 1.6;
}
.services-list { display: flex; flex-direction: column; gap: .3rem; margin-top: .5rem; }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--dark);
  padding: .4rem 0;
  border-bottom: 1px solid #f8fafc;
}
.service-item:last-child { border: none; }
.service-item i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; font-size: .8rem; }
.service-details { font-size: .8rem; color: var(--gray); margin-top: .2rem; line-height: 1.5; }

/* Dept layout with sidebar */
.dept-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 2rem;
  align-items: start;
}
.dept-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.dept-sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dept-sidebar-widget h5 {
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1rem;
  font-size: .875rem;
  font-weight: 600;
}
.dept-sidebar-widget ul li a {
  display: block;
  padding: .55rem 1rem;
  font-size: .875rem;
  color: var(--dark);
  border-bottom: 1px solid #f8fafc;
  transition: var(--transition);
}
.dept-sidebar-widget ul li a:hover,
.dept-sidebar-widget ul li a.active { background: var(--light); color: var(--primary); padding-left: 1.25rem; }

@media (max-width: 900px) {
  .dept-layout { grid-template-columns: 1fr; }
  .sector-hero-card { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .dept-grid, .dir-grid { grid-template-columns: 1fr; }
}

/* =============================================
   NAV DROPDOWN (overrides)
   ============================================= */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.dropdown-menu { display: none !important; } /* disable old hover menu */

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  min-width: 260px;
  max-width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid #e2e8f0;
  padding: .5rem 0;
}
.dropdown-panel.open { display: block; }

.dp-sector { border-bottom: 1px solid #f1f5f9; }
.dp-sector:last-child { border-bottom: none; }

.dp-sector-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.1rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}
.dp-sector-link:hover { background: var(--light); }
.dp-sector-link i { color: var(--accent); font-size: .8rem; }

.dp-dir-list { padding: 0 0 .4rem 0; }
.dp-dir-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.1rem .45rem 1.75rem;
  font-size: .835rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}
.dp-dir-link:hover { background: var(--light); color: var(--primary); }
.dp-dir-link i { color: var(--secondary); font-size: .75rem; }

.dp-svc-list { padding: 0; }
.dp-svc-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem 1.1rem .35rem 2.5rem;
  font-size: .8rem;
  color: var(--gray);
  transition: var(--transition);
}
.dp-svc-link:hover { background: #f8fafc; color: var(--primary); }
.dp-svc-link i { color: var(--accent); font-size: .7rem; }

@media (max-width: 900px) {
  .dropdown-panel {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    max-height: none;
    max-width: none;
    margin: .25rem 0 .25rem 1rem;
    padding: 0;
  }
  .dp-sector-link { padding: .5rem .75rem; }
  .dp-dir-link    { padding: .4rem .75rem .4rem 1.25rem; }
  .dp-svc-link    { padding: .35rem .75rem .35rem 2rem; }
}

/* =============================================
   DEPARTMENTS MEGA MENU
   ============================================= */

/* Trigger link */
.nav-dept-toggle { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.nav-dept-chevron { font-size: .65rem; transition: transform .25s ease; }
.nav-dropdown:hover .nav-dept-chevron,
.nav-dropdown.open  .nav-dept-chevron { transform: rotate(180deg); }

/* Panel */
.dept-mega {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  border: 1px solid #e2e8f0;
  z-index: 1001;
  max-height: 75vh;
  overflow-y: auto;
}

/* Show on hover (desktop) */
@media (min-width: 901px) {
  .nav-dropdown:hover .dept-mega { display: block; }
}
/* Show on .open class (click / mobile) */
.nav-dropdown.open .dept-mega { display: block; }

.dept-mega-inner { padding: .5rem 0; }

/* ── Level 1: Sector ── */
.dmt-sector { border-bottom: 1px solid #f1f5f9; }
.dmt-sector:last-child { border-bottom: none; }

.dmt-sector-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: background .15s;
}
.dmt-sector-link:hover { background: #f0f7ff; }
.dmt-sector-link > i { color: var(--accent); font-size: .8rem; flex-shrink: 0; }
.dmt-sector-link > span { flex: 1; line-height: 1.3; }

/* ── Level 2: Directorate ── */
.dmt-dir-list { list-style: none; padding: 0; margin: 0; }

.dmt-dir-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1rem .5rem 1.75rem;
  font-size: .825rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background .15s;
  position: relative;
}
.dmt-dir-link::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 6px;
  height: 1px;
  background: #cbd5e1;
}
.dmt-dir-link:hover { background: #f8fafc; color: var(--primary); }
.dmt-dir-link > i.fa-sitemap { color: var(--secondary); font-size: .75rem; flex-shrink: 0; }
.dmt-dir-link > span { flex: 1; line-height: 1.3; }
.dmt-arrow { font-size: .6rem; color: #94a3b8; margin-left: auto; }

/* ── Level 3: Services ── */
.dmt-svc-list { list-style: none; padding: 0; margin: 0; }

.dmt-svc-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem .4rem 2.75rem;
  font-size: .8rem;
  color: #64748b;
  text-decoration: none;
  transition: background .15s;
  position: relative;
}
.dmt-svc-link::before {
  content: '';
  position: absolute;
  left: 2.1rem;
  top: 50%;
  width: 5px;
  height: 1px;
  background: #e2e8f0;
}
.dmt-svc-link:hover { background: #f8fafc; color: var(--primary); }
.dmt-svc-link > i.fa-circle { font-size: .35rem; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.dmt-svc-link > span { flex: 1; line-height: 1.3; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .dept-mega {
    position: static;
    width: auto;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    max-height: none;
    margin: .25rem 0 .25rem 1rem;
  }
  .dmt-sector-link  { padding: .55rem .75rem; }
  .dmt-dir-link     { padding: .45rem .75rem .45rem 1.5rem; }
  .dmt-dir-link::before { left: .85rem; }
  .dmt-svc-link     { padding: .35rem .75rem .35rem 2.25rem; }
  .dmt-svc-link::before { left: 1.75rem; }
}

/* Mega menu header bar */
.dept-mega-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  background: var(--primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  border-radius: 12px 12px 0 0;
}
.dept-mega-header i { color: var(--accent); }
.dept-mega-header span { flex: 1; }
.dept-mega-viewall {
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: color .15s;
}
.dept-mega-viewall:hover { color: var(--accent); }

/* Service name link in directorate view */
.service-name-link {
  font-weight: 600;
  color: var(--dark);
  transition: color .2s;
  display: block;
}
.service-name-link:hover { color: var(--primary); }

/* =============================================
   DEPARTMENTS 3-COLUMN FLYOUT DROPDOWN
   ============================================= */
.nav-dept-toggle { display:flex; align-items:center; gap:.3rem; cursor:pointer; }
.nav-dept-chevron { font-size:.6rem; transition:transform .25s; }
.nav-dropdown:hover .nav-dept-chevron,
.nav-dropdown.open  .nav-dept-chevron { transform:rotate(180deg); }

/* Flyout panel */
.dept-flyout {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  border: 1px solid #e2e8f0;
  z-index: 1001;
  overflow: hidden;
  min-width: 220px;
}
@media (min-width:901px) {
  .nav-dropdown:hover .dept-flyout { display:flex; }
}
.nav-dropdown.open .dept-flyout { display:flex; }

/* Columns */
.flyout-col {
  width: 240px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  max-height: 420px;
  overflow-y: auto;
}
.flyout-col:last-child { border-right: none; }
.flyout-col-hidden { display: none; }
.flyout-col.visible { display: flex; }

/* Column header */
.flyout-col-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.flyout-col-head i { color: var(--accent); font-size: .8rem; }
.flyout-col-head span { flex: 1; }
.flyout-viewall {
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
  transition: color .15s;
}
.flyout-viewall:hover { color: var(--accent); }

/* Items */
.flyout-col ul { list-style: none; padding: .35rem 0; margin: 0; flex: 1; }

.flyout-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
  font-size: .845rem;
  color: #334155;
  text-decoration: none;
  transition: background .12s, color .12s;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.flyout-item:hover,
.flyout-item.active {
  background: #f0f7ff;
  color: var(--primary);
  border-left-color: var(--primary);
}
.flyout-item.active { font-weight: 600; }

.flyout-item-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
}
/* Level-specific icon colors */
#flyout-sectors .flyout-item-icon { background: #eff6ff; color: var(--primary); }
#flyout-dirs    .flyout-item-icon { background: #f0fdf4; color: var(--secondary); }
#flyout-svcs    .flyout-item-icon { background: #fffbeb; color: var(--accent); }

.flyout-item-label { flex: 1; line-height: 1.35; }
.flyout-item-arrow { font-size: .6rem; color: #94a3b8; flex-shrink: 0; }
.flyout-item:hover .flyout-item-arrow,
.flyout-item.active .flyout-item-arrow { color: var(--primary); }

/* Empty state */
.flyout-empty {
  padding: 1.25rem 1rem;
  font-size: .8rem;
  color: #94a3b8;
  text-align: center;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .dept-flyout {
    position: static;
    flex-direction: column;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    min-width: 0;
    margin: .25rem 0 .25rem 1rem;
  }
  .flyout-col {
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }
  .flyout-col-hidden { display: none; } /* hidden until tapped */
  .flyout-col-head { position: static; }
}

/* =============================================
   FLYOUT VERTICAL OVERRIDE
   ============================================= */
.dept-flyout {
  flex-direction: column !important;
  min-width: 280px !important;
  max-width: 300px !important;
  max-height: 80vh;
  overflow-y: auto;
}
.flyout-col {
  width: 100% !important;
  max-height: none !important;
  border-right: none !important;
  overflow-y: visible !important;
}
.flyout-col + .flyout-col.visible {
  border-top: 2px solid var(--accent);
}
/* Indent level 2 */
#flyout-dirs .flyout-item {
  padding-left: 2rem !important;
  font-size: .82rem !important;
  position: relative;
}
#flyout-dirs .flyout-item::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 7px;
  height: 1px;
  background: #cbd5e1;
}
/* Indent level 3 */
#flyout-svcs .flyout-item {
  padding-left: 2.85rem !important;
  font-size: .8rem !important;
  position: relative;
}
#flyout-svcs .flyout-item::before {
  content: '';
  position: absolute;
  left: 1.9rem;
  top: 50%;
  width: 7px;
  height: 1px;
  background: #e2e8f0;
}
#flyout-dirs .flyout-item-icon { background:#f0fdf4 !important; color:var(--secondary) !important; }
#flyout-svcs .flyout-item-icon { background:#fffbeb !important; color:var(--accent) !important; }


@media (max-width:900px) {
  .dept-flyout { max-width: none !important; max-height: none !important; overflow-y: visible !important; }
  .flyout-col-hidden { display: none !important; }
  .flyout-col.visible { display: flex !important; }
  .nav-menu { z-index: 1002 !important; }
}
