/* ===============================
   MOBILE MENU JERK FIX
   =============================== */

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent scrollbar width shift */
body {
    overflow-y: scroll;
}

/* Fixed navbar width stability */
.gmrit-navbar {
    left: 0;
    right: 0;
    width: 100%;
    
}

/* Prevent collapse overflow */
@media (max-width: 991px) {
    .navbar-collapse {
        overflow-x: hidden;
    }

    .navbar,
    .navbar-collapse,
    body {
        transition: none !important;
    }
}


.navbar-brand img,:root{
 --blue:#003974;
 --red:#ED1C24;
 --gold:#FAAB53;
 --dark:#1f2a6b;
}

body{
 margin:0;
 font-family:'Inter',sans-serif;
}

h1,h2,h3{
 font-family:'Playfair Display',serif;
}

/* TOP BAR */
.top-bar{
 background:var(--dark);
 color:#fff;
 font-size:13px;
 padding:6px 0;
}
.top-bar a{color:#fff}

/* NAVBAR */
.main-nav{
 background:#fff;
 border-bottom:1px solid #ddd;
 padding:12px 0;
}
.navbar-brand img{height:90px}
.nav-link{
 color:var(--blue)!important;
 font-weight:500;
}

/* APPLY */
.apply-btn{
 background:var(--red);
 color:#fff!important;
 padding:6px 16px;
 border-radius:4px;
}

/* MEGA MENU */
.mega{position:static}
.mega-menu{
 position:absolute;
 left:0;right:0;
 background:#fff;
 padding:30px;
 display:flex;
 gap:60px;
 box-shadow:0 15px 35px rgba(0,0,0,.18);
 opacity:0;
 visibility:hidden;
 transform:translateY(12px);
 transition:.25s;
}
.mega:hover .mega-menu{
 opacity:1;
 visibility:visible;
 transform:none;
}
.mega-menu h6{color:var(--blue);font-weight:600}
.mega-menu a{
 display:block;
 font-size:14px;
 color:#333;
 padding:6px 0;
}
.mega-menu i{color:var(--gold);margin-right:6px}

/* HERO SLIDER */
.hero-slide{
 height:85vh;
 background-size:cover;
 background-position:center;
 position:relative;
}
.hero-slide::before{
 content:"";
 position:absolute;
 inset:0;
 background:rgba(0,57,116,.75);
}
.hero-content{
 position:absolute;
 bottom:30%;
 left:10%;
 color:#fff;
 max-width:600px;
 animation:fadeUp .9s ease;
}
.hero-content h1{font-size:46px}
.hero-content p{font-size:18px}
.btn-apply{
 background:var(--red);
 color:#fff;
 padding:12px 30px;
 display:inline-block;
 border-radius:4px;
}

/* VIDEO */
.video-section{
 padding:80px 0;
 background:#f7f9fc;
}
.video-section video{
 width:100%;
 border-radius:8px;
 box-shadow:0 10px 25px rgba(0,0,0,.15);
}

/* ANIMATION */
@keyframes fadeUp{
 from{opacity:0;transform:translateY(20px)}
 to{opacity:1;transform:none}
}

/* FOOTER */
footer{
 background:#111;
 color:#ccc;
 padding:20px 0;
 text-align:center;
}

/* MOBILE */
@media(max-width:991px){
 .hero-content{left:5%;bottom:25%}
 .hero-content h1{font-size:32px}
 .mega-menu{position:static;opacity:1;visibility:visible;box-shadow:none}
}


/* =================================================
   STATS – STRONG VISUAL HIERARCHY
   ================================================= */
.stats-clean{
    padding:70px 0 0px;
    background:#fff;
}

.stats-clean .col-md-3{
    position:relative;
}

.stats-clean .col-md-3:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:15%;
    width:1px;
    height:70%;
    background:#e5e5e5;
}

.stats-clean h3{
    font-family:'Playfair Display',serif;
    font-size:30px;
    font-weight:700;
    color:#003974;
    margin-bottom:6px;
}

.stats-clean span{
    font-size:14px;
    color:#666;
    letter-spacing:.5px;
}

/* =================================================
   NEWS & EVENTS – AMET STYLE CARDS
   ================================================= */
.news-section{
    padding:40px 0 80px;
    background:#fff;
}

.news-card{
    border:1px solid #e2e2e2;
    border-radius:10px;
    padding:26px 24px;
    background:#fff;
    height:100%;
    transition:all .35s ease;
}

.news-card:hover{
    box-shadow:0 15px 35px rgba(0,0,0,.12);
    transform:translateY(-6px);
}

.news-card h6{
    font-size:16px;
    font-weight:600;
    margin-bottom:10px;
    color:#111;
}

.news-card p{
    font-size:14.5px;
    color:#555;
    line-height:1.6;
    margin:0;
}

/* =================================================
   SECTION TITLES – MORE PRESENCE
   ================================================= */
.section-title{
    font-family:'Playfair Display',serif;
    font-size:32px;
    font-weight:700;
    color:#003974;
    padding-top:40px;
    margin-bottom:40px;
    position:relative;
}

.section-title::after{
    content:"";
    display:block;
    width:60px;
    height:3px;
    background:#FAAB53;
    margin:18px auto 0;
    border-radius:2px;
}

/* =========================================
   MENU – TOP & BOTTOM ANIMATED LINES
   ========================================= */

/* Common */

.gmrit-navbar .nav-link::before,
.gmrit-navbar .nav-link::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 0;
    pointer-events: none;
    transition: width 0.4s ease;
}

/* TOP LINE — LEFT → RIGHT (BLUE) */
.gmrit-navbar .nav-link::before {
    top: 0;
    left: 0;
    background-color: #003974;
}

/* BOTTOM LINE — RIGHT → LEFT (ORANGE) */
.gmrit-navbar .nav-link::after {
    bottom: 2px;                 /* ⬅ NOT 0 */
    right: 0;
    background-color: #FAAB53;
}

/* Hover & active */
.gmrit-navbar .nav-link:hover,
.gmrit-navbar .nav-link.active {
    color: #ED1C24;
}

.gmrit-navbar .nav-link:hover::before,
.gmrit-navbar .nav-link.active::before,
.gmrit-navbar .nav-link:hover::after,
.gmrit-navbar .nav-link.active::after {
    width: 100%;
}


/* Admissions CTA */
/* =========================================
   ADMISSIONS BUTTON
   ========================================= */

.admission-btn {
    background: #cd0b12;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.admission-btn:hover {
    background: #003974; /* or #FAAB53 if you prefer */
}

/* Remove line animation */
.admission-btn::before,
.admission-btn::after {
    display: none;
}

/* =========================
   MEGA MENU (AMET STYLE)
   ========================= */
/* =========================================
   GMRIT MEGA MENU STRIP
   ========================================= */

/* Parent must allow full width */
.gmrit-navbar .gmrit-mega {
    position: static;
}

/* Mega menu container */
.gmrit-mega-menu {
    position: absolute;
    left: 0;
    width: 100%;
    background: #f5f7fa;
    border-top: 1px solid #e2e6ea;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 30px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s ease;
    z-index: 999;
}

/* Show on hover */
.gmrit-mega:hover > .gmrit-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Hover open (desktop) */
@media(min-width:992px){
    .gmrit-mega:hover .gmrit-mega-menu{
        opacity:1;
        visibility:visible;
        transform:none;
    }
}

/* Links inside mega menu */
.gmrit-mega-menu a {
    display: block;
    color: #333;
    padding: 6px 0;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

/* Hover effect for submenu items */
.gmrit-mega-menu a:hover {
    color: #ED1C24;
    padding-left: 6px;
}
/* Disable Bootstrap dropdown caret animation */
.gmrit-navbar .dropdown-toggle::after {
    display: none;
}

/* =========================
   PREVENT HERO BLEED
   ========================= */
.hero,
.hero-slide{
    position:relative;
    z-index:1;
}
/* ===============================
   STICKY HEADER (AMET STYLE)
   =============================== */

/* Default header */
.gmrit-navbar{
    transition: all 0.35s ease;
}

/* When sticky */
.gmrit-navbar.is-sticky{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1100;
    animation: slideDown 0.35s ease forwards;
}

/* Reduce height slightly */
.gmrit-navbar.is-sticky .nav-link{
    padding: 8px 14px;
}

.gmrit-navbar.is-sticky .navbar-brand img{
    height: 48px;
}

/* Slide animation */
@keyframes slideDown{
    from{
        transform: translateY(-100%);
    }
    to{
        transform: translateY(0);
    }
}

/* Space compensation so content doesn't jump */
body.has-sticky-header{
    padding-top: 90px;
}
/* ===============================
   HEADER BADGES (AMET STYLE)
   =============================== */

.gmrit-brand-wrap{
    gap: 10px;
}

/* Badge container */
.gmrit-badges{
    gap: 10px;
}

/* Simple accreditation badge */
.badge-item{
    font-size: 12px;
    font-weight: 600;
    color: #003974;
    border: 1px solid #003974;
    padding: 6px 10px;
    border-radius: 4px;
    line-height: 1;
    background: #fff;
}

/* Years badge */
.badge-years{
    font-size: 12px;
    font-weight: 700;
    color: #003974;
    border: 2px solid #003974;
    padding: 6px 8px;
    border-radius: 50%;
    line-height: 1.1;
    text-align: center;
}

/* Sticky header adjustment */
.gmrit-navbar.is-sticky .gmrit-badges{
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* ===============================
   ADMISSIONS FLOATING POPUP
   =============================== */
/*
.admission-popup{
    position: fixed;
    right: 10%;
    bottom: 20px;
    width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 1200;

    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}


.admission-popup.show{
    opacity: 1;
    transform: translateY(0);
}
*/
.admission-popup {
    position: fixed;
    right: 10%;
    bottom: 20px;
    width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 1200;

    /* --- THE FIX --- */
    opacity: 0;
    visibility: hidden;      /* Prevents interaction when hidden */
    pointer-events: none;    /* Allows clicks to pass through to buttons below */
    transform: translateY(30px);
    transition: all 0.4s ease;
}

/* Show popup */
.admission-popup.show {
    opacity: 1;
    visibility: visible;     /* Makes it visible to the user */
    pointer-events: auto;    /* Enables clicking on the popup buttons */
    transform: translateY(0);
}
/* Header */
.popup-header{
    background: #003974;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-close{
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* Body */
.popup-body{
    padding: 14px;
    font-size: 14px;
    color: #333;
}

.popup-body p{
    margin-bottom: 12px;
}

/* Buttons */
.popup-actions{
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-popup{
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-popup.apply{
    background: #cd0b12;
    color: #fff;
}

.btn-popup.chat{
    background: #f1f1f1;
    color: #003974;
}

/* Footer */
.popup-footer{
    font-size: 13px;
    color: #555;
}

/* Mobile */
@media(max-width:576px){
    .admission-popup{
        right: 10px;
        left: 10px;
        width: auto;
    }
}
/* ===== DEBUG VISIBILITY =====
.admission-popup{
    display: block !important;
    visibility: visible !important;
} */
.dont-show{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    color:#555;
    cursor:pointer;
}

.dont-show input{
    cursor:pointer;
}
/* ===============================
   FADE-IN ON SCROLL (AMET STYLE)
   =============================== */

/* Initial hidden state */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When visible */
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   RECRUITERS LOGO STRIP
   =============================== */

.recruiters-section{
    padding:90px 0 70px;
    background:#fff;
}

/* Slider container */
.recruiters-slider{
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

/* Fading edges (premium look) */
.recruiters-slider::before,
.recruiters-slider::after{
    content:"";
    position:absolute;
    top:0;
    width:120px;
    height:100%;
    z-index:2;
    pointer-events:none;
}

.recruiters-slider::before{
    left:0;
    background:linear-gradient(to right, #fff 0%, transparent 100%);
}

.recruiters-slider::after{
    right:0;
    background:linear-gradient(to left, #fff 0%, transparent 100%);
}

/* Track */
.recruiters-track{
    display:flex;
    width:max-content;
    animation: scrollRecruiters 35s linear infinite;
}

/* Pause on hover */
.recruiters-slider:hover .recruiters-track{
    animation-play-state: paused;
}

/* Logo box */
.recruiter-logo{
    flex:0 0 auto;
    width:180px;
    height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 20px;
}

.recruiter-logo img{
    max-width:140px;
    max-height:60px;
    filter: grayscale(100%);
    opacity:0.7;
    transition:all .3s ease;
}

.recruiter-logo img:hover{
    filter: grayscale(0%);
    opacity:1;
}

/* Animation */
@keyframes scrollRecruiters{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-50%);
    }
}

/* Mobile adjustments */
@media(max-width:768px){
    .recruiter-logo{
        width:140px;
    }
    .recruiter-logo img{
        max-width:110px;
    }
}
/* ===============================
   CHATBOT UI (AMET STYLE)
   =============================== */

.chatbot-container{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:1300;
    font-family:'Inter',sans-serif;
}

/* Floating button */
.chatbot-toggle{
    width:55px;
    height:55px;
    background:#003974;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    cursor:pointer;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
}

/* Chat window */
.chatbot-window{
    position:absolute;
    bottom:70px;
    right:0;
    width:320px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
    overflow:hidden;

    opacity:0;
    transform:translateY(20px);
    pointer-events:none;
    transition:all .35s ease;
    width:360px;              /* wider */
    height:540px;             /* taller */
    display:flex;
    flex-direction:column;
}

.chatbot-window.open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

/* Header */
.chatbot-header{
    background:#003974;
    color:#fff;
    padding:12px 14px;
    font-weight:600;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.chatbot-header button{
    background:none;
    border:none;
    color:#fff;
    font-size:18px;
    cursor:pointer;
}

/* Messages */
.chatbot-messages{
    flex:1;
    padding:18px;
    font-size:14.8px;
    line-height:1.6;
    overflow-y:auto;
}


.bot-message,
.user-message{
    margin-bottom:10px;
    padding:8px 12px;
    border-radius:8px;
    max-width:85%;
}

.bot-message{
    background:#f4f7fb;
    color:#1f2a44;
    padding:12px 15px;
    border-radius:14px 14px 14px 6px;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.user-message{
    background:#003974;
    color:#fff;
    padding:12px 15px;
    border-radius:14px 14px 6px 14px;
    margin-left:auto;
    box-shadow:0 4px 10px rgba(0,0,0,.12);
}

/* Quick buttons */
.chatbot-quick{
    padding:10px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.chatbot-quick button{
    flex:1;
    background:#f1f1f1;
    border:none;
    padding:6px;
    border-radius:6px;
    font-size:13px;
    cursor:pointer;
}

.chatbot-quick button:hover{
    background:#003974;
    color:#fff;
}

/* Input */
.chatbot-input{
    display:flex;
    border-top:1px solid #ddd;
}

.chatbot-input input{
    flex:1;
    border:none;
    padding:10px;
    font-size:14px;
}

.chatbot-input button{
    background:#ED1C24;
    color:#fff;
    border:none;
    padding:0 14px;
    cursor:pointer;
}

/* Mobile */
@media(max-width:576px){
    .chatbot-window{
        width:280px;
    }
}
/* ===============================
   CHATBOT APPLY BUTTON
   =============================== */

.chat-apply-btn{
    display:inline-block;
    margin-top:10px;
    background:#cd0b12;
    color:#fff !important;
    padding:8px 14px;
    border-radius:4px;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

.chat-apply-btn:hover{
    background:#cd0b12;
}
/* ===============================
   HERO VIDEO SECTION
   =============================== */

.hero-video{
    position:relative;
    height:85vh;
    overflow:hidden;
    background:#000;
}

.hero-video video{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Overlay */
.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
to right,
rgba(0,0,0,.25),
rgba(0,0,0,.1)
);
/* old 
    background:linear-gradient(
        to right,
        rgba(0,0,0,.55),
        rgba(0,0,0,.2)
    );
    */
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding-left:8%;
    color:#fff;
}

.hero-overlay h1{
    font-size:3rem;
    font-weight:700;
    max-width:650px;
}

.hero-overlay p{
    font-size:1.1rem;
    margin:15px 0 25px;
}

.btn-apply{
    display:inline-block;
    background:#cd0b12;
    color:#fff;
    padding:12px 26px;
    border-radius:4px;
    font-weight:600;
    text-decoration:none;
    width:fit-content;
}

/* Mobile */
@media(max-width:768px){
    .hero-video{
        height:65vh;
    }
    .hero-overlay{
        padding:0 20px;
        text-align:center;
        align-items:center;
    }
    .hero-overlay h1{
        font-size:2rem;
    }
}
/* ===============================
   LOGO SHRINK ON SCROLL
   =============================== */

/* Default (top of page) */
.navbar-brand img,
.site-logo img {
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}

/* When header is sticky */
.gmrit-navbar.is-sticky .navbar-brand img,
.gmrit-navbar.is-sticky .site-logo img {
    height: 65px;   /* premium shrink size */
}
.gmrit-navbar {
    transition: padding 0.3s ease;
}

.gmrit-navbar.is-sticky {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* =========================================
   FINAL MENU – TOP & BOTTOM ANIMATED LINES
   ========================================= */

.gmrit-navbar .nav-link{
    position: relative;
    color: #003974;
    font-weight: 600;
    padding: 12px 16px 18px; /* extra bottom space */
    transition: color 0.3s ease;
}

/* common */
.gmrit-navbar .nav-link::before,
.gmrit-navbar .nav-link::after{
    content:"";
    position:absolute;
    height:3px;
    width:0;
    pointer-events:none;
    transition:width 0.4s ease;
}

/* top line – blue */
.gmrit-navbar .nav-link::before{
    top:0;
    left:0;
    background:#b40626;
}

/* bottom line – orange */
.gmrit-navbar .nav-link::after{
    bottom:4px;   /* 🔑 NOT 0 */
    right:0;
    background:#FAAB53;
}

/* hover / active */
.gmrit-navbar .nav-link:hover,
.gmrit-navbar .nav-link.active{
    color:#ED1C24;
}

.gmrit-navbar .nav-link:hover::before,
.gmrit-navbar .nav-link:hover::after,
.gmrit-navbar .nav-link.active::before,
.gmrit-navbar .nav-link.active::after{
    width:100%;
}

/* ===== FIX MENU LINE CLIPPING ===== */
.gmrit-navbar .nav-link{
    overflow: visible !important;
}
/* ===============================
   TOP RIBBON BAR (REFERENCE STYLE)
   =============================== */

.top-ribbon{
    background:#f5f7fa;
    font-size:13px;
    border-bottom:1px solid #e2e6ea;
}

/* LEFT ANGLED RIBBON */
.ribbon-menu{
    background:#003974;
    display:flex;
    align-items:center;
    padding:10px 34px 10px 20px;
    clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
}

.ribbon-menu a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    margin-right:18px;
    white-space:nowrap;
}

.ribbon-menu a:hover{
    text-decoration:underline;
}

/* RIGHT SIDE */
.ribbon-right{
    padding:6px 0;
}

/* GROUPS */
.ribbon-group{
    display:flex;
    align-items:center;
    gap:8px;
}

.ribbon-group .label{
    font-weight:600;
    color:#333;
    margin-right:6px;
}

/* ICONS */
.ribbon-group .icon{
    color:#003974;
    font-size:14px;
    text-decoration:none;
}

.ribbon-group .icon.whatsapp{
    color:#25D366;
}

/* SEARCH */
.ribbon-search{
    display:flex;
    align-items:center;
    border:1px solid #ccc;
    border-radius:4px;
    overflow:hidden;
}

.ribbon-search input{
    border:none;
    padding:6px 10px;
    font-size:13px;
    outline:none;
}

.ribbon-search button{
    border:none;
    background:#003974;
    color:#fff;
    padding:6px 10px;
    cursor:pointer;
}

/* HIDE ON MOBILE */
@media(max-width:992px){
    .top-ribbon{
        display:none;
    }
}
/* ===============================
   TOP BAR – FULL WIDTH (AMET STYLE)
   =============================== */


.top-bar-full .container-fluid{
    padding:6px 20px;
}


.top-links a{
    color:#fff;
    margin-right:14px;
    text-decoration:none;
    font-weight:500;
}

.top-links a:hover{
    text-decoration:underline;
}

.top-icons a{
    color:#fff;
    margin-left:10px;
    font-size:14px;
}

/* ===============================
   MOBILE TOP LINKS INSIDE MENU
   =============================== */

.mobile-top-links a{
    display:inline-block;
    font-size:13px;
    margin:4px 10px 4px 0;
    color:#003974;
    text-decoration:none;
}

/* ===============================
   NAVBAR LAYOUT ADJUSTMENTS 
   =============================== */

.gmrit-navbar .container-fluid{
    padding-left:20px;
    padding-right:20px;
}

.navbar-brand img{
    height:100px;
}

/* Hide desktop top bar on mobile */
@media(max-width:991px){
    .top-bar-full{
        display:none;
    }
}
/* =========================================
   TOP BAR – ENHANCED (PREMIUM FEEL)
   ========================================= */

.top-bar-full{
    background: linear-gradient(90deg, #1f2a6b, #003974);
    color:#fff;
    font-size:14.5px;          /* increased font */
    font-weight:500;
}

.top-bar-full .container-fluid{
    padding:8px 24px;
}

/* LINKS */
.top-links a{
    color:#fff;
    margin-right:16px;
    text-decoration:none;
    position:relative;
    transition:color .25s ease;
}

.top-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-3px;
    width:0;
    height:2px;
    background:#FAAB53;
    transition:width .25s ease;
}

.top-links a:hover{
    color:#FAAB53;
}

.top-links a:hover::after{
    width:100%;
}

/* ICONS */
.top-icons a{
    color:#fff;
    margin-left:12px;
    font-size:15px;
    transition:transform .25s ease, color .25s ease;
}

.top-icons a:hover{
    color:#FAAB53;
    transform:translateY(-2px);
}

.top-icons a .bi-whatsapp{
    color:#25D366;
}

/* SEARCH */
.top-search{
    display:flex;
    align-items:center;
    background:#fff;
    border-radius:4px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.top-search input{
    border:none;
    padding:6px 12px;
    font-size:14px;
    outline:none;
    width:150px;
}

.top-search button{
    border:none;
    background:#ED1C24;
    color:#fff;
    padding:6px 12px;
    cursor:pointer;
    transition:background .25s ease;
}

.top-search button:hover{
    background:#FAAB53;
}

/* MOBILE – hide desktop top bar */
@media(max-width:991px){
    .top-bar-full{
        display:none;
    }
}
/* Center-align top menu bar links */
.top-links{
    margin:0 auto;
    display:flex;
    align-items:center;
}
/* =========================================
   CENTER ALIGN MEGA MENU CONTENT
   ========================================= */
/* ===== CENTER MEGA MENU CONTENT ===== */
.gmrit-mega-menu > .container {
    max-width: 1200px;          /* keeps content centered */
    margin: 0 auto;             /* centers container */
}

/* Center the row itself */
.gmrit-mega-menu .row {
    justify-content: center;    /* 🔑 THIS is the magic */
}

/* Give equal column width & spacing */
.gmrit-mega-menu .col-md-4 {
    padding-left: 40px;
    padding-right: 40px;
}

/* =========================================
   SUB MENU ITEM ICONS (AUTO)
   ========================================= */

.gmrit-mega-menu a{
    position: relative;
    padding-left: 22px;      /* space for icon */
}

/* Default icon for all submenu items */
.gmrit-mega-menu a::before{
    content: "\F285";        /* Bootstrap icon: chevron-right */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #FAAB53;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover animation */
.gmrit-mega-menu a:hover::before{
    transform: translate(4px, -50%);
    color: #ED1C24;
}
/* Mega menu section heading with icon */
.gmrit-mega-menu h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 14px;
}
.gmrit-mega-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: #003974;
    padding: 6px 0;
}

.gmrit-mega-menu a i {
    font-size: 12px;
    color: #FAAB53; /* gold arrow */
}
.gmrit-mega-menu {
    padding-top: 40px;
    padding-bottom: 40px;
    /*height:300px;*/
    background:linear-gradient(to right,rgba(255, 255, 255, 0.9),rgba(255, 255, 255, 0.95),rgba(255, 255, 255, 0.9));
}
.bullet-dot{
    width:6px;
    height:6px;
    background:#FAAB53;
    border-radius:50%;
    display:inline-block;
    margin-right:8px;
}
/* ===============================
   GMRIT FOOTER
   =============================== */

.gmrit-footer{
    background:#0e1a3a;
    color:#cfd6e3;
    padding:60px 0 0;
    font-size:14px;
}

.footer-logo{
    max-width:250px;
    margin-bottom:15px;
}

.footer-about{
    line-height:1.7;
    color:#cfd6e3;
}

/* Headings */
.gmrit-footer h6{
    font-size:15px;
    font-weight:700;
    margin-bottom:14px;
    color:#fff;
    position:relative;
}

.gmrit-footer h6::after{
    content:"";
    width:35px;
    height:2px;
    background:#FAAB53;
    display:block;
    margin-top:6px;
}

/* Links */
.gmrit-footer ul{
    list-style:none;
    padding:0;
    margin:0;
}

.gmrit-footer ul li{
    margin-bottom:8px;
}

.gmrit-footer ul li a{
    color:#cfd6e3;
    text-decoration:none;
    transition:all .25s ease;
}

.gmrit-footer ul li a:hover{
    color:#FAAB53;
    padding-left:4px;
}

/* Social icons */
.footer-social{
    display:flex;
    gap:12px;
    margin-top:10px;
}

.footer-social a{
    width:34px;
    height:34px;
    border-radius:50%;
    background:#1c2b5a;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    transition:all .3s ease;
}

.footer-social a:hover{
    background:#FAAB53;
    color:#000;
}

/* Bottom bar */
.footer-bottom{
    background:#0a1430;
    padding:14px 0;
    margin-top:40px;
    font-size:13px;
}

.footer-bottom a{
    color:#cfd6e3;
    text-decoration:none;
}

.footer-bottom a:hover{
    color:#FAAB53;
}

/* Mobile */
@media(max-width:768px){
    .footer-bottom .container{
        text-align:center;
        gap:8px;
        justify-content:center;
    }
}
.gmrit-footer h6::after{
    content:"";
    width:60px;
    height:2px;
    display:block;
    margin:8px auto 0;
    background:linear-gradient(to right, transparent, #FAAB53, transparent);
}
/* ===============================
   MOBILE MENU – ACCORDION STYLE
   =============================== */
@media (max-width: 991px) {

    /* Disable hover mega behavior */
    .gmrit-mega-menu {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;               /* hidden by default */
        padding: 10px 0 15px;
        background: #f7f9fc;
        box-shadow: none;
        border-top: 1px solid #ddd;
    }

    /* Show only when active */
    .gmrit-mega.open > .gmrit-mega-menu {
        display: block;
    }

    /* Parent menu items */
    .gmrit-navbar .nav-link {
        padding: 12px 10px;
        font-size: 15px;
    }

    /* Accordion arrow */
    .gmrit-navbar .dropdown-toggle::after {
        content: "\F282"; /* bootstrap chevron-down */
        font-family: "bootstrap-icons";
        float: right;
        transition: transform 0.3s ease;
    }

    /* Rotate arrow when open */
    .gmrit-mega.open > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* Mega menu columns stack */
    .gmrit-mega-menu .row {
        flex-direction: column;
    }

    .gmrit-mega-menu .col-md-4 {
        padding: 10px 20px;
    }

    .gmrit-mega-menu h6 {
        font-size: 14px;
        margin-top: 12px;
    }

    .gmrit-mega-menu a {
        font-size: 14px;
        padding: 6px 0;
    }
}
/* ===============================
   MOBILE TOP BAR – FINAL FIX
   =============================== */

.top-bar-mobile{
    background: linear-gradient(90deg, #1f2a6b, #003974);
    padding: 6px 10px;
    font-size: 13px;
}

/* INNER ROW */
.mobile-bar-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* LEFT LINKS (SCROLLABLE) */
.mobile-top-links{
    display: flex;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mobile-top-links::-webkit-scrollbar{
    display: none;
}

.mobile-top-links a{
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

/* RIGHT ICONS */
.mobile-top-icons{
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.mobile-top-icons a{
    color: #fff;
    font-size: 15px;
}

.mobile-top-icons .bi-whatsapp{
    color: #25D366;
}

/* SEARCH BAR (SLIDES BELOW) */
.mobile-search{
    display: none;
    margin-top: 6px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.mobile-search.active{
    display: flex;
}

.mobile-search input{
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}

.mobile-search button{
    background: #cd0b12;
    border: none;
    color: #fff;
    padding: 8px 12px;
}

/* ===============================
   MOBILE TOP BAR – ENHANCED
   =============================== */

@media (max-width: 991px){

    .top-bar-mobile{
        position: sticky;
        top: 0;
        z-index: 1200;
    }

    /* Smooth slide animation */
    .mobile-search{
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
        transition: all 0.3s ease;
    }

    .mobile-search.active{
        max-height: 60px;
        opacity: 1;
        transform: translateY(0);
    }
}
.site-title{
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    color: #003974;
}

.site-title .sub-title{
    display: block;
    font-size: 14px;          /* 🔑 smaller text */
    font-weight: 500;
    letter-spacing: 1px;
    color: #555;
    margin-top: 2px;
    text-transform: uppercase;
}
.gmrit-title{
    font-family: 'Red Hat Display', serif;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    
}

/* GMRIT */
.gmrit-title{
    font-size: 42px;
    color: #ffffff;
}

/* Deemed to be – SMALL */
.gmrit-title .deemed{
    
    font-size: 15px;              /* 🔑 smaller size */
    font-weight: 600;
    color: #ffffff;               /* gold */
    letter-spacing: 1.5px;
    /*text-transform: uppercase;*/
    margin-top: 4px;
}

/* UNIVERSITY – BIG & BOLD */
.gmrit-title .university{
    display: block;
    font-size: 44px;
    font-weight: 900;
    color: #ffffff;               /* red */
    letter-spacing: 1px;
}
@media (max-width: 768px){
    .gmrit-title{
        font-size: 28px;
        text-align: center;
    }

    .gmrit-title .deemed{
        font-size: 13px;
    }

    .gmrit-title .university{
        font-size: 30px;
        
    }
}
/* OLD WEBSITE BUTTON */
.old-website-btn{
    background:#f4a300;          /* golden yellow */
    color:#fff !important;
    font-weight:700;
    font-size:14px;
    padding:6px 16px;
    border-radius:3px;
    margin-right:14px;
    text-decoration:none;
    line-height:1;
    display:inline-flex;
    align-items:center;
    transition:all .25s ease;
}

/* Hover effect */
.old-website-btn:hover{
    background:#e09300;
    color:#fff;
    transform:translateY(-1px);
}
@media(max-width:991px){
    .old-website-btn{
        display:none;
    }
}

/* ===============================
   NEW NOTICE BOARD (MODERN)
   =============================== */
/* --- Background Motion Section --- */
.premium-notice-wrap {
    padding: 100px 0;
    position: relative;
    background: #0a0f1d; /* Deep Dark Base */
    overflow: hidden;
    min-height: 800px;
    display: flex;
    align-items: center;
}

/* Moving Mesh Gradient Background */
.mesh-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(at 0% 0%, rgba(0, 32, 91, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(237, 28, 36, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(243, 112, 33, 0.4) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 32, 91, 0.3) 0px, transparent 50%);
    filter: blur(60px);
    animation: meshFlow 15s infinite alternate ease-in-out;
}

@keyframes meshFlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.3) translate(2%, 3%); }
}

/* Glass Box Styling */
.wonderful-glass-box {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.glass-header {
    padding: 30px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-main h2 { color: #fff; font-weight: 800; font-size: 1.8rem; margin: 0; }

/* Dynamic Tabs */
.glass-tabs-container {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.g-tab {
    background: transparent;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    transition: 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.g-tab.active {
    background: #fff;
    color: #00205b;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* List Styling */
.glass-body { height: 450px; overflow-y: auto; padding: 20px 45px; }

.clean-list { list-style: none; padding: 0; }
.clean-list li {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.clean-list li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: block;
}

.clean-list li:hover {
    transform: translateX(10px);
    border-bottom-color: #f37021; /* Orange highlight on hover */
}

.notice-new {
    background: linear-gradient(45deg, #ed1c24, #f37021);
    color: white;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    margin-left: 15px;
    font-weight: 800;
}

.glass-footer { padding: 30px; text-align: center; }
.glass-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: 0.3s;
}

.glass-footer a:hover { opacity: 1; letter-spacing: 2px; }

/* Panels logic */
.notice-panel { display: none; }
.notice-panel.active { display: block; animation: slideUp 0.5s ease forwards; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =================================================
   LIGHT SECTION BACKGROUNDS – MOBILE FRIENDLY
   ================================================= */

/* WHY GMRIT – LIGHT BLUE TINT */
.why-section{
    background: linear-gradient(
        180deg,
        #f5f9ff 0%,
        #ffffff 100%
    );
}

/* Add subtle divider spacing on mobile */
@media(max-width:768px){
    .why-section{
        padding-top: 70px;
        padding-bottom: 60px;
    }
}

/* STATS – SOFT GREY BLUE */
.stats-clean{
    background: #f7f9fc;
}

/* Make stat cards pop slightly */
.stats-clean .col-md-3{
    padding: 20px 10px;
}

.stats-clean .col-md-3:hover{
    background:#ffffff;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:all .3s ease;
}

/* LATEST NEWS – LIGHT GOLD WASH */
.news-section{
    background: linear-gradient(
        180deg,
        #fdf8ef 0%,
        #ffffff 100%
    );
}

/* NEWS CARDS – STRONGER ON MOBILE */
@media(max-width:768px){
    .news-card{
        box-shadow:0 10px 25px rgba(0,0,0,.12);
    }
}

/* NOTICE BOARD – KEEP GRADIENT BUT SOFTEN */
.noticeboard-new{
    background: linear-gradient(
        135deg,
        #f4f8ff 0%,
        #eef3fa 60%,
        #fff 100%
    );
}

/* SECTION SEPARATORS (SUBTLE) */
.why-section::after,
.stats-clean::after,
.news-section::after{
    content:"";
    display:block;
    width:100%;
    height:1px;
    background:linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,.08),
        transparent
    );
    margin-top:70px;
}
/* =========================================
   WHY GMRIT – LOAD ANIMATION
   ========================================= */

.why-section .col-md-4{
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When section becomes visible */
.fade-up.visible .col-md-4{
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay */
.fade-up.visible .col-md-4:nth-child(1){
    transition-delay: 0.1s;
}
.fade-up.visible .col-md-4:nth-child(2){
    transition-delay: 0.25s;
}
.fade-up.visible .col-md-4:nth-child(3){
    transition-delay: 0.4s;
}
.footer-logo {
    max-height: 120px;   /* reduce size */
    width: auto;
    margin-bottom: 12px;
}
@media (max-width: 768px) {
    .footer-logo {
        max-height: 75px;
    }
}
.group-inline img {
    height: 38px;
    width: auto;
    vertical-align: middle;
    margin: 0 6px;
}
/* ===============================
   GMR GROUP SECTION
   =============================== */

.gmr-group-section {
    background: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.gmr-group-logo {
    max-height: 90px;
    width: auto;
    opacity: 0.95;
}

.gmr-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .gmr-group-logo {
        max-height: 70px;
        margin-bottom: 20px;
    }
}
.footer-ticker {
    background: #002a5c;   /* matches your theme */
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-size: 13px;
}

.ticker-track {
    display: inline-flex;
    gap: 60px;
    animation: tickerMove 40s linear infinite;
}

@keyframes tickerMove {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Pause on hover (professional touch) */
.footer-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.footer-visit-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
}

.counter-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.counter-digits {
    display: flex;
    gap: 6px;
}

.counter-digits .digit {
    background: #ad7c09;            /* purple tone (can change) */
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 4px;
    min-width: 22px;
    text-align: center;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .counter-digits .digit {
        font-size: 14px;
        padding: 5px 8px;
    }
}
/* Subtle digit animation */
.counter-digits .digit {
    animation: digitReveal 0.5s ease-out;
}

@keyframes digitReveal {
    from {
        transform: translateY(6px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.counter-digits .digit:nth-child(1) { animation-delay: 0s; }
.counter-digits .digit:nth-child(2) { animation-delay: 0.05s; }
.counter-digits .digit:nth-child(3) { animation-delay: 0.1s; }
.counter-digits .digit:nth-child(4) { animation-delay: 0.15s; }
.counter-digits .digit:nth-child(5) { animation-delay: 0.2s; }
.counter-digits .digit:nth-child(6) { animation-delay: 0.25s; }
.counter-digits .digit:nth-child(7) { animation-delay: 0.3s; }

/* ===== MEGA MENU SECTION HEADINGS ===== */
.gmrit-mega-menu h6 {
    background: #f1f4f9;               /* light band */
    padding: 10px 14px;
    margin-bottom: 10px;
    border-left: 4px solid #003974;    /* theme blue */
    font-size: 14px;
    font-weight: 700;
    color: #003974;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bullet-dot {
    width: 6px;
    height: 6px;
    background: #FAAB53;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    flex-shrink: 0;
}

/* DOTTED SEPARATOR */
.gmrit-mega-menu a:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;    
    border-bottom: 1px dotted #cfcfcf;
    
}
/* ===== MEGA MENU HEADING BAND ===== */
.gmrit-mega-menu h6 {
    background: #003974;           /* dark band */
    color: #ffffff;   

    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gmrit-mega-menu h6 i {
    font-size: 14px;
    color: #FAAB53; /* gold icon */
}


.gmrit-mega-menu a:hover {
    color: #ED1C24;
    padding-left: 6px;
}

.gmrit-mega-menu a:hover .bullet-dot {
    background: #ED1C24;
}
.bullet-dot {
    width: 6px;
    height: 6px;
    background: #FAAB53;
    border-radius: 50%;
    display: inline-block;
}


  /* Make entire section positioning reference */
  .why-section {
    position: relative;
  }

  /* Floating popup - Desktop */
  .why-popup {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 85%;
  max-width: 1200px;
  z-index: 9999;
  background: #fff;
  border-radius: 20px;
  
  /* Initial state: Small, invisible, and centered */
  visibility: hidden;
  opacity: 0;
  /* scale(0) makes it start from a single point */
  transform: translate(-50%, -20%) scale(0.5); 
  
  /* Use a "back" timing function for a slight 'pop' effect */
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  border: 4px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #1b75bc, #0d2c5a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  pointer-events: none;
  overflow: hidden; /* Ensures content doesn't spill during expansion */
}

/* Active state */
.why-popup.show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}
.why-popup.show {
    /* Scale to full size and center on mobile */
    transform: translate(-50%, -50%) scale(1);
  }
  .popup-inner {
    display: flex;
    padding: 25px;
    position: relative;
  }

  /* Close button for mobile (optional but helpful) */
  .close-popup {
    display: none;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #0d2c5a;
  }

  .popup-image {
    width: 25%;
  }

  .popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
  }

  .popup-content {
    width: 75%;
    padding-left: 30px;
    text-align: left;
  }

  .popup-content h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #0d2c5a;
  }

  /* Mobile Styles */
  @media (max-width: 768px) {
    .why-popup {
      position: fixed; /* Fixes the "appearing at bottom" issue */
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
    }

    .close-popup {
      display: block; /* Show close button on mobile */
    }

    .popup-inner {
      flex-direction: column;
    }

    .popup-image,
    .popup-content {
      width: 100%;
    }

    .popup-image img {
      max-height: 200px;
    }

    .popup-content {
      padding-left: 0;
      margin-top: 20px;
    }
    
    /* Card Motion: Add a subtle glow and pulse */
.hover-card {
  transition: all 0.4s ease;
  cursor: pointer;
  z-index: 1;
}

.hover-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 15px 30px rgba(27, 117, 188, 0.2);
  border-color: #1b75bc;
}
.popup-image, .popup-content {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.2s; /* 0.2s delay */
}

.why-popup.show .popup-image, 
.why-popup.show .popup-content {
  opacity: 1;
  transform: translateY(0);
}
  }
/* Hide sub-sub menu by default */
.submenu-level2 {
    display: none;
    padding-left: 18px;
    margin-top: 6px;
}

/* Smaller bullet for level 2 */
.small-dot {
    transform: scale(0.7);
    margin-right: 6px;
}

/* Arrow styling */
.submenu-arrow {
    float: right;
    font-size: 12px;
    transition: 0.3s ease;
}

/* Active state */
.mega-submenu.active .submenu-level2 {
    display: block;
}

.mega-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Active state */


.nirf-section {
  padding: 60px 0;
  /* A modern, professional gradient */
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 10px;
  margin: 40px 15px;
}

.nirf-banner {
  padding: 20px;
}

.nirf-title a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nirf-title a:hover {
  color: #ffca28; /* Highlight color on hover */
  border-bottom: 2px solid #ffca28;
  text-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}
/* ================= GLASSY BLUE GALLERY CSS ================= */
.glass-gallery-section {
    padding: 100px 0;
    position: relative;
    /* Deep blue base gradient */
    background: linear-gradient(135deg, #001a4d 0%, #000a1a 100%);
    overflow: hidden;
}

/* Background Decorative Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}
.orb-1 { width: 400px; height: 400px; background: #0033cc; top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: #ed1c24; bottom: -50px; right: -50px; opacity: 0.2; }

/* Main Glass Container */
.gallery-glass-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05); /* Very faint white */
    backdrop-filter: blur(15px); /* The "Glass" effect */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 60px 40px;
}

.text-highlight {
    color: #4dabff; /* Bright Blue */
}

.gallery-header .section-title {
    color: #ffffff;
    font-weight: 800;
}

.gallery-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Individual Premium Glass Cards */
.premium-glass-card {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 10px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.premium-glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4dabff;
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.image-wrapper {
    position: relative;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-glass-card:hover img {
    transform: scale(1.1);
}

/* Glassy Tag on Image */
.glass-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-details {
    padding: 20px 10px 10px;
}

.card-details h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-details p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.link-text {
    color: #4dabff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.premium-glass-card:hover .link-text {
    color: #ffffff;
}

/* ================= WOW GALLERY CSS ================= */
.wow-gallery {
    padding: 100px 0;
    /* Base gradient for background depth */
    background: linear-gradient(135deg, #010409 0%, #0c182d 100%);
    position: relative;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

/* Badge & Typography */
.badge-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #4dabff; /* Bright Blue */
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wow-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 900;
    margin-top: 15px;
}

.gradient-text {
    background: linear-gradient(90deg, #ed1c24, #f37021); /* Red to Orange */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle-white {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    margin-bottom: 0;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 25px;
    z-index: 1;
    position: relative;
}

.item-large { grid-column: span 2; grid-row: span 2; }
.item-square { grid-column: span 1; grid-row: span 1; }
.item-wide { grid-column: span 1; grid-row: span 1; }

/* The Wow Card */
.wow-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    /* Translucent Glass Base */
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.wow-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.6s ease;
}

.wow-overlay {
    position: absolute;
    inset: 0;
    /* Darkening gradient from bottom */
    background: linear-gradient(to top, rgba(1, 4, 9, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

/* Hover Effects */
.wow-card:hover {
    transform: scale(0.98); /* The "pressed" effect */
    border-color: #f37021;
    box-shadow: 0 0 30px rgba(243, 112, 33, 0.3);
}

.wow-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Content Inside */
.tag {
    color: #4dabff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.wow-content h3 {
    color: #fff;
    font-weight: 800;
    margin: 0;
}

.wow-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 10px;
}

.wow-btn {
    margin-top: 20px;
    color: #fff;
    background: # ed1c24; /* Navy to Orange is gradient, so let single solid for button */
    display: inline-block;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 700;
}

/* Animated Mesh Background */
.premium-glass-wrap {
    padding: 80px 0;
    position: relative;
    background: #fff;
    overflow: hidden;
    min-height: 800px;
}

.mesh-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 32, 91, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(237, 28, 36, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(243, 112, 33, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 32, 91, 0.1) 0px, transparent 50%);
    filter: blur(40px);
    animation: mesh-float 15s infinite alternate;
}

@keyframes mesh-float {
    0% { transform: scale(1); }
    100% { transform: scale(1.2) rotate(2deg); }
}

/* Glass Container */
.wonderful-glass-box {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
}

.glass-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-main h2 { color: #00205b; font-weight: 850; margin: 0; }

/* Interactive Tabs */
.glass-tabs-container {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 5px;
    border-radius: 18px;
    position: relative;
}

.g-tab {
    border: none; background: transparent;
    padding: 12px 22px; border-radius: 14px;
    font-weight: 700; color: #555;
    position: relative; z-index: 2;
    transition: 0.3s;
}

.g-tab.active { color: #fff; }

/* The Glider Colors */
.g-tab.active[onclick*="notices"] { background: #00205b; }
.g-tab.active[onclick*="events"] { background: #ed1c24; }
.g-tab.active[onclick*="placements"] { background: #f37021; }

/* Content List */
.glass-body {
    height: 450px; overflow-y: auto; padding: 20px 40px;
}

.clean-list { list-style: none; padding: 0; }
.clean-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: 0.3s;
}

.clean-list li a {
    text-decoration: none; color: #333; font-weight: 600;
    display: block; transition: 0.3s;
}

.clean-list li:hover { transform: translateX(10px); }

/* Dynamic Panel Colors */
#notices li a:hover { color: #00205b; }
#events li a:hover { color: #ed1c24; }
#placements li a:hover { color: #f37021; }

/* Hide panels by default */
.notice-panel { display: none; }
.notice-panel.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* --- Background & Wrapper --- */
.recruiters-visual-section {
    padding: 100px 0;
    position: relative;
    background: #020617; /* Dark deep navy base for best contrast */
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Floating Light Orbs (The Background Animation) */
.light-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-navy { background: #00205b; top: -10%; left: -10%; }
.orb-red { background: #ed1c24; bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-orange { background: #f37021; top: 40%; left: 30%; width: 300px; height: 300px; animation-delay: -10s; }

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

.glass-wrapper {
    position: relative;
    z-index: 10;
}

/* Typography */
.motion-title { color: #fff; font-weight: 800; font-size: 3rem; }
.motion-title .accent { color: #f37021; }
.motion-subtitle { color: rgba(255, 255, 255, 0.6); font-size: 1.1rem; }

/* Ticker Animation */
.logo-ticker-wrap {
    margin-top: 60px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Edge fades */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-ticker-track {
    display: flex;
    width: max-content;
    animation: tickerRun 30s linear infinite;
}

@keyframes tickerRun {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Glass Logo Card */
.logo-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 200px;
    height: 100px;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: 0.4s;
}

.logo-card img {
    max-width: 100%;
    max-height: 50px;
    filter: brightness(0) invert(1); /* Makes all logos white for an elegant look */
    opacity: 0.7;
    transition: 0.4s;
}

.logo-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #f37021;
    transform: translateY(-5px);
}

.logo-card:hover img {
    opacity: 1;
    filter: none; /* Shows original color on hover */
}

/* Stop ticker on hover */
.logo-ticker-wrap:hover .logo-ticker-track {
    animation-play-state: paused;
}
/* --- Background Container --- */
.ultra-light-glass {
    position: relative;
    padding: 80px 0;
    min-height: 700px;
    background: #f0f4f8; /* Soft base */
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Moving Light Colors in Background */
.glass-bg-motion {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(0, 32, 91, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(237, 28, 36, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(243, 112, 33, 0.1) 0%, transparent 50%);
    filter: blur(80px);
    animation: moveLight 20s infinite alternate linear;
}

@keyframes moveLight {
    from { transform: scale(1); }
    to { transform: scale(1.2) translate(5%, 5%); }
}

/* The Glass Card */
.glass-card-main {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.6); /* Translucent White */
    backdrop-filter: blur(25px); /* This creates the glass look */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 32, 91, 0.1);
    max-width: 850px;
    margin: auto;
}

.glass-card-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-left { display: flex; align-items: center; gap: 15px; }
.header-left h2 { margin: 0; color: #00205b; font-weight: 800; }

.status-pulse {
    width: 10px; height: 10px; background: #ed1c24; 
    border-radius: 50%; animation: pulse 1.5s infinite;
}

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(237, 28, 36, 0); } }

/* Modern Tabs */
.glass-nav {
    display: flex; gap: 5px; background: rgba(0,0,0,0.05); padding: 5px; border-radius: 12px;
}

.nav-btn {
    border: none; background: transparent; padding: 8px 18px; 
    border-radius: 8px; font-weight: 700; color: #555; transition: 0.3s;
}

.nav-btn.active { background: #fff; color: #00205b; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* List Content */
.glass-card-body { padding: 30px 40px; height: 350px; overflow-y: auto; }
.notice-list { list-style: none; padding: 0; }
.notice-list li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.03); }
.notice-list li a { text-decoration: none; color: #333; font-weight: 600; transition: 0.2s; }
.notice-list li:hover a { color: #ed1c24; padding-left: 5px; }

.new-tag { background: #ed1c24; color: #fff; font-size: 9px; padding: 2px 8px; border-radius: 4px; margin-left: 10px; }

.glass-card-footer { padding: 20px 40px; border-top: 1px solid rgba(0,0,0,0.05); text-align: center; }
.glass-card-footer a { color: #00205b; font-weight: 700; text-decoration: none; }

/* JS Logic */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

