

body {
    font-family: 'Inter', sans-serif;
    overflow-y: scroll; /* Always show vertical scrollbar */
}

.news-serif {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* Header Enhancements */
header {
    position: relative;
}

header h1 a {
    display: inline-block;
    transition: all 0.3s ease;
}

header h1 a:hover {
    transform: translateY(-2px);
}

/* Navigation Dropdown Enhancements */
nav .group:hover button {
    color: #93c5fd;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll offset for anchor links to account for sticky nav */
#articles-section {
    scroll-margin-top: 100px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Article Card Enhancements */
article {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

article:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Featured Slider Enhancements */
.slider-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.slider-dot.active {
    background-color: white;
    width: 2rem;
    border-radius: 9999px;
}

/* Sidebar Hover Effects */
.sidebar-item {
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    transform: translateX(4px);
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Breaking News Ticker Animation */
@keyframes tickerSlide {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Enhanced Focus States */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header nav,
    .sidebar,
    footer,
    button {
        display: none !important;
    }
}

/* Featured Slider Styles */
#featured-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
}

.slider-item {
    width: 100%;
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    flex-shrink: 0;
}

/* Ensure only one slide is visible at a time */
.slider-container {
    overflow: hidden !important;
    position: relative;
    width: 100%;
}

/* Smooth transition for mobile menu */
#mobile-menu {
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}
#mobile-menu.open {
    display: block;
}

/* Make hamburger button larger for testing */
#nav-toggle {
    width: 48px;
    height: 48px;
    font-size: 24px;
}

/* Ticker Display */
.ticker-item {
    overflow: visible;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.ticker-item a {
    display: block;
    width: 100%;
}

/* Mobile ticker adjustments */
@media (max-width: 768px) {
    .ticker-item {
        line-height: 1.7;
        padding: 0.75rem 0;
    }
    
    #ticker-container {
        min-height: 4.5rem !important;
        display: flex;
        align-items: center;
    }
}

/* 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;
}

/* Media Slider Styles */
.media-slider {
    position: relative;
    width: 100%;
    height: auto;
}

.media-slide {
    display: none;
    position: relative;
    width: 100%;
    height: auto;
}

.media-slide.active {
    display: block;
    animation: fadeInSlide 0.5s ease-in-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Video Player Styles */
.media-slide video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Media Navigation Styles */
.media-nav {
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.media-nav:active {
    transform: translateY(0);
}

/* Video Playback Controls */
video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.7);
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-pause-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-fullscreen-button {
    filter: none;
}

/* Responsive adjustments for media slider */
@media (max-width: 768px) {
    .media-slider .media-slide img,
    .media-slider .media-slide video {
        max-height: 250px;
        object-fit: cover;
    }
    
    .media-nav {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .media-slider .absolute.top-4.right-4 {
        top: 2;
        right: 2;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}