:root {
    --primary-red: #dc3545;
    --dark-bg: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d29 0%, #2d3142 50%, #3d1e1e 100%);
    background-image: 
        linear-gradient(135deg, rgba(26, 29, 41, 0.6) 0%, rgba(45, 49, 66, 0.65) 50%, rgba(61, 30, 30, 0.6) 100%),
        url('/assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease-out;
}

.hero-buttons .btn {
    min-width: 160px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-danger:hover {
    background-color: #bb2d3b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.hero-buttons .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.section-title {
    color: var(--primary-red);
    border-left: 4px solid var(--primary-red);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* Featured Articles Ticker */
.featured-ticker-section {
    margin-bottom: 2rem;
    overflow: hidden;
}

.ticker-wrapper {
    background: #f8f9fa;
    padding: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.ticker-container {
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.ticker-track:hover {
    animation-play-state: paused;
}

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

.ticker-item {
    display: flex;
    align-items: flex-start;
    background: white;
    border-radius: 8px;
    padding: 12px;
    min-width: 350px;
    min-height: 130px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.ticker-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.ticker-thumbnail {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.ticker-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.ticker-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
}

.ticker-content {
    flex: 1;
    padding-left: 15px;
}

.ticker-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.ticker-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.ticker-meta i {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .ticker-item {
        min-width: 280px;
    }
    
    .ticker-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .ticker-title {
        font-size: 0.85rem;
    }
}

.article-card {
    transition: all 0.3s;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.article-meta {
    font-size: 0.85rem;
}

.main-content {
    flex: 1;
    padding-right: 30px;
}

.sidebar-container {
    width: 300px;
    flex-shrink: 0;
}

.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    width: 300px;
}

.sidebar-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-title {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.popular-post {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.popular-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.popular-content h6 {
    font-size: 0.9rem;
    margin-top: 5px;
}

.popular-content h6 a {
    color: #212529;
    text-decoration: none;
}

.popular-content h6 a:hover {
    color: var(--primary-red);
}

.article-title {
    color: #212529;
    margin-bottom: 20px;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.object-cover {
    object-fit: cover;
}

.ad-banner img,
.ad-sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.social-links a {
    text-decoration: none;
}

@media (max-width: 991px) {
    .main-content {
        padding-right: 0;
    }
    
    .sidebar-container {
        width: 100%;
        margin-top: 30px;
    }
    
    .sidebar {
        position: static;
        width: 100%;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
}
