:root {
    --primary-red: #dc3545;
    --dark-red: #c82333;
    --dark-gray: #212529;
    --medium-gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Typography */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
}

.news-title {
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: var(--primary-red);
}

/* Breaking News Bar */
.breaking-news-bar {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    font-size: 0.9rem;
    border-bottom: 2px solid var(--dark-red);
}

.breaking-news-ticker {
    overflow: hidden;
    position: relative;
    height: 24px;
}

.ticker-content {
    position: absolute;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero-section {
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.main-featured-news .featured-image {
    height: 500px;
}

.featured-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.featured-title a:hover {
    color: var(--light-gray) !important;
}

/* Side Featured News */
.side-featured-news .side-news-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Category Sections */
.category-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.category-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.news-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

/* Horizontal Scroll */
.horizontal-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) var(--light-gray);
}

.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 3px;
}

/* Live News */
.live-news-item {
    padding: 1rem 0;
}

.live-time {
    font-size: 0.9rem;
    min-width: 60px;
}

.live-indicator .badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Trending News */
.trending-item .trending-number {
    font-size: 1.25rem;
    min-width: 30px;
    display: inline-block;
    text-align: center;
}

/* Video Section */
.video-thumbnail {
    height: 200px;
}

.video-thumbnail img {
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Newsletter */
.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-title {
        font-size: 1.75rem;
    }
    
    .main-featured-news .featured-image {
        height: 300px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .horizontal-scroll .row {
        flex-wrap: nowrap;
    }
    
    .horizontal-scroll .col-md-4 {
        min-width: 280px;
    }
}

@media (max-width: 576px) {
    .featured-title {
        font-size: 1.5rem;
    }
    
    .breaking-news-bar {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* Utility Classes */
.bg-danger {
    background-color: var(--primary-red) !important;
}

.text-danger {
    color: var(--primary-red) !important;
}

.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-danger:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
}