/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
font-family: "Open Sans", sans-serif;
color: #222;
  background-color: #fafafa;
  overflow-x: hidden;
}

/* ===== COLOR PALETTE ===== */
:root {
  
  /*--deep-red: #F14E2B;*/
  --bright-red: #d32f2f;
  
  --deep-red: #E21E24;
  /* --gold-yellow: #fbc02d;
  --orange-yellow: #ffa000; */

  --gold-yellow: F14E2B;
  --orange-yellow: #000000;

  --light-blue: #2196f3;
  --navy: #0d1b2a;
  --white: #ffffff;
}

/* ===== Custom Scrollbar ===== */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px; /* small width */
  height: 8px; /* horizontal scrollbar height */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* light background for track */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--bright-red); /* theme color for thumb */
  border-radius: 4px;
  border: 2px solid #f1f1f1; /* space around thumb for polished look */
  transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--deep-red); /* hover color */
}

/* Firefox */
* {
  scrollbar-width: thin; /* thin scrollbar */
  scrollbar-color: var(--bright-red) #f1f1f1; /* thumb and track */
}

/* ===== HEADER SECTION ===== */
.top-header {
  padding: 10px 0;
  background-color: rgb(247, 247, 247);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  /* border-bottom: 4px solid #c62828; */
  /*border-bottom: 4px solid var(--deep-red);*/
}

/* ðŸ”¥ Use GRID for perfect alignment */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

/* LOGOS */
.logo-area {
  display: flex;
  align-items: center;
}

.left-logo {
  justify-content: flex-start;
}

.right-logo {
  justify-content: flex-end;
}

.logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

/* CENTER CONTENT */
.college-info {
  text-align: center;
  padding: 0 10px;
}

/* TEXT STYLING */
.society-name {
  font-family: "Roboto";
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--deep-red);
  font-size: 1.8rem;
  margin: 0;
}

.college-name {
  /* font-family: "Montserrat", sans-serif; */
  font-family: "Roboto";
  font-weight: 700;
  font-size: 3rem;
  color: #222;
  margin: 5px 0;
}

.college-name.abbrev {
  display: none;
}

.tagline {
  font-family: "Roboto";
  font-size: 1.1rem;
  color: #444;
  margin: 0;
}

/* ========================= */
/* ðŸ“± TABLET RESPONSIVE */
/* ========================= */
@media (max-width: 992px) {
  .logo {
    width: 100px;
    height: 100px;
  }

  .college-name {
    font-size: 2.2rem;
  }

  .society-name {
    font-size: 1.4rem;
  }
}

/* ========================= */
/* ðŸ“± MOBILE RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {
  .header-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .logo-area {
    justify-content: center;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .college-name.full {
    display: none;
  }

  .college-name.abbrev {
    display: block;
    font-size: 1.6rem;
  }

  .society-name {
    font-size: 1.1rem;
  }

  .tagline {
    font-size: 0.9rem;
  }
}

/* ========================= */
/* ðŸ“± SMALL MOBILE */
/* ========================= */
@media (max-width: 480px) {
  .logo {
    width: 65px;
    height: 65px;
  }

  .college-name.abbrev {
    font-size: 1.3rem;
  }

  .society-name {
    font-size: 1rem;
  }
}
/* ===== NAVBAR ===== */
.navbar {
  background: var(--deep-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-container {
  width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  position: relative;
  font-family: "Open Sans", sans-serif;
  padding: 0 10px;
}

/* Remove list icons */
.nav-menu,
.nav-menu li,
.dropdown-menu,
.sub-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
    margin-left: auto;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  order: 1;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 14px 10px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu li a:hover {
  background: #FFD700;
  color: #5D0E07;
  border-radius: 4px;
  opacity: 1;
}

/* Dropdowns */
.dropdown-menu,
.sub-dropdown-menu {
  display: none;
  position: absolute;
  background: var(--bright-red);
  min-width: 250px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.dropdown:hover > .dropdown-menu,
.sub-dropdown:hover > .sub-dropdown-menu {
  display: block;
}

.dropdown-menu li a,
.sub-dropdown-menu li a {
  padding: 10px 15px;
}

.dropdown-menu li a:hover,
.sub-dropdown-menu li a:hover {
    background: #FFD700;
  color: #5D0E07;
  opacity: 1;
}

.sub-dropdown {
  position: relative;
}

.sub-dropdown-menu {
  top: 0;
  left: 100%;
}

/* ===== RESPONSIVE ===== */


@media (max-width: 1500px) {
    .nav-container{
        padding-left: 0px;
        padding-right: 0px;
        font-size: 14px;
    }
    
}
@media (max-width: 1250px) {
    .nav-container{
        padding-left: 0px;
        padding-right: 0px;
        font-size: 12px;
    }
    
}
/* Laptops & Tablets */
@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .logo-area {
    justify-content: center;
    margin-bottom: 8px;
  }

  .college-name {
    font-size: 1.5rem;
    white-space: normal;
  }

  .logo {
    width: 120px;
    height: 120px;
  }
}

/* Medium Devices / tablets & large mobiles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    
  }


.nav-container {
  justify-content: space-between;
  align-items: center;
}
  .nav-menu {
    flex-direction: column;
    width: 100%;
    order: 2;
    display: none;
    background: var(--deep-red);
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    padding: 12px 20px;
    text-align: left;
  }

  .dropdown-menu,
  .sub-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: var(--bright-red);
    width: 100%;
  }

  .dropdown.active > .dropdown-menu,
  .sub-dropdown.active > .sub-dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown-menu li a,
  .sub-dropdown-menu li a {
    padding-left: 30px;
  }

  .sub-dropdown-menu li a {
    padding-left: 40px;
  }

  .college-name {
    font-size: 1.3rem;
  }

  .logo {
    width: 100px;
    height: 100px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .college-name {
    display: none;
  }

  .college-name.abbrev {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
  }

  .society-name {
    font-size: 0.7rem;
  }

  .logo {
    display: none;
    width: 80px;
    height: 80px;
  }

  .tagline {
    font-size: 0.7rem;
  }

  .nav-menu li a {
    padding: 10px 16px;
  }
}
/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  flex-direction: row; /* ensures left → right */
  width: 100%;
  height:auto;
}

/* LEFT → SLIDESHOW (70%) */
.hero-slider {
  flex: 10;
  position: relative;
}

/* RIGHT → CONTENT (30%) */
.hero-content {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* keeps text aligned nicely */
  padding: 0px 10px;
  margin-top: 10px;
}

.cards-hero-section{
    width: 100%;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}



/* SECTION */
.leadership-section {
  width: 90%;
  max-width: 1100px;
  margin: 80px auto;
}

/* HEADER */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--deep-red);
}

.section-header p {
  color: #666;
}

/* CONTAINER */
.leadership-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ROW */
.leader-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* REVERSE (zig-zag) */
.leader-row.reverse {
  flex-direction: row-reverse;
}

.leader-img{
    width: 300px;
    height: 300px;
    border-radius: 10px;
}

/* IMAGE */
.leader-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  object-position: top; /* 👈 this fixes your issue */
}

/* TEXT */
.leader-text {
  flex: 1;
}

.leader-text h3 {
  font-size: 1.5rem;
  color: var(--deep-red);
}

.designation {
  color: #777;
  margin-bottom: 10px;
}

.leader-text p {
  color: #444;
  line-height: 1.6;
  text-align: justify;
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  background: var(--bright-red);
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn:hover {
  background: var(--deep-red);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .leader-row,
  .leader-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .leader-img img {
    width: 160px;
    height: 200px;
  }
}

/* Quick Links */
.quick-links-section {
  width: 90%;
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px 0;
}

.section-title-bar {
  width: 100%;
  /* background-color: var(--bright-red); */
  /* color: var(--white); */
  font-weight: 700;
  font-size: 1.5rem;
  padding: 15px 0;
  text-align: center;
  margin-bottom: 25px;
  border-radius: 5px;
}

/* Container */
.quick-links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* align items from left */
  gap: 20px;
}

/* Card Styling (Fixed width + Inline content) */
.quick-link-card {
  width: 23%; /* fixed width */
  background-color: var(--white);
  border-left: 5px solid var(--bright-red);
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  text-decoration: none;
  color: #333;
  padding: 18px 15px;
  display: flex;
  align-items: center; /* align icon and text in same line */
  justify-content: flex-start; /* start from left */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
  gap: 10px; /* space between icon and text */
}

/* Icon Styling */
.quick-link-card i {
  font-size: 1.6rem;
  color: var(--deep-red);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  flex-shrink: 0; /* prevent icon from resizing */
}

/* Title */
.quick-link-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-red);
  margin: 0;
  white-space: nowrap;
}

/* Hover */
.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.quick-link-card:hover i {
  color: var(--bright-red);
  transform: scale(1.1);
}

/* Fade-in Animation */
.quick-link-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .quick-link-card {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .quick-link-card {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .quick-link-card {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Footer */

.mbcl-footer {
  background: var(--deep-red);
  color: var(--white);
  font-family: "Open Sans", sans-serif;
  padding-top: 50px;
  border-top: 4px solid var(--gold-yellow);
}

/* Top Footer Layout */
.footer-container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px; /* Reduced gap between columns */
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-column {
  flex: 1 1 220px; /* Slightly smaller base width */
  min-width: 200px; /* Reduced minimum width */
  margin-bottom: 15px; /* Small spacing for stacked columns on mobile */
}

.footer-column h3 {
  /* color: var(--gold-yellow); */
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px; /* Reduced margin */
  font-size: 1.2rem;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 3px;
  /* background: var(--bright-red); */
  background: var(--white);
  border-radius: 2px;
}

.footer-column p {
  font-size: 0.95rem;
  color: #f5f5f5;
  line-height: 1.5; /* Slightly tighter line-height */
  text-align: justify;
}

/* Links List */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 6px; /* Reduced spacing */
}

.footer-column ul li a {
  color: #f5f5f5;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.footer-column ul li a:hover {
  /* color: var(--gold-yellow); */
  color: var(--white);
}

/* Contact Info Icons */
.footer-column i {
  /* color: var(--gold-yellow); */
  color: var(--white);
  margin-right: 6px; /* Slightly smaller spacing */
}

/* ===== Bottom Footer ===== */
.footer-bottom {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  padding: 12px 0; /* Reduced padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 10px; /* Tighter spacing for small screens */
}

/* Social Icons */
.footer-social a {
  color: var(--white);
  font-size: 1.1rem;
  margin-right: 10px; /* Reduced space */
  transition: 0.3s;
}

.footer-social a:hover {
  color: var(--gold-yellow);
}

/* Powered By */
.footer-powered {
  color: var(--white);
  font-weight: 500;
}

.footer-powered span a {
  /* color: var(--gold-yellow); */
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

/* Privacy Links */
.footer-legal {
  display: flex;
  gap: 10px; /* Reduced gap */
}

.footer-legal a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--gold-yellow);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .footer-column {
    flex: 1 1 45%;
  }
}

@media (max-width: 992px) {
  .footer-container {
    justify-content: center;
  }

  .footer-column {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-social {
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .footer-legal {
    font-size: 12px;
  }
}



/* ABOUT */

.about-section {
  width: 90%;
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px 0;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h3 {
  font-size: 1.8rem;
  color: var(--deep-red);
  margin-bottom: 10px;
}

.about-content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-content h3 {
    font-size: 1.5rem;
  }
}

/* DEPARTMENT & COURSES */
/* ================= DEPARTMENTS SECTION ================= */
.departments-section {
  width: 90%;
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px 0;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

/* ====== FIXED SECTION TITLE BAR (yellow underline centered properly) ====== */
.section-title-bar {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--deep-red);
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.section-title-bar::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: center;
  transition: all 0.4s ease;
}

.section-title-bar:hover::after {
  width: 120px;
}

/* ====== DEPARTMENT CARDS GRID (same as your old one) ====== */
.departments-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start; /* centers rows nicely */
}

.departments-container a {
  text-decoration: none;
}

.department-card {
  flex: 0 0 200px;   /* fixed width */
  width: 200px;      /* ensures consistency */
  background-color: var(--white);
  border-left: 5px solid var(--bright-red);
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.department-card i {
  font-size: 2rem;
  color: var(--deep-red);
  margin-bottom: 10px;
}

.department-card h3 {
  color: var(--deep-red);
  font-size: 1.1rem;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .department-card {
    flex: 0 0 calc(50% - 20px);
    width: calc(50% - 20px);
  }

  .section-title-bar {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {

  .departments-container {
    flex-direction: column;
  }

  .department-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .section-title-bar {
    font-size: 1.5rem;
  }

  .section-title-bar::after {
    width: 60px;
  }
}

/* ACHIVEMENT */

.achievements-section {
  width: 90%;
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px 0;
}

.achievements-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.achievement-card {
  flex: 1 1 calc(33% - 20px);
  min-width: 250px;
  background-color: var(--white);
  border-left: 5px solid var(--bright-red);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.achievement-card h3 {
  font-size: 1.2rem;
  color: var(--deep-red);
  margin-bottom: 10px;
}

.achievement-card p {
  font-size: 0.95rem;
  color: #333;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 992px) {
  .achievement-card {
    flex: 1 1 calc(45% - 20px);
  }
}

@media (max-width: 600px) {
  .achievement-card {
    flex: 1 1 100%;
  }
}

/* GALLERY */
/* Gallery Section */
.gallery-section {
  width: 90%;
  max-width: 1300px;
  margin: 50px auto;
}

.gallery-section .section-title-bar {
  width: 100%;
  background-color: var(--bright-red);
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  padding: 15px 0;
  text-align: center;
  margin-bottom: 25px;
  border-radius: 5px;
}

/* Carousel */
.gallery-carousel {
  position: relative;
  overflow: hidden;
}

.gallery-slides {
  display: flex;
  transition: transform 0.5s ease;
  gap: 15px;
}

.gallery-img {
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* Buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: var(--deep-red);
  border: none;
  font-size: 2rem;
  padding: 5px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.prev:hover,
.next:hover {
  background-color: white;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-img {
    width: 250px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .gallery-img {
    width: 180px;
    height: 120px;
  }
  .prev,
  .next {
    font-size: 1.5rem;
    padding: 5px 8px;
  }
}

/* CONTACT MAP */
.contact-section {
  width: 90%;
  max-width: 1300px;
  margin: 50px auto 80px auto;
  padding: 20px 0;
}

.section-title-bar {
  width: 100%;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 15px 0;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 5px;
}

/* Contact Cards Container */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

/* Contact Info Cards */
.contact-cards {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background-color: var(--white);
  border-left: 5px solid var(--bright-red);
  padding: 20px 15px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-card i {
  font-size: 2rem;
  color: var(--deep-red);
}

.contact-card h4 {
  margin: 0 0 5px 0;
  color: var(--deep-red);
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
  color: #333;
}

.contact-card p a {
  text-decoration: none;
  color: #333;
}
/* Hover Effect */
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 10px 25px;
}
.contact-card p a:hover {
  color: var(--orange-yellow);
}

/* Map Styling */
.contact-map {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-card {
    flex: 1 1 45%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .contact-card {
    flex: 1 1 100%;
    gap: 10px;
  }

  .contact-card i {
    font-size: 1.7rem;
  }
}

/* ABOUT US PAGE */
.section-about_page {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.about_page-container {
  width: 95%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  overflow: hidden;
}

/* -------------------- TEXT CONTENT -------------------- */
.about_page-content {
  flex: 1 1 55%;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.about_page-content.show {
  opacity: 1;
  transform: translateX(0);
}

.about_page-content h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  color: var(--deep-red);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

/* Underline animation */
.about_page-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
}

.about_page-content.show h2::after {
  transform: scaleX(1);
}

/* Paragraphs */
.about_page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

/* Subheadings */
.about_page-content h3 {
  font-size: 1.4rem;
  color: var(--deep-red);
  margin: 25px 0 10px;
}

/* List Styling */
.about_page-list {
  list-style-type: disc;
  margin-left: 20px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about_page-list li {
  margin-bottom: 8px;
}

/* -------------------- IMAGE SECTION -------------------- */
.about_page-image {
  flex: 1 1 40%;
  text-align: center;
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s ease;
}

.about_page-image.show {
  opacity: 1;
  transform: translateX(0);
}

.about_page-image img {
  max-width: 100%;
  height: 100vh;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s ease;
}

.about_page-image img:hover {
  transform: scale(1.03);
}

/* ================= Responsive Design ================= */
@media (max-width: 992px) {
  .about_page-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about_page-content {
    order: 1;
    transform: translateY(40px);
  }

  .about_page-image {
    order: 2;
    transform: translateY(-40px);
  }

  .about_page-content h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .about_page-content h2::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50px;
  }

  .about_page-content.show h2::after {
    transform: translateX(-50%) scaleX(1);
  }

  .about_page-content p {
    font-size: 0.95rem;
  }

  .about_page-list {
    text-align: left;
    margin-left: 30px;
  }
}

/* Mobile Devices */
@media (max-width: 600px) {
  .section-about_page {
    padding: 60px 20px;
  }

  .about_page-container {
    width: 95%;
  }

  .about_page-content h2 {
    font-size: 1.5rem;
  }

  .about_page-content h2::after {
    width: 40px;
  }

  .about_page-content p {
    font-size: 0.9rem;
  }

  .about_page-list {
    margin-left: 20px;
  }

  .about_page-image img {
    width: 100%;
  }
}

/* HISTORY PAGE */

/* ================= HISTORY PAGE ================= */
.section-history_page {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.history_page-container {
  width: 95%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.history_page-content {
  flex: 1 1 90%;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.history_page-content.show {
  opacity: 1;
  transform: translateX(0);
}

.history_page-content h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  color: var(--deep-red);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.history_page-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
}

.history_page-content.show h2::after {
  transform: scaleX(1);
}

.history_page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.history_page-content h3 {
  font-size: 1.4rem;
  color: var(--deep-red);
  margin: 30px 0 20px;
}

/* ================= INSTITUTE TREE WITH ANIMATED CARDS ================= */
.institute-tree {
  padding: 30px 0;
  margin-top: 20px;
  position: relative;
}

.tree-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tree-root::after {
  content: "";
  width: 3px;
  height: 60px;
  background: #ccc;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.institute-card {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.6s ease;
  opacity: 0;
}

.institute-card.show {
  opacity: 1;
  transform: translateX(0);
}

.main-card {
  background: var(--deep-red);
  color: #fff;
  border-color: var(--deep-red);
  opacity: 0;
  transform: translateY(40px);
}

.main-card.show {
  opacity: 1;
  transform: translateY(0);
}

.main-card h4 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.main-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.branch-card {
  background: var(--gold-yellow);
  color: #222;
  font-weight: 600;
  border-color: var(--gold-yellow);
  width: 220px;
}

/* Animation directions */
[data-animate="left"] {
  transform: translateX(-80px);
}
[data-animate="right"] {
  transform: translateX(80px);
}
[data-animate="up"] {
  transform: translateY(40px);
}
[data-animate].show {
  transform: translateX(0) translateY(0);
  opacity: 1;
}

/* Tree branches */
.tree-branches {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  margin-top: 70px;
  position: relative;
}

.tree-branches::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  border-top: 3px solid #ccc;
}

.branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.branch::before {
  content: "";
  width: 3px;
  height: 40px;
  background: #ccc;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.sub-branch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  position: relative;
}

.sub-branch::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 25px;
  background: #ccc;
}

.sub-branch .institute-card {
  width: 240px;
  font-size: 0.95rem;
}

/* Hover effect */
.institute-card:hover {
  background: #fff8e1;
  transform: scale(1.03);
  border-color: var(--gold-yellow);
}

/* Responsive */
@media (max-width: 992px) {
  .tree-branches {
    flex-direction: column;
    align-items: center;
  }

  .tree-branches::before,
  .branch::before {
    display: none;
  }

  .sub-branch {
    flex-direction: column;
    align-items: center;
  }

  .institute-card {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .section-history_page {
    padding: 60px 20px;
  }

  .history_page-content h2 {
    font-size: 1.5rem;
  }

  .history_page-content p {
    font-size: 0.9rem;
  }

  .sub-branch .institute-card {
    width: 100%;
  }
}

/* BOD Page */

/* ===== BOARD PHOTOS ===== */
.board-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.institute-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.institute-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Adjust sub-branch spacing for multiple members */
.sub-branch .institute-card {
  width: 200px;
}

/* Board of Directors */
.section-board {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.board-container {
  width: 95%;
  max-width: 1400px;
  margin: auto;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: var(--deep-red);
  margin-bottom: 50px;
  font-family: "Open Sans", sans-serif;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
}
/* ===== TREE STRUCTURE ===== */

.tree-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== PRESIDENT ===== */

.president {
  margin-bottom: 60px;
}

.president-card {
  background: #fff;
  border: 2px solid var(--deep-red);
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  width: 320px;
  transition: 0.3s ease;
  text-align: center;
}

.president-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* PRESIDENT IMAGE */
.president-card img {
  width: 100%;
  height: 280px;
  object-fit: contain; /* Show full image */
  /* background-color: #f5f5f5; Clean background if space remains */
  border-radius: 8px;
  margin-bottom: 10px;
}

.president-card h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.president-card p {
  color: var(--bright-red);
  font-weight: 600;
}

/* Remove old vertical line */
.vertical-line {
  display: none;
}

/* ===== DIRECTORS TWO COLUMN LAYOUT ===== */

.directors {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 40px 120px; /* row gap | column gap */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Remove row flex effect */
.director-row {
  display: contents;
}

/* ===== DIRECTOR CARD ===== */

.card {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--deep-red);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* DIRECTOR IMAGE */
.card img {
  width: 100%;
  height: 260px;
  object-fit: contain; /* Show full image */
  /* background-color: #f5f5f5; Prevent empty white gaps */
  border-radius: 8px;
  margin-bottom: 10px;
}

.card h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.card p {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .directors {
    gap: 30px 60px;
  }

  .president-card {
    width: 280px;
  }

  .president-card img {
    height: 240px;
  }
}

@media (max-width: 768px) {
  /* Stack into single column */
  .directors {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .card {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* PRESIDENT SPEAK */
.section-president_page {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.president_page-container {
  width: 95%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  overflow: hidden;
}

/* -------------------- TEXT CONTENT -------------------- */
.president_page-content {
  flex: 1 1 55%;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.president_page-content.show {
  opacity: 1;
  transform: translateX(0);
  padding: 0px 15px;
}

.president_page-content h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  color: var(--deep-red);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.president_page-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
}

.president_page-content.show h2::after {
  transform: scaleX(1);
}

.president-quote {
  background: #f9f9f9;
  border-left: 4px solid var(--deep-red);
  padding: 15px 20px;
  margin-bottom: 20px;
  font-style: italic;
}

.president-quote i {
  color: var(--deep-red);
  margin-right: 8px;
}

.president-quote p {
  margin: 0;
  font-size: 1.05rem;
  color: #444;
}

.president_page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

/* Signature */
.president-signature {
  width: fit-content; /* shrink to name width */
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
}

.president-signature p {
  margin: 0; /* remove default spacing */
}

.president-signature .name {
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: var(--deep-red);
  text-align: left;
}

.president-signature .designation {
  font-size: 0.95rem;
  color: #555;
  text-align: center; /* center under name */
}

/* -------------------- IMAGE SECTION -------------------- */
.president_page-image {
  flex: 1 1 40%;
  text-align: center;
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s ease;
}

.president_page-image.show {
  opacity: 1;
  transform: translateX(0);
}

.president_page-image img {
  max-width: 100%;
  /* height: auto; */
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s ease;
}

.president_page-image img:hover {
  transform: scale(1.03);
}

/* ================= Responsive Design ================= */
@media (max-width: 992px) {
  .president_page-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .president_page-content {
    order: 1;
    transform: translateY(40px);
  }

  .president_page-image {
    order: 2;
    transform: translateY(-40px);
  }

  .president_page-content h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .president_page-content h2::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50px;
  }

  .president_page-content.show h2::after {
    transform: translateX(-50%) scaleX(1);
  }

  .president_page-content p {
    font-size: 0.95rem;
  }
}

/* Mobile Devices */
@media (max-width: 600px) {
  .section-president_page {
    padding: 60px 20px;
  }

  .president_page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .president_page-content h2 {
    font-size: 1.5rem;
  }

  .president_page-content h2::after {
    width: 40px;
  }

  .president_page-content p {
    font-size: 0.9rem;
  }

  .president_page-image img {
    width: 80%;
  }
}

/* ===== PRESIDENT PHOTO INFO ===== */
.president-photo-info {
  margin-top: 12px;
  text-align: center;
}

.president-photo-info .name {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep-red);
  margin: 5px 0 2px;
}

.president-photo-info .designation {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* PRINCIAPL DESK */
.section-principal_page {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.principal_page-container {
  width: 95%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  overflow: hidden;
}

/* -------------------- TEXT CONTENT -------------------- */
.principal_page-content {
  flex: 1 1 55%;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.principal_page-content.show {
  opacity: 1;
  transform: translateX(0);
  padding: 0px 15px;
}

.principal_page-content h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  color: var(--deep-red);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.principal_page-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
}

.principal_page-content.show h2::after {
  transform: scaleX(1);
}

.principal-quote {
  background: #f9f9f9;
  border-left: 4px solid var(--deep-red);
  padding: 15px 20px;
  margin-bottom: 20px;
  position: relative;
  font-style: italic;
}

.principal-quote i {
  color: var(--deep-red);
  margin-right: 8px;
}

.principal-quote p {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

.principal_page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.principal-signature {
  width: fit-content;
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
}

.principal-signature p {
  margin: 0;
}

.principal-signature .name {
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: var(--deep-red);
  text-align: left; /* ensure left */
}

.principal-signature .designation {
  font-size: 0.95rem;
  color: #555;
  text-align: center; /* center under name */
}
/* -------------------- IMAGE SECTION -------------------- */
.principal_page-image {
  flex: 1 1 20%;
  text-align: center;
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s ease;
}

.principal_page-image.show {
  opacity: 1;
  transform: translateX(0);
}

.principal_page-image img {
  max-width: 100%;
  height: 400px;
  border-radius: 10px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); */
  transition: transform 0.5s ease;
  object-fit: cover;
}

.principal_page-image img:hover {
  transform: scale(1.03);
}

/* ================= Responsive Design ================= */
@media (max-width: 992px) {
  .principal_page-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .principal_page-content {
    order: 1;
    transform: translateY(40px);
  }

  .principal_page-image {
    order: 2;
    transform: translateY(-40px);
  }

  .principal_page-content h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .principal_page-content h2::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50px;
  }

  .principal_page-content.show h2::after {
    transform: translateX(-50%) scaleX(1);
  }

  .principal_page-content p {
    font-size: 0.95rem;
  }
}

/* Mobile Devices */
@media (max-width: 600px) {
  .section-principal_page {
    padding: 60px 20px;
  }

  .principal_page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .principal_page-content h2 {
    font-size: 1.5rem;
  }

  .principal_page-content h2::after {
    width: 40px;
  }

  .principal_page-content p {
    font-size: 0.9rem;
  }

  .principal_page-image img {
    width: 80%;
  }
}

/* ===== PRINCIPAL PHOTO INFO ===== */
.principal-photo-info {
  margin-top: 15px;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.principal-photo-info .name {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep-red);
  margin: 5px 0 2px;
}

.principal-photo-info .designation {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}
/* OFFICE PAGE */
.section-office_page {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.office_page-container {
  width: 95%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  overflow: hidden;
}

.office_page-content {
  flex: 1;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.office_page-content.show {
  opacity: 1;
  transform: translateX(0);
}

.office_page-content h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  color: var(--deep-red);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.office_page-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
}

.office_page-content.show h2::after {
  transform: scaleX(1);
}

.office_page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.office_page-staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.staff-member {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.staff-member:hover {
  transform: translateY(-10px);
}

.staff-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.staff-details .staff-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-red);
}

.staff-details .staff-designation {
  font-size: 1rem;
  color: #555;
}

@media (max-width: 992px) {
  .office_page-container {
    gap: 30px;
  }

  .office_page-staff {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .office_page-container {
    width: 100%;          /* 🔥 full width container */
    padding: 0 10px;      /* small side spacing (important) */
  }

  .office_page-staff {
    grid-template-columns: 1fr; /* one card per row */
    justify-items: center;      /* ensures proper centering */
  }

  .staff-member {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;            /* 🔥 force center alignment */
  }
}

/* COLLEGE COMITTEE */

/* ================================
   COMMITTEE PAGE STYLING
   ================================ */

.section-committee_page {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.committee_page-container {
  width: 95%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  overflow: hidden;
}

.committee_page-content {
  flex: 1;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.committee_page-content.show {
  opacity: 1;
  transform: translateX(0);
}

.committee_page-content h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  color: var(--deep-red);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.committee_page-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
}

.committee_page-content.show h2::after {
  transform: scaleX(1);
}

.committee_page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

/* Committee Grid */
.committee_page-staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.staff-member {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.staff-member:hover {
  transform: translateY(-10px);
}

.staff-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.staff-details .staff-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-red);
}

.staff-details .staff-designation {
  font-size: 1rem;
  color: #555;
}

/* Responsive */
@media (max-width: 992px) {
  .committee_page-container {
    gap: 30px;
  }

  .committee_page-staff {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section-committee_page {
    padding: 60px 20px;
  }

  .committee_page-container {
    width: 95%;
  }

  .committee_page-staff {
    grid-template-columns: 1fr;
  }

  .staff-member img {
    width: 120px;
    height: 120px;
  }
}

/* NEP Page */
/* ============================
   NEP 2020 PAGE STYLING
   ============================ */

.section_nep-page {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.nep_page-container {
  width: 95%;
  max-width: 1500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  overflow: hidden;
}

.nep_page-content {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.nep_page-content.show {
  opacity: 1;
  transform: translateX(0);
}

.nep_page-content h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 2rem;
  color: var(--deep-red);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.nep_page-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
}

.nep_page-content.show h2::after {
  transform: scaleX(1);
}

.nep_page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.nep-list {
  margin-left: 20px;
  padding-left: 10px;
}

.nep-list li {
  margin-bottom: 10px;
  color: #444;
}

/* Features Grid */
.nep_page-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.nep-feature {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.nep-feature:hover {
  transform: translateY(-10px);
}

.nep-feature i {
  font-size: 40px;
  color: var(--deep-red);
  margin-bottom: 15px;
}

.nep-feature h3 {
  font-size: 1.2rem;
  color: var(--deep-red);
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .section_nep-page {
    padding: 60px 20px;
  }

  .nep_page-features {
    grid-template-columns: 1fr;
  }
}

/* ================================
   VISION & MISSION PAGE STYLING
   ================================ */

.section-vision-mission_page {
  padding: 80px 0;
  background: #fff;
  font-family: "Open Sans", sans-serif;
}

.vision-mission_page-container {
  width: 95%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
}

.vision-mission_page-content {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease;
}

.vision-mission_page-content.show {
  opacity: 1;
  transform: translateX(0);
}

.vision-mission_page-content h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 2.2rem;
  color: var(--deep-red);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.vision-mission_page-content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
}

.vision-mission_page-content.show h2::after {
  transform: scaleX(1);
}

.vision-mission_page-content p {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

/* Vision, Mission, Objectives Cards */
.vm-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.vm-card:hover {
  transform: translateY(-8px);
}

.vm-card i {
  font-size: 36px;
  color: var(--deep-red);
  margin-bottom: 15px;
}

.vm-card h3 {
  font-size: 1.4rem;
  color: var(--deep-red);
  margin-bottom: 12px;
}

.vm-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.vm-list {
  list-style-type: disc;
  margin-left: 20px;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .vm-card {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .section-vision-mission_page {
    padding: 60px 20px;
  }

  .vm-card {
    padding: 18px;
  }
}

/* DEPARTMENT PAGES */
/* ================================
   DEPARTMENT PAGE - COMMON STYLES
   ================================ */
.department-page {
  font-family: "Open Sans", sans-serif;
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #fff;
}

.dept-header h1 {
  color: var(--deep-red);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.dept-header p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* Wrapper */
.tabs-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Tabs Navigation */
.tabs-nav {
   display: flex;
  flex-direction: column;   /* vertical */
  gap: 10px;
  padding: 0;
  border: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;              /* Chrome, Safari */
}


/* MAIN LAYOUT */
.tabs-layout {
  display: flex;
  gap: 20px;
}

/* LEFT SIDE (20%) */
.tabs-left {
  width: 20%;
  min-width: 200px;
}

/* RIGHT SIDE (80%) */
.tabs-right {
  width: 80%;
}



/* Tab items */
.tabs-nav li {
  list-style: none;
  padding: 12px 15px;
  background: #fef5e6;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
  border-left: 4px solid transparent;
}

.tabs-nav li.active {
  background: #f39c12;
  color: #fff;
}

/* Navigation Buttons */
.tab-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  background: #f39c12;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
}

/* Left button */
.tab-btn.prev {
  left: 5px;
}

/* Right button */
.tab-btn.next {
  right: 5px;
}


.tab-btn.next:hover,.tab-btn.prev:hover{
    background: black;
    color: white;
}
@media (max-width: 768px) {
  .tab-btn {
    padding: 6px 10px;
    font-size: 14px;
  }

  .tabs-nav {
    padding: 10px 35px; /* slightly smaller spacing */
  }

  .tabs-nav li {
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* Tabs Content */
.tabs-content {
  padding: 20px;
  border: 1px solid #f1c40f;
  background: #fff9f0;
  border-radius: 5px;
}

/* WRAPPER */
.tabs-scroll-wrapper {
  position: relative;
}

/* DEFAULT (DESKTOP) */
.tab-btn {
  display: none; /* hide buttons on desktop */
}

@media (max-width: 768px) {
  .tabs-layout {
    flex-direction: column;
  }

  .tabs-left,
  .tabs-right {
    width: 100%;
  }
}
/* MOBILE VIEW */
@media (max-width: 768px) {

  .tabs-nav {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    
    /* 🔥 Hide scrollbar */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE & Edge */
    padding: 10px 40px; /* space for buttons */
  }
  
  .tabs-nav::-webkit-scrollbar {
    display: none;               /* Chrome, Safari */
  }

  .tabs-nav li {
    flex: 0 0 auto;
  }

  /* SHOW BUTTONS */
  .tab-btn {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
  }

  .tab-btn.prev {
    left: 5px;
  }

  .tab-btn.next {
    right: 5px;
  }
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  color: var(--deep-red);
  margin-bottom: 15px;
}

.tab-content h3{
    padding-top: 15px;
    padding-bottom: 15px;
}

.tab-content ul {
  list-style-type: disc;
  margin-left: 20px;
  line-height: 1.7;
}

.tab-content ul li{
    padding: 10px  0px;
}
.tab-content p {
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

/* ===============================
   MOBILE SCROLLABLE TABLE FIX
   =============================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Force horizontal scroll on mobile */
@media (max-width: 768px) {
  .faculty-table {
    min-width: 800px; /* adjust if needed */
  }
}



.dept-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px;
}

.dept-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dept-img:hover {
    transform: scale(1.05);
}

/* FULLSCREEN MODAL */
#imageModal {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

/* Active state */
#imageModal.active {
    opacity: 1;
    visibility: visible;
}

/* Image */
#modalImg {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Close button */
#closeBtn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Navigation arrows */
.navBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

.faculty-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
}

.faculty-table th,
.faculty-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.faculty-table th {
  background-color: var(--deep-red);
  font-weight: bold;
}

.faculty-table tr:hover {
  background-color: #f9f9f9;
}

.photo-cell {
  text-align: center;
}

.hod-badge {
  background: #ffcc00;
  color: #000;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  margin-left: 5px;
}
.hod-row {
  background-color: #fff8e1; /* Light yellow to highlight HoD */
}

/* Faculty Table PDF Icon */
.faculty-table td a .fa-file-pdf {
  color: #d9534f; /* Bootstrap-like red for PDF */
  font-size: 18px; /* Slightly bigger for visibility */
  vertical-align: middle; /* Align with text */
  margin-right: 5px; /* Space before 'View' text */
  transition:
    transform 0.2s,
    color 0.2s; /* Smooth hover effect */
}

.faculty-table td a:hover .fa-file-pdf {
  color: #c9302c; /* Darker red on hover */
  transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Optional: Make 'View' link consistent */
.faculty-table td a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.faculty-table td a:hover {
  text-decoration: underline;
}

/* 
.hod-badge {
  background: var(--deep-red);
  color: #fff;
  padding: 3px 7px;
  font-size: 12px;
  border-radius: 4px;
  margin-left: 6px;
} */

/* Student Corner Flex Layout */
.student-corner-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  margin-top: 20px;
}
.student-corner-box {
  flex: 1 1 45%; /* Grow/shrink, default 45% width */
  min-width: 300px; /* Prevent too small on tiny screens */
}
.student-corner-box h3 {
  margin-bottom: 10px;
}

/* Faculty & Student Corner Tables */
.faculty-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.faculty-table th,
.faculty-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.faculty-table th {
  background-color: var(--deep-red);
  color: #fff;
}
.faculty-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}
.hod-row {
  background-color: #fce4ec;
}
.fa-file-pdf {
  color: var(--deep-red);
}
input[type="text"].search-box {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

/* General Link Styling */
a {
  color: #333;
  text-decoration: none;
}
a:hover {
  opacity: 0.7;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}
.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 1rem;
  color: #555;
}

/* Two Column Layout */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Left Column */
.contact-left {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Info Cards */
.info-card {
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.3s;
}
.info-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.info-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.info-card p {
  margin: 5px 0;
  font-size: 1rem;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 10px;
}
.social-links a {
  font-size: 24px;
  color: #333;
  transition: 0.3s;
}
.social-links a:hover {
  color: var(--deep-red);
}

/* Map */
.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

/* Right Column */
.contact-right {
  flex: 1 1 450px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  opacity: 0.7;
}
.contact-form button {
  padding: 12px;
  background-color: var(--deep-red);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background-color: #e82a2a;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-row {
    flex-direction: column;
  }
  .contact-left,
  .contact-right {
    flex: 1 1 100%;
  }
  .map-container iframe {
    height: 250px;
  }
}
@media (max-width: 576px) {
  .page-header h2 {
    font-size: 2rem;
  }
  .contact-form button {
    font-size: 14px;
  }
  .info-card h4 {
    font-size: 1rem;
  }
  .social-links a {
    font-size: 20px;
  }
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 30px;
}
.page-header h2 {
  font-size: 2.5rem;
}
.page-header p {
  font-size: 1rem;
  color: #555;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

#caption {
  text-align: center;
  color: #fff;
  margin-top: 10px;
  font-size: 1rem;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #bbb;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .page-header h2 {
    font-size: 2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 95vw;
    height: 85vh;
    padding: 15px;
  }
  .close {
    font-size: 28px;
    top: 8px;
    right: 12px;
  }
}

/* AISHE Gallery */
.aishe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.aishe-img {
  width: 100%;
  height: 400px;
  object-fit: fill;
  cursor: pointer;
  border-radius: 8px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.aishe-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Fullscreen Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 6px;
}

.image-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* ====== Alumni Page Styles ====== */
.alumni-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px;
}

.alumni-container h2 {
  margin-top: 20px;
}

.alumni-form {
  margin-top: 20px;
}

.alumni-form .form-row {
  margin-bottom: 15px;
}

.alumni-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.alumni-form label span {
  color: red;
}

.alumni-form input,
.alumni-form select,
.alumni-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.btn-submit {
  background: var(--deep-red);
  color: #fff;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}

.btn-submit:hover {
  background: #8e0000;
}

/* ====== Table Responsive ====== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}

.faculty-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* helps scrolling on mobile */
}

.faculty-table th,
.faculty-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.faculty-table th {
  background-color: var(--deep-red);
  color: #fff;
}

/* ====== Responsive Layout ====== */
@media (max-width: 768px) {
  .faculty-table th,
  .faculty-table td {
    padding: 8px;
    font-size: 13px;
  }

  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .alumni-container {
    padding: 10px;
  }

  .faculty-table {
    min-width: 520px;
  }

  .alumni-form input,
  .alumni-form select,
  .alumni-form textarea {
    padding: 9px 10px;
    font-size: 13px;
  }

  .btn-submit {
    padding: 12px;
    font-size: 15px;
  }
}

/* ====== TWO COLUMN GRID ====== */
.alumni-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.alumni-form-grid .form-row {
  margin-bottom: 0;
}

/* Make Submit button full width */
.alumni-form-grid .form-row:last-child {
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
  .alumni-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Facilities Page ====== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.facility-item {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-weight: 500;
}

.facilities-grid h3 {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

/* Healthy Practices Page */
.practice-list {
  margin-top: 15px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 15px;
}

.list-col {
  list-style-type: disc;
  padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Accordion */
.accordion {
  width: 100%;
  margin-top: 20px;
}

.accordion-item {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.accordion-btn {
  width: 100%;
  background: #f7f7f7;
  padding: 14px 18px;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-btn.active {
  background: #e8e8e8;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding: 10px 0;
  margin: 0;
  color: #333;
}

@media (max-width: 768px) {
  .accordion-btn {
    font-size: 14px;
  }
}

/* Notice News Events Pages */
/* ===== Notices Cards ===== */
.dept-tabs .section-title {
  margin-top: 30px;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  text-align: left;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #fff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.card p {
  margin: 0 0 12px;
  color: #555;
  line-height: 1.5;
}

.card .file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep-red);
  text-decoration: none;
  font-weight: 600;
}

.card .file-link i {
  font-size: 16px;
}

.card .file-link:hover {
  text-decoration: underline;
}

.no-data {
  text-align: center;
  color: #888;
  padding: 10px 0;
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Container for News / Notices / Events */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Individual Box (News / Notices / Events) */
.info-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Box Title */
.info-box h3 {
  color: var(--deep-red);
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid var(--deep-red);
  padding-bottom: 5px;
}

/* Cards inside the box */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Individual Card */
.info-card {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
  font-size: 16px;
  color: var(--deep-red);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.info-card a {
  color: var(--deep-red);
  text-decoration: none;
  font-weight: 500;
}

.info-card a:hover {
  text-decoration: underline;
}

.card-date {
  font-size: 12px;
  color: #555;
  display: block;
  text-align: right;
  margin-top: 5px;
}


.career-list {
    padding-left: 20px;
    line-height: 1.8;
}

.career-list li {
    margin-bottom: 10px;
}

.career-note {
    margin-top: 15px;
    font-style: italic;
    color: #555;
}



.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 12px;
    text-align: left;
    background: var(--deep-red);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.accordion-header:hover {
    background: var(--deep-red);
    opacity: 6;
}

.accordion-body {
    display: none;
    padding: 12px;
    background: #f9f9f9;
}

.accordion-item.active .accordion-body {
    display: block;
}



/* NEP Page */
/* =========================
   TPO PAGE - CLEAN DESIGN
   ========================= */

/* SECTION */
.section_tpo-page {
  padding: 80px 0;
  background: #f8f9fb;
  font-family: "Open Sans", sans-serif;
}

/* CONTAINER */
.tpo-container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ================= HERO ================= */
.tpo-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.tpo-text {
  flex: 1;
  text-align: justify;
}

.tpo-highlight-text {
  font-weight: 600;
  color: var(--deep-red);
  margin-top: 10px;
  text-align: justify;
}

.tpo-text h1 {
  font-size: 2.6rem;
  color: var(--deep-red);
  margin-bottom: 15px;
}

.tpo-text p {
  color: #444;
  line-height: 1.7;
}

/* ================= PROFILE ================= */
.tpo-profile {
  text-align: center;
}

.tpo-profile img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.tpo-profile h3 {
  color: var(--deep-red);
  margin-bottom: 5px;
}

.tpo-profile span {
  font-size: 0.9rem;
  color: #777;
}

/* ================= SECTION TITLE ================= */
.tpo-section h2 {
  color: var(--deep-red);
  margin-bottom: 25px;
  font-size: 1.8rem;
  position: relative;
}

/* underline effect */
.tpo-section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--gold-yellow);
  display: block;
  margin-top: 8px;
  border-radius: 2px;
}

/* ================= GRID (CARDS) ================= */
.tpo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* CARD */
.tpo-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s;
  border-top: 4px solid var(--deep-red);
}

.tpo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.tpo-card i {
  font-size: 28px;
  color: var(--deep-red);
  margin-bottom: 12px;
}

.tpo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #222;
}

.tpo-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ================= SLIDER ================= */
.tpo-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* WRAPPER */
.tpo-slider-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

/* TRACK */
.tpo-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* SLIDE */
.tpo-slide {
  width: 200px;
  height: 140px; /* better for logos (not square) */
  margin: 0 10px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(0,0,0,0.08);
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.tpo-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* LOGO */
.tpo-slide img {
  width: 90%;
  height: 70px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: 0.3s;
}

.tpo-slide:hover img {
  filter: grayscale(100%);
  transform: scale(1.05);
}

/* BUTTONS */
.tpo-btn {
  background: #fff;
  color: var(--deep-red);
  border: 1px solid #ddd;
  font-size: 18px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.tpo-btn:hover {
  background: var(--deep-red);
  color: #fff;
  transform: scale(1.1);
}

/* ================= STATS ================= */
.tpo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: center;
}

.tpo-stat-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s;
  border-top: 4px solid var(--deep-red);
}

.tpo-stat-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.tpo-stat-box i {
  font-size: 30px;
  color: var(--deep-red);
  margin-bottom: 10px;
}

.tpo-stat-box h3 {
  font-size: 2rem;
  color: var(--deep-red);
  margin-bottom: 5px;
}

.tpo-stat-box p {
  color: #555;
  font-size: 0.95rem;
}
.tpo-stats div {
  flex: 1;
  min-width: 180px;
}

.tpo-stats h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .tpo-hero {
    flex-direction: column;
    text-align: center;
  }

  .tpo-text h1 {
    font-size: 2rem;
  }

  .tpo-stats {
    flex-direction: column;
  }

  .tpo-slide {
    min-width: 150px;
    height: 85px;
  }

  .tpo-slide img {
    max-width: 90px;
  }

  .tpo-btn {
    width: 36px;
    height: 36px;
  }
}

/* =========================================
   ANNOUNCEMENT BAR
========================================= */

.main_announcement {
  width: 100%;
  background: var(--deep-red, #8b0000);
  color: #fff;
  overflow: hidden;
  padding: 7px 0;
  box-sizing: border-box;
}

/* Wrapper */
.main_announcement-wrapper {
  display: flex;
  align-items: center;   /* vertical center */
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Label */
.main_label {
  color: white;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  height: 100%;
}

/* Marquee area */
.main_marquee {
  flex: 1;
  overflow: hidden;
  position: relative;

  display: flex;
  align-items: center;
}

/* Moving track */
.main_marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  white-space: nowrap;

  animation: scroll-left 25s linear infinite;
}

/* Each item */
.update-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Text */
.update-text {
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
}

/* Download icon */
.update-file {
  color: #fff;
  text-decoration: none;
  font-size: 14px;

  display: flex;
  align-items: center;
}


/* =========================================
   ANIMATION
========================================= */

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover */
.main_marquee:hover .main_marquee-track {
  animation-play-state: paused;
}

/* =========================================
   RESPONSIVE
========================================= */

/* Tablet */
@media (max-width: 768px) {

  .main_announcement {
    padding: 10px 0;
  }

  .main_announcement-wrapper {
    gap: 10px;
    padding: 0 10px;
  }

  .main_label {
    font-size: 14px;
  }

  .update-text,
  .update-file {
    font-size: 13px;
  }

  .main_marquee-track {
    gap: 35px;
    animation-duration: 30s;
  }
}

/* Mobile */
@media (max-width: 480px) {

  .main_announcement-wrapper {
    gap: 8px;
  }

  .main_label {
    font-size: 13px;
  }

  .update-text,
  .update-file {
    font-size: 12px;
  }

  .main_marquee-track {
    gap: 25px;
    animation-duration: 35s;
  }
}



/* =========================================
   MAIN LAYOUT
========================================= */

.hero-main-section {
  width: 100%;
  display: flex;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
  align-items: stretch;
}

/* =========================================
   LEFT + RIGHT PANELS
========================================= */

.side-update-card {
  width: 20%;
  background: #fff;
  color: black;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
}

/* Heading */
.update-heading {
  margin: 0;
  padding: 7px 10px;
  background: var(--deep-red, #8b0000);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/* Marquee */
.vertical-marquee {
  height: 50vh;
  padding: 10px;
}

/* =========================================
   SLIDER
========================================= */

.hero-slider {
  width: 60%;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  border-radius: 10px;
}

/* Slides container */
.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s ease-in-out;
}

/* Active slide */
.slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

/* Slide image */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   UPDATE ROW
========================================= */

.update-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;

  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

/* Text */
.update-text {
  font-size: 14px;
  color: white;
  line-height: 1.5;
}

/* Download */
.update-file a {
  color: var(--deep-red, #8b0000);
  font-size: 16px;
}

.no-data {
  padding: 15px;
  font-size: 14px;
}

/* =========================================
   SLIDER BUTTONS
========================================= */

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;

  padding: 10px 15px;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.prev:hover,
.next:hover {
  background: rgba(0,0,0,0.7);
}

/* =========================================
   RESPONSIVE
========================================= */

/* Tablet */
@media (max-width: 992px) {

  .hero-main-section {
    flex-direction: column;
  }

  .side-update-card,
  .hero-slider {
    width: 100%;
  }

  .slideshow,
  .vertical-marquee {
    height: 400px;
  }
}

/* Mobile */
@media (max-width: 600px) {

  .hero-main-section {
    padding: 10px;
    gap: 15px;
  }

  .slideshow,
  .vertical-marquee {
    height: 300px;
  }

  .update-heading {
    font-size: 12px;
  }

  .update-text {
    font-size: 13px;
  }

  .prev,
  .next {
    font-size: 1.3rem;
    padding: 8px 12px;
  }
}



/* =========================================
   LARGE DESKTOP
   1440px and above
========================================= */
@media (min-width: 1440px) {
    *{
        font-size: 12px;
    }
}


/* =========================================
   NORMAL DESKTOP / LAPTOP
   1200px to 1439px
========================================= */
@media (max-width: 1439px) {
    *{
        font-size: 12px;
    }
    
    .logo{
        width: 100px;
        height: 100px;
    }
}


/* =========================================
   SMALL LAPTOP
   992px to 1199px
========================================= */
@media (max-width: 1199px) {
    *{
        font-size: 12px;
    }
}


/* =========================================
   TABLET
   768px to 991px
========================================= */
@media (max-width: 991px) {
    *{
        font-size: 12px;
    }
}


