:root {
    --iim-primary-blue: #003366;
    --iim-secondary-gold: #f7cf0d;
    --iim-accent-green: #40b93c;
    --iim-link-blue: #47a4e0;
    --iim-light-bg: #f8f9fa;
    --iim-text-dark: #212529;
    --iim-text-light: #ffffff;
}

/* --- Base Styles --- */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--iim-text-dark);

}
/* Default pagination buttons */
.pagination .page-item .page-link {
    background-color: transparent; /* Neutral background */
    border: 1px solid #ddd;
    color: #333;
    transition: all 0.3s ease;
}
    .text-justify {
  text-align: justify;
}

/* Active pagination button */
.pagination .page-item.active .page-link {
    background-color: #003366; /* --iim-primary-blue */
    border: 2px solid #003366; /* prominent border */
    color: #fff;
    font-weight: bold;
    cursor: default; /* active button is not clickable */
}

/* Hover effect for non-active buttons */
.pagination .page-item:not(.active) .page-link:hover {
    background-color: #003366; /* --iim-primary-blue */
    border-color: #003366; /* highlight border on hover */
    color: #fff;
}


/* =======================
   FULLSCREEN PRELOADER
======================= */

/* Fullscreen overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner container */
.loader {
  position: relative;
  width: 60px;
  height: 60px;
}

/* Rotating ring with multi-color borders */
.loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 6px solid transparent;        /* base */
  border-top-color: #003366;            /* Primary Blue */
  border-right-color: #f7cf0d;          /* Gold */
  border-bottom-color: #40b93c;         /* Green */
  border-left-color: #47a4e0;           /* Link Blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Static text inside spinner */
.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 16px;
  color: #004d9a;
  pointer-events: none;
  user-select: none;
}

/* Rotation animation */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* =======================
   AJAX LOADER
======================= */

/* Fullscreen overlay for AJAX loader */
#ajax-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* no background */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner container */
.ajax-loader {
  position: relative;
  width: 60px;
  height: 60px;
}

/* Rotating ring with multi-color borders */
.ajax-loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 6px solid transparent;        /* base */
  border-top-color: #003366;            /* Primary Blue */
  border-right-color: #f7cf0d;          /* Gold */
  border-bottom-color: #40b93c;         /* Green */
  border-left-color: #47a4e0;           /* Link Blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Static text inside AJAX spinner */
.ajax-loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 16px;
  color: #004d9a;
  pointer-events: none;
  user-select: none;
}

.table-nowrap td,
.table-nowrap th {
    white-space: nowrap;      /* Keep text in a single line */
    overflow: hidden;         /* Hide overflow */
    text-overflow: ellipsis;  /* Show "..." if text is too long */
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on mobile */
}

/* Active dropdown item background and icon color */
.navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: var(--iim-primary-blue) !important; /* primary blue */
    color: white !important;                              /* text color */
                            /* optional rounding */
}

/* Ensure icons inside active dropdown items are white */
.navbar-nav .dropdown-menu .dropdown-item.active i {
    color: white !important;
}

/* Optional: hover effect for active dropdown items */
.navbar-nav .dropdown-menu .dropdown-item.active:hover {
    background-color: #002244 !important; /* slightly darker shade on hover */
    color: white !important;
}

.navbar-nav .dropdown-menu .dropdown-item.active:hover i {
    color: white !important;
}

/* Navbar items - fluid spacing */
.navbar-nav {
    display: flex;
    flex-wrap: wrap; /* allow wrapping on small screens */
    justify-content: space-between; /* fluid horizontal spacing */
}

/* Optional: prevent dropdown links from stretching too much */
.navbar-nav .nav-item {
    flex: 1 1 auto; /* allow items to shrink/grow */
    min-width: 100px; /* optional: prevent them from getting too small */
}

/* Dropdown items inside navbar */
.dropdown-menu .dropdown-item {
    padding: 0.75rem 0.75rem; /* comfortable spacing */
}


/* .online-application {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: white!important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
  animation: bgColorCycle 6s infinite;
}

@keyframes bgColorCycle {
  0%   { background-color: var(--iim-primary-blue); }
  25%  { background-color: var(--iim-secondary-gold);}
  50%  { background-color: var(--iim-accent-green); }
  75%  { background-color: var(--iim-link-blue); }
  100% { background-color: var(--iim-primary-blue); }
} */





/* Change hover (highlighted) color in the dropdown */
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: #003366 !important;  /* Your hover background */
    color: #fff !important;                /* Your hover text color */
}

/* Optional: selected option color */
.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background-color: #003366 !important; /* Your selected background */
    color: #fff !important;
}

/* Optional: change the border color of the select box on hover */
.select2-container--bootstrap-5 .select2-selection--single:hover {
    border-color: #003366 !important;
}

/* Optional: styling for the select box itself */
.select2-container--bootstrap-5 .select2-selection--single {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

html,body {
    overflow-x: hidden!important; /* Prevent horizontal overflow */}

    .status-available {
      color: green;
      font-weight: 500;
    }

    .status-leave {
      color: orange;
      font-weight: 500;
    }

    .pagination {
      justify-content: center;
    }


    #orgchart-wrapper {
      width: 100%;
      height: 80vh;
      overflow-x: auto;
      overflow-y: auto;
      background: #f8f9fa;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 10px;
    }

    #myDiagramDiv {
      width: 1800px; /* Ensures horizontal space for full chart */
      height: 100%;
    }

    @media (max-width: 768px) {
      #myDiagramDiv {
        width: 1200px;
      }
    }


  .modern-table tbody tr td {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }



.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--iim-primary-blue);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase; /* Added from a later declaration */
}

.section-title::after {
    content: '';
    display: block;
    width: 70px; /* Adjusted to match the larger width */
    height: 4px;
    background: var(--iim-secondary-gold);
    margin: 0.5rem auto 0;
}

.btn-gold {
    background-color: var(--iim-secondary-gold);
    color: var(--iim-primary-blue);
    font-weight: 700;
}

.btn-gold:hover {
    background-color: #e0b900; /* Adjusted to match the specific hover color */
    color: #000; /* Added from a later declaration */
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* Combined with later card hover */
}


.form-control:focus {
    border-color: var(--iim-secondary-gold); /* Combined with later focus styles */
    box-shadow: 0 0 0 0.25rem rgba(247, 207, 13, 0.25); /* Combined with later focus styles */
    width: 100%; /* Ensures full width on focus */
}

/* Fix Select2 to look like Bootstrap 5 form-select */
.select2-container .select2-selection--single {
  height: calc(2.375rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #212529;
  line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.375rem;
  right: 0.75rem;
}


/* --- Top Bar --- */
/* --- Top Bar --- */
.top-bar {
    background-color: #f1f1f1;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #dee2e6;
}

.top-bar a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.top-bar .top-bar-links a {
    color: var(--iim-primary-blue);
}

.top-bar a:hover {
    color: var(--iim-secondary-gold);
}

.top-bar .top-bar-links a[href^="mailto:"] {
    color: var(--iim-link-blue);
}

.top-bar i {
    color: var(--iim-primary-blue);
}

.top-bar .online-application {
    background-color: var(--iim-secondary-gold);
    color: var(--iim-primary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.top-bar .online-application:hover {
    background-color: var(--iim-primary-blue);
    color: white;
}

.top-search-form {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
}

.top-search-form input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    width: 200px;
}

.top-search-form button {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 0.25rem;
    cursor: pointer;
}

/* --- Responsive: Make Top Bar mobile-friendly --- */
@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }

    .top-bar .top-bar-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-top: 0.75rem;
    }

    .top-search-form input {
        width: 130px;
        font-size: 0.85rem;
    }

    .top-bar .online-application {
        align-self: stretch;
        text-align: center;
        width: 100%;
    }
}


/* --- Main Header & Navigation --- */
/* --- Main Header & Navigation --- */
.main-header {
    background-color: var(--iim-primary-blue);
    padding: 0.6rem 0;             /* normal padding */
    position: relative;          /* default flow */
    width: 100%;
    z-index: 1100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;   /* smooth transition for padding/shrink */
}

/* Logo background matching navigation bar */
.main-header .navbar-brand {
    background-color: transparent;
    padding: 0;
}

/* Logo wrapper with matching background */
.main-header .logo-wrapper {
    background-color: var(--iim-primary-blue);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Make logo image blend properly */
.main-header .logo-wrapper img {
    background-color: transparent;
    mix-blend-mode: normal;
    display: block;
    position: relative;
    z-index: 1;
}

/* Sticky header after scroll */
.main-header.sticky {
    position: fixed;             /* stick to top */
    top: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0;           /* optional shrink effect */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Navbar links and brand */
.main-header .navbar-brand span,
.main-header .nav-link {
    color: var(--iim-text-light);
}

/* Hover and active link */
.main-header .nav-link:hover,
.main-header .nav-link.active {
    color: var(--iim-secondary-gold);
}

/* --- Mobile scrollable header content --- */
@media (max-width: 991.98px) {
    .main-header .navbar-collapse {
        max-height: 80vh;       /* header content max height */
        overflow-y: auto;       /* allow vertical scroll */
    }
}
/* Optional: smooth hide/show transition */
.main-header {
    transition: top 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    top: 0;
}

/* Prevent background scroll when menu is open */
body.menu-open {
    overflow: hidden;           /* disable page scroll */
}

#modernToggler {
  border: none;            /* remove border */
  background: transparent; /* no background */
  padding: 0.5rem 0.75rem; /* clickable area */
  cursor: pointer;
}

#modernToggler:focus,
#modernToggler:active {
  outline: none;           /* remove focus/active outline */
  box-shadow: none;        /* remove any shadow on click */
}

#togglerIcon {
  color: white;            /* icon white */
  font-size: 1.5rem;       /* slightly bigger */
  transition: transform 0.3s ease; /* optional for rotation if needed */
}


.dropdown-menu {
    border-radius: 0;
    border: 1px solid #ddd;
    border-top: 3px solid var(--iim-secondary-gold);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--iim-text-dark);
}

.dropdown-item i {
    color: var(--iim-primary-blue);
    margin-right: 0.5rem;
}

/* Dropdown item hover: background, text, and icon */
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: var(--iim-primary-blue) !important; /* background on hover */
    color: white !important;                              /* text on hover */
}

/* Change icon color on hover too */
.navbar-nav .dropdown-menu .dropdown-item:hover i {
    color: white !important;
}




/* Base mega-dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;       /* Default width for large screens */
  max-width: 95vw;    /* Never overflow viewport width */
  z-index: 1050;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid var(--iim-secondary-gold);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: none;
}

/* Columns: stack vertically if narrow */
.mega-dropdown .row {
  flex-wrap: wrap;   /* Allow wrapping if needed */
}

/* Each column */
.mega-dropdown .col-md-4 {
  min-width: 200px;  /* Prevent columns from shrinking too much */
}

/* Responsive behavior between 576px and 991.98px */
@media (min-width: 576px) and (max-width: 991.98px) {
  .mega-dropdown {
    width: auto;         /* Remove fixed width */
    left: 0;             /* Align dropdown to left of nav item */
    transform: none;     /* Remove centering transform */
    max-width: 95vw;     /* Prevent horizontal overflow */
    padding: 1rem 0.5rem;
  }
  .mega-dropdown .row {
    flex-wrap: wrap;
  }
  .mega-dropdown .col-md-4 {
    flex: 1 1 50%;       /* Two columns per row */
    max-width: 50%;
    min-width: 150px;
  }
}

/* Mobile view: stack columns vertically */
@media (max-width: 575.98px) {
  .mega-dropdown {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 0.5rem 1rem;
  }
  .mega-dropdown .col-md-4 {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;

  }
}



/* Mobile: make both dropdown and mega menu text slightly bigger */
/* Mobile & tablet: make nav links and dropdown items bigger */
@media (max-width: 991.98px) {
  /* Main nav links */
  .navbar-nav .nav-link {
    font-size: 1.2rem;   /* default ~1rem */
    line-height: 1.5;
    padding: 0.6rem 1rem; /* improve touch area */
  }

  /* Dropdown items (normal + mega menu) */
  .dropdown-item,
  .mega-dropdown .dropdown-item {
    font-size: 1.09rem;
    line-height: 1.4;
    padding: 0.6rem 1rem;
  }
}


@media (min-width: 992px) {
    .main-header .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}





/* MOBILE BRAND TEXT SHORTEN TO "IIM" AFTER LOGO */
@media (max-width: 575.98px) {
    /* Hide full span text */
    .main-header .navbar-brand span {
        display: none;
    }

    /* Add "IIM" text after the logo */
    .main-header .navbar-brand {
        position: relative;
        display: flex;
        align-items: center;
    }

    .main-header .navbar-brand::after {
        /* content: "IIM"; */
        color: var(--iim-text-light);
        font-weight: 700;
        font-family: 'Roboto', sans-serif;
        font-size: 1.5rem;
        margin-left: 0.5rem;
        white-space: nowrap;
    }

    /* Optionally smaller logo image on mobile */
    .main-header .navbar-brand img {
        height: 40px;
    }
}

/* --- Hero Sections (General) --- */
.bg-slide {
    height: 70vh; /* Full-screen height */
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
/* --- Hero Section Slider (Home Page) --- */
.hero-slider {
    height: 70vh;
    min-height: 500px; /* Ensure minimum height */
    position: relative;
    background-color: var(--iim-primary-blue); /* Fallback color */
    overflow: visible; /* Allow full images to show */
}

/* Full height for carousel items */
.hero-slider .carousel-inner {
    height: 100%;
    position: relative;
    width: 100%;
    overflow: visible; /* Allow images to show fully */
}

.hero-slider .carousel-item {
    position: relative;
    height: 100%;
    width: 100%;
    display: block !important; /* Force display for active items */
}

/* Background image cover */
.hero-slider .carousel-item.active {
    display: block !important;
}

.hero-slider .carousel-item .bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Above search overlay background */
    display: block !important;
    min-height: 100%;
}

.hero-slider .carousel-item .bg-slide img {
    width: 100%;
    height: auto;
    min-height: 100%;
    max-height: 100vh;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    display: block !important;
    position: relative;
    z-index: 1;
}

/* Ensure carousel transitions work */
.hero-slider .carousel-item {
    transition: opacity 0.6s ease-in-out !important;
}

.hero-slider .carousel-item:not(.active) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .carousel-item.active {
    opacity: 1;
    position: relative;
}
/* Caption card with noticeable blue glossy/frosted effect */
.hero-slider .carousel-caption {
    position: absolute;
    top: 30%;
    left: 5%;
    max-width: 40%;
    padding: 1.5rem 2rem;

    /* Blue with glossy shine */
    background: rgba(0, 51, 102, 0.6); /* semi-transparent blue */
    border-radius: 10px;
    color: #fff;
    text-align: left;
    display: inline-block;

    /* Frosted + glossy */
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */

    /* Optional: subtle diagonal shine */
    background-image: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
    background-blend-mode: overlay;
}


/* Headline styling */
.hero-slider .carousel-caption h1,
.hero-slider .carousel-caption h3,
.hero-slider .carousel-caption h5 {
    margin: 0 0 0.5rem 0;
        color: #fff;
    font-weight: 900;

}


/* Paragraph styling */
.hero-slider .carousel-caption p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

/* Buttons inside caption (if any) */
.hero-slider .carousel-caption .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
}

.hero-slider .carousel-caption .btn-gold {
    background-color: var(--iim-secondary-gold);
    color: var(--iim-primary-blue);
}

.hero-slider .carousel-caption .btn-gold:hover {
    background-color: #eabf00;
}

/* Carousel controls (prev/next) */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 45%; /* vertically centered but slightly higher */
    z-index: 20; /* Above search overlay */
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* Carousel indicators */
.hero-slider .carousel-indicators {
    z-index: 15; /* Above images, below controls */
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    margin: 0 8px;
}

.hero-slider .carousel-indicators .active {
    background-color: var(--iim-secondary-gold);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-slider .carousel-caption {
        max-width: 80%;
        top: 15%;
        left: 5%;
        padding: 1rem 1.5rem;
    }

    .hero-slider .carousel-caption h1,
    .hero-slider .carousel-caption h5 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .hero-slider .carousel-caption p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
}

@media (max-width: 576px) {
    .hero-slider .carousel-caption {
        max-width: 90%;
        top: 10%;
        padding: 0.8rem 1rem;
    }

    .hero-slider .carousel-caption h1,
    .hero-slider .carousel-caption h5 {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }

    .hero-slider .carousel-caption p {
        font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    }
}
/* Unified style for all screen sizes */
.search_programme_hero {
    padding: 2.5rem 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95) 0%, rgba(0, 51, 102, 0.7) 50%, transparent 100%); /* Gradient overlay */
    backdrop-filter: blur(3px); /* subtle blur effect */
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10; /* Above images, below controls */
    pointer-events: none; /* Allow clicks to pass through to carousel */
    max-height: 200px; /* Limit overlay height so images show above */
}

.search_programme_hero .container,
.search_programme_hero form,
.search_programme_hero .row,
.search_programme_hero .col-lg-11 {
    pointer-events: auto; /* Re-enable pointer events for form elements */
}

/* Ensure hero slider has relative positioning for absolute children */
#heroSlider {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 180px; /* Space for search overlay at bottom */
}


.search-button {
    background-color: var(--iim-accent-green);
    color: white;
    border: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #36a332;
}

/* --- Information / Content Sections --- */
.info-section h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--iim-primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.quick-links-list {
    list-style: none;
    padding: 0;
}

.quick-links-list li a {
    display: flex;                  /* align text and arrow */
    align-items: center;
    justify-content: space-between; /* push arrow to right */
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--iim-text-dark);
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.3s;
}

.quick-links-list li a::after {
    content: '\f054';               /* Font Awesome right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--iim-secondary-gold); /* default arrow color */
    font-size: 0.9em;
    transition: transform 0.3s, color 0.3s;
}

.quick-links-list li a:hover {
    color: var(--iim-secondary-gold) !important; /* text color on hover */
}

.quick-links-list li a:hover::after {
    color: var(--iim-secondary-gold) !important; /* arrow color on hover */
    transform: translateX(5px);                  /* arrow slides slightly on hover */
}

.news-list-item,
.event-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.news-list-item .date {
    font-size: 0.85rem;
    color: #6c757d;
}

.news-list-item .title a {
    display: block;
    text-decoration: none;
    color: var(--iim-text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.event-list-item .date {
    background-color: var(--iim-primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    margin-right: 1rem;
}

.event-list-item .date .day {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
}

.event-list-item .date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}


.news-list-item:hover {
    background-color: rgba(0, 51, 102, 0.1); /* subtle primary blue hover */
    cursor: pointer;
    transform: translateY(-2px);             /* slight lift effect */
    transition: background 0.3s, transform 0.3s;
}

.event-list-item:hover {
    background-color: rgba(0, 51, 102, 0.1); /* subtle primary blue hover */
    cursor: pointer;
    transform: translateY(-2px);             /* slight lift effect */
    transition: background 0.3s, transform 0.3s;
}


/* --- Footer --- */
/* --- Footer --- */
.main-footer {
    background-color: var(--iim-primary-blue);
    color: var(--iim-text-light);
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.main-footer h5 {
    color: var(--iim-secondary-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.main-footer .footer-links {
    list-style: none;
    padding-left: 0;
}

.main-footer .footer-links li {
    margin-bottom: 0.75rem;
}

.main-footer .footer-links a {
    color: var(--iim-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer .footer-links a:hover {
    color: var(--iim-secondary-gold);
}

.main-footer .footer-links a[href^="mailto:"] {
    color: var(--iim-link-blue);
}
/* Newsletter Input */
.footer-newsletter .input-group {
    display: flex;
    flex-wrap: nowrap; /* prevent button from dropping below */
}

.footer-newsletter input {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--iim-text-light);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem 0 0 0.375rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    min-width: 0; /* ensures shrinking on small screens */
}

.footer-newsletter input::placeholder {
    color: rgba(255,255,255,0.6);
}

.footer-newsletter input:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: var(--iim-secondary-gold);
    outline: none;
}

/* Newsletter Button */
.footer-newsletter button {
    background-color: var(--iim-secondary-gold);
    color: var(--iim-primary-blue);
    border: none;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    min-height: 42px;
    box-sizing: border-box;
    white-space: nowrap; /* prevent text from wrapping */
}

.footer-newsletter button:hover {
    background-color: #e6bf06;
}

/* Footer bottom text */
.footer-bottom {
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.visitors-counter {
    font-weight: 700;
    color: var(--iim-secondary-gold);
    font-size: 1.25rem;
}

/* Mobile responsiveness */
/* Mobile responsiveness */
@media (max-width: 575.98px) {
    .footer-newsletter .input-group {
        flex-direction: column; /* Stack input and button vertically */
    }

    .footer-newsletter input,
    .footer-newsletter button {
        border-radius: 0.375rem !important;
        width: 100% !important; /* Full width on mobile */
        font-size: 1.1rem;       /* Slightly larger for readability */
        padding: 0.85rem 1rem;   /* Larger tap targets */
        box-sizing: border-box;
        min-height: 45px;
    }

    .footer-newsletter input {
        background-color: rgba(255, 255, 255, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        color: var(--iim-text-light) !important;
    }

    .footer-newsletter input::placeholder {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .footer-newsletter button {
        margin-top: 0.5rem; /* Space below input */
        padding-left: 1rem;
        padding-right: 1rem;
        min-height: 45px;
    }
}


/* --- Page Specific Styles --- */

/* Admissions & Programs (General) */
.admissions-section,
.programs-section,
.application-section,
.mission-content,
.history-section,
.news-section,
.calendar-section {
    padding: 60px 0;
}

/* Calendar Page */
.calendar-hero {
    background-color: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.calendar-table {
    background: white;
    border-radius: 6px;
    box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
}

.calendar-table th {
    background-color: #004d9a;
    color: white;
}

/* Admissions Page */
.admissions-hero {
    background-color: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

/* Undergraduate Programs Page */
.undergrad-hero {
    background-color: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.program-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px; /* Specific to this program card */
    background: white;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease-in-out;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgb(0 0 0 / 0.15);
}

.program-icon {
    font-size: 40px;
    color: #004d9a;
    margin-bottom: 15px;
}

.program-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #004d9a;
}

.program-desc {
    font-size: 1rem;
    color: #444;
}

/* Postgraduate Programs Page */
.pg-hero {
    background-color: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.pg-hero + .programs-section .program-card { /* More specific selector for PG cards */
    padding: 25px; /* Different padding for PG cards */
    transition: box-shadow 0.3s ease;
}

.pg-hero + .programs-section .program-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pg-hero + .programs-section .program-title {
    color: #004d9a;
    font-weight: 600;
    margin-bottom: 15px;
}

.apply-btn {
    background-color: #004d9a;
    border: none;
}

.apply-btn:hover {
    background-color: #003366;
}


/* Research Page */
.hero-research {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)),
        url('img/research-banner.jpg') center/cover no-repeat;
    padding: 6rem 0;
    color: white;
    text-align: center;
}

.hero-research h1 {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
}

/* News Page */
.news-hero {
    background-color: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.news-card {
    box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgb(0 0 0 / 0.15);
}

.news-date {
    font-size: 0.85rem;
    color: #666;
}

/* Application Page */
.application-form h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-step {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Mission Page */
.mission-hero {
    background: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.mission-icon {
    color: #004d9a;
    font-size: 40px;
    margin-bottom: 20px;
}

/* Leadership Page */
.leadership-hero {
    background-color: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.leadership-card {
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
    transition: transform 0.3s;
}

.leadership-card:hover {
    transform: translateY(-5px);
}

.leader-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.leader-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.leader-role {
    font-size: 0.95rem;
    color: #666;
}

/* History Page */
.history-hero {
    background-color: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.history-timeline {
    position: relative;
    margin-top: 30px;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: #004d9a;
    border-radius: 50%;
}

.timeline-year {
    font-weight: bold;
    color: #004d9a;
}

/* Departments Page */
.departments-hero {
    background-color: #004d9a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.departments-list {
    max-width: 800px;
    margin: 40px auto;
}

.department-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.department-item h3 {
    color: #004d9a;
    margin-bottom: 10px;
}

/* Contact Page */
.contact-hero {
    background-image: url('img/contact-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.7);
}

.contact-hero h1 {
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--iim-primary-blue);
    margin-right: 1rem;
}

.contact-form-section {
    background-color: var(--iim-light-bg);
    padding: 4rem 0;
}

.btn-primary {
    background-color: var(--iim-secondary-gold);
    border-color: var(--iim-secondary-gold);
    color: var(--iim-primary-blue);
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #e6bf06;
}


.map-section p,
.map-section li {
  line-height: 1.7;        /* More vertical breathing space */
  margin-bottom: 0.75rem;  /* Adds space between lines */
  font-size: 1rem;         /* Clean readable size */
  color: #333;             /* Ensure good contrast */
}

.map-section h3 {
  margin-bottom: 1rem;     /* Space below title */
  line-height: 1.3;
}

.map-section ul {
  padding-left: 0;
  list-style: none;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-left: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2.5rem;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .timeline {
    padding-left: 1rem;
  }

  .timeline-item {
    padding-left: 2.5rem;
  }

  .timeline-icon {
    left: 0;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }
}


/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--iim-primary-blue) transparent; /* thumb / track */
}

/* Chrome, Safari, Edge */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;   /* make track transparent */
}

*::-webkit-scrollbar-thumb {
  background: var(--iim-primary-blue);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #002244;       /* darker shade on hover */
}

/* Social Media Icons in Top Navigation */
.top-social-media {
  font-size: 1.2rem;
}

.top-social-media .social-icon-link {
  font-size: 1.2rem;
  color: var(--iim-text-dark);
  transition: color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.top-social-media .social-icon-link:hover {
  color: var(--iim-secondary-gold);
  transform: translateY(-2px);
}

.top-social-media .social-icon-link i {
  display: inline-block;
}