/* nav */

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9fafc;
}

/* ===============================
   🌐 Base Navbar (Desktop Default)
   =============================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a); /* Dark charcoal gradient */
  padding: 0px 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);
}

/* ✅ Logo */
/* .navbar .logo {
  display: flex;
  align-items: center;
} */
.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);
}

/* 🔗 Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin: 0;
  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: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links li a:hover {
  color: #FFD700;
  transform: scale(1.07);
}

/* ===============================
   💻 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;
  }


}

/* ===============================
   📱 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: 50px;
  }

  .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;
  }
}




/* mvc - section */
.mvc-section{
    padding:20px 5%;
    background: #f9fafc;
    text-align:left;
}

.mvc-section h2{
    font-size:38px;
    color:#0b3d91;
    margin-bottom:20px;
    text-align:center;
}

/* Grid */
.mvc-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 2fr));
    gap:30px;
}

/* 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;
    margin-bottom: 30px;
}

.mvc-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.12);
}



.mvc-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.6;
  letter-spacing: 1px;
  font-size: medium;


}

/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */
@media (max-width:414px){

/* CARD */
.mvc-section{
  top: 0%;
}
.mvc-card{
  padding:10px 20px;
  /* border-radius:16px; */
}

/* TITLE */

.mvc-card h3{
  font-size:19px;
  margin-bottom:12px;
}

/* PARAGRAPH */

.mvc-card p{
  font-size:14px;
  line-height:1.7;
}

/* CORE VALUE BOX */

.core-box{
  width:30px;
  height:30px;
  line-height:30px;
  font-size:0.95rem;
  margin-right:10px;
}

}





.ccj-section {
  margin-top: 50px;
  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 {
  /* 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: #0b3d91;
  margin-bottom: 15px;
  font-size: 50px;
  border-left: 6px solid #0b3d91;
  padding-left: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card h3 {
  color: #0b3d91;
  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: #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;
  }
}












































/* news */

.news-achievements {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  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 #111111;
  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 #111111;
  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);
}


/* Section container */
.faculty-title {
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Segoe UI', sans-serif;
}

.faculty-title h2 {
  font-size: 2.5em;
  color: #cc3300;
  margin-bottom: 10px;
}

.faculty-subtitle {
  font-size: 1.1em;
  color: #444;
  font-style: italic;
  margin-top: 0;
}

#faculty-and-staff {
  padding: 30px 20px;
  /* background: linear-gradient(to right, #fff5e5, #ffe5e5); */
   /* soft orange-red */
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

#faculty-and-staff h2 {
  font-size: 2em;
  /* color: #cc3300; */
  color: #3a3a3a;
  margin-bottom: 30px;
}

/* Grid layout */
#faculty-and-staff-data {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Individual faculty card */
.faculty-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease;
}

.faculty-card:hover {
  transform: translateY(-5px);
}

/* Faculty image */
.faculty-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.faculty-card:hover img {
  transform: scale(1.05);
}

/* Overlay info box */
.faculty-info {
  position: absolute;
  /* bottom: 0; */
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4); 
  color: white;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(100%); /* hidden below */
}

/* Show when the entire card is hovered */
.faculty-card:hover .faculty-info {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* slide up */
  bottom: -40%;
}


/* On hover, darken background slightly */
.faculty-card:hover .faculty-info {
  background: rgba(0, 0, 0, 0.6);
}

.faculty-name {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 0 5px;
}

.faculty-position {
  font-size: 1em;
  font-style: italic;
  margin: 0;
}

/* Make sure image fits nicely */
.faculty-card img {
  max-height: 320px;
  object-fit: cover;
}

.faculty-desc {
  font-size: 0.95em;
  line-height: 1.4;
}

/* Responsive for smaller devices */
@media screen and (max-width: 600px) {
  #faculty-and-staff h2 {
    font-size: 1.5em;
  }

  .faculty-info {
    padding: 15px 10px;
  }

  .faculty-name {
    font-size: 1.1em;
  }

  .faculty-desc {
    font-size: 0.9em;
  }
}






/* resources */
.resources-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px auto;
  padding: 20px;
  max-width: 50%;
}

.resource-card {
  border: 2px solid #2c2c2c;
  border-radius: 10px;
  padding: 20px;
  background-color: #fffaf5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 280px; /* grow, shrink, min-width */
  max-width: 1fr;  /* behaves like your grid columns */
}

.resource-card h2 {
  text-align: center;
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #1a1a1a;
}

.resource-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.resource-card li {
  margin: 8px 0;
  font-size: 1rem;
}

.resource-card a {
  color: #2c2c2c;
  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);
}

.two-col ul {
  display: flex;
  flex-wrap: wrap;       /* allow wrapping into rows */
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.two-col ul li {
  width: 50%;            /* two columns */
  margin: 6px 0;         /* spacing between items */
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .two-col ul li {
    width: 100%;
  }
  .resources-section{
    max-width: 100%;
  }
}



/* 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);
}