/* Republic Day Banner Styles */
.republic-day-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
    padding: 12px 20px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}



.banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.banner-text h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF9933, #000080, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #000080;
    font-weight: 600;
    text-align: center;
}

.banner-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #000080;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.banner-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

.banner-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: gold;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.star:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 40%;
    left: 30%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    top: 60%;
    left: 50%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    top: 50%;
    left: 90%;
    animation-delay: 2s;
}

.star:nth-child(6) {
    top: 70%;
    left: 20%;
    animation-delay: 0.3s;
}

.star:nth-child(7) {
    top: 80%;
    left: 60%;
    animation-delay: 1.2s;
}

.star:nth-child(8) {
    top: 15%;
    left: 85%;
    animation-delay: 0.8s;
}

/* Adjust navbar position when banner is visible */
body.banner-active .navbar {
    top: 60px;
}

body.banner-active {
    padding-top: 120px !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .republic-day-banner {
        padding: 10px 15px;
    }



    .banner-text h2 {
        font-size: 1.1rem;
    }

    .banner-text p {
        font-size: 0.75rem;
    }

    .banner-close {
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
    }

    body.banner-active .navbar {
        top: 50px;
    }

    body.banner-active {
        padding-top: 110px !important;
    }
}

@media (max-width: 480px) {
    .banner-content {
        gap: 10px;
    }



    .banner-text h2 {
        font-size: 0.95rem;
    }

    .banner-text p {
        font-size: 0.7rem;
    }
}