
/* WHATS NEW BAR */
.whatsnew-bar{
    display:flex;
    align-items:center;
    background:#ffffff;
    border-top:3px solid #bc2121;
    border-bottom:1px solid #ddd;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    margin-bottom:20px;
}

.whatsnew-title{
    background:#bc2121;
    color:#fff;
    padding:14px 22px;
    font-size:16px;
    font-weight:700;
    white-space:nowrap;
}

.whatsnew-scroll{
    flex:1;
    padding:0 15px;
}

.whatsnew-scroll a{
    color:#2f5fb8;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
}

.whatsnew-scroll a:hover{
    color:#bc2121;
}

/* MOBILE */
@media(max-width:768px){

    .whatsnew-title{
        padding:12px 14px;
        font-size:13px;
    }

    .whatsnew-scroll a{
        font-size:12px;
    }

}



/* MAIN SLIDER STYLING CSS */


/* MAIN SLIDER */
#homepage-slider{
    width:100%;
    position:relative;
    overflow:hidden;
}

.main-slider{
    position:relative;
    width:100%;
    height:520px;
    overflow:hidden;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity 1s ease-in-out;
}

.slide.active{
    opacity:1;
    z-index:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Overlay Center */
.slide-overlay{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    color:#fff;
    width:90%;
    max-width:1000px;
}

/* Small title */
.slide-overlay h4{
    font-size:24px;
    font-weight:600;
    letter-spacing:2px;
    margin-bottom:25px;
    text-transform:uppercase;
}

/* Big bordered title */
.slide-overlay h2{
    display:inline-block;
    border:4px solid rgba(255,255,255,0.7);
    padding:28px 55px;
    font-size:60px;
    font-weight:800;
    text-transform:uppercase;
    margin-bottom:35px;
    color:#fff;
}

/* Button */
.slide-btn-main{
    display:inline-block;
    background: #bc2121;
    color:#fff;
    padding:16px 36px;
    text-decoration:none;
    font-size:18px;
    font-weight:700;
    transition:.3s;
}

.slide-btn-main:hover{
    background:#024283;
    color:#fff;
}

/* Slider Nav */
.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:45px;
    height:45px;
    border:none;
    background:rgba(255,255,255,.8);
    cursor:pointer;
    font-size:22px;
    z-index:5;
}

.slider-btn:hover{
    background:#bc2121;
    color:#fff;
}

.prev{left:20px;}
.next{right:20px;}

/* MOBILE */
@media(max-width:768px){

    .main-slider{
        height:280px;
    }

    .slide-overlay h4{
        font-size:14px;
        margin-bottom:10px;
    }

    .slide-overlay h2{
        font-size:24px;
        padding:15px 18px;
        border:2px solid rgba(255,255,255,.7);
        margin-bottom:20px;
    }

    .slide-btn-main{
        padding:10px 18px;
        font-size:14px;
    }

    .slider-btn{
        width:35px;
        height:35px;
        font-size:16px;
    }
}


/* CALENDER STYLING CSS */


/* CALENDAR */
.custom-calendar-widget,
.custom-notice-board{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    margin-top:18px;
    box-shadow:0 3px 12px rgba(0,0,0,0.06);
}

/* HEADERS */
.custom-calendar-header,
.custom-notice-header{
    background:#2f5fb8;
    color:#fff;
    text-align:center;
    padding:10px;
    font-size:15px;
    font-weight:600;
}

/* CALENDAR BODY */
.custom-calendar-body{
    padding:12px;
}

.custom-calendar-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:8px;
}

/* MONTH */
.custom-month-year{
    text-align:center;
}

.custom-month-year h3{
    margin:0;
    font-size:18px;
    color:#444;
    line-height:1;
}

.custom-month-year p{
    margin:0;
    font-size:11px;
    color:#777;
}

/* NAV BUTTONS */
.custom-nav-btn{
    width:28px;
    height:28px;
    border:1px solid #ddd;
    border-radius:50%;
    background:#fff;
    font-size:14px;
    color:#888;
    cursor:pointer;
    transition:0.3s;
    padding:0;
}

.custom-nav-btn:hover{
    background:#2f5fb8;
    color:#fff;
    border-color:#2f5fb8;
}

/* TABLE */
.custom-calendar-table{
    width:100%;
    text-align:center;
}

.custom-calendar-table th{
    padding:5px 0;
    font-size:11px;
    color:#555;
    font-weight:600;
}

.custom-calendar-table td{
    padding:6px 0;
    font-size:12px;
    color:#555;
}

/* TODAY */
.custom-calendar-table td.today{
    background:#2f5fb8;
    color:#fff;
    border-radius:50%;
    font-weight:bold;
}

/* MUTED DAYS */
.custom-calendar-table td.muted{
    color:#ccc;
}

/* NOTICE BOARD */
.custom-notice-body{
    padding:12px;
}

.custom-notice-body ul{
    margin:0;
    padding-left:16px;
}

.custom-notice-body li{
    font-size:12px;
    line-height:1.5;
    margin-bottom:6px;
    color:#444;
}




 /* Ticker Wrapper — clips overflow and fades edges */
.logos-ticker-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Fade edges for a polished look */
.logos-ticker-wrapper::before,
.logos-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.logos-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.logos-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* The scrolling track */
.logos-ticker {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-scroll 15s linear infinite;
}

/* Pause on hover */
.logos-ticker:hover {
    animation-play-state: paused;
}

/* Each institution card */
.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 30px;
    min-width: 180px;
    border-right: 1px solid #e0e0e0;
}

.logo-item img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.institution-name {
    font-weight: 700;
    font-size: 13px;
    color: #222;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.institution-address {
    font-size: 11px;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

/* Scroll keyframe — moves left by exactly 50% (the duplicated half) */
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}








        /* --- Centered and Unbolded Main Gallery Heading --- */
        .main-gallery-title {
            text-align: center;
            font-size: 36px;
            font-weight: 400; /* Unbolded */
            color: #0f172a;
            margin: 40px 0 50px 0;
            letter-spacing: -0.5px;
        }
        .main-gallery-title::after {
            content: '';
            display: block;
            width: 40px;
            height: 3px;
            background: #bc2121;
            margin: 16px auto 0 auto;
        }

        /* --- Event Section Separation Gap --- */
        .event-block {
            margin-bottom: 60px; /* Refined vertical grid spacing */
        }
        .event-block:last-child {
            margin-bottom: 40px; /* Prevents an excessive gap above the footer */
        }

        /* --- Tighter, Stylized Event Header --- */
        .event-header-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            margin-bottom: 14px; /* Reduced gap to pull close to photos */
            padding-bottom: 6px;
            text-align: center;
            position: relative;
        }

        .event-title-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            width: 100%;
        }

        /* Centered and Clean Event Title */
        .event-title {
            font-size: 20px;
            font-weight: 500; 
            color: #1e293b;
            margin: 0;
            letter-spacing: -0.3px;
        }

        /* Accent indicator line bridging heading and images */
        .event-title::after {
            content: '';
            display: block;
            width: 24px;
            height: 2px;
            background: #e2e8f0;
            margin: 6px auto 0 auto;
            transition: background 0.3s ease;
        }
        .event-block:hover .event-title::after {
            background: #bc2121; /* Interactive dynamic color flip */
        }

        /* Institutional micro-copy under event title */
        .event-meta {
            font-size: 13px;
            color: #64748b;
        }

        /* Media photo quantity badge */
        .image-count-badge {
            background-color: #f1f5f9;
            color: #475569;
            font-size: 12px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 20px;
            border: 1px solid #e2e8f0;
            display: inline-block;
        }

        /* --- Custom Horizontal Slider Controls --- */
        .gallery-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .gallery-list-horizontal {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            list-style: none;
            padding: 4px 0 16px 0;
            margin: 0;
            gap: 24px;
            width: 100%;
            scrollbar-width: none; /* Hide standard scrollbar */
        }
        .gallery-list-horizontal::-webkit-scrollbar { display: none; }

        /* --- Image Card Presentation --- */
        .gallery-list-horizontal li {
            flex: 0 0 calc(25% - 18px);
            min-width: 260px;
        }

        .image-card {
            display: block;
            position: relative;
            overflow: hidden;
            background: #f8fafc;
            aspect-ratio: 4 / 3;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
        }

        .image-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Hover interactions */
        .image-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
        }
        .image-card:hover img {
            transform: scale(1.04);
        }

        /* Smooth premium overlay tint with interaction icon */
        .image-card::after {
            content: 'View Photo';
            font-size: 13px;
            font-weight: 500;
            color: #ffffff;
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.2));
            display: flex;
            align-items: flex-end;
            padding: 16px;
            box-sizing: border-box;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .image-card:hover::after { opacity: 1; }

        /* --- Sleek Integrated Navigation Buttons --- */
        .nav-btn {
            position: absolute;
            background-color: #bc2121; 
            color: #ffffff;            
            border: 1px solid #bc2121; 
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            z-index: 5;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 10px rgba(188, 33, 33, 0.25); 
        }

        .nav-btn:hover {
            background-color: #9e1b1b; 
            border-color: #9e1b1b;
            transform: scale(1.08);     
            box-shadow: 0 6px 14px rgba(188, 33, 33, 0.35);
        }

        /* Positioning arrows to neatly straddle the outer borders */
        .btn-left { left: -22px; }
        .btn-right { right: -22px; }

        /* --- Responsive Viewports --- */
        @media (max-width: 1024px) {
            .gallery-list-horizontal li { flex: 0 0 calc(33.333% - 16px); }
            .nav-btn { display: none; } 
            .gallery-list-horizontal { padding-bottom: 8px; }
        }
        @media (max-width: 768px) {
            .event-block { padding: 0; margin-bottom: 40px; }
            .gallery-list-horizontal li { flex: 0 0 calc(50% - 12px); gap: 16px; }
            .event-header-box { margin-bottom: 12px; }
        }
        @media (max-width: 480px) {
            .gallery-list-horizontal li { flex: 0 0 85%; }
            .main-gallery-title { font-size: 28px; margin: 30px 0 35px 0; }
            .event-title { font-size: 18px; }
            .image-count-badge { display: none; } 
        }



        /* UPCOMING EVENTS - COMPACT VERSION */
        #upcoming-events-compact {
            padding: 0;
            background: transparent;
            margin-bottom: 20px;
            height: auto; 
            max-width: 400px; 
            margin: 0 auto;
        }

        .events-card-compact {
            background: #fff;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            border-top: 4px solid #024283;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-radius: 6px;
            height: auto; 
        }

        /* FIX: REMOVED ASPECT-RATIO SO CONTAINER COLLAPSES TO IMAGE HEIGHT */
        .event-image-container {
            width: 100%;
            height: auto; /* Lets the height adjust perfectly to the rectangular banner */
            overflow: hidden;
            background: #021a34; 
            border-bottom: 1px solid #e2e8f0; 
            line-height: 0; /* Removes extra baseline inline spacing gaps */
        }

        .event-image-container img {
            width: 100%;
            height: auto; /* Ensures image fills the width naturally without forced spacing */
            display: block;
        }

        .events-header-compact {
            padding: 20px;
            background: linear-gradient(135deg, #024283 0%, #002b56 100%);
            color: #fff;
        }

        .event-badge-compact {
            background: #bc2121;
            color: #fff;
            display: inline-block;
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .events-header-compact h2 {
            font-size: 18px;
            margin-top: 0;
            margin-bottom: 8px;
            color: #fff;
            line-height: 1.3;
        }

        .event-subtitle-compact {
            font-size: 12px;
            line-height: 1.4;
            color: #cbd5e1;
            margin-bottom: 15px;
        }

        /* COMPACT COUNTDOWN */
        .countdown-container-compact {
            margin-top: 0;
        }

        .countdown-title-compact {
            font-size: 11px;
            color: #cbd5e1;
            margin-bottom: 8px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .countdown-compact {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 4px;
            flex-wrap: wrap;
        }

        .countdown-item-compact {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            padding: 6px 6px;
            border-radius: 6px;
            min-width: 44px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .countdown-value-compact {
            font-size: 16px;
            font-weight: 700;
            color: #fff;
            line-height: 1;
            min-width: 32px;
            text-align: center;
        }

        .countdown-label-compact {
            font-size: 8px;
            color: #cbd5e1;
            margin-top: 3px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            font-weight: 500;
        }

        .countdown-separator-compact {
            color: rgba(255, 255, 255, 0.4);
            font-size: 14px;
            font-weight: 300;
            margin: 0 1px;
        }

        /* --- MOBILE RESPONSIVENESS ADJUSTMENTS --- */
        @media (max-width: 480px) {
            .events-header-compact {
                padding: 12px 15px; 
            }

            .event-badge-compact {
                margin-bottom: 6px; 
                font-size: 9px;
                padding: 3px 10px;
            }

            .events-header-compact h2 {
                font-size: 15px; 
                margin-bottom: 4px; 
            }

            .event-subtitle-compact {
                font-size: 11px;
                margin-bottom: 10px; 
            }

            .countdown-title-compact {
                font-size: 10px;
                margin-bottom: 4px; 
            }

            .countdown-compact {
                gap: 2px; 
            }

            .countdown-item-compact {
                padding: 4px 4px; 
                min-width: 38px;
            }

            .countdown-value-compact {
                font-size: 14px;
                min-width: 26px;
            }

            .countdown-label-compact {
                font-size: 7px;
                margin-top: 1px;
            }
        }

/* Modern Dark Quick Links Container */
.modern-ql-section {
    background: #bc2121;
    padding: 50px 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Elegant Header Design */
.modern-ql-header {
    text-align: center;
    margin-bottom: 35px;
}

/* Remove the native template underline/border under the title */
.modern-ql-header h2 {
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    color: #ffffff;
}



/* Tight Grid Padding */
.modern-ql-grid [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* Modern Glass-Style Box UI */
.modern-ql-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06); /* Semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-decoration: none !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 60px;
}

/* Clean Typography inside Box */
.ql-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    padding-right: 10px;
}

/* Premium Dynamic Arrow Indicator */
.ql-arrow {
    color: #00ffcc; /* Accent colored arrow */
    font-size: 18px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Hover Micro-Interactions */
.modern-ql-box:hover {
    background: #ffffff; /* Turns clean solid white on hover */
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.modern-ql-box:hover .ql-text {
    color: #002266; /* Changes text color to contrast dark blue */
}

.modern-ql-box:hover .ql-arrow {
    opacity: 1;
    transform: translateX(0); /* Arrow slides out beautifully */
    color: #003399;
}