


/* 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;}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: #bc2121;
    transform: scale(1.2);
    border-color: #fff;
}

/* Background Strip with White Background */
.navigation-wrapper .background {
    background-color: #ffffff !important;
}

/* 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;
    }
}




 /* 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%); }
}






        /* 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: 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%); }
}






        /* 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;
            }
        }

/* ============================================================
   FOOTER LOGO STYLE IMPROVEMENTS
   ============================================================ */
#page-footer #footer-content .logo {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start; /* Align to the top of the columns */
    height: auto;
    margin: 0;
    padding: 10px 0 0 0; /* Align with column headers */
}

#page-footer #footer-content .logo a {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

#page-footer #footer-content .logo a:hover {
    transform: translateY(-2px) scale(1.02);
    opacity: 0.9;
}

#page-footer #footer-content .logo img {
    max-height: 155px; /* Premium visual balance size */
    width: auto;
    display: block;
    margin: 0;
    position: relative !important;
}

@media (max-width: 991px) {
    #page-footer #footer-content .logo {
        justify-content: center;
        align-items: center;
        padding: 0;
        margin-bottom: 30px;
    }
    #page-footer #footer-content .logo img {
        margin: 0 auto;
    }
}

/* ============================================================
   FOOTER LAYOUT FIX — "Arrange the footer to fit"
   ============================================================
   Problems addressed:
     1. #footer-top had margin-top:30px + padding:30px → huge gap
     2. Footer columns (4 × col-md-3) weren't balanced
     3. Excessive vertical space inside footer-content
     4. Footer not always spanning full viewport width
   ============================================================ */

/* ---- Full-width guarantee ---- */
#page-footer {
    width: 100%;
    overflow: hidden;
}

/* ---- "Follow us" top bar — compact ---- */
#page-footer #footer-top {
    margin-top: 0 !important;        /* was 30px — kills the gap above footer */
    padding: 12px 0 !important;      /* was 30px 0 — much tighter */
}

/* ---- Main footer content area ---- */
#page-footer #footer-content {
    padding: 35px 0 30px; /* was 40px 0 — slightly tighter */
}

/* Ensure no gap between page content and footer */
#page-content {
    padding-bottom: 0 !important;
}

/* Strip bottom margin from the last elements inside page content */
#page-content > :last-child,
#page-content > section:last-of-type,
#page-content > div:last-of-type,
#page-content .container:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#gallery, 
.event-block:last-child, 
#uohyd-stats {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ---- Footer column row: equal-height flex ---- */
#page-footer #footer-content > .container > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Give the logo column a bit less room, redistribute to content cols */
#page-footer #footer-content > .container > .row > .col-md-3:first-child {
    flex: 0 0 20%;
    max-width: 20%;
}
#page-footer #footer-content > .container > .row > .col-md-3:nth-child(2) {
    flex: 0 0 27%;
    max-width: 27%;
}
#page-footer #footer-content > .container > .row > .col-md-3:nth-child(3) {
    flex: 0 0 25%;
    max-width: 25%;
}
#page-footer #footer-content > .container > .row > .col-md-3:last-child {
    flex: 0 0 28%;
    max-width: 28%;
}

/* Tighter heading spacing */
#page-footer h4 {
    font-size: 20px;       /* was 24px */
    margin-bottom: 25px;   /* was 35px */
    margin-top: 5px;       /* was 10px */
}

/* Remove thin decorative horizontal underline below footer headings */
#page-footer h4::after,
#page-footer h4::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
    height: 0 !important;
    width: 0 !important;
}

/* Address / contact block — tighter line-height */
#page-footer #footer-content address {
    line-height: 1.8;
    font-size: 12px;
}

/* Quick-links list — tighter spacing */
#page-footer #footer-content .list-links li {
    margin-bottom: 4px;
}

/* About blurb paragraph */
#page-footer #footer-content aside > p {
    line-height: 1.7;
    font-size: 12px;
}

/* ---- Copyright bottom bar ---- */
#page-footer #footer-bottom {
    padding: 14px 0;      /* was 20px — slightly tighter */
}

/* ---- Responsive: tablet ---- */
@media (max-width: 991px) {
    #page-footer #footer-content > .container > .row {
        /* Stack into 2-column layout */
        display: flex;
        flex-wrap: wrap;
    }
    #page-footer #footer-content > .container > .row > .col-md-3:first-child,
    #page-footer #footer-content > .container > .row > .col-md-3:nth-child(2),
    #page-footer #footer-content > .container > .row > .col-md-3:nth-child(3),
    #page-footer #footer-content > .container > .row > .col-md-3:last-child {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 25px;
    }
}

/* ---- Responsive: mobile ---- */
@media (max-width: 767px) {
    #page-footer #footer-content > .container > .row > .col-md-3:first-child,
    #page-footer #footer-content > .container > .row > .col-md-3:nth-child(2),
    #page-footer #footer-content > .container > .row > .col-md-3:nth-child(3),
    #page-footer #footer-content > .container > .row > .col-md-3:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    #page-footer h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    #page-footer #footer-top {
        padding: 10px 0;
    }
}

/* ============================================================
   GLOBAL REMOVAL OF DECORATIVE GRAY HEADINGS DIVIDERS & LINES
   ============================================================ */
h1::after, h1::before,
h2::after, h2::before,
h3::after, h3::before,
h4::after, h4::before,
h5::after, h5::before,
h6::after, h6::before,
.section-title::after, .section-title::before,
.section-head::after, .section-head::before,
.page-title::after, .page-title::before,
.anrf-intro-heading-row h4::after, .anrf-intro-heading-row h4::before,
.anrf-intro-heading-row h2::after, .anrf-intro-heading-row h2::before,
.anrf-intro-text h3::after, .anrf-intro-text h3::before,
header h1::after, header h2::after, header h3::after, header h4::after,
.title::after, .title::before,
.heading-line, .title-line, .heading-divider, .section-divider,
.no-theme-underline::after,
.no-theme-underline::before,
h1.no-theme-underline::after,
h1.no-theme-underline::before,
h2.no-theme-underline::after,
h2.no-theme-underline::before,
h3.no-theme-underline::after,
h3.no-theme-underline::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
    height: 0 !important;
    width: 0 !important;
}

h1, h2, h3, h4, h5, h6,
.section-title, .section-head, .page-title,
.anrf-intro-heading-row h4, .anrf-intro-text h3 {
    border-bottom: none !important;
}
