/* Custom CSS for Amareshwar College Website */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #1a1a4e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d30404;
}

/* Custom typography fallback settings */
.font-serif-brand {
    font-family: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
}

/* ============================================================
   TOP BAR - Dark navy background
   ============================================================ */
.top-bar-dark {
    background-color: #1a1a2e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   NEWS TICKER - Top bar scrolling news
   ============================================================ */
@keyframes newsTicker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.news-ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.news-ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: newsTicker 30s linear infinite;
}

.news-ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

/* ============================================================
   NOTIFICATION TICKER - Below hero slider
   ============================================================ */
@keyframes notifTicker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.notif-ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.notif-ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: notifTicker 20s linear infinite;
}

.notif-ticker-content:hover {
    animation-play-state: paused;
}

/* ============================================================
   NAVIGATION - Blue to Red gradient navbar
   ============================================================ */
.navbar-gradient {
    background: linear-gradient(to right, #1a237e, #283593, #3949ab, #5c3d99, #7b1fa2, #8e1b6e, #b71c1c, #c62828, #d32f2f);
}

.nav-item-red {
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.nav-item-red:first-child {
    border-left: 1px solid rgba(255,255,255,0.15);
}

/* Hover underline for subpages nav links */
.nav-link-hover {
    position: relative;
}
.nav-link-hover::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #d30404;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.nav-link-hover:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ============================================================
   DROPDOWN MENU ANIMATIONS
   ============================================================ */
.dropdown-menu-animate {
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover > .dropdown-menu-animate {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slide {
    display: none !important;
    transition: opacity 0.8s ease-in-out;
}
.hero-slide.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   NOTIFICATION PANEL - New badge styling
   ============================================================ */
.notification-new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #8b4513;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Notification scroll area */
.notification-scroll::-webkit-scrollbar {
    width: 4px;
}
.notification-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.notification-scroll::-webkit-scrollbar-thumb {
    background: #d30404;
    border-radius: 2px;
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}
@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ============================================================
   IMAGE PLACEHOLDER FALLBACK
   ============================================================ */
.img-placeholder {
    background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%), 
                      linear-gradient(-45deg, #e6e6e6 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #e6e6e6 75%), 
                      linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .top-bar-dark {
        display: none;
    }
}
