
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9fafc;
}

/* nav */

.navbar { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2E7D32;
  padding: 0 40px;
  font-family: 'Segoe UI', sans-serif;
  height: 70px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.navbar .logo img {
  height: 42px;
  position: absolute;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  top: 20%;
}

/* ✅ Menu Button (☰) */
.menu-button {
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}
.menu-button:hover {
  color: #FFD700;
  transform: scale(1.1);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin: 0; /* centers the nav links between logos */
  padding: 0;
}

.nav-links li {
  position: relative; /* Needed for tooltip positioning */
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links li a:hover {
  color: #FFD700;
  transform: scale(1.1);

}


/* ===============================
   💻 Small Desktop / Laptop
   =============================== */
@media (max-width: 1280px) {
  .navbar {
    padding: 10px 30px;
    height: 60px;
  }
  .navbar .logo img {
    height: 38px;
  }
  .menu-button {
    font-size: 1.7rem;
  }
  .nav-links {
    gap: 30px;
  }
}

/* ===============================
   📱 Tablets (Landscape / Portrait)
   =============================== */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 20px;
    height: 55px;
  }

  .navbar .logo img {
    height: 34px;
  }

  .nav-links {
    gap: 20px;
  }

  /* Hide text on tablets and smaller */
  .nav-links .link-text {
    display: none;
  }

  .nav-links i {
    font-size: 1.6rem;
  }

  /* Tooltip for small screens */
  .nav-links li a::after {
    content: attr(title);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }
  .nav-links li a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
  }
}

/* ===============================
   📱 Small Tablets / Large Phones
   =============================== */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 15px;
    height: 50px;
  }

  .navbar .logo img {
    height: 30px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links i {
    font-size: 1.5rem;
  }

  .menu-button {
    font-size: 1.5rem;
  }
}

/* ===============================
   📞 Mobile Phones
   =============================== */
@media (max-width: 480px) {
  .navbar {
    padding: 6px 10px;
    height: 45px;
  }

  .navbar .logo img {
    height: 26px;
  }

  .nav-links {
    margin-left: 20px;
    gap: 12px;
  }

  .nav-links i {
    font-size: 1.3rem;
  }

  .menu-button {
    font-size: 1.4rem;
  }
}

/* ===============================
   💻 Desktop Visibility Rules
   =============================== */
@media (min-width: 1025px) {
  .nav-links .link-text {
    display: inline;
  }
  .nav-links i {
    display: inline;
  }
}



.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 */
  }
}


/*endregion  */
.index--section {
  width: 100%; 
  position: relative;
  z-index: 1;
} 
 
/* .welcome-section{
  margin-top: 10px;
} */
/* Make Swiper full width and center aligned */
.mySwiper {
  margin-top: 70px;
  width: 100%;
  /* height: 350px; */
  height: calc(45vh - 70px);
  overflow: hidden;
  border-radius: 0 !important;
}

/* Style each slide */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa; /* Light gray or any color you prefer */
}

/* Image inside slides */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-fit: contain; */
  border-radius: 0 !important;
}

/* Pagination bullets */
.swiper-pagination-bullet {
  background: #999;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #007bff;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  /* color: #007bff; */
  color: white;
  font-weight: bold;
  transition: transform 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .mySwiper{
    margin-top: 45px;
  }
}



/* cbe section */
.cas-section {
  margin-top: 50px;
  padding: 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 {
  /* background: #ffffff; */
  padding: 25px 10px;
  margin-bottom: 10px;
  border-radius: 15px;
  /* box-shadow: 0 6px 20px rgba(0,0,0,0.08); */
  transition: 0.3s ease;
}

/* .card:hover {
  transform: translateY(-5px);
} */

/* Titles */

.card h2{
  color: #4caf50;
  margin-bottom: 15px;
  font-size: 50px;
  border-left: 6px solid #4caf50;
  padding-left: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card h3 {
  color: #4caf50;
  margin-bottom: 15px;
  font-size: 30px;
}

/* Text */
.card p {
  display: flex;              /* ✅ makes number + text align */
  align-items: flex-start;
  gap: 10px;                  /* spacing between number and text */
  text-align: justify;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 1px;
  font-size: 16px;
}

.core-box {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #4caf50;
  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;
  }
}






/* 🌟 Modern Responsive Title */
.title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 3rem); /* 🔥 Responsive font scaling */
  font-weight: 700;
  color: #0b3d91;
  margin: clamp(20px, 5vw, 40px) auto;
  position: relative;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #2E7D32, #81c784);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 0.8s ease-in-out;
  line-height: 1.2;
  padding: 0 10px; /* 🧠 prevents text from touching edges on mobile */
}

.title::after {
  content: "";
  position: absolute;
  width: clamp(60px, 15vw, 90px); /* 🔥 scales with screen size */
  height: 4px;
  background: linear-gradient(90deg, #2E7D32, #81c784);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🧩 Optional: Add spacing adjustments for smaller screens */
@media (max-width: 600px) {
  .title {
    margin-top: 20px;
    letter-spacing: 1px;
  }
}


/* academic courses swiper */
.academic-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 5%;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  height: auto;
  min-height: fit-content ;
  box-sizing: border-box;
  margin-bottom: 5px;
  transition: all 0.4s ease-in-out;
  z-index: 0;
}

/* 📱 Responsive layout for smaller screens */
@media (max-width: 992px) {
  .academic-container {
    padding: 20px 8%;
  }
}

@media (max-width: 768px) {
  .academic-container {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
  }
}

/* Sidebar Styling */
.academic-sidebar {
  width: 350px;
}

.academic-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.academic-sidebar li {
  background-color:#2E7D32 ; /* Soft mint green */
  /* color: #2f4f4f;  */
  color: white; /* Dark green-gray text */
  padding: 15px 20px;
  margin-bottom: 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.academic-sidebar li.active,
.academic-sidebar li:hover {
  background-color:#81c784; /* Medium muted green for hover */
  color: black;
  transition: 0.3s ease-in-out;
  /* font-weight: initial; */
}

/* Swiper Content Styling */
.swiper.mySwiper2 {
  width: 70%;
  height: auto;
}

.swiper-slide2 {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow */
}


.swiper-slide2 img {
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 12px !important; 
  border-top-right-radius: 12px !important; 
}

.swiper-slide2 h2 {
  margin-top: 20px;
  font-size: 2rem;
  margin-bottom: 10px;
  padding: 0 15px ;
  color: #66bb6a; /* Pleasant green for headings */
  text-align: justify;
}

.swiper-slide2 p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  padding: 0 30px 20px;
  text-align: justify;

}

.site-btn {
  display: inline-block;
  margin-left: 30px;
  margin-bottom: 30px;
  padding: 10px 25px;
  font-size: 16px;
  background-color: #66bb6a; /* Main button green */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.site-btn:hover {
  background-color: #4caf50; /* Slightly darker green on hover */
}

.academic-container {
  position: relative; /* relative container for absolute button */
}
/* Toggle Button */
.sidebar-toggle {
  display: none; /* hidden on desktop */
  position: absolute;
  top: 3px; /* distance from top of slide */
  left: 2%;
  z-index: 10;
  background-color: #66bb6a;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

/* ==========================
   Sidebar as Collapsible Nav
   ========================== */

/* Responsive for tablets */
/* Tablets */
@media (max-width: 1024px) {
  .academic-container {
    padding: 20px 40px;
    flex-direction: column;
    align-items: center;
  }

  .academic-sidebar {
    display: none; /* hide sidebar */
    width: 100%;
    max-width: 300px;
  }

  .academic-sidebar.show {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
  }

  .swiper.mySwiper2 {
    width: 100%;
  }

  .swiper-slide2 img {
    width: 100%;
    height: auto;
    /* max-height: 400px; keeps proportion on tablets */
     height: clamp(200px, 40vw, 350px); /* 🔥 responsive height */
    object-fit: cover; 
    border-radius: 10px; /* optional, makes it look neat */
  }

  .sidebar-toggle {
    display: block;
  }
}

/* Phones */
@media (max-width: 600px) {
  .academic-container {
    padding: 15px;
    /* top: 150px; */
    /* position: relative; */
  }

  .academic-sidebar li {
    font-size: 0.9rem;
    padding: 15px 10px;
  }

   /* .swiper.mySwiper2 {
    width: 100%;
  } */
  .swiper-slide2 h2 {
  font-size: 1rem;
  width: 100%;
  text-align: left;
  padding-left: 15px;
  /* background-color: red; */
  }


  .swiper-slide2 p {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  .site-btn {
    margin-left: 15px;
    padding: 8px 15px;
    font-size: 0.8rem;
  }

  .sidebar-toggle {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .swiper-slide2 img {
    width: 100%;
    height: auto;
    max-height: 250px; /* fits small phones */
    object-fit: cover; /* crops neatly if too tall */
    border-radius: 8px;
  }
}






/* news - green theme */
/* news */

.news-achievements {
    display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  /* max-width: 1500px; */
  max-width: 1000px;
  margin: 0 auto;
  /* padding: 20px; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  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 #a5d6a7;
  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 #ff5722;
  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 - green theme */
.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 #a5d6a7; /* Soft green border */
  border-radius: 10px;
  padding: 20px;
  background-color: #f1f8f4; /* Light mint background */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #66bb6a; /* Pleasant green for headings */
}

.resource-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.resource-card li {
  margin: 8px 0;
  font-size: 1rem;
}

.resource-card a {
  color: #43a047; /* Green for links */
  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 */

.our-program-section {
    max-width: 1400px;
    margin: 10px auto;
    font-family: 'Segoe UI', sans-serif;
    padding: 20px;
}

.our-program-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2E7D32; /* Forest Green */
    text-align: center;
    margin: 0 auto;
    border-bottom: 4px solid #2E7D32; /* Green underline */
    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);
    gap: 20px;
}

@media (max-width: 768px) {
    .our-program-list {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

.our-program-item {
    background: #F1F8E9; /* Soft green background */
    border: 1px solid #C8E6C9; /* Light green border */
    border-left: 8px solid #2E7D32; /* Thicker green left border */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.our-program-item:hover {
    background: #A5D6A7; /* Softer green hover */
    transform: translateY(-3px);
}

.our-program-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1B5E20; /* Darker green 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: #2E7D32; /* Accent green */
}

.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: #2E7D32; /* Green link */
    font-size: 1rem;
}





/* 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);
}