/* Global Styles */
:root {
    --primary-color: #0f172a;
    --accent-color: #dc2626;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --header-height: 70px;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: white;
}

.search-bar input {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    outline: none;
}

/* Breaking News Ticker */
.ticker-wrap {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.ticker-heading {
    background-color: #991b1b;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    font-weight: 600;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Footer */
footer {
    background-color: #1e293b;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.copyright {
    color: #64748b;
    font-size: 0.8rem;
}

/* Homepage Styles */
.homepage-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    position: relative;
}

.hero-card-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-card-content {
    padding: 40px;
}

.category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.hero-card .category {
    margin-bottom: 15px;
}

.hero-card h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero-card .chapeau {
    font-size: 1.3rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background-color: #b91c1c;
}

.articles-section {
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    color: #111;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e2e8f0;
}

.article-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card .category {
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.article-card h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #111;
    line-height: 1.4;
}

.article-card h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.article-card h2 a:hover {
    color: var(--accent-color);
}

.article-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

.homepage-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Sidebar */
.sidebar h3 {
    font-family: var(--font-heading);
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-list a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: var(--accent-color);
}

.ad-placeholder {
    background-color: #e2e8f0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 700;
    margin-top: 40px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 968px) {
    .homepage-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    nav {
        display: none;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    .hero-card-image {
        height: 250px;
    }

    .hero-card-content {
        padding: 25px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }
}


