/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #003d66;
  --secondary: #ef7c00;
  --border-soft: #d6e0ea;
  --bg-mega: #f7f9fc;
  --bg-section: #f7f9fc;
  --text-scale: 1;
}

html,
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #1f2937;
  background: var(--bg-section);
  font-size: calc(1em * var(--text-scale));
  transition: font-size 0.1s;
}

/* =====================================================
   MASTER STICKY HEADER
===================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #fff;
}

body {
  scroll-padding-top: 170px;
}

/* =====================================================
   PREHEADER
===================================================== */
.preheader {
  height: 26px;
  padding: 2px;
}

.preheader .btn {
  font-size: 0.6rem;
  padding: 2px 6px;
}

/* =====================================================
   IDENTITY BAR
===================================================== */
.identity-bar {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
}

.brand-text {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-text-hindi {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}


.brand-text span {
  font-size: 1.4rem;
}

.brand-text-hindi span {
  font-size: 1.4rem;
}
/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
}

.navbar-nav {
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  color: #000;
  border-bottom: 3px solid transparent;
  padding: 0.5rem 0;
  cursor: pointer;
}

.nav-item:hover > .nav-link,
.nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.dropdown-toggle::after {
  display: none !important;
}

/* --------------------------------------------------------------MEGA MENU STARTS HERE---------------------------------------------------------------------------------- */
/* =====================================================
   MEGA MENU – FIXED COLUMN LAYOUT (NO WRAP)
===================================================== */

/* Hidden by default */
.dropdown-menu.mega-menu {
  display: none;
}

/* Desktop hover */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu.mega-menu {
    display: flex;
  }
}

/* =====================================================
   MEGA MENU CONTAINER
===================================================== */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;            /* CRITICAL FIX */
  align-items: flex-start;

  gap: 1.5rem;

  padding: 1rem 1.2rem;

  background: var(--bg-mega);
  border: 1px solid var(--border-soft);
  border-radius: 8px;

  max-width: 95vw;
  overflow-x: hidden;             /* graceful fallback */
  overflow-y: hidden;

  z-index: 1300;
}


/* =====================================================
   MEGA MENU COLUMNS
===================================================== */

.mega-menu > div {
  flex: 0 0 210px;               /* fixed column width */
  min-width: 210px;

  padding: 0.6rem;
  border-radius: 6px;

  transition: background-color 0.2s ease;
}

.mega-menu > div:hover {
  background: rgba(0, 61, 102, 0.04);
}

/* =====================================================
   COLUMN HEADERS
===================================================== */

.menu-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);

  margin-bottom: 0.45rem;
  padding-bottom: 0.25rem;

  border-bottom: 1px solid var(--border-soft);
}

/* =====================================================
   LINK ITEMS
===================================================== */

.mega-menu .dropdown-item {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;

  color: #000;
  background: transparent;

  border-left: 3px solid transparent;

  transition:
    color 0.15s ease,
    border-left-color 0.15s ease,
    padding-left 0.15s ease;
}

.mega-menu .dropdown-item:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 0.95rem;
}

/* =====================================================
   NAV LINK ACTIVE / OPEN INDICATOR
===================================================== */

.nav-item.dropdown:hover > .nav-link {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

/* =====================================================
   DROPDOWN OFFSET 
===================================================== */

@media (min-width: 992px) {
  .navbar-nav > .nav-item .mega-menu {
    margin-left: -125px;
  }
}

/* =====================================================
   UNIFIED DROPDOWN LOOK (MEGA + NORMAL)
===================================================== */

/* Desktop hover behavior for ALL dropdowns */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* =====================================================
   NORMAL DROPDOWN → MEGA LOOK
===================================================== */

.nav-item.dropdown:not(:has(.mega-menu)) > .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 260px;

  padding: 0.75rem 0.5rem;
  background: var(--bg-mega);
  border: 1px solid var(--border-soft);
  border-radius: 8px;

  box-shadow: none;
  z-index: 1300;
}

/* =====================================================
   NORMAL DROPDOWN ITEMS — SAME AS MEGA
===================================================== */

.nav-item.dropdown:not(:has(.mega-menu)) .dropdown-item {
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;

  border-left: 3px solid transparent;
  background: transparent;

  transition:
    color 0.15s ease,
    border-left-color 0.15s ease,
    padding-left 0.15s ease;
}

.nav-item.dropdown:not(:has(.mega-menu)) .dropdown-item:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 1.05rem;
}

/* =====================================================
   ACTIVE / OPEN INDICATOR — CONSISTENT
===================================================== */

.nav-item.dropdown:hover > .nav-link,
.nav-item.dropdown.show > .nav-link {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* =====================================================
   Mobile Menu Slider
===================================================== */

@media (max-width:991px){

  .identity-bar{
    padding:14px 0;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    position:relative;
    z-index:1100;
  }

  .mobile-logo{height:56px}

  .brand-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
    font-size:1.1rem;
    line-height:1.3;
  }

  .brand-text span{font-size:.95rem}

  .animated-toggler{
    width:26px;height:18px;
    background:none;border:none;position:relative;
  }

  .animated-toggler span{
    position:absolute;left:0;width:100%;height:3px;
    background:#fff;border-radius:4px;
    transition:.35s cubic-bezier(.4,0,.2,1);
  }

  .animated-toggler span:nth-child(1){top:0}
  .animated-toggler span:nth-child(2){top:7.5px}
  .animated-toggler span:nth-child(3){top:15px}

  .animated-toggler.active span:nth-child(1){
    top:7.5px;transform:rotate(45deg)
  }
  .animated-toggler.active span:nth-child(2){opacity:0}
  .animated-toggler.active span:nth-child(3){
    top:7.5px;transform:rotate(-45deg)
  }

  #mainNav{display:none!important}
}

/* =====================================================
   MOBILE SLIDE MENU (3 LAYERS STRUCTURE)
===================================================== */
@media (max-width:991px){

  .mobile-overlay{
    position:fixed;inset:0;
    background:rgba(0,0,0,.45);
    display:none;z-index:1040;
  }

  .mobile-menu{
    position:fixed;right:0;
    width:100%;max-width:360px;
    background:#fff;
    transform:translateX(100%);
    transition:.4s cubic-bezier(.4,0,.2,1);
    display:none;z-index:1050;
    display:flex;flex-direction:column;
  }

  .mobile-menu.open{transform:translateX(0)}

  /* Sticky slider header */
  .mobile-header{
    position:sticky;top:0;
    display:flex;align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    background:#f8fafc;
    border-bottom:1px solid #e5e7eb;
    font-weight:600;
    z-index:10;
  }

  .mobile-header button{
    background:none;border:none;
    font-size:20px;
  }

  /* Panels */
  .mobile-panels{
    flex:1;position:relative;overflow:hidden;
  }

  .mobile-panel{
    position:absolute;inset:0;
    background:#fff;
    transform:translateX(100%);
    transition:.4s cubic-bezier(.4,0,.2,1);
    overflow-y:auto;
    scrollbar-width:none;
  }

  .mobile-panel::-webkit-scrollbar{display:none}

  .mobile-panel.active{transform:translateX(0)}

  .mobile-list{list-style:none;margin:0;padding:0}

  .mobile-list li{
    padding:15px 18px;
    border-bottom:1px solid #f1f5f9;
    font-size:15px;
    cursor:pointer;
  }

  .mobile-list li a{
    color:#1f2937;text-decoration:none;display:block;
  }

  /* Submenu headers */
  .mobile-subheader{
    font-weight:600;
    background:#f8fafc;
  }
  
 .navbar {
  --bs-navbar-padding-y: 0 !important;
  }
}



@media (min-width: 992px) {
  .mobile-menu,
  .mobile-overlay,
  .mobile-header,
  .mobile-panels {
    display: none !important;
  }
  /* On tap or press */
  .mobile-list li:active {
    background-color: rgba(0, 61, 124, 0.08); /* subtle brand tint */
    transform: scale(0.985);
  }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------- */


/* =====================================================
   IMPORTANT ANNOUNCEMENTS BAR
===================================================== */
.important-bar {
  background: #fff6f6;
  border-bottom: 1px solid #fecaca;
  min-height: 2.0rem;
}

.important-layout {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.important-label {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.15rem;
  border-radius: 3px;
}

  /* Loudspeaker icon */
  .important-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;         /* slightly prominent */
    line-height: 1;
    flex-shrink: 0;
	margin-left: 5%;
  }
  

.important-list a {
  font-weight: 500;
  color: #7f1d1d;
  text-decoration: none;
}

@media (max-width: 768px) {

  .important-bar {
    background: #fff6f6;
    border-bottom: 1px solid #fecaca;
    min-height: 3.2rem;        /* taller than content */
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
  }

  .important-layout {
    display: flex;
    align-items: center;       /* vertical centering */
    gap: 0.75rem;
    width: 100%;
  }

  /* Loudspeaker icon */
  .important-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0rem;         /* slightly prominent */
    line-height: 1;
    flex-shrink: 0;
	margin-left: 0;
  }
  
  

  /* Text area */
  .important-list {
    flex: 1;
  }

  .important-list a {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: #7f1d1d;
    line-height: 1.4;

    /* wrap safely */
    white-space: normal;
    word-break: break-word;
    text-decoration: none;
  }

  /* Dismiss button */
  .important-dismiss {
    background: none;
    border: none;
    font-size: 0.9rem;
    line-height: 1;
    color: #7f1d1d;
    padding: 0.3rem;
    flex-shrink: 0;
    cursor: pointer;
  }

  .important-dismiss:active {
    transform: scale(0.9);
  }
}
/* =====================================================
   MARQUEE Scroller
===================================================== */
.scroller-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-soft);
  padding: 0.6rem 0;
}

.gigw-scroller {
  overflow: hidden;
  white-space: nowrap;
  margin: 0 5% 0 5%;
}

.gigw-track {
  display: inline-flex;
  gap: 2.2rem;
  animation: gigw-scroll 15s linear infinite;
}

.gigw-track a {
  font-size: 0.9rem;
  font-weight: 700;
  color: #003366;
  text-decoration: none;
}

@keyframes gigw-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pause marquee on hover */
.gigw-scroller:hover .gigw-track,
.gigw-track:hover {
  animation-play-state: paused;
}

@media (max-width: 991px) {
.gigw-track {
  display: inline-flex;
  gap: 2.2rem;
  animation: gigw-scroll 5s linear infinite;
	}
}
/* =========================
   HERO CAROUSEL (SAFE PEEK)
   ========================= */

.hero-carousel {
  position: relative;
  max-height: 450px;
  overflow: hidden;
  margin-bottom: 2.5rem; /* keeps layout correct */
  z-index: 1;
}

/* Images */
.hero-carousel .carousel-item img {
  height: 450px;
  object-fit: cover;
}

/* Clickable cursor */
.hero-carousel .carousel-item {
  cursor: pointer;
}

/* Hover tint */
.hero-carousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-carousel .carousel-item:hover::after {
  opacity: 1;
}

/* Caption */
.hero-carousel .carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem 1.5rem;
  border-radius: 6px;
}

/* Hide controls, keep functionality */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  display: none;
}

/* Allow clicks to pass through overlays */
.hero-carousel::after,
.hero-carousel .carousel-item::after {
  pointer-events: none;
}

/* ===== Remove gap below carousel ===== */
.hero-carousel {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  margin-bottom: 0 !important;
}

/*==========================
   BIGGER SCREENS
==========================*/
@media (min-width: 1601px) {

  .hero-carousel {
    max-height: 520px;
  }

  .hero-carousel .carousel-item img {
    height: 520px;
  }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 991px) {

  .hero-carousel {
    max-height: 200px;
  }

  .hero-carousel .carousel-item img {
    height: 200px;
  }
}

/* =====================================================
   SCROLLER – BASE (NO LAYOUT SHIFT)
===================================================== */
.academics-scroll{
  display:flex;
  gap:1%;
  overflow-x:auto;
  padding:1rem 3%;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;

  scrollbar-gutter:stable; /* prevents jump */
  scroll-snap-type:x mandatory;
}

/* =====================================================
   CARD – BASE
===================================================== */
.academics-card{
  background:#ffffff;
  border-radius:14px;
  padding:1.25rem;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  flex-shrink:0;

  min-height:240px;
  display:flex;
  flex-direction:column;

  transition:transform .3s ease, box-shadow .3s ease;
  scroll-snap-align:center;
}

.academics-card:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 32px rgba(0,0,0,.16);
}

/* =====================================================
   CARD CONTENT (TRUNCATION)
===================================================== */
.academics-card h6{
  margin:0 0 .45rem;
  font-size:1rem;
  font-weight:700;
  color:#111827;

  /* single-line truncate */
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.academics-card p{
  font-size:.9rem;
  color:#4b5563;
  line-height:1.45;

  /* multi-line truncate */
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:7;
  overflow:hidden;
}

/* =====================================================
   CARD FOOTER – FIXED CTA
===================================================== */
.academics-card a{
  margin-top:auto;
  align-self:flex-end;
  font-size:.85rem;
  font-weight:600;
  color:#1877f2;
  text-decoration:none;
  padding-top:.75rem;
}

.academics-card a:hover{
  text-decoration:underline;
}

/* =====================================================
   DESKTOP (≥ 992px) – 4 FULL CARDS – SCROLLBAR ON HOVER ONLY
===================================================== */
@media (min-width:992px){

  .academics-card{
    flex:0 0 23%;
  }

  /* Firefox */
  .academics-scroll{
    scrollbar-width:thin;
    scrollbar-color:transparent transparent;
  }

  .academics-scroll:hover{
    scrollbar-color:#e8e8eb transparent;
  }

  /* WebKit */
  .academics-scroll::-webkit-scrollbar{
  }

  .academics-scroll::-webkit-scrollbar-thumb{
    background-color:transparent;
    border-radius:10px;
  }

  .academics-scroll:hover::-webkit-scrollbar-thumb{
    background-color:#e8e8eb;
  }
}

/* =====================================================
   MOBILE (≤ 767px)
===================================================== */
@media (max-width:767px){

  .academics-scroll{
    padding:1rem 4%;       /* reduced side padding */
    gap:1rem;
    scrollbar-width:none;
  }

  .academics-card{
    flex:0 0 90%;          /*larger cards */
    min-height:200px;     /*taller cards */
  }

  .academics-scroll::-webkit-scrollbar{
    display:none;
  }
}
/* =====================================================
   About the Institute Enhanced Pills
   ===================================================== */

.about-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.0rem;
  padding-bottom: 1.5rem;
}

/* Individual pill */
.about-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.75rem 1.6rem;   /* larger, touch-friendly */
  border-radius: 999px;

  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--primary);

  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.25px;
  text-decoration: none;

  box-shadow: 
    0 2px 6px rgba(3,61,109,0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
	margin-left:0.5%;
}

/* Hover / focus */
.about-pill:hover,
.about-pill:focus-visible{
  background: rgba(0,61,124,0.06);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);

  box-shadow:
    0 6px 16px rgba(3,61,109,0.12);
}

/* =====================================================
   Mobile vertical stacking
   ===================================================== */
@media (max-width: 767px){

  .about-pills{
    flex-direction: column;
    gap: 0.75rem;
  }

  .about-pill{
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer{
  background:var(--primary);
  color:#f1f5f9;
  font-size:0.95rem;
}

.site-footer a{
  color:#f8fafc;
  text-decoration:none;
}

.site-footer a:hover{
  color:var(--secondary);
  text-decoration:none; /* IMPORTANT */
}

.footer-top{
  padding:2rem 0 1rem;
  border-bottom:1px solid rgba(255,255,255,0.25);
}

.footer-heading{
  font-size:1.05rem;
  color:#ffffff;
}

.footer-links{
  padding:1.75rem 0;
}

.footer-links ul{
  list-style:none;
  padding-left:0;
}

.footer-links li{
  margin-bottom:0.55rem;
}

/* Footer Bottom Layout */
.footer-bottom {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
	padding-bottom: 12px;
}

.footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
	width:100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Left */
.footer-social {
    margin-right: auto;
}

/* Right */
.footer-copy {
    margin-left: auto;
}

/* Viewport Centre Alignment */
.footer-counter {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0); /* more precise */
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

/* Error same behavior */
.footer-counter-error {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    color: #dc3545;
    font-weight: bold;
    white-space: nowrap;
}

/* ---------------- Mobile View ---------------- */
@media (max-width: 767px) {

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-social,
    .footer-copy {
        margin: 0;
        text-align: center !important;
    }

    .footer-counter,
    .footer-counter-error {
        position: static;
        transform: none;
    }
}
/* -------------------- Footer Social icons starts here -------------------------*/
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Identical circular containers */
.footer-social .social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  color: var(--primary, #0d6efd) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* social icon styling */
.footer-social .social-icon i {
  font-size: 20px;
  width: 20px;          /* same width */
  height: 20px;         /* same height */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: inherit !important;
}

/* remove all individual scaling differences */
.footer-social .bi-facebook,
.footer-social .bi-linkedin {
  transform: none !important;
}

/* Hover (no color change) */
.footer-social .social-icon:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Lock color */
.footer-social .social-icon:hover,
.footer-social .social-icon:focus,
.footer-social .social-icon:active {
  color: var(--primary, #0d6efd) !important;
}

/* Divider */
.footer-social .divider {
  width: 1px;
  height: 40px;
  background: #ccc;
}
/* =========================
   Footer mobile stacking clarity
   ========================= */
@media (max-width: 767px) {

  .site-footer .footer-links .col-lg-3,
  .site-footer .footer-links .col-md-6 {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .site-footer .footer-links .col-lg-3:last-child,
  .site-footer .footer-links .col-md-6:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

/* =========================================================
   GLOBAL TABLE STYLES
========================================================= */

table,thead,tbody,tfoot,tr,th,td {
  font-size: 1em; /* inherit from body scaling */
}

table {
    font-family: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system,
                 BlinkMacSystemFont, Arial, sans-serif !important;
}

th, td {
    padding-left: 20px !important;
}

/* =========================================================
   TABLE HEADER (BLUE)
========================================================= */

.table-list thead tr th {
    background-color: #002266 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 2px solid #111827;
	text-wrap: nowrap;
}

/* =========================================================
   SORTABLE TABLE HEADERS
========================================================= */

th.sortable,
table th.sortable {
    cursor: pointer;
    position: relative;
}

th.sortable::after {
    content: "⇅";
    margin-left: 4px;
    opacity: 0.7;
}

th.sortable.asc::after {
    content: "▲";
    opacity: 1;
}

th.sortable.desc::after {
    content: "▼";
    opacity: 1;
}

/* =========================================================
   TABLE BODY STYLES
========================================================= */

tbody {
    padding-left: 4px;
    text-align: left;
}

/* Alternate row colors */
.table-list tbody tr:nth-of-type(odd) > * {
    background-color: #f2faff !important;
}

.table-list tbody tr:nth-of-type(even) > * {
    background-color: transparent !important;
}

/* Row separators */
.table-list tbody td {
    border-bottom: 1px solid #9ca3af !important;
}

/* Hover effect */
.table-list tbody tr:hover > * {
    filter: brightness(0.95);
}

/* Title link */
.post-title {
    color: #111827;
    font-weight: 500;
    text-decoration: none;
}

.post-title:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Cell borders */
.table-list tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #9ca3af !important;
    vertical-align: middle;
}


.table-list th:first-child,
.table-list td:first-child {
    min-width: 20vw;
    max-width: 40vw;
    text-align: left;
}

@media(max-width:768px){
.table-list th:first-child,
.table-list td:first-child {
    min-width: 75vw;
    max-width: 80vw;
	}
}

.table-responsive {
  overflow-x: auto;
}
	
/* =========================================================
   PAGINATION
========================================================= */

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =========================================================
   CARDS (FILTER + TABLE)
========================================================= */

/* Card containers */
.filter-card,
.table-card {
    background: #ffffff;
	padding: 20px;
	border-radius: 10px;
    padding-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.table-card {
	padding-top: 0px !important;
}


/* Filter buttons */
.filter-card .btn {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    line-height: 32px !important;
}

.filter-card .btn-primary,
.filter-card .btn-secondary {
    margin-top: 0 !important;
}

/* =========================================================
   BUTTON STYLES (VIEW BUTTON)
========================================================= */
a.btn.px-3 {
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;

    font-size: 0.85rem;
    line-height: 1.2;

    padding: 0.2rem 0.45rem; 

    min-width: 52px;  
    text-align: center;

    background-color: #002266;
    color: #ffffff;

    border: 1px solid transparent;
    border-radius: 5px;
    box-sizing: border-box;
}

a.btn.px-3:hover,
a.btn.px-3:focus {
    background-color: transparent;
    color: #002266;
    border-color: #002266;
    text-decoration: none;
}

.btn:focus:not(:focus-visible),
.btn:active:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* ========================================================= Contact Page CSS ========================================================= */
/* Card container */
.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e6e6;
}

/* Flex layout */
.contact-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* Left text */
.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-left p {
    margin: 8px 0;
    line-height: 1.5;
    color: #333;
}

/* Highlight headings */
.contact-left b {
    color: #1a4d2e; /* keep your green theme */
}

/* Map side */
.contact-right {
    flex: 1;
}

.contact-right iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border-radius: 10px;
}

/* Section spacing refinement */
.main-section-title {
    margin-bottom: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-card {
        padding: 18px;
    }

    .contact-right iframe {
        height: 250px;
    }
}
/*---------------------------- News Events iFrame section on index page ----------------------------------- */
.news-events-section{
  display:flex;
  gap:20px;
  width:90%;
  margin:auto;
}

.news-frame{
  flex:1;
  height:380px;
  border:0;
}

/* Mobile */
@media (max-width: 768px){
  .news-events-section{
    flex-direction:column;
    width:100%;
  }

  .news-frame{
    width:100%;
    height:auto;
    min-height:360px;
  }
}

/*------------------------------------Static Page Styling Starts Here ---------------------------------------- */


/* ================= ACADEMICS SECTION (including index and across all static pages) starts here================= */
.academics-section{
  padding:2% 5% 2% 5%;
  background:var(--bg-section);
  }

@media (max-width: 480px) {
 .academics-section{
  padding:2%;
  }
.academics-section .section-subtitle{
    margin:1.1rem 0 .4rem;
    font-size:1rem;
   }
}

.main-section-title{
  color:var(--primary);
  font-weight:700;
  border-left:4px solid var(--secondary);
  padding-left:.65rem;
  padding-bottom:.25rem;
  margin-bottom:1rem;
}

.academics-section .section-subtitle{
  font-size:1.05rem;
  font-weight:700;
  color:var(--primary);
  border-left:2px solid #ef7c00;
  padding-left:.6rem;
  margin:1.5rem 0 .6rem;
}

.academics-section .section-paragraph{
  font-size:.92rem;
  line-height:1.65;
  color:#1f2937;
  margin:0 0 1rem;
  margin-left:1%;
}

.academics-section .section-paragraph strong{
  font-weight:600;
}

.academics-section .section-paragraph em{
  font-style:normal;
  color:#6b7280;
}

@media (max-width: 480px) {
 .academics-section{
  padding:2%;
  }
.academics-section .section-subtitle{
    margin:1.1rem 0 .4rem;
    font-size:1rem;
   }
   .section-paragraph {
    margin-left:.5%;
  }
}

/* Indented sub-points (2.1, 3.4, etc.) */
.section-paragraph.subpoint{
  margin-left:1%;
}

@media(max-width:767px){
  .section-paragraph.subpoint{
    margin-left:.5%;
  }
}


/* Responsive table for office lists */
.academics-section .responsive-table{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-bottom:1.5rem;
}

/* Table cell */
.academics-section .table-cell{
  background:#ffffff;
  border:1px solid var(--border-soft, #d6e0ea);
  border-radius:6px;
  padding:.6rem .75rem;
  font-size:.9rem;
  color:#1f2937;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
}

/* Hover (subtle, academic) */
@media (hover:hover){
  .academics-section .table-cell:hover{
    box-shadow:0 3px 8px rgba(0,61,124,.12);
  }
}

/* Tablet: 2 columns */
@media (max-width: 992px){
  .academics-section .responsive-table{
    grid-template-columns:repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 480px){
  .academics-section .responsive-table{
    grid-template-columns:1fr;
  }
}

.academics-section a[target="_blank"]::after{
  content:"↗";
  font-size:.75rem;
  margin-left:.2rem;
  color:#6b7280;
}

/* ==========================================
   PDF link list 
   ========================================== */

.pdf-list-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,61,102,0.18);
}

.pdf-list-item:last-child{
  border-bottom: none;
}

.pdf-list-item a{
  color: #0033d6;
  text-decoration: none;
  line-height: 1.5;
}

.pdf-list-item a:hover{
  color: #6b0f0f;
}

.pdf-list-item a::before {
  content: "";
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48cGF0aCBkPSJNMTAgNGg2MGwyOCAyOHY4OGE0IDQgMCAwIDEtNCA0SDEwYTQgNCAwIDAgMS00LTRWOGE0IDQgMCAwIDEgNC00eiIgZmlsbD0iI2U5ZWNlZiIvPjxwYXRoIGQ9Ik04MCA0djIyYTQgNCAwIDAgMCA0IDRoMjJ6IiBmaWxsPSIjYzFjN2NkIi8+PHJlY3QgeD0iMjQiIHk9IjY0IiB3aWR0aD0iODAiIGhlaWdodD0iMzIiIGZpbGw9IiNmMjVhNDciLz48dGV4dCB4PSI2NCIgeT0iODAiIGZvbnQtc2l6ZT0iMjgiIGZvbnQtZmFtaWx5PSJTZWdvZSBVSSwgQXJpYWwsIHNhbnMtc2VyaWYiIGZvbnQtd2VpZ2h0PSI3MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGRvbWluYW50LWJhc2VsaW5lPSJtaWRkbGUiIGZpbGw9IiNmZmZmZmYiPlBERjwvdGV4dD48L3N2Zz4=");
  background-repeat: no-repeat;
  background-size: contain;
}

 /* COLLAPSIBLE ANIMATION STYLES For DETAILS */
  details {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    /* Transition for the overall container */
    transition: background-color 0.3s ease;
  }

  summary {
    cursor: pointer;
    padding: 4px;
    font-weight: bold;
    color: var(--isi-blue);
    display: flex;
    align-items: center;
    list-style: none;
    transition: background-color 0.2s ease;
  }

  summary::-webkit-details-marker { display: none; } /* Hide default arrow */

  /* Custom animated arrow */
  summary::before {
    content: "▼ \00A0";
    margin-left: 0;
    font-size: 0.8em;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  details[open] summary::before {
    transform: rotate(180deg);
  }

  /* 3. SMOOTH HEIGHT TRANSITION */
  /* Target the content area specifically */
  ::details-content {
    transition: height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    height: 0;
    opacity: 0;
    padding: 0 15px;
    overflow: hidden;
  }

  details[open]::details-content {
    height: auto;
    opacity: 1;
    padding: 10px 15px 20px 15px;
  }

/*------------------------------------ CCAIR iFRAME STYLES -------------------------------------------------*/

.ccair-iframe {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
}

.ccair-iframe iframe {
  width: 90%;
  max-width: 1200px;   /* optional, prevents over-stretching on large screens */
  height: 80vh;        /* auto-feel height */
  min-height: 500px;   /* ensures readability */
  border: 1px solid #d6e0ea;
  border-radius: 6px;
}
/*--------------------------------- List of Links only without any attachment -------------------------------- */

.list-link{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,61,102,0.18);
}

.list-link:last-child{
  border-bottom: none;
}

.list-link a{
  color: #0033d6;
  text-decoration: none;
  line-height: 1.5;
}

.list-link a:hover{
  color: #6b0f0f;
}

.anchor {
	scroll-margin-top: 195px;
}

/* ----------------------------------------------------------- Divisions page css -----------------------------------------*/

/* =====================================================
   GRID LAYOUT
===================================================== */
.division-grid{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr); /* Desktop: 4 per row */
  gap:1.25rem;
}

/* =====================================================
   CARD
===================================================== */
.division-card{
  background:#ffffff;
  border:1px solid var(--border-soft);
  border-radius:8px;
  padding:1.25rem 1.25rem 1.4rem;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform .25s ease, box-shadow .25s ease;
  position: relative;
  padding-bottom: 3rem;
}

.division-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  cursor:pointer;
}

.division-title{
  font-size:1rem;
  font-weight:700;
  margin-bottom:.4rem;
}

.division-text{
  font-size:.9rem;
  color:#374151;
  line-height:1.45;
  margin-bottom:1rem;
}

/* =====================================================
   BUTTON
===================================================== */
.btn-isi{
  align-self:flex-start;
  background:var(--primary);
  color: #ffffff;
  font-size:.85rem;
  font-weight:600;
  padding:.4rem .9rem;
  border-radius:4px;
  text-decoration:none;
}

.btn-isi:hover{
  color:var(--secondary);
}

.division-card .btn-isi{
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
}

/* =====================================================
   TABLET (2 per row)
===================================================== */
@media (max-width: 991px){
  .division-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* =====================================================
   MOBILE (STACK, ~98vw)
===================================================== */
@media (max-width: 767px){
  .division-grid{
    grid-template-columns:1fr;
    gap:1rem;
  }

  .division-card{
    width:98vw;
    margin:0 auto;
    border-radius:6px;
  }
}



