/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0033A0;
    --primary-dark: #002575;
    --secondary: #FFD700;
    --accent: #DC2626;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #F9FAFB;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Breaking News */
.breaking-news {
    background: var(--accent);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}

.breaking-news-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: var(--white);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}

.breaking-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Hero Section */
.hero {
    margin: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px;
    color: var(--white);
}

.hero-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-meta {
    font-size: 14px;
    opacity: 0.9;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-side-item {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px;
    color: var(--white);
}

.hero-side-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.section-title h2 {
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text);
}

.article-title:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

/* Sidebar */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin: 40px 0;
}

.sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.popular-list {
    list-style: none;
}

.popular-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

.popular-title {
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-title:hover {
    color: var(--primary);
}

.popular-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    margin-top: 60px;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* Single Article Page */
.article-header {
    margin: 30px 0;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-title-main {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.article-meta-main {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-meta-main span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-featured-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.article-content-main {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 18px;
    line-height: 1.8;
}

.article-content-main p {
    margin-bottom: 20px;
}

.article-content-main h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: var(--primary);
}

.article-content-main h3 {
    font-size: 22px;
    margin: 25px 0 12px;
}

.article-content-main img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.article-content-main blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-light);
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-btn {
    padding: 10px 20px;
    border-radius: 6px;
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag {
    background: var(--bg);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Related Articles */
.related-articles {
    margin: 50px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-side {
        flex-direction: row;
    }
    
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .article-title-main {
        font-size: 28px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content-main {
        padding: 20px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }