
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafc;
}



.fas.fa-bars {
  color: #fff;        /* make the icon white */
  font-size: 22px;    /* optional: adjust size */
  cursor: pointer;    /* optional: makes it clickable */
  transition: color 0.3s ease;
}

.fas.fa-bars:hover {
  color: #ffebcd;     /* optional: light cream on hover */
}

/* 🌐 Main Dropdown Menu Panel */
.menu-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  left: auto;
  width: 360px;
  max-height: 93vh; /* ✅ scrollable limit */
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: auto;
  background: #002b5b;
  display: none;
  flex-direction: column;
  overflow-y: auto;      
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.3s ease;
  z-index: 1000;
  /* ✅ Cross-browser scrollbar support */
  scrollbar-width: thin;                /* Firefox */
  scrollbar-color: rgba(255,255,255,0.08) #002b5b;     /* thumb + track colors */
}

/* When menu is shown */
.menu-panel.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  right: 0; 
}

/* 🔹 WebKit Scrollbar (Chrome, Edge, Safari) */
.menu-panel::-webkit-scrollbar {
  width: 8px;
}

.menu-panel::-webkit-scrollbar-track {
  background: #002b5b;
}

.menu-panel::-webkit-scrollbar-thumb {
  background-color: #ff5e00;
  border-radius: 4px;
  border: 2px solid #002b5b;
}

.menu-panel::-webkit-scrollbar-thumb:hover {
  background-color: #ff7f32;
}

/* 🔹 Menu List Container */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* 🔸 Top-Level Items */
.menu-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0;
}

/* 🔹 Menu Titles */
.menu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 25px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.menu-title:hover {
  background: rgba(255,255,255,0.08);
  color: #FFD700;
}

/* 🔸 Simple Links */
.menu-item > a {
  display: block;
  padding: 14px 25px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.menu-item > a:hover {
  background: rgba(255,255,255,0.08);
  color: #FFD700;
}

/* 🔻 Submenu Section */
.submenu {
  list-style: none;
  margin: 0;
  padding-left: 0;
  background: #013869;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 35px;
  font-size: 0.95rem;
  color: #e0e0e0;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  transition: 0.3s;
}

.submenu li a:hover {
  color: #FFD700;
  background: rgba(255,255,255,0.05);
}

/* Show submenu when parent has .open */
.menu-item.open .submenu {
  display: flex;
  max-height: 800px;
}

/* Small logo next to items */
.logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

/* ===============================
   🌐 Responsive Dropdown Panel
   =============================== */

/* Tablets (max 1024px) */
@media (max-width: 1024px) {
  .menu-panel {
    width: 280px;   /* narrower on tablets */
    top: 65px;
    right: 10px;
  }
}

/* Small Tablets / Large Phones (max 768px) */
@media (max-width: 768px) {
  .menu-panel {
    width: 240px;
    top: 60px;
    right: 5px;
  }
}

/* Mobile Phones (max 480px) */
@media (max-width: 480px) {
  .menu-panel {
    z-index: 1000;
    width: 100%;    /* full width on mobile */
    top: 45px;
    right: 0;
    border-radius: 0; /* optional, remove rounded corners */
  }
}


/* ===== SIDEBAR (YOUR STYLE FIXED) ===== */
.sidebar {
  position: absolute; /* important fix */
  top: 50%;
  left: 30px;
  /* transform: translateY(-50%); */

  width: 360px;
  height: auto;

  color: black;
  padding: 0 45px;
  display: flex;
  flex-direction: column;

  transition: transform 0.3s ease, left 0.3s ease;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: white;

  z-index: 999;
}

/* ===== MENU (UNCHANGED) ===== */
.sidebar-menu {
  list-style: none;
  padding: 10px;
  margin: 0;
  height: auto;
}

.sidebar-menu li {
  margin: 6px 0;
}

/* LINKS */
.sidebar-menu a {
    position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  text-decoration: none;
  color: black;
  font-size: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.sidebar-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #0b3d91;
  transition: 0.3s;
}

.sidebar-menu a:hover::after {
  width: 100%;
}

/* .sidebar-menu a:hover {
  background: rgba(68, 0, 255, 0.12);
  transform: translateX(5px);
} */

/* ✅ ACTIVE STATE */
.sidebar-menu a.active {
  /* background: rgba(11, 61, 145, 0.12); */
  color: #0b3d91;
  font-weight: 600;
}

/* ✅ KEEP UNDERLINE FULL WHEN ACTIVE */
.sidebar-menu a.active::after {
  width: 100%;
  height: 3px;
  background: #0b3d91;
}

/* ===== TOGGLE BUTTON ===== */
.sidebar-toggle {
  display: none;
  position: absolute;
  top: 48%;
  right: 15px;
  background: #0b3d91;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1;
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-toggle.hide {
  display: none;
}

/* ===== MOBILE FIX (NO CRASH) ===== */
@media (max-width: 768px) {

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    margin-top: 60px;
    transform: translateX(-110%) !important;
    height: auto;
    border-radius: 0 12px 12px 0;
    padding-top: 20px;
    transform: translateY(+50%);

  }

  .sidebar.active {
    transform: translateX(0) !important;
  }

  .sidebar-toggle {
    display: block;
  }
}



/* banner */
.banner-container {
    /* position: relative; */
  margin-top: 60px;
  width: 100%;
  height: 40vh; /* 🔥 use fixed height instead of min-height */
  display: flex;              /* 🔥 enable centering */
  align-items: center;        /* vertical center */
  justify-content: center;    /* optional: horizontal center */
  background:
    /* linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.1)), */
    url('/images/cbe-custom-administration-full-banner.png') center/cover no-repeat;

}
/* Animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bsca-section {
  /* margin-top: 10px; */
  padding: 10px;
  /* padding: 60px 10px; */
  /* background: #f4f7fb; */
  font-family: 'Segoe UI', sans-serif;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #0b3d91;
  margin-bottom: 5px;
}

.section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
  font-size: 16px;
}

/* Card Design */
/* .card {
  padding: 25px 10px;
  margin-bottom: 10px;
  border-radius: 15px;
  transition: 0.3s ease;
} */

/* CARD */
.bsca-card {
  margin-top: 20px;
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: 0.4s ease;
  
}

/* .bsca-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
} */

/* TITLE INSIDE CARD */
.bsca-card h2 {
  color: #0b3d91;
  margin-bottom: 30px;
  font-size: 40px;
  border-left: 6px solid #0b3d91;
  padding-left: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* TEXT */
.bsca-card p {
  color: #555;
  line-height: 1.8;
  font-size: 16px;
  text-align: justify;
  padding: 10px;
}

/* .card:hover {
  transform: translateY(-5px);
} */

/* Titles */

.card h2{
  color: #0b3d91;
  margin-bottom: 30px;
  font-size: 40px;
  border-left: 6px solid #0b3d91;
  padding-left: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  
}

.bsca-card h3 {
  color: #0b3d91;
  /* margin-bottom: 15px; */
  font-size: 20px;
}


.bsca-seal{
    position: relative;
    display: block;
    margin: 0 auto;
    align-items: center;
}

.bsca-poster {
    display: block;
    margin: 20px auto;
    width: 100%;      /* scales down on smaller screens */
    height: auto;
    max-width: 1050px; /* max size */
}

/* Text */
.bsca-card p {
  display: flex;              /* ✅ makes number + text align */
  align-items: flex-start;
  gap: 10px;                  /* spacing between number and text */
  text-align: justify;
  /* margin-bottom: 5px; */
  margin-left: 10px;
  line-height: 1.3;
  letter-spacing: 1px;
  font-size: 16px;
}

.core-box {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #004080;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  line-height: 30px;
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
  margin: 3px 0;
}

/* Lists */
.card ul {
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 8px;
  color: #333;
}
/* item-2 */
.card-item.item-2 ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-left: 20px;
}

.card-item.item-2 ul li {
  margin-bottom: 8px;
  color: #333;
}



@media (min-width: 768px) {
  .card-item.item-2 ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
  }
}

/* Responsive */
@media (min-width: 768px) {
  .container {
    display: grid;
    grid-template-columns: 1fr;
  }
}





/* MVC SECTION */
.mvc-section {
  padding: 40px 5%;
  background: #f9fafc;
}

/* TITLE */
.mvc-section h2 {
  font-size: 38px;
  color: #0b3d91;
  margin-bottom: 30px;
  text-align: center;
}

/* GRID */
.mvc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1100px; /* 🔥 improved from 60% */
  margin: 0 auto;
}

/* CARD */
.mvc-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: 0.4s ease;
}

.mvc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* TITLE INSIDE CARD */
.mvc-card h3 {
  color: #0b3d91;
  margin-bottom: 15px;
  font-size: 22px;
}

/* TEXT */
.mvc-card p {
  color: #555;
  line-height: 1.8;
  font-size: 16px;
  text-align: justify;
}

/* CORE BOX */
.core-box {
  display: inline-flex;
  width: 35px;
  height: 35px;
  background: #004080;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  margin-right: 12px;
}

/* =========================
   TABLET
========================= */
@media (max-width: 992px) {
  .mvc-section {
    padding: 50px 5%;
  }

  .mvc-section h2 {
    font-size: 32px;
  }

  .mvc-card {
    padding: 30px 25px;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .mvc-section h2 {
    font-size: 28px;
  }

  .mvc-grid {
    grid-template-columns: 1fr; /* 🔥 stack cards */
    gap: 15px;
  }

  .mvc-card {
    padding: 25px 20px;
  }

  .mvc-card h3 {
    font-size: 20px;
  }

  .mvc-card p {
    font-size: 15px;
  }
}

/* =========================
   SMALL PHONE (very small screens)
========================= */
@media (max-width: 414px) {
  .mvc-section {
    padding: 40px 4%;
  }

  .mvc-section h2 {
    font-size: 24px;
  }

  .mvc-card {
    padding: 20px 15px;
  }

  .mvc-card p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* script for animation */
/* .mvc-card,
.policy-card,
.card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.mvc-card.show,
.policy-card.show,
.card.show {
  opacity: 1;
  transform: translateY(0);
} */

.mvc-card,
.card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.mvc-card.show,
.card.show {
  opacity: 1;
  transform: translateY(0);
}



.poster-section {
  padding: 20px 5%;
  background: #f9fafc;
  margin-bottom: 30px;
}

/* vertical layout */
.poster-row {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* poster container */
.poster-item {
  width: 100%;
  max-width: 1100px;   /* 👈 limits big screens */
  margin: 0 auto;      /* 👈 centers */
}

/* image styling */
.poster-item img {
  margin: 0 auto;
  width: 85%;
  height: auto;
  display: block; /* removes bottom gap */
  border-radius: 14px;

  object-fit: cover;

  /* 🔥 enhancement */
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover effect */
.poster-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}



/* quality policy */
/* SECTION */
.quality-policy{
  padding: 10px 20px;
  /* background: linear-gradient(135deg,#f5f7fb,#eef2f9); */
  /* background:#f4f7ff; */
  background: #f9fafc;
  font-family: 'Poppins', sans-serif;
}

/* CONTAINER */
.policy-container{
  max-width: 1200px;
  margin: auto;
  text-align:center;
}

/* TITLE */
.policy-title{
  font-size: 40px;
  font-weight: 700;
  color:#1e3a8a;
  /* margin-bottom:10px; */
}

/* INTRO */
.policy-intro{
  max-width:1100px;
  margin:auto;
  font-size:18px;
  line-height:1.6;
  color:#444;
  margin-bottom:20px;
}

/* COMMITMENT TITLE */
.commit-title{
  font-size:26px;
  font-weight:600;
  margin-bottom:20px;
  color:#111;
}

/* GRID */
.policy-grid{
  display: grid;
  max-width: 1100px;
  margin: auto;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
}

/* CARD */
.policy-card{
  background:white;
  padding:30px;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  text-align:left;
  transition:0.3s;
  position:relative;
}

.policy-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* NUMBER BADGE */
.policy-number{
  width:45px;
  height:45px;
  border-radius:50%;
  background:#2563eb;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  margin-bottom:15px;
}

/* TEXT */
.policy-card p{
  color:#555;
  line-height:1.6;
  font-size:15px;
  text-align: justify;
}

/* FOOTER TEXT */
.policy-footer{
  margin-top:30px;
  font-size:18px;
  color:#666;
  max-width:750px;
  margin-left:auto;
  margin-right:auto;
}

/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */
@media (max-width:414px){

/* SECTION */
.quality-policy{
  padding:40px 18px;
}

/* TITLE */
.policy-title{
  font-size:28px;
  margin-bottom:15px;
}

/* INTRO TEXT */
.policy-intro{
  font-size:15px;
  line-height:1.6;
  margin-bottom:25px;
  text-align:justify;
}

/* COMMITMENT TITLE */
.commit-title{
  font-size:20px;
  margin-bottom:25px;
}

/* GRID → STACK CARDS */
.policy-grid{
  grid-template-columns:1fr;
  gap:18px;
}

/* CARD */
.policy-card{
  padding:22px;
  border-radius:12px;
}

/* NUMBER BADGE */
.policy-number{
  width:38px;
  height:38px;
  font-size:14px;
}

/* CARD TEXT */
.policy-card p{
  font-size:14px;
  line-height:1.6;
}

/* FOOTER */
.policy-footer{
  font-size:15px;
  margin-top:35px;
}

}

@media (max-width:768px){
  .policy-grid{
    grid-template-columns:repeat(1,1fr);
  }
  .policy-intro, .policy-footer{
  font-size:16px;
  line-height:1.6;
  /* margin-bottom:20px; */
  padding: 0 20px;
  text-align:justify;
}
}









/* organizational chart */

.chart-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.chart-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chart-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #ccc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.chart-image:hover { 
    transform: scale(1.02);
}


