/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #c53030;
    --accent-color: #2b6cb0;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.secondary-nav a {
    color: white;
    margin-left: 20px;
    opacity: 0.9;
}

.secondary-nav a:hover {
    opacity: 1;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.logo-text .tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-box {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    width: 250px;
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    border: none;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-box button:hover {
    background: var(--accent-color);
}

/* Main Navigation */
.main-nav {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 3px solid var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--secondary-color);
}

/* Breaking News Ticker */
.breaking-news {
    background: var(--secondary-color);
    color: white;
    padding: 10px 0;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: white;
    color: var(--secondary-color);
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

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

.breaking-ticker {
    flex: 1;
    overflow: hidden;
}

/* Main Content */
.main-content {
    padding: 30px 20px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.hero-article {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.hero-content {
    padding: 30px;
}

.hero-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-content h2 a:hover {
    color: var(--secondary-color);
}

.excerpt {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-meta .author {
    font-weight: 600;
    color: var(--text-medium);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

/* Article Cards */
.article-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 280px 1fr;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-content h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-content h4 a:hover {
    color: var(--secondary-color);
}

.article-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

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

/* Sidebar */
.sidebar-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.sidebar-section .section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Trending List */
.trending-list {
    list-style: none;
}

.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-list li:last-child {
    border-bottom: none;
}

.trend-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.trending-list a {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.trending-list a:hover {
    color: var(--secondary-color);
}

/* Newsletter */
.newsletter p {
    color: var(--text-medium);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

/* Opinion */
.opinion-article {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.opinion-article:last-child {
    border-bottom: none;
}

.opinion-article h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.opinion-article h4 a:hover {
    color: var(--secondary-color);
}

.opinion-author {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Category Sections */
.category-sections {
    margin-top: 40px;
}

.category-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.category-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.mini-article {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.mini-article:last-child {
    border-bottom: none;
}

.mini-article img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

.mini-article h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.mini-article h5 a:hover {
    color: var(--secondary-color);
}

.mini-article .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: white;
    margin-top: 50px;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    opacity: 0.8;
}

.footer-section ul a:hover {
    opacity: 1;
    color: white;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom nav a {
    margin-left: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .search-box input {
        width: 200px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .hero-image {
        height: 300px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

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

    .article-image {
        height: 200px;
    }

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

    .category-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom nav a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }

    .secondary-nav a {
        margin-left: 15px;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .article-meta {
        flex-direction: column;
        gap: 5px;
    }

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