html {
  scroll-behavior: smooth;
}
body {
  margin: 0; 
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9fafc;
}

/* ===== SIDEBAR (YOUR STYLE FIXED) ===== */
.sidebar {
  /* display: none; */

  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%);
    z-index: 9999;

  }

  .sidebar.active {
    transform: translateX(0) !important;
  }

  .sidebar-toggle {
    display: block;
    width: fit-content;
    left: 10px;
    /* margin-bottom: 40px; */
  }
}








/* 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/cas-banner.jfif') center/cover no-repeat;

}
/* Animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* MVC SECTION */
.mvc-section {
  padding: 35px 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: 18px;
  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,
.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{
  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.6;
  font-size:18px;
  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;
}
}






/* =========================
   MAIN SECTION
========================= */
.academic-container {
  width: 100%;
  max-width: 1100px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  

  margin: 40px auto;
  padding: 10px 10px 20px;
  padding-bottom: 20px;

  box-sizing: border-box;

  background: white;

  border-radius: 14px;

  overflow: hidden;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 2px 10px rgba(0,0,0,0.04);
}

/* =========================
   SECTION TITLE
========================= */
.academic-container > h2 {
  position: relative;

  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;

  text-align: center;

  color: #0b3d91;

  padding: 30px 20px 10px;

  letter-spacing: 1px;

  text-transform: uppercase;

  font-family: "Poppins", sans-serif;
}

/* .academic-container > h2::after {
  content: "";

  width: 90px;
  height: 5px;

  border-radius: 999px;

  background: linear-gradient(90deg, #1e3a8a, #2563eb);

  display: block;

  margin: 14px auto 0;
} */

/* =========================
   SWIPER
========================= */
.swiper.mySwiper2 {
  width: 100%;
  max-width: 1100px;
/* 
  height: auto; */

  position: relative;

  padding-bottom: 60px !important;
}

/* =========================
   CARD DESIGN
========================= */
.swiper-slide2 {
  width: 100%;
  border-radius: 14px;
  transition: all 0.4s ease;
}

/* =========================
   IMAGE
========================= */
.swiper-slide2 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 14px 14px 0 0;
}

/* =========================
   CONTENT
========================= */
.slide-content {
  padding: 20px 30px 0px 30px;
}

.course-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.swiper-slide2 h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #0f172a;
  margin-bottom: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.swiper-slide2 p {
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.6;
  color: #475569;
  margin-bottom: 10px;
  text-align: justify;
}

/* =========================
   BUTTON
========================= */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 28px;

  background: linear-gradient(135deg, #1e3a8a, #2563eb);

  color: white;
  text-decoration: none;

  border-radius: 12px;

  font-weight: 600;
  font-size: 0.95rem;

  transition: all 0.3s ease;
}

.site-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

/* =========================
   PAGINATION
========================= */
.swiper-pagination {
  position: relative !important;

  bottom: unset !important;
  left: unset !important;

  width: auto !important;

  display: flex;
  align-items: center;
  gap: 10px;
}

.swiper-pagination-bullet {
  width: 11px;
  height: 11px;

  background: #cbd5e1;

  opacity: 1;

  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
}

/* =========================
   NAVIGATION BUTTONS
========================= */
.swiper-button-prev,
.swiper-button-next {
  position: relative !important;

  top: unset !important;
  left: unset !important;
  right: unset !important;

  margin: 0 !important;

  width: 42px !important;
  /* height: 42px !important; */

  border-radius: 50%;

  background: #ffffff;

  border: 1px solid #dbeafe;

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  color: #1e3a8a !important;

  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white !important;

  transform: translateY(-2px);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 14px !important;
  font-weight: 700;
}

/* =========================
   CONTROLS WRAPPER
========================= */
.swiper-controls {
  position: absolute;


  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  width: fit-content;

  z-index: 20;
}

/* =========================
   LARGE LAPTOP
========================= */
@media (max-width: 1200px) {

  .academic-container,
  .swiper.mySwiper2 {
    max-width: 95%;
  }

}

/* =========================
   TABLET
========================= */
@media (max-width: 992px) {

  .swiper-slide2 img {
    height: 280px;
  }

  .slide-content {
    padding: 24px;
  }

  .swiper-slide2 p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

}

/* =========================
   SMALL TABLET
========================= */
@media (max-width: 768px) {

  .title {
    margin: 30px auto;
    letter-spacing: 1px;
  }

  .swiper.mySwiper2 {
    padding-bottom: 85px !important;
  }

  .swiper-slide2 img {
    height: 230px;
  }

  .slide-content {
    padding: 22px;
  }

  .swiper-slide2 h2 {
    margin-bottom: 14px;
  }

  .swiper-slide2 p {
    margin-bottom: 20px;
  }

  .site-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.92rem;
  }

}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {

  .academic-container {
    border-radius: 12px;
  }

  .swiper.mySwiper2 {
    padding-bottom: 80px !important;
  }

  .swiper-slide2 img {
    height: 200px;
  }

  .slide-content {
    padding: 20px;
  }

  .course-badge {
    font-size: 0.75rem;
    padding: 7px 14px;
  }

  .swiper-slide2 p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .swiper-controls {
    gap: 12px;
    bottom: 16px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 36px !important;
    height: 36px !important;
  }

  .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
  }

  .swiper-pagination-bullet-active {
    width: 24px;
  }

}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {

  .title {
    font-size: 1.8rem;
  }

  .swiper-slide2 img {
    height: 180px;
  }

  .slide-content {
    padding: 18px;
  }

  .swiper-slide2 h2 {
    font-size: 1.4rem;
  }

  .swiper-slide2 p {
    font-size: 0.9rem;
  }

  .site-btn {
    font-size: 0.9rem;
    padding: 12px 18px;
  }

}

/* =========================
   EXTRA SMALL DEVICES
========================= */
@media (max-width: 360px) {

  .swiper-slide2 img {
    height: 160px;
  }

  .slide-content {
    padding: 16px;
  }

  .swiper-controls {
    gap: 8px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 32px !important;
    height: 32px !important;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 12px !important;
  }

}






/* news */

.news-achievements {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  /* max-width: 1500px; */
  max-width: 1100px;
  margin: 30px auto;
  /* padding: 20px; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.news-achievements .column {
  flex: 1 1 45%;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}

.news-achievements h2 {
  margin-top: 0;
  font-size: 1.5em;
  border-bottom: 1px solid #f4c542;
  padding-bottom: 8px;
}

.news-achievements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each news item */
.news-achievements li {
  margin: 0;
}

/* Make the whole row a link */
.news-achievements li a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f4c542;

  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-achievements li:last-child a {
  border-bottom: none;
}

/* Hover effects on the entire row */
.news-achievements li a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* Thumbnail (fixed size) */
.news-achievements .thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
  border: 2px solid white;
  transition: transform 0.3s ease;
}

/* Image zoom on hover */
.news-achievements li a:hover .thumb {
  transform: scale(1.1);
}






/* resources */
.resources-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 20px;
}

.resource-card {
  border: 2px solid #ff5722;
  border-radius: 10px;
  padding: 20px;
  background-color: #fffaf5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #d84315;
}

.resource-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.resource-card li {
  margin: 8px 0;
  font-size: 1rem;
}

.resource-card a {
  color: #ff5722;
  text-decoration: none;
  font-weight: 500;
}

.resource-card a:hover {
  text-decoration: underline;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}




/* programs/courses */
.our-program-section {
    max-width: 1100px;
    margin: 10px auto;
    font-family: 'Segoe UI', sans-serif;
    padding: 20px;
    /* text-align: center; */
}

.our-program-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0b3d91; /* Amber Yellow */
    text-align: center;
    margin: 0 auto;
    /* border-bottom: 4px solid #F9A825;  */
    /* display: inline-block; */
    padding-bottom: 8px;
    margin-bottom:20px ;
}

.our-program-list {
    list-style: none;
    margin: 10px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 columns */
    gap: 20px; /* space between items */
}
@media (max-width: 768px) {
    .our-program-list {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

.our-program-item {
    background: white; /* Light pastel blue */
    border: 1px solid rgba(11, 60, 145, 0.25); /* Softer blue border */
    border-left: 8px solid #2563eb; /* Thicker blue left border */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.our-program-item:hover {
    background: rgba(0, 94, 255, 0.18); /* Bright yellow hover */
    transform: translateY(-3px);
}

.our-program-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0b3d91; /* Darker mustard yellow for titles */
    margin-bottom: 8px;
}

.our-program-definition {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.no-program {
    text-align: center;
    font-style: italic;
    color: #666;
}

.our-program-link {
    text-decoration: none;
    color: inherit;
}

.our-program-link:hover .our-program-name {
    text-decoration: underline;
    color: #0b3d91; /* Accent yellow */
}

.short-name {
    font-weight: normal;
    font-size: 1.1rem;
    color: #888;
}

.program-duration,
.entry-requirements {
    font-size: 1rem;
    color: #555;
    margin: 6px 0;
}

.career-list {
    margin: 6px 0;
    padding-left: 22px;
    font-size: 1rem;
    color: #333;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #0b3d91; /* Yellow link */
    font-size: 1rem;
}
/* .read-more:hover {
    text-decoration: underline;
    color: #0b3d91; 
} */






/* organizational chart */

.chart-container {
    position: relative;
    max-width: 1100px;
    margin: 30px 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);
}

@media (max-width: 768px) {

    .chart-container {
        margin-top: 60px; /* add top space on phones */
        padding: 15px;
        border-radius: 10px;
    }

    .chart-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .chart-image {
        border-radius: 8px;
    }
}