﻿/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* Top Bar */
.top-bar {
    background-color: #001a33;
    color: #e0e0e0;
    font-size: 0.85rem;
    padding: 8px 0;
}

    .top-bar a {
        color: #e0e0e0;
        margin-left: 15px;
        transition: color 0.3s ease;
        text-decoration: none;
    }

        .top-bar a:hover {
            color: #ffc107;
        }

/* Header */
.top-header {
    background-color: #ffffff;
    padding: 5px 0;
    border-bottom: 3px solid #ffc107;
}

.header-logo {
    max-height: 110px;
    width: auto;
    transition: transform 0.3s ease;
}

    .header-logo:hover {
        transform: scale(1.05);
    }

.college-title-hi {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.college-title-en {
    color: #003366;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.affiliation-text {
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================= */
/* --- FIXED NAVBAR & DROPDOWN STYLES --- */
/* ========================================= */
.navbar {
    background-color: #003366;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 0;
}

.navbar-brand {
    display: none;
}

/* Top-level Links */
.navbar .nav-link {
    color: #ffffff !important;
    padding: 18px 20px !important;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

    .navbar .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 3px;
        background-color: #ffc107;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    .navbar .nav-link:hover, .navbar .nav-link.active {
        color: #ffc107 !important;
    }

        .navbar .nav-link:hover::after, .navbar .nav-link.active::after {
            width: 100%;
        }

/* Dropdown Menu Base Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    background-color: #ffffff;
    border-top: 3px solid #ffc107;
}

/* FIXED: Dropdown Item Content Fit & Arrow Alignment */
.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    white-space: nowrap; /* Forces dropdown to fit content dynamically */
    display: flex; /* Flexbox keeps text left and arrow right perfectly */
    justify-content: space-between;
    align-items: center;
}

    .dropdown-item:hover {
        background-color: #f0f4f8;
        color: #003366;
        /* Balancing padding: +5px left, -5px right = 0 width change (stops arrow jumping!) */
        padding-left: 25px;
        padding-right: 15px;
    }

/* Desktop Hover Logic (Level 2 & 3 Menus) */
@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease;
        margin-top: 0;
    }

    .nav-item.dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -3px;
            border-radius: 8px;
            transform: translateX(15px);
        }

        .dropdown-submenu:hover > .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

        /* FIXED: Replace Bootstrap caret with clean FontAwesome side-arrow */
        .dropdown-submenu > .dropdown-toggle::after {
            content: "\f105"; /* FontAwesome Angle Right */
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            border: none; /* Removes the default ugly bootstrap triangle */
            margin-left: 20px;
            vertical-align: middle;
        }
}
/* ========================================= */

/* Carousel/Slider */
.carousel-item {
    height: 65vh;
    min-height: 400px;
}

    .carousel-item img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

.carousel-caption {
    background: rgba(0, 51, 102, 0.7);
    padding: 20px 40px;
    border-radius: 10px;
    bottom: 20%;
}
/* Custom Outline Button for College Theme */
.btn-college-outline {
    border: 2px solid #003366;
    color: #003366;
    background-color: transparent;
    transition: all 0.3s ease;
}

    /* Hover State: Background fills, text turns white */
    .btn-college-outline:hover {
        background-color: #003366;
        color: #ffffff !important;
        box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
    }

    /* Arrow sliding animation */
    .btn-college-outline i {
        transition: transform 0.3s ease;
    }

    .btn-college-outline:hover i {
        transform: translateX(5px);
    }

/* Vertical Notice Board Styles */
.notice-board-link {
    color: #333;
    transition: color 0.2s ease;
    display: block;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

    .notice-board-link:hover {
        color: #003366;
        text-decoration: underline;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.badge-pulse {
    animation: pulse 1.5s infinite;
}

/* Section Styling */
.section-title {
    color: #003366;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

    .section-title::after {
        content: '';
        width: 60px;
        height: 4px;
        background-color: #ffc107;
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

/* Footer */
.footer {
    background-color: #001a33;
    color: #d1d5db;
    padding: 70px 0 20px;
    font-size: 0.95rem;
    margin-top: 50px;
}

.footer-logo {
    max-height: 80px;
    margin-bottom: 15px;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
}

.footer h5 {
    color: #ffc107;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

    .footer h5::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 3px;
        background-color: #ffc107;
        border-radius: 2px;
    }

.footer ul {
    padding-left: 0;
    list-style: none;
}

    .footer ul li {
        margin-bottom: 12px;
    }

.footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

    .footer a:hover {
        color: #ffc107;
        transform: translateX(5px);
    }

.footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
}

    .footer .social-icons a:hover {
        background: #ffc107;
        color: #001a33;
        transform: translateY(-3px);
    }

.footer-bottom {
    background-color: #001122;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #ffc107;
    color: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: #003366;
        color: #ffc107;
        transform: translateY(-5px);
    }

/* Mobile Adjustments */
@media (max-width: 991px) {
    .navbar-brand {
        display: inline-block;
        color: white !important;
        padding-left: 15px;
    }

    .college-title-hi {
        font-size: 1.3rem;
    }

    .college-title-en {
        font-size: 1.1rem;
    }

    .top-bar {
        text-align: center;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding-left: 15px;
    }

        .dropdown-menu.show {
            display: block;
        }

    .dropdown-submenu > .dropdown-menu {
        margin-left: 15px;
        border-left: 2px solid #ffc107;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        content: "\f107";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        border: none;
        margin-left: auto;
    }
    /* Down arrow for mobile */
}

/* Sticky Right Button */
.sticky-enquiry-btn {
    position: fixed;
    top: 60%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1040;
    background-color: #003366;
    color: #ffc107;
    padding: 15px 8px;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    border: 2px solid #ffc107;
    border-right: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

    .sticky-enquiry-btn:hover, .sticky-enquiry-btn:focus {
        background-color: #ffc107;
        color: #003366;
        padding-right: 15px;
    }

    .sticky-enquiry-btn i {
        transform: rotate(90deg);
        margin-bottom: 8px;
    }
/* ========================================= */
/* IMPORTANT LINKS SMOOTH SLIDER             */
/* ========================================= */
.important-links-section {
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

.slider-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 15px 0;
}

    /* Gradient Fade Effects on Left & Right Edges */
    .slider-wrapper::before,
    .slider-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        width: 80px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }

    .slider-wrapper::before {
        left: 0;
        background: linear-gradient(to right, #ffffff 0%, transparent 100%);
    }

    .slider-wrapper::after {
        right: 0;
        background: linear-gradient(to left, #ffffff 0%, transparent 100%);
    }

/* The Sliding Track */
.slider-track {
    display: inline-flex;
    gap: 25px;
    padding-right: 25px; /* Matches the gap for seamless looping */
    /* 35s controls the speed. Lower = faster */
    animation: scrollSlider 35s linear infinite;
}

    /* Pause the animation when a user hovers over the tiles */
    .slider-track:hover {
        animation-play-state: paused;
    }

/* Individual Link Tiles */
.link-tile {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: normal; /* Allows text to wrap inside the box */
}

    /* Hover effect: Tile pops up and gets a gold border */
    .link-tile:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0, 51, 102, 0.1);
        border-color: #ffc107;
        background: #ffffff;
    }

    .link-tile i {
        font-size: 2.5rem;
        color: #003366;
        margin-bottom: 12px;
        transition: transform 0.3s ease;
    }

    .link-tile:hover i {
        transform: scale(1.1);
        color: #ffc107;
    }

    .link-tile span {
        color: #333;
        font-weight: 600;
        font-size: 0.95rem;
        line-height: 1.3;
    }

/* Hardware-accelerated sliding animation */
@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}