/* ===== General ===== */
:root {
  --bg: #ffffff;
  --card: #f8f9fa;
  --muted: #6c757d;
  --accent: #007bff;
  --accent-2: #28a745;
  --white: #ffffff;
  --text: #212529;
  --radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.3s ease;
}
a:hover {
  color: #0056b3;
}
/* ===== Container Sections ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/hero.jpg') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
  padding: 110px 0;
}

.hero.about-hero {
  margin-top: 0;
}

.hero.about-hero::before {
  background-position: center;
  background-size: cover;
}

.hero.about-hero .overlay {
  background: rgba(15, 23, 42, 0.28);
}

.about-hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-hero .hero-text {
  max-width: 720px;
}

.about-hero .eyebrow {
  display: inline-block;
  color: #7dd3fc;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.about-hero .hero-text h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.about-hero .hero-text .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 700px;
}

.about-hero .btn.outline {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.lead {
  color: #64748b;
  max-width: 760px;
  margin: 0 auto 35px;
  line-height: 1.75;
}

@media (max-width: 992px) {
  .about-hero {
    padding: 80px 0;
  }
}

@media (max-width: 576px) {
  .about-hero .hero-text h1 {
    font-size: 2.6rem;
  }
}

/* ===== Cards Grid ===== */
.cards-grid, .timeline-grid, .stats-grid, .leaders-grid {
  display: grid;
  gap: 24px;
}
.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card, .timeline-card, .stat-card, .leader-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover, .timeline-card:hover, .stat-card:hover, .leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.12);
}

.mission-section h2 {
  font-size: clamp(2.2rem, 2.6vw, 2.8rem);
  margin-bottom: 16px;
  color: #111827;
  text-align: center;
}

.mission-section .lead {
  margin: 0 auto 40px;
  color: #475569;
  max-width: 760px;
  text-align: center;
}

.card p,
.card ul li,
.stat-card p,
.timeline-card p {
  color: #334155;
  line-height: 1.75;
}

.card a.mission-link {
  display: inline-block;
  margin-top: 20px;
  color: #0d6efd;
  font-weight: 700;
}

.card a.mission-link:hover {
  color: #0747a6;
  text-decoration: underline;
}

/* ===== Mission, Vision, Values ===== */
.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #0d6efd;
}
.card ul {
  padding-left: 20px;
}
.card ul li {
  margin-bottom: 10px;
}

/* ===== Timeline ===== */
.timeline-section h2,
.history-section h2,
.leaders-section h2,
.leaders-departments h2,
.stats-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #212529;
}
.timeline-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== Stats Grid ===== */
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
}
.stat-card h3 {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 8px;
}
.stat-card p {
  color: #4b5563;
}

/* ===== Leaders ===== */
.leaders-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.leader-card {
  text-align: center;
}
.leader-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #007bff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leader-card:hover .leader-photo {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}
.role {
  color: #6c757d;
  margin-bottom: 12px;
}

/* ===== Call to Action ===== */
.cta-section {
  text-align: center;
  background: #f3f4f6;
  padding: 60px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-top: 40px;
}
.cta-section h2 {
  color: #007bff;
  font-size: 2rem;
  margin-bottom: 16px;
}
.cta-section p {
  color: #4b5563;
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg,#007bff,#0056b3);
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,123,255,0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,123,255,0.35);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .cards-grid, .timeline-grid, .stats-grid, .leaders-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .lead {
    font-size: 1.1rem;
  }
}
.department-title {
  color: #007bff;
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

/* ===== Leader & Department Card Hover Effects ===== */
.leader-card {
  background: #f8f9fa;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  text-align: center;
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,123,255,0.15);
  background: #ffffff;
}

/* Circular leader photos hover */
.leader-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #007bff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover .leader-photo {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

/* Department Titles */
.department-title {
  color: #007bff;
  font-size: 1.5rem;
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: left;
}

/* Responsive Grid */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}
.leaders-departments {
  margin: 60px 0;
}

.leaders-departments h2 {
  margin-bottom: 16px;
}

.leaders-departments .lead {
  margin: 0 auto 12px;
  max-width: 760px;
}

.leaders-departments .section-subtitle {
  margin-top: 0;
  margin-bottom: 12px;
}

.department h3,
.department h4 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  color: #007bff;
}

.section-subtitle {
  color: #212529;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.department p {
  color: #4b5563;
  margin-bottom: 15px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  justify-items: center;
  gap: 16px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.photo-grid img,
.photo-grid .media-video-wrapper {
  width: 320px;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-grid img:hover,
.photo-grid .media-video-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  text-align: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  margin-top: 5%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
/* ===== Department Section ===== */
.leaders-departments {
  width: min(1140px, 100%);
  margin: 80px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

section.container.leaders-departments {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.leaders-departments .leadership,
.leaders-departments .ministries {
  width: 100%;
  max-width: 1140px;
}

.leaders-departments .section-subtitle,
.leaders-departments .department h4 {
  text-align: center;
}

.department {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 70px;
}

.department-title {
  font-size: 2rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
}

.department-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  margin-top: 8px;
  border-radius: 2px;
}

/* Department description */
.department p {
  color: #4b5563;
  font-size: 1.05rem;
  margin: 0 auto 20px;
  line-height: 1.6;
  max-width: 860px;
}


/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
  text-align: center;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 42px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.lightbox .close:hover {
  transform: scale(1.2);
  color: #007bff;
}
.stat-card h3 {
  min-width: 80px; /* Adjust based on your font size */
  display: inline-block;
}
/* Add this to the very bottom of about-style.css */
.site-footer .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Video Wrapper for the Grid */
.media-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px; /* Match your img border-radius */
  overflow: hidden;
  grid-column: span 1; /* Adjust to 'span 2' if you want a larger video */
}

.media-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pulsating Live Badge */
.live-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 1px;
}

.live-status .dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Ensure the video scales slightly like your .zoomable images */
.media-video-wrapper:hover video {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}