

body { font-family: 'Inter', sans-serif; }
.news-serif { font-family: 'Playfair Display', serif; }

/* Navigation Link Hover Animation */
.nav-link {
    position: relative;
    padding-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #DC2626;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #1F2937;
    letter-spacing: 0.05em;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #DC2626;
}

.nav-link.active::after {
    width: 100%;
}

/* Smooth transition for mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
#mobile-menu.open {
    max-height: 80vh;
    overflow-y: auto;
}

/* Breaking News Badge Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #DC2626;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.breaking-news-badge {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Ticker Display */
.ticker-item {
    overflow: visible;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: flex-start;
}

.ticker-item a {
    width: 100%;
}

/* Ticker title handling - Allow wrapping on mobile, single line on desktop */
.ticker-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Desktop: limit to 2 lines max and center align */
@media (min-width: 768px) {
    .ticker-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .ticker-item {
        align-items: center;
        top: 50% !important;
        transform: translateY(-50%);
    }
    
    #ticker-wrapper {
        min-height: 3rem;
        display: flex;
        align-items: center;
    }
    
    #ticker-container {
        min-height: 3rem;
        display: flex;
        align-items: center;
    }
}

/* Pause ticker on hover */
#ticker-wrapper:hover .ticker-item {
    animation-play-state: paused !important;
}

/* Ensure ticker wrapper has proper height */
#ticker-wrapper {
    min-height: 3.5rem;
}

#ticker-container {
    position: relative;
    width: 100%;
    min-height: 3.5rem;
}

/* Back to Top Button */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Reading Progress Bar */
#reading-progress {
    transition: width 0.1s ease-out;
}

/* Section Dividers */
.section-divider {
    position: relative;
    text-align: center;
    margin: 3rem 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #E5E7EB, transparent);
}

.section-divider span {
    position: relative;
    background: #F9FAFB;
    padding: 0 1rem;
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Popular Tabs */
.popular-tab {
    color: #6B7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.popular-tab:hover {
    color: #2563EB;
}

.popular-tab.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

/* Media Slider Styles */
.media-slider {
    position: relative;
}

.media-slide {
    display: none;
}

.media-slide.active {
    display: block;
}

.media-nav {
    cursor: pointer;
}

.media-nav[data-index="0"].active {
    background-color: #DC2626 !important;
    color: white !important;
}

.media-nav[data-index="1"].active {
    background-color: #DC2626 !important;
    color: white !important;
}

/* Responsive Image Handling */
.hero-img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.card-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }

/* Article/Page Content Images */
.prose img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Article/Page Content Lists */
.prose ul,
.prose ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.prose ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.prose ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

/* Responsive image adjustments */
@media (max-width: 768px) {
    .prose img {
        margin: 1rem auto;
    }
    
    .prose ul,
    .prose ol {
        margin: 1rem 0;
        padding-left: 1.25rem;
    }
}

/* Cookie Consent Styles */
#cookie-consent.show {
    transform: translateY(0);
}

#cookie-preferences-modal.show {
    display: flex;
}

/* Modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#cookie-preferences-modal .bg-white {
    animation: fadeIn 0.2s ease-out;
}