/* Global White Theme & Interactions */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff !important;
    /* Force white background */
    color: #333333;
    /* Dark gray text for contrast */
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400;
}

/* HEADINGS - Uniform Font (Poppins) */
h1,
h2,
h3,
h4,
h5,
h6,
.display-6,
.header-tomato-gradient {
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0.5px;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0.5px;
    color: tomato !important;
    /* Ensure visibility on navy background */
    opacity: 0;
    visibility: hidden;
    max-width: 0;
    margin-right: 0px !important;
    padding: 0 !important;
    /* Remove all space */
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.is-sticky .navbar-brand {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 500px !important;
    /* Expand to show name */
    margin-right: 1.5rem !important;
    /* Restore normal margin */
    padding: 0.3125rem 1rem !important;
    /* Restore normal padding */
}

/* Universal Hover Lift for Links & Buttons */
a,
.btn,
button,
.hover-scale {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 10;
}

/* Exclude the top-nav links from this specific lift if they have their own, 
   but generally nice to have. Let's apply a specific interaction class or generic. */
a:not(.navbar-brand):hover,
.btn:hover,
button:not(.navbar-toggler):hover {
    transform: translateY(-2px);
    text-decoration: none;
    /* Clean up links */
}

/* Soften shadows globally - INCREASED DEPTH */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .08) !important;
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25) !important;
}

/* Sticky Nav Fix */
.sticky-top {
    z-index: 1020 !important;
    /* Ensure it stays above everything */
}

/* PREMIUM NAVBAR STYLES - Clean Navy */
.navbar-premium {
    background: #143145 !important;
    /* Deep Navy */
    backdrop-filter: blur(10px);
    border-bottom: none !important;
    /* Removed Gold Border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* LIVELY NAV ANIMATIONS - Tomato Gradient Box (Delay) */
.nav-link-cool {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 8px 12px !important;
    margin: 0;
    transition: all 0.5s ease;
    /* Time Delay Effect */
    font-size: 14px;
    font-weight: 300;
    /* Keeping it readable */
    letter-spacing: 0.5px;
    border-radius: 5px;
    /* Box Shape */
}

/* Restored ::after (White Line Animation) */
.nav-link-cool::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #ffffff;
    /* Clean White Line */
    transition: width 0.3s ease;
    /* Snippy animation */
    transform: translateX(-50%);
    border-radius: 2px;
}

/* HOVER: Gradient Fill & Glow & Line Expand */
.nav-link-cool:hover {
    color: #ffffff !important;
    background: linear-gradient(45deg, #a52a2a, #ff6347);
    /* Tomato Gradient */
    box-shadow: 0 4px 15px rgba(165, 42, 42, 0.4);
    /* Matching Glow */
    transform: translateY(-2px);
}

.nav-link-cool:hover::after {
    width: 80%;
    /* Expand Line */
}

/* SECTION HEADERS - TOMATO GRADIENT (Dark Middle) */
.header-tomato-gradient {
    background: linear-gradient(90deg, #ff6347 0%, #800000 50%, #ff6347 100%) !important;
    color: white !important;
    padding: 5px 10px !important;
    /* Reduced Height */
    line-height: 1.4 !important;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CAROUSEL INTERACTIVE & KEN BURNS */
.carousel-interactive {
    border: 5px solid #ffffff;
    /* White Frame */
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    /* Deep Shadow */
    transition: all 0.4s ease;
    overflow: hidden;
    /* Crucial for Zoom */
    margin-top: 15px;
    /* Separation from Ticker */
}

/* Hover Lift - SIMPLIFIED: Static White */
.carousel-interactive:hover {
    border-color: #ffffff;
    /* Frame stays White on hover */
}

/* Ken Burns Animation Class */
.kb-slide img {
    transform-origin: center;
    transition: transform 5s ease-out;
    /* Fallback */
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Separate Ticker Container */
/* Separate Ticker Container */
.news-ticker-section {
    background-color: #f8f9fa;
    /* Light Gray Background */
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* border-left removed */
}

/* Event Poster Animation (Static Zoom) */
.event-poster-container {
    width: 100%;
    /* height: 340px;  Removed fixed height to let it adapt or match image */
    overflow: hidden;
    /* Contains the zoom */
    border-radius: 5px;
    border: 2px solid #ffffff;
    /* Clean white border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    background: #fff;
}

.event-poster-anim {
    width: 100%;
    height: auto;
    object-fit: cover;
    animation: posterBreath 15s infinite alternate ease-in-out;
}

@keyframes posterBreath {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Staggered Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Ticker Animations */
.ticker-horizontal-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-horizontal-track {
    display: inline-block;
    padding-left: 100%;
    /* Start from right edge */
    animation: ticker-horizontal 20s linear infinite;
    /* Continuous loop */
}

.ticker-horizontal-container:hover .ticker-horizontal-track {
    animation-play-state: paused;
}

@keyframes ticker-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.ticker-vertical-container {
    height: 300px;
    /* Fixed height for the viewing area */
    overflow: hidden;
    position: relative;
    background: #fff;
    border-radius: 5px;
}

.ticker-vertical-track {
    animation: scroll-vertical 20s linear infinite;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticker-vertical-container:hover .ticker-vertical-track {
    animation-play-state: paused;
}

@keyframes scroll-vertical {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Pulse Animation for Emblem */
.pulse-animation {
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(128, 0, 0, 0.4);
    }

    /* Maroon shadow */
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 10px rgba(128, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(128, 0, 0, 0);
    }
}

/* Animated Border Box for Grid Columns */
.animated-border-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Increased base shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    /* Invisible border initially */
    height: 100%;
    overflow: hidden;
}

/* Hover Animation */
.animated-border-box:hover {
    transform: translateY(-5px);
    /* Lift */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Deeper shadow */
    border-color: transparent;
    /* Border STAYS Invisible */
}

/* Optional: Add a subtle glow inside on hover */
.animated-border-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 20px rgba(128, 0, 0, 0);
    transition: box-shadow 0.3s ease;
    border-radius: 10px;
    pointer-events: none;
}

.animated-border-box:hover::after {
    box-shadow: inset 0 0 20px rgba(128, 0, 0, 0.05);
}

/* FOOTER PREMIUM - Deep Navy */
.footer-premium {
    background: linear-gradient(to top, #0f2027 0%, #143145 100%) !important;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding-top: 15px;
    /* Reduced Top Padding */
    padding-bottom: 20px;
    border-top: 4px solid #ffd700;
    /* Gold Top Border */
}

/* Footer Header */
.footer-header {
    font-size: 18px !important;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 10px;
    /* Reduced padding */
    margin-bottom: 15px;
    /* Reduced margin */
    letter-spacing: 1px;
}

/* Footer Links Container */
.footer-links-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Tighter gap */
    text-align: left;
    padding-left: 20px;
}

/* FOOTER LINK ANIMATION - Match Navbar (Gradient Box + White Line) */
.footer-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.5s ease;
    /* Delayed Fill */
    position: relative;
    padding: 8px 12px;
    /* Box Padding */
    font-size: 15px;
    border-radius: 5px;
    /* Box Shape */
    display: inline-block;
    /* Allow box model */
    width: fit-content;
    /* Don't stretch full width */
}

/* Hover: Gradient Fill */
.footer-link:hover {
    color: #ffffff !important;
    background: linear-gradient(45deg, #a52a2a, #ff6347);
    /* Tomato Gradient */
    box-shadow: 0 4px 15px rgba(165, 42, 42, 0.4);
    transform: translateX(5px);
    /* Slight slide right */
}

/* White Line Animation (::after) */
.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #ffffff;
    /* Clean White Line */
    transition: width 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.footer-link:hover::after {
    width: 80%;
}

/* Remove old Arrow Reveal */
.footer-link::before {
    display: none;
}

/* COPYRIGHT SECTION */
.footer-copyright {
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.2);
    /* Slightly darker for separation */
    letter-spacing: 0.5px;
}

/* SCROLL TO TOP BUTTON - Premium Pulse */
#myTopBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 20px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #ff6347, #800000);
    /* Tomato Gradient */
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: btnPulse 2s infinite;
}

/* Pulse Animation */
@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 99, 71, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 99, 71, 0);
        transform: scale(1);
    }
}

/* Hover Effect Removed as requested */
#myTopBtn:hover {
    /* No changes on hover */
    background: linear-gradient(135deg, #ff6347, #800000);
    /* Keep original */
}