
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9fafc;
}



/* ===== 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-tourism-full-banner.png') center/cover no-repeat;

}
/* Animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* section */
.bstm-front-section{

  font-family: 'Segoe UI', sans-serif;
  padding: 35px 5%;
}

.container {
  max-width: 1100px;
  margin: auto;
}

/* CARD */
.bstm-cards {
  /* margin-top: 200px; */
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: 0.4s ease;
}

/* TITLE INSIDE CARD */
.bstm-cards h2 {
  color: #0b3d91;
  margin-bottom: 30px;
  font-size: 40px;
  /* border-bottom: 6px solid #0b3d91; */
  padding-left: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* TEXT */
.bstm-cards p {
  color: #555;
  line-height: 1.8;
  font-size: 17px;
  text-align: justify;
}




/* ===================== */
/* SECTION */
/* ===================== */
.bstm-section{
  padding:80px 5%;
}

/* ===================== */
/* CONTAINER */
/* ===================== */
.container{
  max-width:1100px;
  margin:auto;
}

/* ===================== */
/* CARD */
/* ===================== */
.bstm-card{
  background:#fff;
  padding:50px 40px;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* ===================== */
/* TITLE */
/* ===================== */
.bstm-card h2{
  text-align:center;
  font-size:42px;
  color:#0b3d91;
  margin-bottom:20px;
  letter-spacing:1px;
}

/* INTRO TEXT */
.intro{
  text-align:center;
  max-width:850px;
  margin:0 auto 30px;
  font-size:17px;
  color:#555;
  line-height:1.7;
}

/* ===================== */
/* IMAGE */
/* ===================== */
.bstm-seal{
  display:block;
  margin:30px auto;
  max-width:300px;
  width:100%;
  transition:0.3s ease;
}

.bstm-seal:hover{
  transform:scale(1.03);
}

/* ===================== */
/* CONTENT */
/* ===================== */
.content h3{
  font-size:24px;
  color:#0b3d91;
  margin-top:30px;
  margin-bottom:10px;
  border-left:4px solid #0b3d91;
  padding-left:12px;
}

.content p{
  font-size:16px;
  line-height:1.8;
  color:#555;
  text-align:justify;
  margin-bottom:10px;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media (max-width:768px){

  .bstm-card{
    padding:30px 20px;
  }

  .bstm-card h2{
    font-size:32px;
  }

  .content h3{
    font-size:20px;
  }

  .intro{
    font-size:15px;
  }
}

.bstm-poster {
    display: block;
    margin: 20px auto;
    width: 100%;      /* scales down on smaller screens */
    height: auto;
    max-width: 500px; /* max size */
}



/* 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: 17px;
  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);
}


/* quality policy */
/* SECTION */
.quality-policy{
    margin-top: 20px;
  padding: 10px 20px;
  /* background: linear-gradient(135deg,#f5f7fb,#eef2f9); */
  /* background:#f4f7ff; */
  background: #f9fafc;
  font-family: 'Poppins', sans-serif;
}

/* CONTAINER */
.policy-container{
  max-width: 1100px;
  margin:auto;
  text-align:center;
  background:white;
  padding:40px 30px;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);

}

/* TITLE */
.policy-title{
  font-size: 40px;
  font-weight: 700;
  color:#1e3a8a;
  margin-bottom:30px;
}

/* 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(2, 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.8;
  font-size: 17px;
  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);
}


