/**
 * Notice Marquee Styles
 * Scrolling marquee for latest notices below navigation menu
 */

.notice-marquee-wrapper {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    /* border-top: 2px solid #f97316;
    border-bottom: 2px solid #f97316; */
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: -10; /* Lower than navigation dropdowns (which are z-index: 1000) */
}

.notice-marquee-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    max-width: 100%;
    overflow: hidden;
}

.notice-marquee-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.notice-marquee-label i {
    color: #f97316;
    font-size: 16px;
}

.notice-marquee-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.notice-marquee-scroll {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: scroll-marquee 60s linear infinite;
    white-space: nowrap;
}

.notice-marquee-scroll:hover {
    animation-play-state: paused;
}

.notice-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-marquee-item:hover {
    color: #f97316;
}

.notice-marquee-dot {
    width: 6px;
    height: 6px;
    background: #f97316;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

.notice-marquee-text {
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-marquee-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notice-marquee-more:hover {
    background: #f97316;
    color: white;
    transform: scale(1.1);
    border-color: #f97316;
}

.notice-marquee-more i {
    font-size: 14px;
}

/* Animation */
@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .notice-marquee-container {
        padding: 10px 15px;
        gap: 15px;
    }
    
    .notice-marquee-label {
        font-size: 12px;
        padding-right: 10px;
        gap: 6px;
    }
    
    .notice-marquee-label i {
        font-size: 14px;
    }
    
    .notice-marquee-item {
        font-size: 13px;
        gap: 8px;
    }
    
    .notice-marquee-text {
        max-width: 200px;
    }
    
    .notice-marquee-more {
        width: 35px;
        height: 35px;
    }
    
    .notice-marquee-more i {
        font-size: 12px;
    }
    
    .notice-marquee-scroll {
        gap: 20px;
        animation-duration: 40s;
    }
}

@media (max-width: 480px) {
    .notice-marquee-label span {
        display: none;
    }
    
    .notice-marquee-label {
        padding-right: 8px;
        border-right: none;
    }
    
    .notice-marquee-text {
        max-width: 150px;
    }
    
    .notice-marquee-scroll {
        gap: 15px;
        animation-duration: 30s;
    }
}

/* Pause animation on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .notice-marquee-scroll {
        animation: none;
    }
    
    .notice-marquee-dot {
        animation: none;
    }
}

