/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: GilroyRegular;
    src: url(gilroy-regular.ttf);
}
@font-face {
    font-family: GilroyBold;
    src: url(gilroy-bold.ttf);
}

body {
    font-family: Arial, sans-serif;
    font-family: "GilroyRegular", sans-serif !important;
    background: #f4f6f8;
}

a {
    text-decoration: none;
}

/* VARIABLES */
:root {
    --iimj-blue: #000000;
    --iimj-orange: #f37021;
    --topbar-bg: #D3F2C5;
}

/* TOP BAR */
.top-bar {
    background: var(--topbar-bg);
    color: #000000;
    font-size: 14px;
    padding: 6px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    position: sticky;
    top: 0;
    z-index: 99999;
}

.top-bar a {
    color: #000000;
    margin: 0 5px;
}

.top-bar a:hover {
    color: var(--iimj-orange);
}

.divider {
    margin: 0 6px;
}

.top-bar select {
    background: transparent;
    color: white;
    border: none;
    outline: none;
}

/* ==========================================================================
   PRODUCTION CSS: SINGLE-LINE ACCESSIBLE MOBILE TOP-BAR ENGINE
   ========================================================================== */

@media screen and (max-width: 1024px) {
    /* 1. Clear out explicit desktop sticky constraints if needed */
    .top-bar {
        padding: 8px 12px !important; /* Compact structural mobile boundary cushion */
        height: auto !important;
        min-height: 38px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important; /* Centers the remaining utilities on mobile screens */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. HIDE THE RIGHT COLUMN (Saves crucial real estate on smartphones) */
    .top-bar-right {
        display: none !important;
    }

    /* 3. REFACTOR THE LEFT PANEL UTILITIES WRAPPER */
    .top-bar-left {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Strictly prevents splitting or wrapping down into a second row */
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important; /* Precise pixel layout gap constraint */
    }

    /* 4. COMPACT TYPOGRAPHY & TOUCH TARGET ANCHORS */
    .top-bar-left a {
        font-size: 11px !important; /* Crisp micro font scaling for mobile viewports */
        margin: 0 4px !important;
        white-space: nowrap !important; /* Prevents button string phrases from wrapping down layout cards */
        display: inline-flex !important;
        align-items: center !important;
        font-weight: 500 !important;
    }

    /* Adjust Dark Mode icon scaling alignments inside text lines */
    .top-bar-left a i {
        font-size: 10px !important;
        margin-right: 4px !important;
    }

    /* 5. SLENDER LAYOUT DIVIDERS PROFILE */
    .top-bar-left .divider {
        margin: 0 2px !important;
        font-size: 11px !important;
        color: rgba(0, 0, 0, 0.2) !important;
    }
}

/* Extra Tight Override Layer for Ultra-Narrow Device Widths (Under 360px) */
@media screen and (max-width: 360px) {
    .top-bar-left a {
        font-size: 10px !important;
        margin: 0 2px !important;
    }
    
    .top-bar-left .divider {
        margin: 0 1px !important;
    }
}

/* HEADER */
header {
    background: #fff;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    
    position: sticky;
    top: 27px; /* height of topbar */
    z-index: 99998;
}

/* LOGO SECTION */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 55%;
}

/* FIXED LOGO ISSUE HERE */
.logo-img {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* TEXT BESIDE LOGO */
.logo-text {
    line-height: 1.2;
}

.hindi-text {
    font-size: 15px;
    color: #444;
}

.logo-text h1 {
    font-size: 17px;
    color: var(--iimj-blue);
    font-weight: 700;
}

.logo-text p {
    font-size: 13px;
    color: #555;
}

/* NAVIGATION */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0 0;
}

.nav-item > a {
    color: var(--iimj-blue);
    font-size: 18px;
    padding: 10px 13px;
    display: block;
    transition: 0.3s;
}

.nav-item > a:hover {
    color: var(--iimj-orange);
}

.dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    min-width: 300px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s ease;
    padding: 8px 0 !important; /* Internal bounding wall vertical cushion spacing */
}

.dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--iimj-orange);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.dropdown a {
    position: relative !important;
    display: block !important;
    padding: 13px 24px !important; /* Left & right padding gives text breathing room */
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

/* FLOATING LINE OVERLAY BETWEEN ITEMS WITH LEFT/RIGHT MARGIN SPACE */
.dropdown a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;  /* Leaves space on the left side of the line */
    right: 20px; /* Leaves space on the right side of the line */
    height: 1px;
    background-color: #e5e5e5 !important;
    transition: all 0.3s ease;
}

.dropdown a:hover {
    background: rgba(243, 112, 33, 0.06);
    color: var(--iimj-orange);
    padding-left: 30px !important; /* Indents text smoothly on hover */
}

/* Remove line entirely from the absolute last child menu node */
.dropdown a:last-child::after {
    display: none !important;
}

/* CTA BUTTON */
/* CTA BUTTON */
/* CTA BUTTON */
.cta-btn {
    display: inline-flex;       /* Keeps text perfectly centered vertically & horizontally */
    align-items: center;        
    justify-content: center;    
    background: var(--iimj-orange);
    color: #fff !important;
    
    /* FIX HERE: 10px top/bottom, 45px left/right creates the space you need */
    padding: 10px 45px;         
    
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
    text-align: center;
    white-space: nowrap;        /* Guarantees the text stays on a single line */
}

.cta-btn:hover {
    background: #e65c00; 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-btn:hover {
    background: #e65c00; 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.site-search{
    display:flex;
    align-items:center;
    gap:10px;
}

.site-search input{
    width:250px;
    padding:10px 15px;
    border:1px solid #ccc;
    outline:none;
}

.site-search button{
    padding:10px 20px;
    background:#f4b400;
    border:none;
    cursor:pointer;
    font-weight:bold;
}

/* --- HEADER MOBILE RESPONSIVE OVERRIDES --- */
/* Hide hamburger by default (Desktop/Web view) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Show hamburger only on mobile/tablets */
@media screen and (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none; /* Hide the main nav links on mobile until toggled */
    }

    .nav-links.mobile-active {
        display: flex; /* Or block, depending on your mobile layout */
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    /* 1. TOP BAR: Stack items for readability */
    .top-bar {
        height: auto !important;
        flex-direction: column !important;
        padding: 8px 15px !important;
        gap: 5px;
    }

    .top-bar-right {
        display: none !important; /* Hide secondary links to save space */
    }

    .top-bar-left {
        width: 100%;
        justify-content: center !important;
        font-size: 11px !important;
    }

    /* 2. HEADER CONTAINER: Switch to Space-Between */
    header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        position: relative !important;
        height: auto !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* 3. LOGO SCALE & ALIGNMENT */
    .logo-container {
        display: flex !important;
        align-items: center !important;
        max-width: 80%;
    }

    .logo-img {
        height: 38px !important; /* Smaller logo for mobile */
        width: auto !important;
        margin-right: 10px !important;
    }

    .logo-text h1 {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .logo-text p, .hindi-text {
        font-size: 10px !important;
        margin: 0 !important;
    }

    /* 4. NAVIGATION LINKS: Vertical Slide-out */
    .nav-links {
        display: none; /* Hidden until mobile-active is toggled */
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        z-index: 9999 !important;
        padding: 10px 0 !important;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-links.mobile-active {
        display: flex !important;
    }

    .nav-item {
        width: 100% !important;
        border-bottom: 1px solid #f9f9f9;
    }

    .nav-item a {
        padding: 12px 20px !important;
        display: block !important;
        font-size: 14px !important;
        color: #333 !important;
    }

    /* 5. APPLY NOW BUTTON: Mobile Styling */
    .cta-btn {
        width: auto !important;
        margin: 15px !important;
        text-align: center !important;
        background-color: #f39c12 !important;
        color: white !important;
        border-radius: 6px !important;
        padding: 12px !important;
    }

    /* 6. HAMBURGER ICON (Visible on Mobile) */
    .hamburger {
        display: block !important;
        cursor: pointer;
        font-size: 24px;
        color: #333;
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .logo-text p {
        display: none; /* Hide descriptive text on tiny screens */
    }
}


/* --- DARK MODE OVERRIDES --- */

/* 1. Body and General text */
body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0;
}

/* 2. Top Bar Dark Mode */
body.dark-mode .top-bar {
    background: #000000;
    border-bottom: 1px solid #333;
}

/* 3. Main Header Dark Mode */
body.dark-mode header {
    background: #1e1e1e !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

/* 4. Navigation Links */
body.dark-mode .nav-item > a {
    color: #ffffff;
}

body.dark-mode .hindi-text, 
body.dark-mode .logo-text h1, 
body.dark-mode .logo-text p {
    color: #ffffff !important;
}

/* 5. Dropdown Menus */
body.dark-mode .dropdown {
    background: #252525;
    border: 1px solid #444;
}

body.dark-mode .dropdown a {
    color: #ddd;
}

body.dark-mode .dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--iimj-orange);
}

/* 6. Mobile Menu for Dark Mode */
@media screen and (max-width: 1024px) {
    body.dark-mode .nav-links {
        background: #1e1e1e !important;
    }
    
    body.dark-mode .nav-item a {
        color: #fff !important;
    }
    
    body.dark-mode .hamburger {
        color: #fff !important;
    }
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR HOME.PHP
   ========================================================================== */

/* 1. Global Sections & Containers */
body.dark-mode,
body.dark-mode .career-section,
body.dark-mode #stackholders,
body.dark-mode #mentors,
body.dark-mode .events-section,
body.dark-mode .programs-section {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* 2. Text Visibility Fixes */
body.dark-mode .section-title h2,
body.dark-mode .section-heading h2,
body.dark-mode .logo-text h1,
body.dark-mode .career-content h3,
body.dark-mode .stat-box p,
body.dark-mode .subtitle p {
    color: #ffffff !important;
}

body.dark-mode .section-heading p,
body.dark-mode .event-content p {
    color: #bbbbbb !important;
}

/* 3. News Ticker */
body.dark-mode .news-ticker {
    background: #000000;
    border-bottom: 1px solid #333;
}

/* 4. Stats / Counter Section */
body.dark-mode .stats-section {
    background: #1a1a1a;
}
body.dark-mode .stat-box {
    background: #242424;
    padding: 20px;
    border-radius: 8px;
    margin: 10px;
}

/* 5. Sticky Side Navigation */
body.dark-mode .sticky-left-nav ul li a span {
    color: #ffffff !important;
}
body.dark-mode .sticky-left-nav ul li a::before {
    background-color: #ffffff !important;
}

/* 6. Cards (Stakeholders, Events, Startups) */
body.dark-mode .eventlist,
body.dark-mode .event-card,
body.dark-mode .startup_community,
body.dark-mode .programlist {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.dark-mode .eventlist h4,
body.dark-mode .event-content h3,
body.dark-mode .event-content h4,
body.dark-mode .startup_community h5 {
    color: #64b5f6 !important; /* Lighter blue for readability */
}

body.dark-mode .eventlist p,
body.dark-mode .startup_community p {
    color: #cccccc !important;
}

/* 7. Startup Community Counter Row */
body.dark-mode .couter-row {
    background: #1a2633 !important; /* Deep navy */
}
body.dark-mode .couter-row .item p {
    color: #ffffff !important;
}

/* 8. Programs Grid (The colorful cards) */
/* When in dark mode, we keep the colors but slightly darken them so they don't glow too much */
body.dark-mode .program-card {
    filter: brightness(0.8) contrast(1.2);
}

body.dark-mode .program-card:hover {
    filter: brightness(1); /* Full brightness on hover */
}

/* 9. Career Section Fixes */
body.dark-mode .btn-career {
    background: #ffffff;
    color: #000000;
}
body.dark-mode .btn-career:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* 10. Popup Modal Dark Mode */
body.dark-mode #customPopupBox {
    background: #1e1e1e;
    color: #fff;
}
body.dark-mode .popup-title {
    background: #1e1e1e;
    color: #fff;
}
body.dark-mode .popup-image {
    background: #2d2d2d;
}

/* 11. News Board Vertical Scroll */
body.dark-mode .news-wrapper::before {
    background: linear-gradient(to bottom, #121212, transparent);
}
body.dark-mode .news-wrapper::after {
    background: linear-gradient(to top, #121212, transparent);
}

/* 12. Map Section (Optional: Dark Filter) */
body.dark-mode iframe {
    filter: invert(90%) hue-rotate(180deg);
}

/* 13. Horizontal Lines / Dividers */
body.dark-mode .news-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR ABOUT.PHP
   ========================================================================== */

/* 1. Main Background and Content */
body.dark-mode .about-content {
    background-color: #121212 !important;
}

/* 2. Hero Section Adjustments */
body.dark-mode .about-hero {
    /* Slightly darker gradient for the hero background */
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
    url('https://via.placeholder.com/1500x500') center/cover !important;
}

body.dark-mode .about-hero p {
    color: #bbbbbb;
}

/* 3. Headers and Paragraphs */
body.dark-mode .about-block h2 {
    color: #ffffff !important;
}

body.dark-mode .about-block p {
    color: #cccccc !important;
}

/* 4. Highlight Block (Foundation section) */
body.dark-mode .highlight {
    background: #1e1e1e !important; /* Darker grey background */
    border-left: 5px solid var(--iimj-orange);
    color: #ffffff;
}

/* 5. Cards Section */
body.dark-mode .card {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

body.dark-mode .card h3 {
    color: #64b5f6 !important; /* Lighter blue for better contrast against dark */
}

body.dark-mode .card p {
    color: #bbbbbb !important;
}

/* 6. Card Hover Effect */
body.dark-mode .card:hover {
    background: #252525 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

/* 7. Mobile Overrides for Dark Mode */
@media (max-width: 991px) {
    body.dark-mode header {
        background: #1e1e1e !important;
    }
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR VISION-MISION.PHP
   ========================================================================== */

/* 1. Main Section Background */
body.dark-mode .vm-section {
    background-color: #121212 !important;
}

/* 2. Page Banner Adjustments */
body.dark-mode .page-banner {
    background: #000000 !important; /* Pure black or very dark navy */
    border-bottom: 1px solid #333;
}

body.dark-mode .page-banner h1 {
    color: #ffffff !important;
}

/* 3. Vision & Mission Cards */
body.dark-mode .vm-card {
    background-color: #1e1e1e !important;
    border-left: 5px solid var(--iimj-orange); /* Keep the orange accent */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5) !important;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* 4. Card Titles */
body.dark-mode .vm-card h2 {
    color: #64b5f6 !important; /* Lighter blue for better visibility */
}

/* 5. Card Body Text */
body.dark-mode .vm-card p {
    color: #dddddd !important;
}

/* 6. Mobile View Dark Mode Adjustments */
@media (max-width: 991px) {
    body.dark-mode .vm-card {
        background-color: #1e1e1e !important;
    }
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR DIRECTOR-MESSAGE.PHP
   ========================================================================== */

/* 1. Main Section Background */
body.dark-mode .ceo-section {
    background-color: #121212 !important;
}

/* 2. Container and Image Shadow */
body.dark-mode .ceo-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
    border: 1px solid #333;
}

/* 3. Text Content - Headers */
body.dark-mode .ceo-content h1 {
    color: #ffffff !important;
}

body.dark-mode .ceo-content h3 {
    color: #f37021 !important; /* Keeping the theme orange */
}

body.dark-mode .ceo-content h4 {
    color: #bbbbbb !important;
}

/* 4. Message Paragraphs */
body.dark-mode .ceo-content p {
    color: #dddddd !important;
    line-height: 1.8;
}

/* 5. Override for the manual white color in your inline style */
@media (max-width: 991px) {
    /* This ensures that in Light Mode on mobile, the text isn't white on white */
    .ceo-content p {
        color: #444 !important; 
    }

    /* This ensures that in Dark Mode on mobile, it stays light */
    body.dark-mode .ceo-content p {
        color: #dddddd !important;
    }
}

/* 6. Selection Highlight (Optional but nice) */
body.dark-mode ::selection {
    background: #f37021;
    color: #fff;
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR BOARD-GOVERNORS.PHP
   ========================================================================== */

/* 1. Page Header (Orange section) */
body.dark-mode .page-header {
    background: #c25110 !important; /* Slightly deeper orange for dark mode */
}

/* 2. Main Background Inversion */
body.dark-mode .board-container {
    background: #121212 !important; /* From dark blue to dark charcoal */
}

/* 3. Section Title ( चेयरमैन/सदस्य ) */
body.dark-mode .section-title {
    color: #ffffff !important;
    border-left: 5px solid #f37021;
}

/* 4. Board Card Adjustments */
body.dark-mode .board-card {
    background: #1e1e1e !important; /* Dark card background */
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6) !important;
}

/* 5. Text Colors inside Cards */
body.dark-mode .board-card h3 {
    color: #64b5f6 !important; /* Light blue for visibility */
}

body.dark-mode .board-card p {
    color: #e0e0e0 !important; /* Primary name/title */
}

body.dark-mode .board-card span {
    color: #999999 !important; /* Secondary organization info */
}

/* 6. Image border inside Card */
body.dark-mode .board-card img {
    border: 1px solid #444;
    filter: brightness(0.9); /* Slightly dim images to fit dark aesthetic */
}

/* 7. Hover States */
body.dark-mode .board-card:hover {
    background: #252525 !important;
    border-color: #f37021; /* Orange border glow on hover */
    box-shadow: 0 15px 40px rgba(0,0,0,0.8) !important;
}

/* 8. Chairman Specific Wrapper Fix (if used) */
body.dark-mode .chairman-card {
    border-top: 4px solid #f37021;
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR CAMPUS PAGES (JAMMU, SRINAGAR, LADAKH)
   ========================================================================== */

/* 1. Global Background */
body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0 !important;
}

/* 2. Hero Section */
body.dark-mode .hero {
    background: linear-gradient(135deg, #000000, #0D5B7A) !important;
}

body.dark-mode .hero h1 {
    color: #ffffff;
}

body.dark-mode .hero p,
body.dark-mode .breadcrumb {
    color: #bbbbbb;
}

/* 3. Feature Cards */
body.dark-mode .feature-card {
    background: #1e1e1e !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

body.dark-mode .feature-card h3 {
    color: #64b5f6 !important;
}

body.dark-mode .feature-card p {
    color: #bbbbbb;
}

/* 4. Tab Buttons */
body.dark-mode .tab-btn {
    background: #252525 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark-mode .tab-btn.active,
body.dark-mode .tab-btn:hover {
    background: #0D5B7A !important;
    color: #ffffff !important;
}

/* 5. Grid Cards (Events, Gallery, News) */
body.dark-mode .card {
    background: #1e1e1e !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

body.dark-mode .card-body h3 {
    color: #ffffff !important;
}

body.dark-mode .card-body p {
    color: #bbbbbb !important;
}

/* 6. Incubatee Cards */
body.dark-mode .incubatee {
    background: #1e1e1e !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

body.dark-mode .incubatee h3 {
    color: #f37021 !important;
}

body.dark-mode .incubatee p {
    color: #cccccc !important;
}

/* 7. Contact Box */
body.dark-mode .contact-box {
    background: #1e1e1e !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

body.dark-mode .contact-box h2 {
    color: #64b5f6 !important;
}

/* 8. Utility Classes */
body.dark-mode .no-data-msg, 
body.dark-mode .no-data {
    color: #888;
}

/* 9. Image Adjustments */
body.dark-mode .card img {
    filter: brightness(0.85);
    border-bottom: 1px solid #333;
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR PROGRAM.PHP
   ========================================================================== */

/* 1. Global Backgrounds */
body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0;
}

body.dark-mode .program-section,
body.dark-mode .glass-section,
body.dark-mode .skill-section,
body.dark-mode .thrust-section {
    background: #121212 !important;
}

/* 2. Hero Adjustments */
body.dark-mode .hero {
    background: linear-gradient(135deg, #000000, #0D5B7A) !important;
}

body.dark-mode .hero-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3. Section Headers & Tags */
body.dark-mode .section-left h2,
body.dark-mode .skill-left h2,
body.dark-mode .section-head h2 {
    color: #ffffff !important;
}

body.dark-mode .section-left p,
body.dark-mode .skill-left p,
body.dark-mode .section-head p,
body.dark-mode .feature-card p,
body.dark-mode .thrust-card p {
    color: #bbbbbb !important;
}

/* 4. Feature Cards & Thrust Cards */
body.dark-mode .feature-card,
body.dark-mode .thrust-card,
body.dark-mode .skill-card {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

body.dark-mode .feature-card h3,
body.dark-mode .thrust-card h3 {
    color: #64b5f6 !important; /* Lighter blue for dark contrast */
}

/* 5. Glass Section (Virtual Incubation) */
body.dark-mode .glass-card {
    background: linear-gradient(135deg, #000000, #0D5B7A) !important;
    border: 1px solid #333;
}

body.dark-mode .stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 6. Program Banner (NIDHI EIR) */
body.dark-mode .program-banner .overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

/* 7. Skill Cards Special State */
body.dark-mode .skill-card {
    color: #ffffff;
}

body.dark-mode .skill-card:hover {
    background: #0D5B7A !important;
    border-color: #f37021;
}

/* 8. Sticky Nav Dark Mode */
body.dark-mode .program-nav {
    background: #1e1e1e !important;
    border-bottom: 1px solid #333;
}

body.dark-mode .program-nav a {
    color: #ffffff;
}

body.dark-mode .program-nav a:hover {
    background: #f37021;
}

/* 9. Floating Shapes Dimming */
body.dark-mode .shape1, 
body.dark-mode .shape3 {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .shape2 {
    background: rgba(243, 112, 33, 0.05);
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR FUNDING.PHP
   ========================================================================== */

/* 1. Global Backgrounds */
body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0;
}

body.dark-mode .dashboard-section,
body.dark-mode .cms-section {
    background: #121212 !important;
}

body.dark-mode .guidelines-section {
    background: #1a1a1a !important; /* Slightly lighter to differentiate section */
}

/* 2. Hero Section */
body.dark-mode .hero {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)), 
                url('images/funding-bg.jpg') center/cover !important;
}

/* 3. Sticky Navigation */
body.dark-mode .fund-nav {
    background: #1e1e1e !important;
    border-bottom: 1px solid #333;
}

body.dark-mode .fund-nav a {
    color: #ffffff;
}

body.dark-mode .fund-nav a:hover {
    background: #0D5B7A;
}

/* 4. Section Headers */
body.dark-mode .section-head h2,
body.dark-mode .guide-left h2,
body.dark-mode .equity-content h2,
body.dark-mode .cms-card h2 {
    color: #ffffff !important;
}

body.dark-mode .section-head p,
body.dark-mode .guide-left p {
    color: #bbbbbb !important;
}

/* 5. Funding Scheme Cards */
body.dark-mode .scheme-card {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6) !important;
}

body.dark-mode .status-row h3 {
    color: #ffffff !important;
}

body.dark-mode .funding-amount {
    color: #f37021 !important;
}

body.dark-mode .deadline {
    color: #ff954b !important;
}

body.dark-mode .eligibility h4 {
    color: #64b5f6 !important;
}

body.dark-mode .eligibility li {
    color: #cccccc !important;
}

/* 6. Status Badges */
body.dark-mode .open {
    background: rgba(23, 163, 74, 0.2);
    color: #4ade80;
}

body.dark-mode .closed {
    background: rgba(214, 54, 54, 0.2);
    color: #f87171;
}

/* 7. Closed Card State */
body.dark-mode .closed-card {
    opacity: 0.6;
    background: #181818 !important;
}

body.dark-mode .closed-btn {
    background: #333 !important;
    color: #888 !important;
}

/* 8. Guideline Cards */
body.dark-mode .guide-card {
    background: #252525 !important;
    border: 1px solid #333;
}

body.dark-mode .guide-card h3 {
    color: #64b5f6 !important;
}

body.dark-mode .guide-card p {
    color: #bbbbbb !important;
}

/* 9. Equity Section */
body.dark-mode .equity-section {
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), 
                url('images/equity-bg.jpg') center/cover !important;
}

body.dark-mode .equity-box {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 10. CMS/About Dashboard Card */
body.dark-mode .cms-card {
    background: linear-gradient(135deg, #000000, #0D5B7A) !important;
    border: 1px solid #333;
}

/* 11. Shape Dimming */
body.dark-mode .shape1, 
body.dark-mode .shape3 {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .shape2 {
    background: rgba(243, 112, 33, 0.05);
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR RESOURCES-POLICY.PHP
   ========================================================================== */

/* 1. Global Backgrounds */
body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0;
}

body.dark-mode .mentorship-section,
body.dark-mode .graduation-section,
body.dark-mode .download-section {
    background: #121212 !important;
}

/* 2. Hero & Sticky Nav */
body.dark-mode .hero {
    background: linear-gradient(rgba(0,0,0,0.88), rgba(0,0,0,0.88)), 
                url('images/resources-bg.jpg') center/cover !important;
}

body.dark-mode .sticky-nav {
    background: #1e1e1e !important;
    border-bottom: 1px solid #333;
}

body.dark-mode .sticky-nav a {
    color: #ffffff;
}

body.dark-mode .sticky-nav a:hover {
    background: #0D5B7A;
}

/* 3. Typography Headers */
body.dark-mode .left-content h2,
body.dark-mode .ipr-content h2,
body.dark-mode .section-heading h2,
body.dark-mode .download-card h2,
body.dark-mode .graduation-card h3,
body.dark-mode .info-card h3 {
    color: #ffffff !important;
}

body.dark-mode .left-content p,
body.dark-mode .section-heading p,
body.dark-mode .graduation-card p,
body.dark-mode .info-card p {
    color: #bbbbbb !important;
}

/* 4. Info Cards (Mentorship) */
body.dark-mode .info-card {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 18px 40px rgba(0,0,0,0.5) !important;
}

/* 5. IPR Section (Glass Grid) */
body.dark-mode .ipr-section {
    background: linear-gradient(rgba(0,0,0,0.92), rgba(0,0,0,0.9)), 
                url('images/ipr-bg.jpg') center/cover !important;
}

body.dark-mode .ipr-box {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* 6. Graduation Policy Cards */
body.dark-mode .graduation-card {
    background: #1e1e1e !important;
    border: 1px solid #333;
}

body.dark-mode .graduation-card li {
    color: #cccccc !important;
}

/* 7. Download Section Card */
body.dark-mode .download-card {
    background: linear-gradient(135deg, #000000, #0D5B7A) !important;
    border: 1px solid #333;
}

/* 8. Circles Dimming */
body.dark-mode .circle1, 
body.dark-mode .circle3 {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .circle2 {
    background: rgba(243, 112, 33, 0.05);
}

/* 9. Breadcrumb */
body.dark-mode .breadcrumb {
    color: #aaaaaa;
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR CAREER.PHP
   ========================================================================== */

/* 1. Main Background */
body.dark-mode {
    background-color: #121212 !important;
}

/* 2. Sidebar Filter Card */
body.dark-mode .filter-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark-mode .filter-title,
body.dark-mode .group-label {
    color: #ffffff !important;
}

body.dark-mode .checkbox-item label {
    color: #bbbbbb !important;
}

/* 3. Dropdown / Select Inputs */
body.dark-mode .custom-select {
    background-color: #2d2d2d;
    border-color: #444;
    color: #fff;
}

/* 4. Job Listings */
body.dark-mode .page-title {
    color: #ffffff !important;
}

body.dark-mode .job-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .job-card:hover {
    border-color: #f37021 !important; /* Orange glow on hover */
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

body.dark-mode .job-name {
    color: #64b5f6 !important; /* Lighter blue for readability */
}

body.dark-mode .job-info-row {
    color: #aaaaaa !important;
}

body.dark-mode .job-summary {
    color: #cccccc !important;
}

body.dark-mode .job-footer {
    border-top-color: #333 !important;
}

body.dark-mode .details-link {
    color: #f37021 !important; /* Orange link */
}

body.dark-mode .posted-text {
    color: #777 !important;
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0;
}

/* Orange Hero Header - make it slightly deeper */
body.dark-mode .detail-header {
    background: #b54a0d !important;
    border-bottom: 1px solid #333;
}

/* Main Cards */
body.dark-mode .detail-card {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Typography */
body.dark-mode .section-title {
    color: #ffffff !important;
    border-left-color: #f37021 !important; /* Orange accent */
}

body.dark-mode .overview-title {
    color: #ffffff;
}

body.dark-mode .job-description, 
body.dark-mode .job-summary,
body.dark-mode .responsibilities li,
body.dark-mode .info-value {
    color: #bbbbbb !important;
}

body.dark-mode .info-label {
    color: #ffffff !important;
}

/* Apply Section */
body.dark-mode .apply-section {
    border-top-color: #333 !important;
}

body.dark-mode .apply-section h3 {
    color: #ffffff;
}

body.dark-mode .apply-btn {
    background: #f37021 !important; /* Consistent orange button */
}

body.dark-mode .apply-btn:hover {
    background: #d95e18 !important;
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR EVENTS.PHP
   ========================================================================== */

/* 1. Main Background */
body.dark-mode {
    background-color: #121212 !important;
}

/* 2. Sidebar Filters */
body.dark-mode .expand-filter,
body.dark-mode .filter-box {
    background: #1e1e1e !important;
    border-color: #333 !important;
    color: #ffffff;
}

body.dark-mode .filter-header h3 {
    color: #ffffff;
}

body.dark-mode .filter-item {
    color: #bbbbbb;
}

/* Date inputs in filter */
body.dark-mode .date-group input {
    color: #ffffff;
    border-bottom-color: #444;
}

/* 3. Event Content & Grid */
body.dark-mode .events-title {
    color: #ffffff;
}

body.dark-mode .event-card {
    background: #1e1e1e !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

body.dark-mode .event-content h3 {
    color: #64b5f6 !important; /* Lighter blue for readability */
}

body.dark-mode .event-content p {
    color: #cccccc !important;
}

body.dark-mode .mode-text {
    color: #4fc3f7 !important;
}

body.dark-mode .view-more {
    color: #f37021 !important; /* Primary orange */
}

/* 4. Filter Radio buttons (Accent) */
body.dark-mode .filter-item input[type="radio"] {
    accent-color: #f37021;
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode {
    background: #121212 !important;
}

/* 1. Main and Side Info Cards */
body.dark-mode .main-info, 
body.dark-mode .side-info {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}

/* 2. Typography */
body.dark-mode .main-info h3,
body.dark-mode .side-info h3,
body.dark-mode .info-value {
    color: #ffffff !important;
}

body.dark-mode .description-text {
    color: #bbbbbb !important;
}

body.dark-mode hr,
body.dark-mode .info-item {
    border-color: #333 !important;
}

/* 3. Info Icons */
body.dark-mode .info-item i {
    background: #2d2d2d;
    color: #64b5f6;
}

/* 4. Labels */
body.dark-mode .info-label {
    color: #888888;
}

/* 5. Buttons */
body.dark-mode .category-badge {
    background: #f37021 !important; /* Orange badge in dark mode */
}

body.dark-mode .back-btn:hover {
    color: #f37021;
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR FOOTER.PHP
   ========================================================================== */

/* 1. Main Footer Background */
body.dark-mode .footer-section {
    background: #000000 !important; /* Pure black for maximum contrast in dark mode */
    border-top: 1px solid #333;
}

/* 2. Contact Box Adjustment */
body.dark-mode .contact-box {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #333 !important;
}

/* 3. Text and Link Colors */
body.dark-mode .footer-column h2 {
    color: #f37021 !important; /* Ensure headers stay brand orange */
}

body.dark-mode .useful-links ul li a, 
body.dark-mode .quick-links ul li a,
body.dark-mode .address-block p,
body.dark-mode .sub-text,
body.dark-mode .contact-box h3 {
    color: #cccccc !important;
}

/* 4. Link Hover Effects */
body.dark-mode .useful-links ul li a:hover, 
body.dark-mode .quick-links ul li a:hover {
    color: #ffffff !important;
    padding-left: 10px;
}

/* 5. Social Icons */
body.dark-mode .social-icons a {
    background: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #333;
}

body.dark-mode .social-icons a:hover {
    background: #f37021 !important;
    transform: translateY(-4px);
}

/* 6. Footer Bottom Bar */
body.dark-mode .footer-bottom {
    background: #0a0a0a !important;
    color: #888888 !important;
    border-top: 1px solid #222;
}

/* 7. Fixed Action Button (Sticky Apply Button) */
body.dark-mode .fixed-action-group .apply-btn,
body.dark-mode .sticky-incubation-btn a {
    background: #f37021 !important; /* Change to Orange in dark mode for visibility */
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

body.dark-mode .sticky-incubation-btn a:hover {
    background: #ff8f44 !important;
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR CONTACT.PHP
   ========================================================================== */

/* 1. Global Backgrounds */
body.dark-mode {
    background-color: #121212 !important;
}

body.dark-mode .center-section,
body.dark-mode .form-section {
    background: #121212 !important;
}

/* 2. Hero Section */
body.dark-mode .hero {
    background: linear-gradient(135deg, #000000, #0D5B7A) !important;
}

/* 3. Top Info & Center Cards */
body.dark-mode .info-card,
body.dark-mode .center-card {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 15px 45px rgba(0,0,0,0.5) !important;
}

body.dark-mode .info-card h3,
body.dark-mode .center-card h3,
body.dark-mode .section-head h2 {
    color: #ffffff !important;
}

body.dark-mode .info-card p,
body.dark-mode .center-card p,
body.dark-mode .section-head p {
    color: #bbbbbb !important;
}

/* 4. Form Container */
body.dark-mode .form-container {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}

body.dark-mode .left-content h2 {
    color: #ffffff !important;
}

body.dark-mode .note-box {
    background: #251a12 !important; /* Dark orange tint */
    color: #ff944e;
    border-left-color: #f37021;
}

/* 5. Input Fields */
body.dark-mode .input-group label {
    color: #64b5f6 !important; /* Light blue labels */
}

body.dark-mode .input-group input,
body.dark-mode .input-group select,
body.dark-mode .input-group textarea {
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #ffffff !important;
}

body.dark-mode .input-group input:focus,
body.dark-mode .input-group select:focus,
body.dark-mode .input-group textarea:focus {
    border-color: #f37021 !important;
    background: #333 !important;
}

/* 6. CTA Card */
body.dark-mode .cta-card {
    background: linear-gradient(135deg, #000000, #0D5B7A) !important;
    border: 1px solid #333;
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode {
    background-color: #121212 !important;
}

body.dark-mode .otp-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
    border-top: 5px solid #f37021; /* Orange accent */
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

body.dark-mode h2 { color: #ffffff; }
body.dark-mode p { color: #bbbbbb; }

body.dark-mode input {
    background: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

body.dark-mode .verify-btn {
    background: #f37021;
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode {
    background-color: #000000 !important; /* Deeper background for success */
}

body.dark-mode .success-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode h1 { color: #ffffff; }
body.dark-mode p { color: #cccccc; }

/* ==========================================================================
   DARK MODE OVERRIDES FOR TENDERS.PHP
   ========================================================================== */

/* 1. Global Background */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0;
}

/* 2. Header Adjustment */
body.dark-mode .main-header {
    background: #000000 !important; /* Pure black header */
    border-bottom: 8px solid var(--accent-orange);
}

/* 3. Table Card Container */
body.dark-mode .table-card {
    background: #1e1e1e !important;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}

/* 4. Table Elements */
body.dark-mode .responsive-table thead {
    background-color: #000000 !important; /* Darker header for the table */
}

body.dark-mode .responsive-table th {
    color: #ffffff;
    border-bottom: 2px solid #333;
}

body.dark-mode .responsive-table td {
    border-bottom: 1px solid #2d2d2d !important;
    color: #cccccc;
}

/* Zebra Striping for Rows */
body.dark-mode .responsive-table tbody tr:nth-child(even) {
    background-color: #252525;
}

/* 5. Links and Highlights */
body.dark-mode .tender-link {
    color: #64b5f6 !important; /* Lighter blue for better visibility */
}

body.dark-mode .tender-link:hover {
    color: var(--accent-orange) !important;
}

body.dark-mode .highlight-date {
    color: #ff944e !important; /* Brighter orange for emphasis */
}

body.dark-mode .sno-cell {
    color: #666;
}

/* 6. Empty State */
body.dark-mode .no-data {
    color: #888;
    background: #1e1e1e;
}

/* 7. Mobile Table Overrides (Dark Mode) */
@media screen and (max-width: 768px) {
    body.dark-mode .responsive-table tr {
        border-bottom: 2px solid #333 !important;
    }
    
    body.dark-mode .responsive-table td::before {
        color: #64b5f6 !important; /* Labels in mobile view */
    }
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR CAMPUS SECTION
   ========================================================================== */

/* 1. Section Background */
body.dark-mode .campus-section {
    background-color: #121212 !important;
}

/* 2. Section Title */
body.dark-mode .section-title {
    color: #ffffff !important;
}

/* 3. Base Card Styling in Dark Mode */
body.dark-mode .campus-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 4. Specific Background Colors (Subtle Tints for Dark Mode) */
body.dark-mode .campus-card:nth-child(1) { background-color: #1a2633; } /* Deep Navy Tint */
body.dark-mode .campus-card:nth-child(2) { background-color: #2d1a22; } /* Deep Rose Tint */
body.dark-mode .campus-card:nth-child(3) { background-color: #1a2d21; } /* Deep Forest Tint */

/* 5. Text Colors inside Cards */
body.dark-mode .campus-card h3 {
    color: #ffffff !important;
}

body.dark-mode .campus-card p {
    color: #bbbbbb !important;
}

/* 6. Interaction: Bold colors on hover stay consistent */
body.dark-mode .campus-card:nth-child(1):hover { background-color: #0056b3; }
body.dark-mode .campus-card:nth-child(2):hover { background-color: #be185d; }
body.dark-mode .campus-card:nth-child(3):hover { background-color: #15803d; }

/* 7. Button Styling in Dark Mode */
body.dark-mode .know-more-btn {
    background-color: #f37021; /* Using brand orange for visibility */
    color: #ffffff;
}

/* Button color change on card hover in dark mode */
body.dark-mode .campus-card:hover .know-more-btn {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* 8. Hover shadow enhancement */
body.dark-mode .campus-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}




/* ==========================================================================
   COMPREHENSIVE DARK MODE RECOVERY LAYER & BUG FIXES
   ========================================================================== */

/* --- 1. GLOBAL ROOT BASELINE ADJUSTMENT --- */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* --- 2. HEADER TOP-BAR BRANDING RECOVERY --- */
body.dark-mode :root {
    --topbar-bg: #112211; /* Darkened custom sage-tint background palette */
}
body.dark-mode .top-bar {
    background-color: #152415 !important;
    color: #ffffff !important;
    border-bottom: 1px solid #253825;
}
body.dark-mode .top-bar a {
    color: #dddddd !important;
}
body.dark-mode .top-bar a:hover {
    color: var(--iimj-orange) !important;
}

/* --- 3. INLINE SPECIFICITY OVERRIDES (FIXES HIDDEN/BLACK TEXT) --- */
body.dark-mode .iimj-title-left-column h2,
body.dark-mode .iimj-title-left-column p,
body.dark-mode .iimj-nav-arrow-btn,
body.dark-mode .hero-left h1,
body.dark-mode .hero-left p,
body.dark-mode .hero-tag,
body.dark-mode .btn.secondary,
body.dark-mode .stats-main-title h2 {
    color: #ffffff !important; /* Force explicit text node elements white */
    margin-left: unset !important; /* Reset layout alignment shifts if crashing */
}

/* --- 4. CEI TABBED ACCORDION VIEWPORT FRAME MODULE --- */
body.dark-mode .cei-tabbed-dashboard-wrapper {
    background-color: #121212 !important;
    padding: 60px 0;
}
body.dark-mode .cei-viewport-floating-card {
    background: rgba(30, 30, 30, 0.85) !important; /* Deep dark translucent mask glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
}
body.dark-mode .cei-viewport-floating-card h2 {
    color: #ffffff !important;
}
body.dark-mode .cei-viewport-floating-card p {
    color: #dddddd !important;
}
body.dark-mode .cei-card-action-btn {
    background-color: var(--iimj-orange) !important;
    color: #ffffff !important;
}

/* CEI Navigation Tabs Right Column */
body.dark-mode .cei-accordion-navigation-column {
    background-color: #1a1a1a !important;
    border-radius: 12px;
    border: 1px solid #2d2d2d;
}
body.dark-mode .cei-nav-vertical-tab {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #2d2d2d !important;
    color: #aaaaaa !important;
}
body.dark-mode .cei-nav-vertical-tab.active-tab,
body.dark-mode .cei-nav-vertical-tab:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}
body.dark-mode .cei-nav-vertical-tab.active-tab .cei-tab-arrow-icon {
    color: var(--iimj-orange) !important;
}

/* --- 5. COMPREHENSIVE ANNOUNCEMENT & NEWS BOARD MODULE --- */
body.dark-mode .announcement {
    background-color: #1a1a1a !important; /* Eliminate bright fallback fields */
    border-top: 1px solid #2d2d2d;
    border-bottom: 1px solid #2d2d2d;
}
body.dark-mode .news-subtitle {
    color: #f37021 !important; /* Light accent descriptor alert headers */
}
body.dark-mode .news-item {
    background: #222222 !important;
    border: 1px solid #333333 !important;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px !important;
    transition: all 0.3s ease;
}
body.dark-mode .news-item:hover {
    background: #2a2a2a !important;
    border-color: var(--iimj-orange) !important;
}
body.dark-mode .news-item a p {
    color: #ffffff !important;
}
body.dark-mode .news-meta small {
    color: #aaaaaa !important;
}
body.dark-mode .news-arrow {
    color: var(--iimj-orange) !important;
}

/* News Gradient Faders */
body.dark-mode .news-wrapper::before {
    background: linear-gradient(to bottom, #1a1a1a, transparent) !important;
}
body.dark-mode .news-wrapper::after {
    background: linear-gradient(to top, #1a1a1a, transparent) !important;
}

/* Spotlight Publication Wrapper Right Column */
body.dark-mode .publication-header h3 {
    color: #ffffff !important;
}
body.dark-mode .publication-subtitle {
    color: #bbbbbb !important;
}
body.dark-mode .publication-card {
    background-color: #1e1e1e !important;
    border: 1px solid #333333 !important;
    border-radius: 12px;
    overflow: hidden;
}
body.dark-mode .publication-content {
    padding: 20px;
    background-color: #1e1e1e !important;
}
body.dark-mode .publication-content h4 {
    color: #ffffff !important;
    font-size: 18px;
    margin-bottom: 10px;
}
body.dark-mode .publication-content p {
    color: #cccccc !important;
}
body.dark-mode .publication-date {
    color: var(--iimj-orange) !important;
    font-weight: 600;
}
body.dark-mode .publication-btn {
    color: #64b5f6 !important;
    text-decoration: none;
    font-weight: 600;
}

/* --- 6. CAREER MINI-CARD GRID LAYOUT --- */
body.dark-mode .career-highlight-section {
    background-color: #121212 !important;
    position: relative;
}
body.dark-mode .career-left h4 {
    color: var(--iimj-orange) !important;
}
body.dark-mode .career-left h2 {
    color: #ffffff !important;
}
body.dark-mode .career-mini-card {
    background-color: #1e1e1e !important;
    border: 1px solid #333333 !important;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}
body.dark-mode .career-mini-card:hover {
    background-color: #242424 !important;
    border-color: var(--iimj-orange) !important;
    transform: translateY(-4px);
}
body.dark-mode .career-card-content h3 {
    color: #64b5f6 !important; /* Accessible soft responsive blue contrast profile link */
}
body.dark-mode .career-card-content p {
    color: #cccccc !important;
}
body.dark-mode .career-meta span {
    color: #999999 !important;
}
body.dark-mode .career-bottom a {
    color: var(--iimj-orange) !important;
    text-decoration: none;
    font-weight: 600;
}
body.dark-mode .career-view-btn {
    background-color: #ffffff !important;
    color: #121212 !important;
    font-weight: 700;
}
body.dark-mode .career-view-btn:hover {
    background-color: var(--iimj-orange) !important;
    color: #ffffff !important;
}

/* --- 7. RECOVERY LAYER FOR CAMPUS HORIZONTAL CAROUSEL --- */
body.dark-mode .campus-section {
    background-color: #121212 !important;
}
body.dark-mode .campus-heading h2 {
    color: #ffffff !important;
}
body.dark-mode .campus-heading p {
    color: #bbbbbb !important;
}
body.dark-mode .campus-grid-box {
    background-color: #1e1e1e !important;
    border: 1px solid #333333 !important;
    border-radius: 12px;
    padding: 25px;
}
body.dark-mode .campus-grid-box h3 {
    color: #ffffff !important;
}
body.dark-mode .campus-grid-box p {
    color: #bbbbbb !important;
}
body.dark-mode .campus-grid-box a {
    color: var(--iimj-orange) !important;
}
body.dark-mode .campus-icon i {
    color: #64b5f6 !important;
}
body.dark-mode .campus-btn {
    background-color: var(--iimj-orange) !important;
    color: #ffffff !important;
}

/* --- 8. STATS SECTION IMPACT NARRATIVE OVERRIDES --- */
body.dark-mode .stats-main-title h2 {
    color: #ffffff !important;
}
body.dark-mode .stats-main-title h2 span {
    color: var(--iimj-orange) !important;
}
body.dark-mode .stats-narrative-box {
    background-color: #1e1e1e !important;
    border-left: 4px solid var(--iimj-orange) !important;
    padding: 25px;
    border-radius: 4px 12px 12px 4px;
}
body.dark-mode .stats-narrative-box p {
    color: #dddddd !important;
    line-height: 1.8;
}


/* ==========================================================================
   FINAL COMPONENT CLEANUP FOR MISSING DARK MODE SECTIONS
   ========================================================================== */

/* --- 1. NEWS TICKER FIXES --- */
body.dark-mode .news-ticker {
    background-color: #000000 !important;
    border-bottom: 1px solid #222 !important;
}

body.dark-mode .ticker-wrapper::before {
    background: linear-gradient(to right, #000000, transparent) !important;
}

body.dark-mode .ticker-wrapper::after {
    background: linear-gradient(to left, #000000, transparent) !important;
}

body.dark-mode .ticker-track span,
body.dark-mode .ticker-track span a {
    color: #ffffff !important;
}

body.dark-mode .ticker-track span a:hover {
    color: var(--iimj-orange) !important;
}


/* --- 2. HORIZONTAL SCROLLER TITLE & SUBTEXT OVERRIDES --- */
/* This safely forces the inline styles out when body has .dark-mode */

body.dark-mode .iimj-isolated-container{
    background: #000000 !important;
}

body.dark-mode .iimj-isolated-container h2,
body.dark-mode .iimj-isolated-container p {
    color: #ffffff !important;
    margin-left: 0 !important; /* Removes your layout offset margin bugs if they misalign on dark view */
}

body.dark-mode .iimj-title-left-column h2 {
    color: #ffffff !important;
}

body.dark-mode .iimj-title-left-column p {
    color: #ffffff !important; /* Soft descriptive accent cyan text */
}

body.dark-mode .iimj-nav-arrow-btn {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

body.dark-mode .iimj-nav-arrow-btn:hover {
    background: #ffffff !important;
    color: var(--iimj-orange) !important;
}

/* ==========================================================================
   ISOLATED CAROUSEL CLEANUP: FIXED TITLE PARAGRAPH & ARROW BUTTONS
   ========================================================================== */

/* 1. Forces the inline black parameter on the section descriptive paragraph to white */
/* ==========================================================================
   FORCE SPECIFIC PROGRAM SECTION PARAGRAPH TO WHITE
   ========================================================================== */

body.dark-mode .iimj-isolated-container .iimj-title-left-column p,
body.dark-mode .iimj-isolated-container .iimj-title-left-column p[style],
body.dark-mode .iimj-title-left-column > p {
    color: #ffffff !important;
}

/* 2. Overrides the inline black colors on the left/right scroll text arrows */
body.dark-mode .iimj-nav-buttons-right-column .iimj-nav-arrow-btn,
body.dark-mode .iimj-nav-buttons-right-column .iimj-nav-arrow-btn[style] {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background-color: transparent !important;
}

/* 3. Maintains custom smooth active color transition on arrow hover states */
body.dark-mode .iimj-nav-buttons-right-column .iimj-nav-arrow-btn:hover {
    background-color: #ffffff !important;
    color: var(--iimj-orange) !important;
    border-color: #ffffff !important;
}

/* --- 3. ANNOUNCEMENT INTERNAL CONTAINERS & BOX TYPOGRAPHY --- */
body.dark-mode .announcement {
    background-color: #121212 !important;
}

body.dark-mode .news-left .section-title {
    color: #ffffff !important;
}

/* Internal Box/Wrapper context card background fields */
body.dark-mode .news-wrapper {
    background-color: #1e1e1e !important;
    border: 1px solid #333333 !important;
    border-radius: 12px;
    padding: 10px 20px !important;
}

body.dark-mode .news-item {
    background-color: transparent !important;
    border-bottom: 1px solid #2d2d2d !important;
    border-radius: 0px !important;
}

body.dark-mode .news-item:last-child {
    border-bottom: none !important;
}

body.dark-mode .news-item a p,
body.dark-mode .news-item span {
    color: #ffffff !important;
}

body.dark-mode .news-item a:hover p {
    color: var(--iimj-orange) !important;
}


/* --- 4. FOOTER TITLES & SOCIAL CARDS RECOVERY --- */
body.dark-mode .footer-section {
    background-color: #000000 !important;
    border-top: 1px solid #222 !important;
}

/* Target footer headers directly to replace internal markup conflicts */
body.dark-mode .footer-column h2 {
    color: var(--iimj-orange) !important; /* Forces your brand orange layout title priority */
    font-weight: 700 !important;
}

body.dark-mode .contact-box h3,
body.dark-mode .logo-text h3 {
    color: #ffffff !important;
}

body.dark-mode .sub-text,
body.dark-mode .address-block p {
    color: #bbbbbb !important;
}

body.dark-mode .useful-links ul li a,
body.dark-mode .quick-links ul li a {
    color: #dddddd !important;
}

body.dark-mode .useful-links ul li a:hover,
body.dark-mode .quick-links ul li a:hover {
    color: var(--iimj-orange) !important;
}

/* Social Icon Nodes */
body.dark-mode .social-icons a {
    background: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

body.dark-mode .social-icons a:hover {
    background: var(--iimj-orange) !important;
    color: #ffffff !important;
}

body.dark-mode .footer-bottom {
    background-color: #0a0a0a !important;
    border-top: 1px solid #1e1e1e !important;
    color: #777777 !important;
}

/* ==========================================================================
   SPECIFIC FIX: BLACK ANNOUNCEMENT BACKGROUNDS & WHITE FOOTER TITLES
   ========================================================================== */

/* 1. Change announcement left and right sections background to black */
body.dark-mode .news-left, 
body.dark-mode .news-right {
    background-color: #000000 !important; /* Changes white card boxes to pure black */
    border: 1px solid #2d2d2d !important; /* Subtle dark border to outline the sections */
    border-radius: 16px;
    padding: 30px !important;
}

/* Force announcement block main titles to white so they are visible on black */
body.dark-mode .news-left .section-title,
body.dark-mode .publication-header h3 {
    color: #ffffff !important;
}

/* 2. Force all inline black footer titles to change to white */
body.dark-mode .footer-column h2,
body.dark-mode .footer-column h2[style] {
    color: #ffffff !important; /* Overrides the inline style color block */
    font-weight: 700 !important;
}

/* ==========================================================================
   SPECIFIC FIX: FORCE FOOTER SECTION TITLES TO WHITE
   ========================================================================== */

body.dark-mode .footer-section .contact-column h2,
body.dark-mode .footer-section .quick-links h2,
body.dark-mode .footer-section .useful-links h2,
body.dark-mode .footer-section .footer-column h2,
body.dark-mode .footer-section h2[style] {
    color: #ffffff !important; /* Overrides inline black styling */
    font-weight: 700 !important;
}

/* ==========================================================================
   FINAL CLEANUP: FORCE "STAY CONNECTED WITH US!" TITLE TO WHITE
   ========================================================================== */

body.dark-mode .footer-section .social-icons::before,
body.dark-mode .footer-section div:nth-child(4) h2,
body.dark-mode .footer-section h2:has(+ .social-icons),
body.dark-mode .footer-section .footer-container > div:last-of-type h2 {
    color: #ffffff !important; /* Forces the final title to white */
    font-weight: 700 !important;
}

/* Global catch-all fallback for any rogue h2 elements left in the footer container */
body.dark-mode .footer-container h2 {
    color: #ffffff !important;
}

/* ==========================================================================
   NEWS TICKER MOBILE RESPONSIVE IMPLEMENTATION
   ========================================================================== */

@media (max-width: 1024px) {
    /* 1. Force the Ticker Section down out of overlapping hero elements */
    .news-ticker {
        height: 44px !important; /* Slightly more compact height for mobile bars */
        display: flex !important;
        position: relative !important;
        overflow: hidden !important;
        clear: both !important;
        z-index: 100 !important; /* Forces it over background layers, but under the menu drawer */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 2. Container Bounds Enforcement */
    .ticker-wrapper {
        width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 3. Scaled Tracking Layout Rules */
    .ticker-track {
        display: flex !important;
        width: max-content !important;
        animation: tickerMove 20s linear infinite !important; /* Smooth slow down for easier touch reading */
    }

    /* 4. Downscale News Item Spacing for Small Screens */
    .ticker-track span {
        padding: 0 15px !important;
        line-height: 44px !important; /* Match mobile bar constraint height */
        font-size: 14px !important; /* Scale typography down to prevent row overflows */
        display: inline-block !important;
    }

    /* Target links specifically */
    .ticker-track span a {
        font-size: 14px !important;
        font-weight: 500 !important;
    }

    /* Ensure separators fit neatly */
    .ticker-track span::after {
        margin-left: 15px !important;
    }
}

@media (max-width: 480px) {
    /* Speed tuning adjustment for small viewports */
    .ticker-track {
        animation: tickerMove 16s linear infinite !important;
    }
    
    .ticker-track span {
        font-size: 13px !important;
    }
}

/* =========================================
   MOBILE DROPDOWN +/- TOGGLE
========================================= */

/* Hide + button on desktop */
.nav-item .mobile-dropdown-btn {
    display: none !important;
}


@media screen and (max-width: 1024px) {

    /* Force all dropdowns hidden by default on mobile */
    .nav-links .nav-item .dropdown {
        display: none !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #f9f9f9 !important;
        min-width: unset !important;
        width: 100% !important;
        padding: 0 !important;
        border-top: 3px solid #f37021 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    /* Override hover — force hidden */
    .nav-links .nav-item:hover .dropdown {
        display: none !important;
    }

    /* Only show when mobile menu is open AND item has mobile-open class */
    .nav-links.mobile-active .nav-item.mobile-open .dropdown {
        display: block !important;
    }

    /* Dropdown links */
    .nav-links .nav-item .dropdown a {
        padding: 11px 30px !important;
        font-size: 13px !important;
        color: #555 !important;
        border-bottom: 1px solid #eee !important;
        display: block !important;
    }

    .nav-links .nav-item .dropdown a:last-child {
        border-bottom: none !important;
    }

    .nav-links .nav-item .dropdown a:hover {
        background: #fff3eb !important;
        color: #f37021 !important;
        padding-left: 38px !important;
    }

    /* + Button */
    .nav-item .mobile-dropdown-btn {
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 48px;
        background: transparent;
        border: none;
        border-left: 1px solid #eee;
        font-size: 22px;
        font-weight: 700;
        color: #333;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        transition: 0.2s;
        z-index: 10;
    }

    /* Show button only when mobile menu is active */
    .nav-links.mobile-active .nav-item .mobile-dropdown-btn {
        display: flex !important;
    }

    .nav-item .mobile-dropdown-btn:hover {
        background: #f37021;
        color: #fff;
    }

    /* Dark mode */
    body.dark-mode .nav-item .mobile-dropdown-btn {
        color: #fff !important;
        border-left-color: #333 !important;
    }

    body.dark-mode .nav-item .mobile-dropdown-btn:hover {
        background: #f37021 !important;
    }

    body.dark-mode .nav-links .nav-item .dropdown {
        background: #1a1a1a !important;
    }

    body.dark-mode .nav-links .nav-item .dropdown a {
        color: #ccc !important;
        border-bottom-color: #2d2d2d !important;
    }

    body.dark-mode .nav-links .nav-item .dropdown a:hover {
        background: #252525 !important;
        color: #f37021 !important;
    }
}
