:root {
    --cream: #ffffff;
    --hero-accent: #ff4800;
    --hero-accent-hover: #ff2a00;
    --dark: #1e293b;
    --brown: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-bg-hover: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(255, 255, 255, 0.8);
}

.hero-body-scope {
    background: #fffdfa;
    color: #1c1917;
}

/* HERO SCOPED STYLES */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
    background: #000;
    color: #1e293b;
    font-family: 'DM Sans', sans-serif;
}

.hero-main-container {
    position: relative;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.hero-main-container > * {
    pointer-events: auto;
}

.hero * {
    box-sizing: border-box;
}

/* OVERLAY NAVBAR ON HERO */
.navbar-wrapper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.navbar-wrapper-overlay .container {
    pointer-events: auto;
}

.navbar-wrapper-overlay .custom-navbar {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 10px 20px !important;
}

/* Contact Us Button - Vibrant Orange Matching Hero */
.navbar-wrapper-overlay .contact-btn {
    background: linear-gradient(135deg, #ff4800 0%, #ff6600 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(255, 72, 0, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.navbar-wrapper-overlay .contact-btn:hover {
    background: linear-gradient(135deg, #ff2a00 0%, #ff5500 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 72, 0, 0.5) !important;
    transform: translateY(-1.5px) !important;
    color: #ffffff !important;
}

.navbar-wrapper-overlay .contact-btn:hover .bi-arrow-right-short {
    transform: translateX(3px);
}

.navbar-wrapper-overlay .contact-btn .bi-arrow-right-short {
    transition: transform 0.25s ease;
}

/* BACKGROUND VIDEO SLIDER */

/* .video-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: #ffffff;
} */

.video-background {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    inset: 0;
    z-index: -3;
}
   
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.video-background video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.video-background video.active {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        /* Darker in the Left (for hero text readability) */
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.72) 28%,
            rgba(0, 0, 0, 0.35) 48%,
            transparent 70%
        ),
        /* Darker in the Bottom (for thumbnail slider & navigation) */
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.60) 16%,
            rgba(0, 0, 0, 0.20) 28%,
            transparent 42%
        ),
        /* Top-Left Corner */
        radial-gradient(
            ellipse 45% 45% at 0% 0%,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.40) 50%,
            transparent 100%
        ),
        /* Top-Right Corner */
        radial-gradient(
            ellipse 45% 45% at 100% 0%,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.30) 50%,
            transparent 100%
        ),
        /* Bottom-Right Corner */
        radial-gradient(
            ellipse 45% 45% at 100% 100%,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            transparent 100%
        ),
        /* Bottom-Left Corner */
        radial-gradient(
            ellipse 45% 45% at 0% 100%,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            transparent 100%
        );
}

/* LEFT CONTENT */

.hero-content {
    position: absolute;
    left: 15px;
    top: 15%;
    transform: translateY(-50%);
    z-index: 4;
    max-width: 580px;
    animation: contentReveal 1s ease both;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    filter: none !important;
}

.hero-badge-tag {
    font-size: 15px;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    color: #ff6600;
    display: inline-block;
    margin-bottom: 10px;
    text-shadow: none !important;
    transition: opacity 0.3s ease;
}

.hero-heading {
    font-family: 'Manrope', sans-serif !important;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.18;
    font-weight: 700 !important;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    text-shadow: none !important;
    filter: none !important;
    transition: opacity 0.3s ease;
}

.hero-heading .gradient-text {
    font-weight: 700 !important;
    background: linear-gradient(90deg, #ff4800, #ff7700, #ff5500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    filter: none !important;
}

.hero-subtext {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 520px;
    text-shadow: none !important;
    filter: none !important;
    transition: opacity 0.3s ease;
}

.hero-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-campus-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    border-radius: 50px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
}

.btn-campus-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.about-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.about-btn .btn-text {
    background: linear-gradient(90deg, #ff1500, #ff4800, #ff6600);
    color: #ffffff;
    border-radius: 50px;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 4px 14px rgba(255, 72, 0, 0.35);
}

.about-btn .btn-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(255, 72, 0, 0.4);
    color: #ff4800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: 2px;
    transition: .3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-btn:hover .btn-text {
    background: linear-gradient(90deg, #ff3300, #ff5e1a, #ff771a);
    box-shadow: 0 6px 20px rgba(255, 72, 0, 0.5);
    color: #ffffff;
}

.about-btn:hover .btn-arrow {
    transform: translateX(4px);
    border-color: #ff4800;
    color: #ff1500;
}

/* BOTTOM VIDEO SLIDER */

.slider-navigation {
    position: absolute;
    bottom: 16px;
    left: 15px;
    right: 15px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.slide-item {
    position: relative;
    border: 0;
    padding: 10px 0 0;
    display: flex;
    gap: 10px;
    align-items: center;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    opacity: .75;
    transition: opacity .4s;
    cursor: pointer;
}

.slide-progress-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: width 7s linear;
    overflow: hidden;
}

.slide-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff4800, #ff6600);
    border-radius: 2px;
    transition: width 7s linear;
}

@keyframes slideLineLoad {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.slide-item.active {
    opacity: 1;
    color: #ffffff;
}

.slide-item.active .slide-number {
    color: #ff6600;
}

.slide-thumb {
    width: 78px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.slide-item.active .slide-thumb {
    border-color: #ff4800;
    box-shadow: 0 4px 14px rgba(255, 72, 0, 0.4);
}

.slide-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slide-number {
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e1;
}

.slide-name {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    max-width: 110px;
    color: #ffffff;
}

/* SLIDE PROGRESS (Bottom Line) - Removed as requested */
.slide-progress {
    display: none !important;
}

.slide-progress.animate {
    animation: progress 7s linear forwards;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTTOM COLOR STRIP */

/* ===================================================
   SCROLL STATS SECTION (DEFAULT DESKTOP)
   =================================================== */

.scroll-stats {
    background: #fff7ee;
    padding: 70px 0;
}

.scroll-stats .stats-grid-row {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    align-items: center;
    text-align: center;
}

.scroll-stats .stat-box {
    padding: 10px 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.scroll-stats .stat-box:last-child {
    border-right: none;
}

.scroll-stats .bg-number {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.scroll-stats .stat-box.plus .bg-number::after {
    content: "+";
    font-size: 24px;
    margin-left: 2px;
    vertical-align: super;
}

.scroll-stats .stat-content h6 {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #444;
    margin-top: 10px;
    margin-bottom: 0;
    text-transform: uppercase;
}

/* ===================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   =================================================== */

/* TABLET (<= 1024px) */
@media (max-width: 1024px) {
    .hero {
        height: 100vh;
        min-height: 700px;
    }

    .hero-content {
        top: 42%;
        max-width: 520px;
    }

    .hero-heading {
        font-size: clamp(28px, 3.6vw, 38px) !important;
    }

    .slider-navigation {
        gap: 10px;
        bottom: 20px;
    }

    .slide-thumb {
        width: 66px;
        height: 42px;
    }

    .slide-name {
        font-size: 11.5px;
    }

    .scroll-stats {
        padding: 55px 0 !important;
    }

    .scroll-stats .stats-grid-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px 0 !important;
    }

    .scroll-stats .stat-box {
        border-right: none !important;
        border-left: none !important;
        padding: 10px !important;
    }

    .scroll-stats .bg-number {
        font-size: 44px !important;
    }
}

/* MOBILE (<= 768px) */
@media (max-width: 768px) {
    .navbar-wrapper-overlay .container {
        padding: 0 10px;
    }

    .navbar-wrapper-overlay .custom-navbar {
        padding: 8px 14px !important;
        border-radius: 12px !important;
        margin-top: 8px;
    }

    .navbar-logo {
        width: 175px !important;
        max-width: 60vw;
    }

    .hero {
        height: auto;
        min-height: 100svh;

        
        overflow: hidden;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    /* GRADIENT FROM THE BOTTOM FOR MOBILE VIEW */
    .video-overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.88) 32%,
            rgba(0, 0, 0, 0.62) 60%,
            rgba(0, 0, 0, 0.20) 82%,
            transparent 96%
        ) !important;
    }

    .hero-main-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        min-height: 100svh !important;
        height: auto !important;
        padding-top: 105px !important;
        padding-bottom: 22px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .hero-content {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        max-width: 100% !important;
        margin-top: auto !important;
        margin-bottom: 22px !important;
        padding: 0 !important;
    }

    .hero-heading {
        font-size: clamp(26px, 4.8vw, 36px) !important;
        line-height: 1.22 !important;
        margin-bottom: 12px;
    }

    .hero-subtext {
        font-size: 14px !important;
        line-height: 1.5;
        margin-bottom: 18px;
        max-width: 580px;
        color: #f1f5f9;
    }

    .hero-btn-group {
        display: flex;
        gap: 12px;
        width: 100%;
        flex-wrap: wrap;
    }

    .slider-navigation {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 8px 4px 6px !important;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .slider-navigation.owl-carousel.owl-loaded {
        display: block !important;
        overflow: hidden !important;
        padding: 8px 0 6px !important;
    }

    .slider-navigation.owl-carousel.owl-loaded .slide-item {
        width: 100%;
        flex: 0 0 auto !important;
        scroll-snap-align: none;
    }

    .slider-navigation::-webkit-scrollbar {
        display: none;
    }

    .slide-item {
        flex: 0 0 160px !important;
        scroll-snap-align: center;
        padding-top: 8px;
        display: flex !important;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .slide-thumb {
        width: 60px !important;
        height: 40px !important;
        border-radius: 6px;
        flex-shrink: 0;
        object-fit: cover;
    }

    .slide-name {
        font-size: 11.5px !important;
        line-height: 1.25;
        font-weight: 700;
        max-width: 90px;
        color: #ffffff;
    }

    .scroll-stats {
        padding: 50px 0 !important;
    }

    .scroll-stats .stats-grid-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 28px 0 !important;
    }

    .scroll-stats .stat-box {
        border-right: none !important;
        border-left: none !important;
        padding: 10px !important;
    }

    .scroll-stats .bg-number {
        font-size: 40px !important;
    }
}

/* 4. MOBILE (<= 768px) */
@media (max-width: 768px) {
    .navbar-wrapper-overlay .container {
        padding: 0 10px;
    }

    .navbar-wrapper-overlay .custom-navbar {
        padding: 8px 14px !important;
        border-radius: 12px !important;
        margin-top: 8px;
    }

    .navbar-logo {
        width: 175px !important;
        max-width: 60vw;
    }

    .custom-navbar .navbar-collapse {
        padding: 16px 18px !important;
        margin-top: 10px !important;
    }

    .hero-main-container {
        padding-top: 100px !important;
        padding-bottom: 20px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hero-content {
        margin-bottom: 20px !important;
    }

    .hero-badge-tag {
        font-size: 12.5px !important;
        letter-spacing: 1.2px;
        margin-bottom: 6px;
    }

    .hero-heading {
        font-size: clamp(24px, 6.4vw, 32px) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.3px;
        margin-bottom: 12px;
    }

    .hero-subtext {
        font-size: 13.5px !important;
        line-height: 1.5;
        margin-bottom: 18px;
        max-width: 100%;
        color: #f1f5f9;
    }

    .btn-campus-outline,
    .about-btn {
        flex: 1 1 calc(50% - 5px);
        text-align: center;
    }

    .btn-campus-outline,
    .about-btn .btn-text {
        width: 100%;
        padding: 12px 14px;
        font-size: 13.5px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
    }

    .slide-item {
        flex: 0 0 152px !important;
    }

    .slide-thumb {
        width: 56px !important;
        height: 38px !important;
    }

    .slide-name {
        font-size: 11px !important;
        max-width: 82px;
    }

    .scroll-stats {
        padding: 42px 0 !important;
    }

    .scroll-stats .stats-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px 0 !important;
    }

    .scroll-stats .stat-box {
        border: none !important;
        padding: 10px 8px !important;
    }

    .scroll-stats .bg-number {
        font-size: 34px !important;
    }

    .scroll-stats .stat-content h6 {
        font-size: 11px !important;
        margin-top: 4px;
    }
}

/* 5. SMALL MOBILE (<= 440px) */
@media (max-width: 440px) {
    .navbar-logo {
        width: 150px !important;
    }

    .hero-heading {
        font-size: 35px !important;
    }

    .hero-btn-group {
        flex-direction: column;
        gap: 8px;
    }

    .btn-campus-outline,
    .about-btn {
        width: 100%;
        flex: 0 0 100%;
    }

    .btn-campus-outline,
    .about-btn .btn-text {
        width: 100%;
        padding: 12px 14px;
        font-size: 13.5px;
    }

    .slide-item {
        flex: 0 0 142px !important;
    }

    .slide-thumb {
        width: 50px !important;
        height: 35px !important;
    }

    .slide-name {
        font-size: 10.5px !important;
        max-width: 76px;
    }
}

.department-marquee {
    position: relative;
    overflow: hidden;
    padding: 18px 0;
    background: #ffffff;
}

.department-marquee .cards-scroller-wrapper {
    position: relative !important;
    bottom: auto !important;
    left: auto;
    width: 100%;
    max-width: none;
    padding: 5px 0;
}

.department-marquee .cards-scroller {
    margin-top: 0;
}

@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

.banner-img{
  width:100%;
  display:block;
  object-fit:cover;
}

@media (max-width: 768px) {
    .hero-btn-group {
        align-items: flex-start;
    }

    .hero-btn-group > .btn-campus-outline {
        width: auto;
        flex: 0 0 auto;
    }
}
