/* Topbar logo positioning and visibility */
.topbar-logo-left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 20px;
  z-index: 2;
  background: var(--card-bg);
  border: 2px solid rgba(0,63,127,0.12);
}
.topbar-logo-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 20px;
  z-index: 2;
  background: var(--card-bg);
  border: 2px solid rgba(0,63,127,0.12);
}

/* .topbar .main-title {
  color: var(--card-bg);
  font-weight: 700;
  font-size: 2.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
} */

.topbar {
  color: var(--card-bg);
  font-weight: 700;
  font-size: 2.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
/* .topbar .org-name {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
 */



@media (max-width: 767.98px) {
  .topbar {
    background: var(--secondary-color);
    color: var(--accent-color);
  }
}
/* ===== Event modal modern styles ===== */
.event-modal-content {
    background: var(--card-bg, #fff);
    border: 0;
}
.event-modal-image-wrapper {
    height: 100%;
    min-height: 180px;
    display: block;
}
.event-modal-image-wrapper .event-modal-image {
    object-fit: cover;
    height: 100%;
    max-height: 420px;
}
.event-modal-header .modal-title {
    font-size: 1.15rem;
}
.event-modal-body .detail-row strong {
    color: #0d6efd;
}
.event-modal-body .detail-row i {
    width: 20px;
    text-align: center;
}
.event-modal-footer .btn {
    min-width: 100px;
}

@media (max-width: 767.98px){
    .event-modal-image-wrapper { min-height: 200px; }
    .event-modal-image-wrapper .event-modal-image { max-height: 320px; }
}

/* ================== VARIABLES & BASE STYLES ================== */
:root{
    /* Use logo blue + professional yellow */
    --primary-color: #003f7f; /* darker logo blue */
    --secondary-color: #1167b1; /* lighter blue */
    --accent-color: #ffcc33; /* yellow from logo */
    --muted: #6b7280;
    --light-bg: #f6f8fb;
    --card-bg: #ffffff;
    --text-dark: #0f1724;
    --shadow: 0 6px 20px rgba(16,24,40,0.08);
    --shadow-lg: 0 14px 40px rgba(16,24,40,0.12);
    --transition: all 0.28s cubic-bezier(.4,.0,.2,1);
    --container-width: 1200px;
    --radius-lg: 14px;
}

/* Reset */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
    font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #fafbfe 0%, #ffffff 100%);
    color:var(--text-dark);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
}

/* container */
.container{max-width:var(--container-width);margin:0 auto;padding:0 20px}

/* Topbar */
.topbar{
    background: var(--secondary-color);
    /* background: #ffffff; */
    color:red;
    padding: 28px 0;
    box-shadow: 0 4px 16px rgba(0,63,127,0.08);
    position:relative;
    z-index:999;
    border-bottom: 2px solid rgba(0,63,127,0.06);
    overflow: hidden;
}

/* vector watermark background with gradient */
.topbar-watermark{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
      linear-gradient(135deg, rgba(0,63,127,0.03) 0%, rgba(17,103,177,0.02) 50%, rgba(255,193,7,0.02) 100%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cdefs%3E%3ClinearGradient id='gw1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23003f7f;stop-opacity:0.04'/%3E%3Cstop offset='100%25' style='stop-color:%23ffc133;stop-opacity:0.02'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='10%25' cy='20%25' r='80' fill='url(%23gw1)' opacity='0.6'/%3E%3Ccircle cx='90%25' cy='80%25' r='100' fill='url(%23gw1)' opacity='0.4'/%3E%3Cpath d='M0,100 Q360,50 720,100 T1440,100' stroke='url(%23gw1)' stroke-width='2' fill='none' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
}

.logo{
    width:96px;
    height:96px;
    border-radius:14px;
    padding:8px;
    background:#f6f8fb;
    border:2px solid rgba(0,63,127,0.12);
    object-fit:contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,63,127,0.15);
    background:#eef3fb;
}




/* =======================================
   TOPBAR WRAPPER
======================================= */
.topbar {
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

/* Container uses flex space-between for layout */
.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    position: relative;
    gap: 20px;
}

/* =======================================
   LOGOS (flex items, no absolute positioning)
======================================= */
.topbar-container .logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    flex-shrink: 0;
}

.topbar-container .logo:first-of-type {
    order: -1;
}

.topbar-container .logo:last-of-type {
    order: 1;
}

/* =======================================
   CENTER SECTION
   Flexible, grows to fill space
======================================= */
.center-section {
    text-align: center;
    flex: 1;
    min-width: 0;
    order: 0;
}

/* =======================================
   TEXT - PRO UI STYLING
======================================= */
.main-title {
  /* Slightly smaller than org-name on desktop */
  font-size: 3.0rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
  word-spacing: 0.06em;
  overflow-wrap: break-word;
  color: white;
  letter-spacing: -0.5px;
}

.org-name {
  /* Org name should be more prominent than main title */
  font-size: 2.5rem;
  color: #ffcc33;
  font-weight: 800;
  margin-top: 6px;
  word-spacing: 0.06em;
  overflow-wrap: break-word;
  letter-spacing: 0.3px;
}

/* =======================================
   RESPONSIVE BREAKPOINTS
======================================= */

@media (max-width: 1200px) {
  .topbar-container { gap: 16px; }
  .logo { width: 82px; height: 82px; }
  .main-title { font-size: 1.9rem; }
  .org-name { font-size: 2.2rem; }
}

@media (max-width: 992px) {
  .topbar { padding: 20px 0; }
  .topbar-container { gap: 12px; }
  .logo { width: 74px; height: 74px; }
  .main-title { font-size: 1.5rem; }
  .org-name { font-size: 1.7rem; }
}

@media (max-width: 768px) {
  .topbar { padding: 18px 0; }
  .topbar-container { gap: 10px; height: 100px; }
  .logo { width: 64px; height: 64px; }
  .main-title { font-size: 1.15rem; }
  .org-name { font-size: 1.35rem; }
}

@media (max-width: 640px) {
  .topbar-container { gap: 8px; height: 90px; }
  .logo { width: 52px; height: 52px; }
  .main-title { font-size: 0.95rem; }
  .org-name { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .topbar { padding: 14px 0; }
  .topbar-container { gap: 6px; height: 80px; }
  .logo { width: 44px; height: 44px; }
  .main-title { font-size: 0.9rem; }
  .org-name { font-size: 1.05rem; }
  .center-section { padding: 0 55px; }
}



/* ===== MAIN NAVBAR ===== */
.main-navbar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 0.35rem 1rem;
    z-index: 1002;
    min-height: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
}

/* ===== EXPANDABLE SEARCH BAR ===== */
.navbar-search-container {
  margin-right: auto;
  margin-left: 0;
}

.navbar-search-form {
  display: flex;
  align-items: center;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.search-icon-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.search-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.search-input {
  width: 0;
  background: transparent;
  border: none;
  color: white;
  padding: 8px 0;
  font-size: 14px;
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  outline: none;
  position: absolute;
  left: 50px;
  right: 100px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* When search is expanded */
.search-input-wrapper.search-expanded {
  gap: 8px;
}

.search-input-wrapper.search-expanded .search-input {
  width: 250px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  left: 0;
  right: 0;
  animation: expandInput 0.4s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes expandInput {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 250px;
    opacity: 1;
  }
}

.search-input-wrapper.search-expanded .search-input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.search-submit-btn,
.search-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}

.search-input-wrapper.search-expanded .search-submit-btn,
.search-input-wrapper.search-expanded .search-close-btn {
  opacity: 1;
  pointer-events: auto;
  animation: fadeInButtons 0.4s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

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

.search-submit-btn:hover,
.search-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .search-input-wrapper.search-expanded .search-input {
    width: 180px;
  }

  @keyframes expandInput {
    to {
      width: 180px;
    }
  }
}

@media (max-width: 480px) {
  .search-input-wrapper.search-expanded .search-input {
    width: 140px;
    font-size: 12px;
  }

  .search-icon-btn,
  .search-submit-btn,
  .search-close-btn {
    padding: 6px 10px;
    font-size: 16px;
  }

  @keyframes expandInput {
    to {
      width: 140px;
    }
  }
}


/* NAVBAR ACTIVE & HOVER */
.navbar .nav-link {
    position: relative;
    padding: 8px 14px !important;
    transition: var(--transition);
}

/* Underline hover */
.navbar .nav-link:hover {
    background: var(--secondary-color);
    color: var(--accent-color) !important;
    transition: var(--transition);
    transform: translateX(2px);
}

.navbar .nav-link.active {
    background: var(--secondary-color) !important;
    color: #fff;
    font-weight: 600;
}

/* Dropdown active item */
.dropdown-menu .dropdown-item.active {
    background: var(--primary-color) !important;
    color: var(--accent-color) !important;
}

/* Hover for dropdown items */
.dropdown-menu .dropdown-item:hover {
    background: var(--secondary-color);
    color: var(--accent-color) !important;
    transition: var(--transition);
    transform: translateX(2px);
}

/* Mobile active highlight */
@media(max-width: 992px){
    .navbar-nav .nav-link.active {
        background: rgba(255,255,255,0.15);
        border-radius: 6px;
    }
}




/* ===== TOPBAR PRO SEARCH ===== */
.topbar-search{display:flex;justify-content:center;margin-top:8px}
.topbar-search .search-input{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.95);border-radius:999px;padding:6px 8px;box-shadow:var(--shadow);border:1px solid rgba(3,26,64,0.06);max-width:520px;width:100%}
.topbar-search input[type="search"]{flex:1;border:0;outline:none;padding:10px 12px;border-radius:999px;background:transparent;font-size:0.95rem;color:var(--text-dark)}
.topbar-search .search-btn{background:var(--accent-color);border:none;color:#003f7f;padding:10px 14px;border-radius:999px;display:inline-grid;place-items:center;cursor:pointer;font-weight:700}
.topbar-search .search-btn:active{transform:scale(0.99)}
.topbar-search input::placeholder{color:#94a3b8}

@media (max-width:480px){
    .topbar-search{margin-top:6px}
    .topbar-search .search-input{padding:6px}
    .topbar-search input[type="search"]{padding:8px}
}

/* ===== COMMISSION INTRO STYLES (About page) ===== */
.commission-intro-section{padding:28px 0}
.commission-intro{border-radius:14px;border:1px solid rgba(3,26,64,0.06);box-shadow:0 14px 40px rgba(3,26,64,0.06);background:linear-gradient(180deg,#ffffff,#fbfdff)}
.commission-title{font-size:1.45rem;color:var(--primary-color);font-weight:800;margin:0 0 8px}
.commission-text{color:var(--text-dark);line-height:1.75;margin-bottom:0}
.commission-list{margin-top:10px;margin-left:18px}

@media (max-width: 992px){
    .commission-intro{padding:20px}
    .commission-title{font-size:1.25rem}
}

@media (max-width: 480px){
    .commission-intro{padding:16px}
    .commission-title{font-size:1.1rem}
}


.main-navbar:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.main-navbar .navbar-brand {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}
.main-navbar .navbar-brand .logo {
  height: 32px;
}
.main-navbar .nav-link {
  font-weight: 500;
  margin-left: 0.8rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
}
/* ===== NAVBAR NEWS TICKER ===== */
.main-navbar .navbar-ticker {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
    flex: 1 1 auto;
    min-width: 300px;
    max-width: 60%;
}
.main-navbar .ticker-wrap{
    display:flex;align-items:center;gap:.6rem;padding:.35rem .6rem;width:100%;
}
.main-navbar .ticker-label{background:rgba(255,255,255,0.08);padding:.25rem .45rem;border-radius:4px;font-size:.78rem;font-weight:600;color:#fff;text-transform:uppercase;flex:0 0 auto}
.main-navbar .ticker{overflow:hidden;position:relative;flex:1;min-width:0}
.main-navbar .ticker-track{display:inline-block;white-space:nowrap;padding-left:1rem;animation:news-ticker 40s linear infinite;animation-play-state:running}
.main-navbar .ticker-wrap:hover .ticker-track,
.main-navbar .ticker-wrap:focus-within .ticker-track{animation-play-state:paused}
.main-navbar .ticker{min-width:0}
.main-navbar .ticker-item{display:inline-block;color:#fff;opacity:.95;margin-right:2.2rem;font-size:.92rem}
.main-navbar .ticker-item a{color:#cfe9ff;text-decoration:underline}
@keyframes news-ticker{0%{transform:translateX(100vw)}100%{transform:translateX(-100%)}}

/* hide ticker on small screens (Bootstrap utility is used as well) */
@media (max-width: 991.98px){
    .main-navbar .navbar-ticker{display:none}
}

/* ===== EDGE / FULL-WIDTH NEWS TICKER (below navbar) ===== */
.edge-news-ticker{
  width:100%;
  background: linear-gradient(90deg, rgba(0,63,127,0.98), rgba(3,26,64,0.98));
  color: #fff;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.02);
  box-shadow: 0 6px 18px rgba(2,6,23,0.08);
  z-index: 1001;
}
.edge-news-ticker .ticker-wrap{display:flex;align-items:center;gap:1rem;padding:0;width:100%;}
.edge-news-ticker .ticker{overflow:hidden;position:relative;flex:1;min-width:0}
.edge-news-ticker .ticker-track{display:inline-block;white-space:nowrap;padding-left:0;animation:news-ticker 36s linear infinite;animation-play-state:running;transform:translateX(100%)}
.edge-news-ticker .ticker-wrap:hover .ticker-track,
.edge-news-ticker .ticker-wrap:focus-within .ticker-track{animation-play-state:paused}
.edge-news-ticker .ticker-item{display:inline-block;color:#fff;opacity:.95;margin-right:2.4rem;font-size:0.95rem}
.edge-news-ticker .ticker-item strong{color:#ffcc33;margin-right:6px}

@media (max-width: 991.98px){
  /* Show stacked ticker on mobile: edge-to-edge and items stacked vertically */
  .edge-news-ticker{display:block;padding:8px 0}
  .edge-news-ticker .ticker-wrap{padding:0}
  .edge-news-ticker .ticker{overflow:visible}
  .edge-news-ticker .ticker-track{display:block;white-space:normal;padding-left:0;animation:none}
  .edge-news-ticker .ticker-item{display:block;color:#fff;opacity:0.98;margin:0;padding:10px 16px;border-top:1px solid rgba(255,255,255,0.03);font-size:0.95rem}
  .edge-news-ticker .ticker-item strong{color:#ffcc33}
  .edge-news-ticker .ticker-item:first-child{border-top:0}
}
/* .main-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
} */
/* .main-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(0, 0, 0, 0.2);
} */

/* Dropdown Menu */
.main-navbar .dropdown-menu {
  border-radius: 8px;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  min-width: 200px;
  background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Dropdown Items */
.main-navbar .dropdown-menu .dropdown-item {
  color: #fff;
  transition: all 0.3s ease;
}

/* Dropdown animation */
.main-navbar .dropdown-menu {
  transition: all 0.3s ease;
}
.main-navbar .dropdown:hover .dropdown-menu {
  display: block;
}

/* Force dropdown to always display on mobile after click */
@media (max-width: 991.98px) {
  .main-navbar .dropdown:hover .dropdown-menu {
    display: none; /* disable hover on mobile */
  }
  .main-navbar .dropdown-menu {
    opacity: 1 !important;
    transform: none !important;
    display: none;
  }
  .main-navbar .dropdown.show .dropdown-menu {
    display: block;
  }
}

/* Dropdown items */
.main-navbar .dropdown-menu .dropdown-item {
  transition: background 0.2s ease, color 0.2s ease;
}
/* .main-navbar .dropdown-item.active {
  background: #007bff;
  color: #fff !important;
} */
/* .main-navbar .dropdown-item:hover {
  background: #f1f1f1;
  transform: translateX(2px);
} */


/* Mobile navbar */
.navbar-toggler:focus {
  box-shadow: none;
}



.updates-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}
.updates-section .section-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.updates-grid {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}
.updates-grid .events,
.updates-grid .documents {
    flex: 1 1 45%;
}

/* allow flex child to shrink and avoid forcing page overflow */
.updates-grid .events { min-width: 0; }

.updates-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.updates-section .card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.updates-section .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.updates-section .btn {
    border-radius: 30px;
}

/* Responsive */
@media (max-width: 992px){
    .updates-grid {
        flex-direction: column;
    }
    .updates-grid .events,
    .updates-grid .documents {
        flex: 1 1 100%;
    }
}





/* ===== HERO SECTION ===== */
.tv-hero {
  position: relative;
  overflow: hidden;
  height: 65vh;
}

.hero-slide {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-size: cover; 
  background-position: center;
  opacity: 0; 
  transition: opacity 1s ease-in-out;
  display: flex; 
  align-items: center;
}

.hero-slide.active { 
  opacity: 1; 
}

.hero-overlay {
  position: absolute; 
  inset: 0;
  background: linear-gradient(
    135deg, 
    rgba(0,64,160,0.55), /* lighter overlay */
    rgba(0,28,84,0.65)   /* reduced fog effect */
  );
}

.hero-inner {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  width: 100%; max-width: 780px; margin: 0 auto;
  animation: fadeUp 1s ease-in-out;
}
.hero-title {
  font-size: 2.6rem; font-weight: 700;
  text-shadow: 0 6px 18px rgba(0,0,0,0.5);
 font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #d0e8ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease forwards;
}


.hero-sub {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}
.hero-actions .btn {
  margin: 0 8px;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
}

/* Dots */
.hero-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.hero-dots button.active,
.hero-dots button:hover {
  background: #007bff;
  box-shadow: 0 0 8px rgba(0,123,255,0.5);
}


/* Prev/Next controls */
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(0,0,0,0.45); color: #fff; border: none; width:44px;height:44px;border-radius:8px;
  display: flex; align-items:center; justify-content:center; cursor:pointer;
}
.hero-prev { left: 18px; } .hero-next { right: 18px; }
.hero-prev:hover, .hero-next:hover { background: rgba(0,0,0,0.6); }

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



.director-section {
  padding: 60px 0;
}

/* Modern Director Card */
.director-container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.director-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,250,255,0.95));
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(3,26,64,0.06);
  border: 1px solid rgba(3,26,64,0.04);
  position: relative;
  overflow: visible;
}

.director-media { display:flex; flex-direction:column; align-items:center; gap:12px; }
.director-photo { width:220px; height:220px; border-radius:14px; object-fit:cover; border:6px solid rgba(17,103,177,0.08); box-shadow: 0 10px 30px rgba(3,26,64,0.06); }

/* Director pro card styling (moved from blade file to consolidate CSS) */
.director-section.pro-inline { padding: 3.5rem 0; }
.director-card.pro { display:flex; align-items:center; gap:2rem; background: linear-gradient(135deg, rgba(6,78,59,0.03), rgba(4,60,46,0.02)); padding:1.6rem; border-radius:14px; box-shadow:0 10px 30px rgba(11,32,26,0.06); overflow:visible; }
.director-media-wrap { position:relative; }
.director-media::before { content:""; position:absolute; inset:-12px -6px auto auto; width:88px; height:88px; background:linear-gradient(45deg, rgba(255,192,86,0.15), rgba(255,86,153,0.06)); border-radius:18px; filter:blur(10px); z-index:0; }
.director-media figure, .director-media img { position:relative; z-index:2; }
.director-badge { position:absolute; right:-6px; bottom:-6px; background:linear-gradient(180deg,#ffd166,#ff7ab6); width:56px; height:56px; border-radius:12px; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(255,122,150,0.12); z-index:3; }
.director-badge .badge-icon { color:#fff; font-size:18px; }
.director-role { font-weight:700; margin-top:0.8rem; text-align:center; color:var(--bs-body-color); }
.director-role-sub {font-size:.9rem; color:var(--bs-secondary-color); text-align:center; }
.director-content.pro { flex:1; padding-right:1rem; }
.director-heading { margin:0 0 .5rem 0; font-size:1.45rem; color: #073b2f; }
.director-message { color:#254e45; margin-bottom:0.75rem; line-height:1.6; }
.director-cta { margin-top:1rem; }
.director-quote { margin-top:1.1rem; font-style:italic; color: #0b3f30; }

/* subtle float animation */
@keyframes floaty { 0% { transform: translateY(0); } 50% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.director-photo { animation: floaty 6s ease-in-out infinite; }
.director-card.pro:hover .director-photo { transform: scale(1.03); box-shadow:0 18px 36px rgba(6,78,59,0.12); }

/* responsive director section */
@media (max-width: 768px) {
  .director-card.pro { flex-direction:column; text-align:center; }
  .director-content.pro { padding:0; }
  .director-media::before { display:none; }
}

/* respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .director-photo { animation: none !important; transition:none !important; }
}

.director-content { padding:6px 2px; padding-top: 0; }
.kicker { display:inline-block; background: linear-gradient(90deg,var(--accent-color), #ffd966); color:#003f7f; padding:6px 10px; border-radius:10px; font-weight:700; margin-bottom:12px; margin-top: 0; }
.director-heading { font-size:1.6rem; margin:6px 0 6px; color:var(--primary-color); font-weight:800; }
.director-name { color:var(--muted); font-weight:600; margin-bottom:14px; }
.director-message { color:#25314a; line-height:1.8; margin-bottom:16px; }

.director-actions { display:flex; gap:12px; margin-bottom:12px; }
.director-actions .btn-outline-light { background:transparent; border:2px solid rgba(3,26,64,0.06); color:var(--primary-color); }

.director-quote { margin-top:12px; padding-left:14px; border-left:4px solid var(--accent-color); color:var(--muted); font-style:italic; }

@media (max-width: 880px) {
  .director-card { grid-template-columns: 1fr; text-align: center; }
  .director-media { order: -1; }
  .director-photo { width:160px; height:160px; }
  .director-actions { justify-content: center; }
}



/* footer */
.footer{
  position:relative;
  background: linear-gradient(180deg, #004a8f 0%, #003570 100%);
  color: #e9f2fb;
  padding: 56px 0 40px;
  margin-top: 40px;
  overflow: hidden;
}

/* decorative wave at top of footer */
.footer-wave{
  position:absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 84px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23004a8f' stop-opacity='0.14'/><stop offset='1' stop-color='%23003570' stop-opacity='0.06'/></linearGradient></defs><path fill='url(%23g)' d='M0,40 C240,120 480,0 720,40 C960,80 1200,0 1440,40 L1440,120 L0,120 Z'/></svg>");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  pointer-events: none;
}

.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:22px;margin-bottom:22px;position:relative;z-index:2}
.footer-section h4{color: #ffd966; margin-bottom:10px; font-weight:700}
.footer-section p,a{color:#d7e7f7; font-size: 13px;}
.footer a{color:#d7e7f7; text-decoration:none}
.footer a:hover{color:#fff; text-decoration:underline}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:18px;border-top:1px solid rgba(255,255,255,0.06);position:relative;z-index:2}

/* Flag Section */
.footer-flag-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,193,7,0.06), rgba(0,74,143,0.04));
  border-radius: 12px;
  border: 1px solid rgba(255,193,7,0.12);
  transition: all 0.28s ease;
}

.flag-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,64,112,0.12);
}

/* small adjustments for mobile */
@media (max-width: 768px) {
  .footer{padding:32px 0 20px}
  .footer-bottom{flex-direction:column; gap:8px; text-align:center}
  .footer-grid{gap:14px}
}

.zanzibar-flag {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.flag-container:hover .zanzibar-flag {
  transform: scale(1.08);
}

.flag-info {
  text-align: center;
}

.flag-title {
  color: var(--accent-color);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.flag-subtitle {
  color: #b8c6d8;
  margin: 4px 0 0;
  font-size: 0.9rem;
}

/* social */
.social-links{display:flex;gap:10px}
.social-icon{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--primary-color);color:white;text-decoration:none}

/* animation helper */
.animate-in{animation:fadeInUp .6s cubic-bezier(.2,.9,.2,1) both}
@keyframes fadeInUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* responsive */
@media (max-width: 980px){
    .hero-grid{grid-template-columns:1fr}
    .carousel-image{height:320px}
    .director-card{order:2}
    .flag-container { padding: 16px; }
    .zanzibar-flag { width: 75px; height: 55px; }
    
    .management-hero {
        padding: 48px 32px;
    }
    
    .management-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }
    
    .management-lead {
        font-size: 1rem;
    }
}
@media (max-width: 640px){
    .nav-menu{display:none;flex-direction:column;position:absolute;right:20px;top:64px;background:#fff;padding:10px;border-radius:10px;box-shadow:var(--shadow)}
    .mobile-toggle{display:block}
    .carousel-image{height:220px}
    .slide-caption{max-width:90%}
    .carousel-btn{width:40px;height:40px}
    .project-image{height:140px}
    .news-image{height:120px}
    .flag-container { padding: 12px; gap: 8px; }
    .zanzibar-flag { width: 70px; height: 50px; }
    .flag-title { font-size: 1rem; }
    .flag-subtitle { font-size: 0.85rem; }
    
    .management-hero {
        padding: 32px 24px;
    }
    
    .management-title {
        font-size: 1.8rem;
    }
    
    .management-lead {
        font-size: 0.9rem;
    }
}

/* ================== UPDATES / EVENTS CAROUSEL ================== */

.updates-section .section-header { margin-bottom: 1.25rem; }

.events-carousel-wrap { position: relative; }

.events-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.events-carousel { width: 100%; min-width: 0; overflow-y: hidden; }

.events-carousel .event-card { flex: 0 0 auto; }

.events-carousel::-webkit-scrollbar { height: 9px; }
.events-carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; }

.event-card {
  min-width: 300px;
  max-width: 360px;
  background: linear-gradient(180deg,#ffffff,#fbfdff);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(3,26,64,0.06);
  overflow: hidden;
  scroll-snap-align: center;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  border: 1px solid rgba(0,63,127,0.06);
}

.event-card:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(3,26,64,0.09); }

.event-media { position: relative; }
.event-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.event-date {
  position: absolute; left: 12px; bottom: 12px;
  background: linear-gradient(90deg,#ffcc33,#ffd966); color: #003f7f;
  padding: 6px 10px; border-radius: 8px; font-weight:700; font-size:0.85rem;
}

.event-body { padding: 16px; }
.event-title { font-size: 1.05rem; color: var(--primary-color); margin-bottom: 8px; font-weight:700 }
.event-excerpt { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }

/* ================== EVENT VENUE SECTION ================== */
.event-venue-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 63, 127, 0.04), rgba(17, 103, 177, 0.04));
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 63, 127, 0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.event-venue-section:hover {
  background: linear-gradient(135deg, rgba(0, 63, 127, 0.08), rgba(17, 103, 177, 0.08));
  border-color: rgba(0, 63, 127, 0.15);
  transform: translateX(2px);
}

.event-venue-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #003f7f, #1167b1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 63, 127, 0.15);
  transition: all 0.3s ease;
}

.event-venue-icon i {
  color: white;
  font-size: 16px;
}

.event-venue-section:hover .event-venue-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 63, 127, 0.22);
}

.event-venue-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.event-venue-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #003f7f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.75;
}

.event-venue-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #003f7f;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.event-venue-section:hover .event-venue-name {
  color: #1167b1;
}

@media (max-width: 768px) {
  .event-venue-section {
    padding: 10px;
    gap: 10px;
  }
  
  .event-venue-icon {
    width: 32px;
    height: 32px;
  }
  
  .event-venue-icon i {
    font-size: 14px;
  }
  
  .event-venue-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .event-venue-section {
    padding: 8px;
    gap: 8px;
  }
  
  .event-venue-icon {
    width: 28px;
    height: 28px;
  }
  
  .event-venue-icon i {
    font-size: 12px;
  }
  
  .event-venue-label {
    font-size: 0.7rem;
  }
  
  .event-venue-name {
    font-size: 0.85rem;
  }
}

.event-cta { font-weight:600 }

.events-controls { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display:flex; flex-direction:column; gap:8px; }
.events-prev, .events-next {
  background: #fff; border: 1px solid rgba(0,0,0,0.06); width:40px; height:40px; border-radius:8px; display:inline-grid; place-items:center; box-shadow:0 8px 20px rgba(3,26,64,0.06); cursor:pointer; transition:transform .18s ease;
}
.events-prev:hover, .events-next:hover { transform: translateY(-3px); }

@media (max-width: 768px) {
  .event-card { min-width: 280px; max-width: 320px; }
  .events-controls { right: 6px; flex-direction:row; top: auto; bottom: -10px; transform:none; }
}

@media (max-width: 480px) {
  .events-controls { display: none; }
}

/* ================== DOCUMENTS CAROUSEL ================== */
.docs-section { padding: 40px 0; }

.docs-carousel-wrap { position: relative; }

.docs-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.docs-carousel { width: 100%; min-width: 0; overflow-y: hidden; }

.docs-carousel .doc-card { flex: 0 0 auto; min-width: 300px; max-width: 340px; }

.docs-carousel::-webkit-scrollbar { height: 9px; }
.docs-carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; }

.doc-card { scroll-snap-align: center; }

.btn-group-icons { display: flex; gap: 8px; align-items: center; }

.btn-icon {
  background: transparent;
  border: 1px solid rgba(0,63,127,0.2);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.28s ease;
  color: var(--primary-color);
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

.btn-icon:hover {
  background: linear-gradient(135deg, rgba(0,63,127,0.1), rgba(17,103,177,0.08));
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-icon:active {
  transform: translateY(-1px);
}

.docs-controls { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }

.docs-prev, .docs-next {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(3,26,64,0.06);
  cursor: pointer;
  transition: transform .18s ease;
  font-size: 20px;
  color: var(--primary-color);
}

.docs-prev:hover, .docs-next:hover { transform: translateY(-3px); }

@media (max-width: 768px) {
  .doc-card { min-width: 280px; max-width: 320px; }
  .docs-controls { right: 6px; flex-direction: row; top: auto; bottom: -10px; transform: none; }
}

@media (max-width: 480px) {
  .docs-controls { display: none; }
}

/* ================== DOCUMENTS LIST (HOME) ================== */
.documents-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.document-item {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    border-radius: 10px; padding: 14px; box-shadow: 0 8px 20px rgba(3,26,64,0.04);
    border: 1px solid rgba(3,26,64,0.04);
    transition: transform .18s ease, box-shadow .18s ease;
}
.document-item:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(3,26,64,0.08); }
.doc-left { flex: 0 0 56px; display:flex; align-items:center; justify-content:center; }
.doc-icon { font-size: 28px; width:48px; height:48px; display:inline-grid; place-items:center; background: linear-gradient(135deg, rgba(0,63,127,0.06), rgba(17,103,177,0.06)); border-radius:10px; }
.doc-icon i { font-size: 20px; }

/* type-specific icon styling */
.doc-icon.type-pdf { background: linear-gradient(135deg,#fff5f5,#fff1f0); }
.doc-icon.type-pdf i { color: #c62828; }

.doc-icon.type-word { background: linear-gradient(135deg,#eef6ff,#e6f0ff); }
.doc-icon.type-word i { color: #0b66c3; }

.doc-icon.type-excel { background: linear-gradient(135deg,#f0fff4,#eaffef); }
.doc-icon.type-excel i { color: #1e8f3e; }

.doc-icon.type-ppt { background: linear-gradient(135deg,#fff7ed,#fff3e0); }
.doc-icon.type-ppt i { color: #d35400; }

.doc-icon.type-default { background: linear-gradient(135deg,#f5f7fb,#f8fbff); }
.doc-icon.type-default i { color: var(--primary-color); }
.doc-main{flex:1;min-width:0}
.doc-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.doc-title{font-size:1rem;margin:0;color:var(--primary-color);font-weight:700}
.doc-badges{display:flex;gap:8px}
.badge.new{background:var(--accent-color);color:#003f7f;padding:6px 8px;border-radius:8px;font-weight:700;font-size:0.75rem}
.doc-desc{margin:6px 0;color:var(--muted);font-size:0.95rem}
.doc-meta{color:var(--muted);font-size:0.9rem}
.doc-actions{flex:0 0 auto}

@media (max-width: 768px) {
    .document-item { flex-direction: row; padding: 12px; }
    .doc-left { flex: 0 0 48px; }
    .doc-icon { width:40px;height:40px;font-size:22px }
}

/* ================== DOCUMENT PREVIEW MODAL ================== */
.doc-preview-modal { position: fixed; inset: 0; display: none; z-index: 2000; }
.doc-preview-modal.open { display: block; }
.doc-preview-overlay { position: absolute; inset: 0; background: rgba(7,12,20,0.6); backdrop-filter: blur(6px); }
.doc-preview-content { position: absolute; top: 0; /* will be positioned by JS to align with .documents */
  left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--container-width); height: 80vh; margin: 0 auto; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(2,6,23,0.6); }
.doc-preview-close { position: absolute; right: 12px; top: 8px; z-index: 10; background: rgba(255,255,255,0.9); border: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.doc-preview-body { width: 100%; height: 100%; display: flex; align-items: stretch; }
.doc-preview-iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 992px) {
  .doc-preview-content { left: 0; transform: none; max-width: 100%; border-radius: 0; }
}

/* ================== ABOUT PAGE STYLES ================== */

/* ABOUT PAGE HERO */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,64 Q300,0 600,64 T1200,64 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.about-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-hero { padding: 60px 20px; }
    .about-hero-title { font-size: 2rem; }
    .about-hero-subtitle { font-size: 1rem; }
}

/* ABOUT MAIN CONTENT */
.about-main { padding: 60px 20px; }

/* MISSION, VISION, FUNCTIONS SECTION */
.mvf-section {
    padding: 40px 0;
}

.mvf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mvf-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mvf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.mvf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.mission-card::before { background: linear-gradient(90deg, #ff6b6b, #ff8787); }
.vision-card::before { background: linear-gradient(90deg, #4ecdc4, #45b7aa); }
.values-card::before { background: linear-gradient(90deg, var(--accent-color), #ffd966); }

.mvf-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 63, 127, 0.08), rgba(17, 103, 177, 0.06));
}

.mission-card .mvf-icon { background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 135, 135, 0.08)); color: #ff6b6b; }
.vision-card .mvf-icon { background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 170, 0.08)); color: #4ecdc4; }
.values-card .mvf-icon { background: linear-gradient(135deg, rgba(255, 204, 51, 0.1), rgba(255, 217, 102, 0.08)); color: var(--accent-color); }

.mvf-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 16px 0;
}

.mvf-description {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .mvf-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .mvf-grid { grid-template-columns: 1fr; gap: 20px; }
    .mvf-card { padding: 24px 20px; }
    .mvf-title { font-size: 1.2rem; }
    .mvf-icon { width: 60px; height: 60px; font-size: 40px; }
}

/* FUNCTIONS SECTION */
.functions-section {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 63, 127, 0.02) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 500;
}

.functions-content {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.functions-intro {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 63, 127, 0.1);
}

.functions-intro p {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.function-block, .dept-functions .function-block {
    list-style: none;
    margin: 0;
    padding: 0;
}

.function-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 18px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    align-items: flex-start;
.function-block:nth-child(1), .dept-functions .function-block:nth-child(1) { animation-delay: 0.1s; }
.function-block:nth-child(2), .dept-functions .function-block:nth-child(2) { animation-delay: 0.2s; }
.function-block:nth-child(3), .dept-functions .function-block:nth-child(3) { animation-delay: 0.3s; }
    border-bottom: none;
    margin-bottom: 0;
}

.function-marker {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.function-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 1rem; }
    .functions-content { padding: 24px 20px; }
    .function-item { gap: 14px; margin-bottom: 16px; padding: 12px 0; }
    .function-marker { width: 32px; height: 32px; font-size: 0.8rem; }
    .function-text { font-size: 0.9rem; }
}

/* ================== DEPARTMENT PAGE STYLES ================== */

/* DEPARTMENT HERO */
.dept-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dept-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,64 Q300,0 600,64 T1200,64 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.dept-hero .container {
    position: relative;
    z-index: 1;
}

.dept-hero-badge {
    display: inline-block;
    background: rgba(255, 204, 51, 0.2);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 204, 51, 0.3);
}

.dept-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.dept-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
}

@media (max-width: 768px) {
    .dept-hero { padding: 70px 20px; }
    .dept-hero-title { font-size: 2rem; }
    .dept-hero-subtitle { font-size: 1rem; }
}

/* DEPARTMENT MAIN CONTENT */
.dept-main { padding: 60px 20px; }

/* DEPARTMENT OVERVIEW */
.dept-overview {
    padding: 40px 0;
    margin-bottom: 40px;
}

.overview-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.overview-text { max-width: 900px; }

.overview-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.overview-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.overview-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 63, 127, 0.04), rgba(17, 103, 177, 0.04));
    border-radius: 12px;
    border: 1px solid rgba(0, 63, 127, 0.08);
}

.feature-item i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .overview-content { padding: 24px 20px; }
    .overview-title { font-size: 1.5rem; }
    .overview-features { grid-template-columns: 1fr; gap: 12px; }
    .feature-item { padding: 12px; font-size: 0.9rem; }
}

/* DEPARTMENT FUNCTIONS */
.dept-functions {
  padding: 60px 0;
  background: linear-gradient(180deg, rgba(248,250,255,0.5) 0%, transparent 100%);
  position: relative;
}

.dept-functions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,63,127,0.1), transparent);
  pointer-events: none;
}

.function-block, .dept-functions .function-block {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,255,0.95));
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(30,58,138,0.08);
  border: 2px solid rgba(0,63,127,0.06);
  border-left: 5px solid var(--primary-color);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  opacity: 0;
}

.function-block:nth-child(1), .dept-functions .function-block:nth-child(1) { animation-delay: 0.1s; }
.function-block:nth-child(2), .dept-functions .function-block:nth-child(2) { animation-delay: 0.2s; }
.function-block:nth-child(3), .dept-functions .function-block:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.function-block::before, .dept-functions .function-block::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,193,7,0.06), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.function-block::after, .dept-functions .function-block::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 220px;
  /* height: 220px; */
  background: radial-gradient(circle, rgba(0,63,127,0.04), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.function-block:hover, .dept-functions .function-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(30,58,138,0.15);
  border-color: rgba(0,63,127,0.12);
  border-left-color: var(--accent-color);
}

.function-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.function-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,63,127,0.12), rgba(17,103,177,0.08));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid rgba(0,63,127,0.08);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 16px rgba(0,63,127,0.1);
}

.function-block:hover .function-icon, .dept-functions .function-block:hover .function-icon {
  transform: scale(1.12) rotate(5deg);
  background: linear-gradient(135deg, rgba(0,63,127,0.16), rgba(255,193,7,0.1));
  border-color: rgba(255,193,7,0.2);
  box-shadow: 0 8px 24px rgba(0,63,127,0.15);
}

.function-icon i {
  font-size: 32px;
  color: var(--primary-color);
  transition: all 0.4s ease;
}

.function-block:hover .function-icon i, .dept-functions .function-block:hover .function-icon i {
  color: var(--accent-color);
  transform: scale(1.1);
}

.function-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: -0.4px;
  transition: color 0.3s ease;
}

.function-block:hover .function-title, .dept-functions .function-block:hover .function-title {
  color: var(--accent-color);
}

.function-content {
  position: relative;
  z-index: 2;
}

.function-intro {
  font-size: 1.05rem;
  color: #3a4556;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.function-block:hover .function-intro, .dept-functions .function-block:hover .function-intro {
  color: var(--primary-color);
}

.function-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.func-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,63,127,0.08);
  align-items: flex-start;
  transition: all 0.3s ease;
  animation: fadeInLeft 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  opacity: 0;
}

.func-item:nth-child(1) { animation-delay: 0.2s; }
.func-item:nth-child(2) { animation-delay: 0.25s; }
.func-item:nth-child(3) { animation-delay: 0.3s; }
.func-item:nth-child(4) { animation-delay: 0.35s; }
.func-item:nth-child(5) { animation-delay: 0.4s; }
.func-item:nth-child(6) { animation-delay: 0.45s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.func-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.func-item:hover {
  padding-left: 12px;
  padding-right: 8px;
}

.func-marker {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #1a5f99));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,63,127,0.15);
  transition: all 0.3s ease;
  position: relative;
}

.func-item:hover .func-marker {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 6px 18px rgba(0,63,127,0.2);
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.func-text {
  color: #4a5f7f;
  line-height: 1.8;
  font-size: 0.98rem;
  transition: color 0.3s ease;
}

.func-item:hover .func-text {
  color: #2a3f5f;
}

@media (max-width: 768px) {
  .dept-functions {
    padding: 40px 0;
  }

  .function-block, .dept-functions .function-block {
    padding: 28px 24px;
    margin-bottom: 24px;
    border-left-width: 4px;
  }

  .function-block::before, .dept-functions .function-block::before {
    width: 200px;
    height: 200px;
    right: -60px;
    top: -40px;
  }

  .function-block::after, .dept-functions .function-block::after {
    width: 150px;
    height: 150px;
    left: -50px;
    bottom: -50px;
  }

  .function-header {
    gap: 14px;
    margin-bottom: 20px;
  }

  .function-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .function-icon i {
    font-size: 26px;
  }

  .function-title {
    font-size: 1.3rem;
  }

  .function-intro {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .func-item {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .func-marker {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .func-text {
    font-size: 0.93rem;
  }
}

@media (max-width: 480px) {
  .dept-functions {
    padding: 32px 0;
  }

  .function-block, .dept-functions .function-block {
    padding: 20px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .function-block::before, .dept-functions .function-block::before {
    width: 150px;
    height: 150px;
    right: -50px;
    opacity: 0.5;
  }

  .function-block::after, .dept-functions .function-block::after {
    width: 100px;
    height: 100px;
    left: -40px;
    opacity: 0.5;
  }

  .function-header {
    gap: 12px;
    margin-bottom: 16px;
  }

  .function-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .function-icon i {
    font-size: 22px;
  }

  .function-title {
    font-size: 1.1rem;
  }

  .function-intro {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .function-content {
    overflow: hidden;
  }

  .func-item {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .func-marker {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .func-text {
    font-size: 0.9rem;
  }
}

/* ================== MONITORING & EVALUATION PAGE STYLES ================== */

/* M&E HERO */
.me-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 50%, var(--primary-color) 100%);
    color: white;
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
}

.me-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><circle cx="100" cy="50" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="1100" cy="80" r="60" fill="rgba(255,255,255,0.04)"/><path d="M0,64 Q300,0 600,64 T1200,64 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.me-hero .container {
    position: relative;
    z-index: 1;
}

.me-hero-content {
    text-align: center;
}

.me-hero-badge {
    display: inline-block;
    background: rgba(255, 204, 51, 0.2);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 204, 51, 0.3);
}

.me-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.me-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 28px;
}

.me-hero-icons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.me-icon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
}

.me-icon-item i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .me-hero { padding: 70px 20px; }
    .me-hero-title { font-size: 2rem; }
    .me-hero-subtitle { font-size: 1rem; }
    .me-hero-icons { gap: 12px; }
    .me-icon-item { padding: 10px 14px; font-size: 0.85rem; }
}

/* M&E MAIN CONTENT */
.me-main { padding: 60px 20px; }

/* RESPONSIBILITIES SECTION */
.me-responsibilities {
    padding: 40px 0 60px 0;
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.responsibility-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.responsibility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #0f766e);
}

.responsibility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.resp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.resp-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(15, 118, 110, 0.08));
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.resp-icon i {
    font-size: 24px;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resp-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.resp-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resp-body p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.resp-marker {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.75rem;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .responsibilities-grid { grid-template-columns: 1fr; gap: 16px; }
    .responsibility-card { padding: 20px; }
    .resp-icon { width: 44px; height: 44px; }
    .resp-icon i { font-size: 20px; }
    .resp-title { font-size: 1.1rem; }
    .resp-body p { font-size: 0.9rem; }
}

/* CAPACITY BUILDING SECTION */
.me-capacity {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04), rgba(15, 118, 110, 0.04));
}

.capacity-wrapper {
    background: white;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-width: 800px;
    margin: 0 auto;
}

.capacity-icon {
    font-size: 64px;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: block;
}

.capacity-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.capacity-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.capacity-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.cap-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cap-feature i {
    font-size: 32px;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cap-feature span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .capacity-wrapper { padding: 32px 24px; }
    .capacity-title { font-size: 1.5rem; }
    .capacity-text { font-size: 0.95rem; }
    .capacity-features { grid-template-columns: 1fr; gap: 14px; }
    .capacity-icon { font-size: 48px; }
}

/* THINK TANK SECTION */
.me-think-tank {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 63, 127, 0.02));
}

.think-tank-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tt-left {
    padding-right: 20px;
}

.tt-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.tt-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.tt-right {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 6px solid #0f766e;
}

.tt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tt-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    align-items: flex-start;
}

.tt-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tt-marker {
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tt-item span:last-child {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .think-tank-content { grid-template-columns: 1fr; gap: 28px; }
    .tt-left { padding-right: 0; }
    .tt-right { max-width: 100%; }
}

@media (max-width: 768px) {
    .me-think-tank { padding: 40px 0; }
    .tt-title { font-size: 1.5rem; }
    .tt-desc { font-size: 0.95rem; }
    .tt-right { padding: 24px; }
    .tt-item { grid-template-columns: 30px 1fr; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; }
    .tt-marker { width: 30px; height: 30px; font-size: 0.75rem; }
    .tt-item span:last-child { font-size: 0.9rem; }
}

/* ================== ADMINISTRATION & SERVICES PAGE STYLES ================== */

/* ADMIN HERO */
.admin-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--accent-color) 50%, #1e3a8a 100%);
    color: white;
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
}

.admin-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,20 600,60 T1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/><circle cx="200" cy="80" r="30" fill="rgba(255,255,255,0.05)"/><circle cx="1000" cy="40" r="50" fill="rgba(255,255,255,0.04)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.admin-hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.admin-hero-content {
    margin: 0;
}

.admin-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.admin-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
}

.admin-hero-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .admin-hero .container { grid-template-columns: 1fr; }
    .admin-hero-visual { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .admin-hero { padding: 70px 20px; }
    .admin-hero-title { font-size: 2rem; }
    .admin-hero-subtitle { font-size: 1rem; }
    .admin-hero-visual { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hero-stat { padding: 14px; }
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: 0.75rem; }
}

/* ADMIN MAIN CONTENT */
.admin-main { padding: 60px 20px; }

/* ADMIN OVERVIEW */
.admin-overview {
    padding: 40px 0 60px 0;
}

.overview-card {
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.overview-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.overview-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.overview-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04), rgba(17, 103, 177, 0.04));
    border: 1px solid rgba(30, 58, 138, 0.08);
    transition: var(--transition);
}

.overview-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(17, 103, 177, 0.08));
}

.overview-item i {
    font-size: 32px;
    color: #1e3a8a;
    margin-bottom: 12px;
    display: block;
}

.overview-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.overview-item p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .overview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .overview-card { padding: 24px 20px; }
    .overview-title { font-size: 1.5rem; }
    .overview-grid { grid-template-columns: 1fr; gap: 16px; }
    .overview-item { padding: 16px; }
}

/* ADMIN FUNCTIONS - TIMELINE STYLE */
.admin-functions {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent, rgba(30, 58, 138, 0.02));
}

.functions-timeline {
    position: relative;
    padding-left: 40px;
}

.functions-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1e3a8a, var(--accent-color));
    border-radius: 2px;
}

.function-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
    position: relative;
}

.step-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, var(--accent-color));
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    position: relative;
    left: -51.5px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.step-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(30, 58, 138, 0.08);
    border-left: 4px solid #1e3a8a;
    transition: var(--transition);
}

.step-content:hover {
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.1);
    transform: translateX(8px);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
}

.step-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

@media (max-width: 768px) {
    .functions-timeline { padding-left: 20px; }
    .functions-timeline::before { left: -3px; }
    .function-step { grid-template-columns: 50px 1fr; gap: 16px; }
    .step-marker { width: 50px; height: 50px; font-size: 1rem; left: -44px; }
    .step-content { padding: 16px; }
    .step-title { font-size: 1.05rem; }
    .step-desc { font-size: 0.9rem; }
}

/* SERVICES HIGHLIGHT SECTION */
.admin-services-highlight {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.03), rgba(17, 103, 177, 0.03));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, var(--accent-color));
    border-radius: 16px 16px 0 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(30, 58, 138, 0.12);
}

.service-icon {
    font-size: 48px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(17, 103, 177, 0.08));
    color: #1e3a8a;
    width: 80px;
    height: 80px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 24px 20px; }
    .service-icon { width: 70px; height: 70px; font-size: 36px; margin-bottom: 12px; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.9rem; }
}


/* ===== Human Resource Page - UI Variants Helpers ===== */
.classic-card { padding: 22px; border-radius: 12px; background: linear-gradient(180deg,#fff,#fbfdff); border:1px solid rgba(3,26,64,0.04); box-shadow: var(--shadow); }
.classic-list { list-style: disc; padding-left: 18px; color:var(--text-dark); }
.classic-list li { margin-bottom: 10px; color:var(--muted); }

.pro-stats { display:flex; gap:18px; margin:18px 0 28px; flex-wrap:wrap }
.stat-card { background: linear-gradient(180deg,#fff,#f8fbff); padding:18px; border-radius:12px; min-width:160px; text-align:center; border:1px solid rgba(3,26,64,0.04); box-shadow: var(--shadow); }
.stat-value { font-size:1.6rem; font-weight:800; color:var(--primary-color); }
.stat-label { color:var(--muted); font-weight:700; margin-top:6px }
.pro-cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:14px}
.pro-card{background:white;padding:18px;border-radius:12px;border:1px solid rgba(3,26,64,0.04);box-shadow:0 6px 20px rgba(3,26,64,0.04)}

.modern-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.modern-item{background:white;border-radius:12px;padding:20px;text-align:center;box-shadow:var(--shadow);border:1px solid rgba(3,26,64,0.04)}
.modern-item i{font-size:28px;color:var(--primary-color);margin-bottom:10px}
.modern-item h4{font-size:1rem;color:var(--primary-color);margin-bottom:8px}
.modern-item p{color:var(--muted);font-size:0.95rem}

.unique-split{display:grid;grid-template-columns:1fr 400px;gap:28px;align-items:start}
.unique-left p{color:var(--text-dark);line-height:1.8}
.attachments ul{list-style:none;padding-left:0;margin-top:10px}
.attachments li{margin-bottom:6px}
.link-muted{color:var(--primary-color);text-decoration:none}

.timeline{background:white;border-radius:12px;padding:16px;border:1px solid rgba(3,26,64,0.04);box-shadow:var(--shadow)}
.tl-item{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px dashed rgba(3,26,64,0.04)}
.tl-item:last-child{border-bottom:none}
.tl-item span{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:white;font-weight:700}
.tl-item p{margin:0;color:var(--muted)}

/* Responsive adjustments for the new sections */
@media (max-width: 1024px){
    .modern-grid{grid-template-columns:repeat(2,1fr)}
    .pro-cards-grid{grid-template-columns:repeat(2,1fr)}
    .unique-split{grid-template-columns:1fr 1fr}
}
@media (max-width: 768px){
    .modern-grid{grid-template-columns:1fr}
    .pro-cards-grid{grid-template-columns:1fr}
    .unique-split{grid-template-columns:1fr;gap:14px}
    .dept-hero { padding: 40px 20px; }
}

/* Research page small helpers (reuse existing tokens) */
.classic-list { margin-left: 18px; }
.pro-cards-grid .pro-card h3 { color: var(--primary-color); }
.modern-item h4 { font-weight:700 }
.unique-split .timeline { max-height: 420px; overflow:auto }
.unique-split .timeline .tl-item p { color:var(--muted) }

@media (max-width: 600px){
  .dept-hero .dept-hero-title { font-size:1.4rem }
  .dept-hero .dept-hero-subtitle { font-size:0.95rem }
}

/* ===== MANAGEMENT PAGE STYLES ===== */
.management-page .management-hero{padding:18px 0}
.management-title{font-size:1.9rem;font-weight:800;color:var(--primary-color);margin-left:14px}
.management-lead{color:var(--muted);font-size:1rem;margin-left:20px}
.kicker{display:inline-block;background:linear-gradient(90deg,var(--accent-color),#ffd966);color:#003f7f;padding:6px 12px;border-radius:999px;font-weight:700}

.vision-section .card{border-radius:12px;box-shadow:var(--shadow)}

.profiles-section .section-heading{font-size:1.5rem;font-weight:700;color:var(--primary-color)}
.profiles-grid .top-leader .portrait{width:120px;height:140px;object-fit:cover;border-radius:8px;border:4px solid rgba(0,63,127,0.06)}
.leader-card .portrait-sm{width:72px;height:72px;object-fit:cover;border-radius:6px;border:2px solid rgba(0,63,127,0.06)}
.top-leader .leader-name{font-size:1.25rem;margin-bottom:0;font-weight:800}
.top-leader .leader-role{color:var(--muted);font-weight:600}
.leader-card{transition:transform .18s ease,box-shadow .18s ease;border-radius:12px}
.leader-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}

.org-section .org-chart{border-radius:12px}
.org-chart .org-node{display:inline-block;padding:14px 18px;border-radius:10px;background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid rgba(3,26,64,0.06);box-shadow:0 6px 18px rgba(3,26,64,0.04)}
.org-chart .org-top .org-node{background:linear-gradient(90deg,var(--primary-color),var(--secondary-color));color:#fff;border:none;padding:16px 22px}
.org-chart .org-level{gap:20px}
.org-node.small-card{width:220px}
.org-node .node-role{font-size:.85rem;color:var(--muted)}

/* Organizational node photos and layout */
.org-node .node-photo{width:84px;height:84px;border-radius:10px;object-fit:cover;box-shadow:0 6px 18px rgba(3,26,64,0.08);border:3px solid rgba(255,255,255,0.06)}
.org-node.top-leader-node .node-photo{width:96px;height:110px;border-radius:8px;border:4px solid rgba(255,255,255,0.06)}
.org-node .node-photo-sm{width:72px;height:72px;border-radius:12px;object-fit:cover;border:3px solid rgba(0,63,127,0.06);box-shadow:0 6px 18px rgba(3,26,64,0.06)}
.org-node .node-info .node-name{font-weight:800;font-size:1.05rem}
.org-node .node-info .node-role{font-size:.95rem;color:#fff;opacity:0.95}
.org-node .node-dept{font-size:.82rem}

.org-level{display:flex;flex-wrap:wrap;justify-content:center}
.org-node.small-card{min-width:190px;max-width:240px}
.org-node.small-card .node-name{font-weight:700;margin-bottom:4px}
.org-node.small-card .node-role{color:var(--muted);font-weight:600}

/* visual connector lines (simple) */
.org-chart{position:relative}
.org-top::after{content:'';position:absolute;left:50%;transform:translateX(-50%);top:60px;width:2px;height:14px;background:linear-gradient(180deg,rgba(3,26,64,0.08),rgba(3,26,64,0.02));}

@media (max-width: 768px){
    .org-node.top-leader-node{flex-direction:column;align-items:center}
    .org-node.top-leader-node .node-info{text-align:center}
    .org-node.small-card{width:48%;margin-bottom:12px}
}

@media (max-width: 480px){
    .org-node.small-card{width:100%}
    .org-node .node-photo-sm{width:64px;height:64px}
    .org-node.top-leader-node .node-photo{width:84px;height:96px}
}

/* ===== HISTORY / TIMELINE STYLES ===== */
.history-page .history-title{font-size:1.8rem;color:var(--primary-color);font-weight:800}

/* Timeline List Container */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0,63,127,0.1), rgba(255,193,7,0.1), rgba(0,63,127,0.1));
  pointer-events: none;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline Card */
.timeline-card {
  background: linear-gradient(135deg, rgba(17,103,177,0.05), rgba(255,193,7,0.03));
  border: 2px solid rgba(0,63,127,0.1);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30,58,138,0.08);
  position: relative;
  max-width: 900px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,193,7,0.08) 100%);
  pointer-events: none;
  border-radius: 18px;
}

.timeline-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,63,127,0.2);
  box-shadow: 0 16px 48px rgba(30,58,138,0.15), inset 0 1px 1px rgba(255,255,255,0.5);
}

/* Leader Photo */
.timeline-leader-photo {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.leader-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(0,63,127,0.2);
  box-shadow: 
    0 12px 36px rgba(0,63,127,0.2),
    0 0 0 3px rgba(255,193,7,0.15),
    inset 0 1px 2px rgba(255,255,255,0.5);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.timeline-card:hover .leader-photo {
  transform: scale(1.1) translateZ(0);
  box-shadow: 
    0 16px 48px rgba(0,63,127,0.25),
    0 0 0 8px rgba(255,193,7,0.25),
    inset 0 1px 2px rgba(255,255,255,0.5);
  filter: brightness(1.05);
}

/* Leader Info */
.timeline-leader-info {
  position: relative;
  z-index: 2;
}

.leader-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.timeline-card:hover .leader-name {
  color: var(--accent-color);
}

.leader-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.timeline-card:hover .leader-role {
  color: var(--primary-color);
}

.leader-bio {
  font-size: 0.9rem;
  color: #5a6b7f;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.timeline-card:hover .leader-bio {
  color: #3a4556;
}

/* Timeline Period */
.timeline-period {
  flex-shrink: 0;
  background: rgba(0,63,127,0.04);
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,63,127,0.08);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-card:hover .timeline-period {
  background: rgba(255,193,7,0.08);
  border-color: rgba(255,193,7,0.2);
}

.period-start,
.period-end {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.period-sep {
  color: var(--accent-color);
  margin: 4px 0;
  font-weight: 700;
}

.timeline-card:hover .period-start,
.timeline-card:hover .period-end {
  color: var(--accent-color);
}

.establish-section .card,.achievements-section .card{border-radius:12px}
.achievements-list{list-style:disc;margin-left:18px}

@media (max-width: 980px) {
  .timeline-list::before {
    display: none;
  }

  .timeline-card {
    max-width: 100%;
  }

  .leader-photo {
    width: 90px;
    height: 90px;
  }

  .leader-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .timeline-list {
    gap: 18px;
  }

  .timeline-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px !important;
  }

  .timeline-leader-info {
    margin: 0;
  }

  .timeline-period {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    width: 100%;
    justify-content: center;
  }

  .period-start,
  .period-end {
    font-size: 1rem;
  }

  .leader-photo {
    width: 85px;
    height: 85px;
  }

  .leader-name {
    font-size: 1rem;
  }

  .leader-role {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .timeline-list {
    gap: 14px;
  }

  .timeline-card {
    padding: 20px 16px !important;
    gap: 12px;
  }

  .leader-photo {
    width: 75px;
    height: 75px;
    border-width: 3px;
  }

  .leader-name {
    font-size: 0.95rem;
  }

  .leader-role {
    font-size: 0.85rem;
  }

  .timeline-period {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .period-start,
  .period-end {
    font-size: 0.95rem;
  }
}

/* ===== DEPARTMENT HEAD SECTION ===== */
.dept-head-section {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(0,63,127,0.03), rgba(17,103,177,0.03));
  position: relative;
}

.dept-head-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,63,127,0.1), transparent);
}

.dept-head-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,255,0.95));
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 12px 48px rgba(30,58,138,0.1);
  border: 2px solid rgba(0,63,127,0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dept-head-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,193,7,0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.dept-head-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0,63,127,0.06), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.dept-head-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,63,127,0.16);
  box-shadow: 0 20px 60px rgba(30,58,138,0.15);
}

.dept-head-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.head-photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInScale 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.head-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(0,63,127,0.15);
  box-shadow: 
    0 16px 48px rgba(0,63,127,0.2),
    0 0 0 4px rgba(255,193,7,0.15),
    inset 0 1px 3px rgba(255,255,255,0.6);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  position: relative;
  z-index: 2;
}

.dept-head-card:hover .head-portrait {
  transform: scale(1.08) translateZ(0);
  box-shadow: 
    0 20px 60px rgba(0,63,127,0.25),
    0 0 0 10px rgba(255,193,7,0.2),
    inset 0 1px 3px rgba(255,255,255,0.6);
  filter: brightness(1.05);
}

.head-info {
  text-align: center;
  width: 100%;
}

.head-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.dept-head-card:hover .head-name {
  color: var(--accent-color);
}

.head-role {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  transition: color 0.3s ease;
}

.dept-head-card:hover .head-role {
  color: var(--primary-color);
}

.dept-head-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.head-label {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0,63,127,0.1), rgba(17,103,177,0.08));
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(0,63,127,0.15);
  width: fit-content;
  transition: all 0.3s ease;
}

.dept-head-card:hover .head-label {
  background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(0,63,127,0.12));
  border-color: rgba(255,193,7,0.2);
  transform: translateY(-2px);
}

.dept-description {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dept-desc-text {
  color: #4a5f7f;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  transition: color 0.3s ease;
}

.dept-head-card:hover .dept-desc-text {
  color: #2a3f5f;
}

.head-bio {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .dept-head-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }

  .dept-head-left {
    align-items: center;
  }

  .head-portrait {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .dept-head-section {
    padding: 40px 0;
  }

  .dept-head-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 24px;
    border-radius: 20px;
  }

  .dept-head-card::before {
    width: 220px;
    height: 220px;
    right: -60px;
    top: -40px;
  }

  .dept-head-card::after {
    width: 180px;
    height: 180px;
    left: -80px;
    bottom: -60px;
  }

  .head-portrait {
    width: 180px;
    height: 180px;
    border-width: 4px;
  }

  .head-name {
    font-size: 1.2rem;
  }

  .head-role {
    font-size: 0.9rem;
  }

  .dept-description {
    gap: 12px;
  }

  .dept-desc-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .dept-head-section {
    padding: 32px 0;
  }

  .dept-head-card {
    padding: 24px 16px;
    gap: 20px;
  }

  .dept-head-card::before {
    width: 150px;
    height: 150px;
    right: -50px;
    opacity: 0.5;
  }

  .dept-head-card::after {
    width: 120px;
    height: 120px;
    left: -60px;
    opacity: 0.5;
  }

  .head-portrait {
    width: 160px;
    height: 160px;
    border-width: 3px;
  }

  .head-name {
    font-size: 1rem;
  }

  .head-role {
    font-size: 0.85rem;
  }

  .head-label {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .dept-desc-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}/* Responsive adjustments */
@media (max-width: 992px){
    .management-title{font-size:1.6rem}
    .profiles-grid .top-leader{flex-direction:column;align-items:flex-start}
    .profiles-grid .top-leader .portrait{width:100%;height:auto;max-width:220px}
    .org-node.small-card{width:160px}
}


/* ===== DOCUMENTS PAGE STYLES ===== */
.docs-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 50%, var(--primary-color) 100%);
  color: white;
  padding: 90px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.docs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><circle cx="100" cy="50" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="1100" cy="80" r="60" fill="rgba(255,255,255,0.04)"/><path d="M0,64 Q300,0 600,64 T1200,64 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.08)"/></svg>');
  background-size: cover;
  pointer-events: none;
}
.docs-hero .container { position: relative; z-index: 1; }
.docs-badge {
  display: inline-block;
  background: rgba(255, 204, 51, 0.2);
  color: var(--accent-color);
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 204, 51, 0.3);
}
.docs-hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.docs-hero-subtitle { font-size: 1.2rem; opacity: 0.95; font-weight: 500; }
@media (max-width: 768px) {
  .docs-hero { padding: 70px 20px; }
  .docs-hero-title { font-size: 2rem; }
  .docs-hero-subtitle { font-size: 1rem; }
}

.docs-section { padding: 60px 20px; background: #f6f8fb; }
.docs-filters {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(30,58,138,0.06);
  margin-bottom: 32px;
  border: 1px solid rgba(30,58,138,0.04);
}
.filters-header { margin-bottom: 24px; }
.filters-title { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); margin: 0; }
/* make the header a horizontal bar with title left and reset button right */
.filters-header.d-flex { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.filters-header .filters-reset { margin-left:auto }
.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.filter-group { display: flex; flex-direction: column; }
.filter-label { font-size: 0.95rem; font-weight: 600; color: var(--primary-color); margin-bottom: 8px; }
.filter-select {
  border: 1px solid rgba(30,58,138,0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.filter-select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(255,204,51,0.1); }
.btn-filter-reset {
  background: linear-gradient(135deg, #1e3a8a, var(--accent-color));
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-end;
}
.btn-filter-reset:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,58,138,0.15); }
@media (max-width: 1024px) { .filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .filters-grid { grid-template-columns: 1fr; } .btn-filter-reset { align-self: stretch; } }
@media (max-width: 768px) {
    .filters-header.d-flex { flex-direction:column; align-items:flex-start; gap:12px }
    .filters-header .filters-reset { width:100% }
    .filters-header .filters-reset .btn-filter-reset { width:100% }
}

.docs-count {
  margin-bottom: 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}
.docs-count span { color: var(--accent-color); }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.doc-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(30,58,138,0.06);
  border: 1px solid rgba(30,58,138,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.doc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(30,58,138,0.12);
}
.doc-card-header {
    background: linear-gradient(135deg, rgba(30,58,138,0.08), rgba(17,103,177,0.06));
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid rgba(30,58,138,0.06);
    /* ensure header leaves space on the right for the new indicator */
    padding-right: 64px;
    position: relative;
}
.doc-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: white;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(30,58,138,0.08);
}
.doc-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.doc-year, .doc-type {
  display: inline-block;
  background: var(--accent-color);
  color: #1e3a8a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.doc-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.doc-title { font-size: 1.15rem; font-weight: 700; color: var(--primary-color); margin: 0 0 12px 0; }
.doc-description { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin: 0 0 auto 0; }
.doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(30,58,138,0.06);
}
.doc-date { font-size: 0.9rem; color: var(--muted); }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.doc-link:hover { color: #1e3a8a; }
@media (max-width: 768px) {
  .docs-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .doc-card-body { padding: 16px; }
  .doc-title { font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .docs-grid { grid-template-columns: 1fr; }
  .doc-card-header { flex-direction: column; }
  .doc-meta { justify-content: flex-start; margin-top: 12px; }
}

/* ===== STICKY NAVBAR COORDINATION =====
     - When both the topbar and navbar should be sticky on larger screens
     - On small screens the navbar remains static while the topbar stays sticky
*/
.sticky-navbar {
    position: sticky;
    top: var(--topbar-height, 0);
    z-index: 1050; /* above topbar but below modals */
    /* allow smooth visual transition when offset changes */
    transition: top 0.18s ease;
}

/* If there is no computed topbar height, fall back to 0 */
:root { --topbar-height: 0px; }

/* Disable navbar stickiness on small screens so only topbar remains sticky */
@media (max-width: 767.98px) {
    .sticky-navbar { position: static; top: auto; }
}


/* ===== BACK TO TOP BUTTON ===== */
.back-to-top{
    position:fixed;right:24px;bottom:28px;z-index:3000;display:inline-grid;place-items:center;
    width:52px;height:52px;border-radius:12px;border:none;cursor:pointer;opacity:0;visibility:hidden;
    transform:translateY(10px);transition:all .28s cubic-bezier(.2,.9,.2,1);
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;box-shadow:0 10px 30px rgba(3,26,64,0.16);
}
.back-to-top i{font-size:18px}
.back-to-top:focus{outline:none;box-shadow:0 6px 20px rgba(3,26,64,0.18)}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0)}

@media (max-width:480px){
  .back-to-top{right:14px;bottom:18px;width:44px;height:44px;border-radius:10px}
  .back-to-top i{font-size:16px}
}

/* ===== EVENT MODAL STYLES ===== */
.modal-fullscreen-lg .modal-content{margin:0;border-radius:0}

.event-modal-content{border-radius:12px;border:none;box-shadow:0 20px 60px rgba(3,26,64,0.12)}
.event-modal-header{background:linear-gradient(135deg,rgba(0,63,127,0.02),rgba(17,103,177,0.02));border-bottom:1px solid rgba(3,26,64,0.06);padding:24px}
.event-modal-header .modal-title{font-size:1.35rem;color:var(--primary-color)}

.event-modal-body{padding:28px;max-height:calc(100vh - 200px);overflow-y:auto}

/* Image wrapper with controlled dimensions */
.event-modal-image-wrapper{max-width:480px;margin:0 auto}
.event-modal-image{width:100%;height:auto;max-height:280px;object-fit:cover;border-radius:10px;box-shadow:0 10px 30px rgba(3,26,64,0.08)}

/* Event details styling */
.event-details{line-height:1.8}
.detail-row{display:flex;align-items:center;font-size:.95rem}
.event-description{background:rgba(0,63,127,0.02);border-left:4px solid var(--primary-color);padding:16px;border-radius:8px}

.event-modal-footer{border-top:1px solid rgba(3,26,64,0.06);padding:16px 28px;background:#fafbfe}

/* Scrollbar styling (custom for better UX) */
.event-modal-body::-webkit-scrollbar{width:8px}
.event-modal-body::-webkit-scrollbar-track{background:rgba(3,26,64,0.04);border-radius:10px}
.event-modal-body::-webkit-scrollbar-thumb{background:rgba(0,63,127,0.2);border-radius:10px}
.event-modal-body::-webkit-scrollbar-thumb:hover{background:rgba(0,63,127,0.4)}

/* Responsive tweaks */
@media (max-width: 768px){
  .event-modal-header{padding:20px}
  .event-modal-body{padding:20px;max-height:calc(100vh - 180px)}
  .event-modal-image-wrapper{max-width:100%}
  .event-modal-image{max-height:240px}
  .event-modal-footer{padding:12px 20px}
}

@media (max-width: 480px){
  .modal-fullscreen-lg .modal-dialog{margin:0;min-height:100vh}
  .event-modal-header{padding:16px}
  .event-modal-header .modal-title{font-size:1.15rem}
  .event-modal-body{padding:16px}
  .event-modal-image{max-height:200px}
}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0)}

@media (max-width:480px){
    .back-to-top{right:14px;bottom:18px;width:44px;height:44px;border-radius:10px}
    .back-to-top i{font-size:16px}
}



/* Modern document card enhancements (overrides to give a pro look) */
.docs-grid { gap: 1.25rem; }
.doc-card { border-radius: 12px; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.doc-card .doc-card-header { padding: 16px; }
.doc-card .doc-card-body { padding: 18px; }
.doc-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(2,6,23,0.10); border-color: rgba(3,26,64,0.06); }

/* compact icon */
.doc-card .doc-icon { width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg, rgba(0,63,127,0.06), rgba(17,103,177,0.04)); color: var(--primary-color); font-size:18px }

/* PDF icon inside doc-type */
.doc-type i { font-size: 14px; color: var(--primary-color); }

/* size label */
.doc-size { font-size:0.85rem; color: rgba(11,37,64,0.6); margin-left:8px }

/* new indicator */
.doc-new-indicator { position: relative; display:flex; align-items:center; gap:8px; background: transparent; padding:4px 8px; border-radius:999px; z-index:5; }
.doc-new-indicator .new-dot { width:10px; height:10px; border-radius:50%; background: #ff4d4f; box-shadow: 0 0 0 rgba(255,77,79,0.6); animation: doc-blink 1.6s infinite; display:inline-block }
.doc-new-indicator .new-label { font-size:0.78rem; color:#ff4d4f; font-weight:700; letter-spacing:0.3px; display:inline-block; animation: label-blink 1.6s infinite; }
@keyframes doc-blink { 0% { box-shadow: 0 0 0 0 rgba(255,77,79,0.9);} 70% { box-shadow: 0 0 0 8px rgba(255,77,79,0);} 100% { box-shadow: 0 0 0 0 rgba(255,77,79,0);} }
@keyframes label-blink { 0% { opacity:1 } 68% { opacity:1 } 69% { opacity:0.18 } 100% { opacity:0.18 } }

/* visible state for filtered items */
.doc-visible { animation: fadeIn 0.28s ease both; }

/* Preview modal tweaks (keeps parity with existing modal rules but ensures edge-to-edge on wide screens) */
.doc-preview-modal { display: none; align-items: flex-start; justify-content: center; padding: 1.5rem; }
.doc-preview-modal.open { display: flex; }
.doc-preview-overlay { background: rgba(7,12,20,0.6); }
.doc-preview-content { width: 100%; max-width: 1200px; border-radius: 12px; overflow: hidden; }
.doc-preview-body { height: 72vh; }
.doc-preview-iframe { width:100%; height:100%; border:0; }

/* ================== ORGANIZATIONAL CHART ================== */
.management-page { padding: 40px 0; }

.management-hero {
  background: linear-gradient(135deg, rgba(17,103,177,0.08), rgba(255,193,7,0.04));
  padding: 60px 48px;
  border-radius: 20px;
  border: 2px solid rgba(17,103,177,0.12);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(30,58,138,0.08);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.management-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,193,7,0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.management-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(17,103,177,0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.management-hero:hover {
  box-shadow: 0 18px 56px rgba(30,58,138,0.12);
  border-color: rgba(17,103,177,0.18);
}

.management-title {
  color: var(--primary-color);
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 20px;
  margin-top: 0;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  letter-spacing: -0.5px;
}

.management-title::before {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin-bottom: 16px;
  border-radius: 3px;
}

.management-lead {
  color: #5a6b7f;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Org Chart Container */
.org-chart {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(30,58,138,0.08);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(30,58,138,0.08);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.org-chart:hover {
  box-shadow: 0 20px 60px rgba(30,58,138,0.12);
}

/* Top Level (Director) */
.org-top {
  position: relative;
  padding-bottom: 40px;
}

.org-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 40px;
  background: linear-gradient(180deg, rgba(0,63,127,0.3), transparent);
}

.top-leader-node {
  background: linear-gradient(135deg, rgba(17,103,177,0.05), rgba(255,193,7,0.03));
  border: 2px solid rgba(0,63,127,0.1);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  box-shadow: 0 8px 32px rgba(30,58,138,0.1);
  position: relative;
  overflow: hidden;
}

.top-leader-node::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,193,7,0.1) 100%);
  pointer-events: none;
}

.top-leader-node:hover {
  transform: translateY(-8px);
  border-color: rgba(0,63,127,0.2);
  box-shadow: 0 16px 48px rgba(30,58,138,0.15), inset 0 1px 1px rgba(255,255,255,0.5);
}

/* Node Photos - Circular Avatars */
.node-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(17,103,177,0.2);
  box-shadow: 0 8px 24px rgba(0,63,127,0.15), inset 0 1px 2px rgba(255,255,255,0.4);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  position: relative;
  z-index: 2;
}

.top-leader-node .node-photo {
  width: 120px;
  height: 120px;
  border-width: 5px;
  border-color: var(--accent-color);
  box-shadow: 
    0 12px 36px rgba(0,63,127,0.2),
    0 0 0 3px rgba(255,193,7,0.15),
    inset 0 1px 2px rgba(255,255,255,0.5);
}

.top-leader-node .node-photo:hover {
  transform: scale(1.08) translateZ(0);
  box-shadow: 
    0 16px 48px rgba(0,63,127,0.25),
    0 0 0 8px rgba(255,193,7,0.25),
    inset 0 1px 2px rgba(255,255,255,0.5);
  filter: brightness(1.05);
}

/* Secondary Leaders */
.small-card .node-photo-sm {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0,63,127,0.15);
  box-shadow: 0 6px 20px rgba(30,58,138,0.1), inset 0 1px 1px rgba(255,255,255,0.3);
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Org Level (Secondary Leaders) */
.org-level {
  position: relative;
  padding-top: 40px;
}

.org-level::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,63,127,0.2), transparent);
}

.small-card {
  background: linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
  border: 1.5px solid rgba(0,63,127,0.08);
  border-radius: 16px;
  min-width: 220px;
  max-width: 260px;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
  box-shadow: 0 4px 16px rgba(30,58,138,0.06);
  position: relative;
  overflow: hidden;
}

.small-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.small-card:hover {
  transform: translateY(-12px) translateZ(0);
  border-color: rgba(0,63,127,0.2);
  box-shadow: 0 12px 40px rgba(30,58,138,0.15);
}

.small-card:hover::before {
  transform: scaleX(1);
}

.small-card:hover .node-photo-sm {
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 10px 28px rgba(30,58,138,0.15), inset 0 1px 1px rgba(255,255,255,0.4);
  border-color: var(--primary-color);
}

/* Node Info */
.node-info {
  flex: 1;
  z-index: 2;
  position: relative;
}

.node-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.top-leader-node .node-name {
  font-size: 1.3rem;
  color: #003f7f;
}

.node-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.node-dept {
  font-size: 0.85rem;
  color: #7a8c9e;
  transition: color 0.3s ease;
}

.small-card:hover .node-name {
  color: var(--accent-color);
}

.small-card:hover .node-role {
  color: var(--primary-color);
}

.small-card:hover .node-dept {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .management-hero {
    padding: 40px 28px;
  }

  .management-title {
    font-size: 1.8rem;
    margin-bottom: 14px;
  }

  .management-lead {
    font-size: 0.95rem;
  }

  .management-hero::before {
    width: 220px;
    height: 220px;
    right: -80px;
    top: -40px;
  }

  .management-hero::after {
    width: 180px;
    height: 180px;
    left: -80px;
    bottom: -60px;
  }

  .org-chart {
    padding: 24px !important;
  }

  .top-leader-node {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .node-photo {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }

  .top-leader-node .node-photo {
    width: 100px;
    height: 100px;
    border-width: 4px;
  }

  .node-info {
    text-align: center;
  }

  .org-level {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .small-card {
    min-width: 200px;
    max-width: 240px;
  }

  .small-card .node-photo-sm {
    width: 80px;
    height: 80px;
    border-width: 2.5px;
  }
}

@media (max-width: 480px) {
  .management-hero {
    padding: 24px;
    border-radius: 16px;
  }

  .management-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .management-title::before {
    width: 50px;
    height: 4px;
    margin-bottom: 12px;
  }

  .management-lead {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .management-hero::before {
    width: 150px;
    height: 150px;
    right: -60px;
    top: -80px;
    opacity: 0.5;
  }

  .management-hero::after {
    width: 120px;
    height: 120px;
    left: -60px;
    bottom: -80px;
    opacity: 0.5;
  }

  .org-chart {
    padding: 16px !important;
  }

  .top-leader-node {
    padding: 16px !important;
  }

  .small-card {
    padding: 12px !important;
    min-width: 180px;
    max-width: 220px;
  }

  .node-name {
    font-size: 0.95rem;
  }

  .top-leader-node .node-name {
    font-size: 1.1rem;
  }

  .node-role {
    font-size: 0.85rem;
  }

  .node-dept {
    font-size: 0.8rem;
  }

  .small-card .node-photo-sm {
    width: 70px;
    height: 70px;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 768px) {
    .doc-preview-body { height: 60vh; }
    .docs-grid { gap: 12px; }
}

/* ===== ZPC ORGANIZATION CARD (MISSION-VISION PAGE) ===== */
.zpc-organization-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,255,0.95));
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 12px 48px rgba(30,58,138,0.1);
  border: 2px solid rgba(0,63,127,0.08);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.zpc-organization-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,193,7,0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.zpc-organization-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0,63,127,0.06), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.org-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.org-icon-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,63,127,0.12), rgba(17,103,177,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 3px solid rgba(0,63,127,0.12);
  box-shadow: 0 8px 24px rgba(0,63,127,0.12);
  font-size: 42px;
  color: var(--primary-color);
  animation: fadeInScale 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.org-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.org-kicker {
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 600;
  margin: 0;
}

.org-content {
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.org-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5f7f;
  margin: 0;
  text-align: justify;
}

.org-section {
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.org-section:last-child {
  margin-bottom: 0;
}

.org-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 24px 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
}

.org-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.org-list-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0,63,127,0.04), rgba(17,103,177,0.03));
  border-radius: 14px;
  border: 1px solid rgba(0,63,127,0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
  align-items: flex-start;
}

.org-list-item.full-width {
  grid-column: 1 / -1;
}

.org-list-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0,63,127,0.16);
  background: linear-gradient(135deg, rgba(0,63,127,0.08), rgba(17,103,177,0.06));
  box-shadow: 0 8px 24px rgba(0,63,127,0.12);
}

.org-item-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,63,127,0.15);
  transition: all 0.3s ease;
}

.org-list-item:hover .org-item-number {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,63,127,0.2);
}

.org-item-text {
  color: #2a3f5f;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.org-highlight-box {
  background: linear-gradient(135deg, rgba(255,193,7,0.08), rgba(0,63,127,0.04));
  border-radius: 16px;
  padding: 28px;
  border: 2px solid rgba(255,193,7,0.15);
  position: relative;
}

.org-highlight-text {
  font-size: 1.05rem;
  /* font-weight: 700; */
  /* color: var(--primary-color); */
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.org-expertise-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.org-expertise-list li {
  padding: 12px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  color: #4a5f7f;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.org-expertise-list li:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(0,63,127,0.1);
}

.org-highlight-sub {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .zpc-organization-card {
    padding: 48px 40px;
  }

  .org-title {
    font-size: 1.7rem;
  }

  .org-list-grid {
    grid-template-columns: 1fr;
  }

  .org-list-item.full-width {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .zpc-organization-card {
    padding: 32px 24px;
  }

  .zpc-organization-card::before {
    width: 250px;
    height: 250px;
    right: -60px;
    top: -40px;
  }

  .zpc-organization-card::after {
    width: 200px;
    height: 200px;
    left: -50px;
    bottom: -50px;
  }

  .org-header {
    margin-bottom: 40px;
  }

  .org-icon-badge {
    width: 70px;
    height: 70px;
    font-size: 32px;
    margin-bottom: 16px;
  }

  .org-title {
    font-size: 1.4rem;
  }

  .org-kicker {
    font-size: 0.9rem;
  }

  .org-section {
    margin-bottom: 36px;
  }

  .org-section-title {
    font-size: 1.15rem;
  }

  .org-intro {
    font-size: 0.95rem;
  }

  .org-list-item {
    padding: 16px;
    gap: 12px;
  }

  .org-item-number {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .org-item-text {
    font-size: 0.9rem;
  }
}

/* ===== GALLERY ITEM HOVER EFFECTS ===== */
.gallery-item:hover .gallery-image {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-info {
  opacity: 1;
  transform: translateY(0);
}

  .org-expertise-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .org-expertise-list li {
    font-size: 0.9rem;
  }

  .org-highlight-box {
    padding: 20px;
  }

  .org-highlight-text {
    font-size: 0.95rem;
  }
  .org-highlight-sub {
    font-size: 0.9rem;
  }

/* ===== MANAGEMENT HERO: force full-width leads inside the section ===== */
/* Ensures management-lead paragraphs span the full content area of the management-hero
   (edge-to-edge within the section), removes paragraph max-width and extra gutters. */
.management-hero .row { margin-left: 0; margin-right: 0; }
.management-hero .col-12 { padding-left: 0; padding-right: 0; }
.management-hero .management-lead { width: 100%; max-width: none; margin: 0; padding: 0; }

