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

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff0000;
    --text-color: #1a1a1a;
    --light-text: #666666;
    --border-color: #e5e5e5;
    --background-color: #ffffff;
    --light-background: #f7f7f7;
    --dark-background: #1a1a1a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 12px 0;
}

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

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.search-btn:hover {
    color: var(--accent-color);
}

.subscribe-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.subscribe-btn:hover {
    background-color: #333;
}

/* Hero Section */
.hero {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.hero-main {
    position: relative;
}

.hero-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-main:hover .hero-image img {
    transform: scale(1.02);
}

.hero-text .category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cat-news { background-color: #ff0000; color: white; }
.cat-business { background-color: #0066cc; color: white; }
.cat-tech { background-color: #00aa6c; color: white; }
.cat-design { background-color: #9b59b6; color: white; }
.cat-work { background-color: #e67e22; color: white; }
.cat-leadership { background-color: #34495e; color: white; }
.cat-innovation { background-color: #1abc9c; color: white; }
.cat-impact { background-color: #e74c3c; color: white; }

.hero-text h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-text h1 a:hover {
    color: var(--accent-color);
}

.hero-text p {
    color: var(--light-text);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
}

.meta {
    font-size: 13px;
    color: var(--light-text);
}

.meta .author {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 8px;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-article {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-image {
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-image img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.sidebar-text .category {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-text h3 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

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

/* Subscriber Banner */
.subscriber-banner {
    background-color: var(--primary-color);
    padding: 20px 0;
}

.subscriber-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscriber-text {
    color: white;
}

.subscriber-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.subscriber-text p {
    font-size: 14px;
    opacity: 0.9;
}

.subscribe-btn-large {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.subscribe-btn-large:hover {
    background-color: #cc0000;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.see-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

.see-all:hover {
    text-decoration: underline;
}

/* Trending Section */
.trending {
    padding: 40px 0;
    background-color: var(--light-background);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trending-article {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.article-content {
    padding: 16px;
}

.article-content .category {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-content h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
}

.article-content h3 a:hover {
    color: var(--accent-color);
}

/* Latest News Section */
.latest-news {
    padding: 50px 0;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-article {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.news-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-article .article-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.news-article .article-content {
    padding: 0;
}

.news-article .article-content p {
    color: var(--light-text);
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

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

.popular-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.popular-list li:last-child {
    margin-bottom: 0;
}

.popular-list .number {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 28px;
}

.popular-list a {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

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

.newsletter-signup {
    background-color: var(--light-background);
    padding: 24px;
    border-radius: 8px;
}

.newsletter-signup p {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--light-text);
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
    background-color: #333;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-background);
    color: var(--text-color);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--light-background);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topic-tag:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Magazine Promo */
.magazine-promo {
    padding: 60px 0;
    background-color: var(--dark-background);
    color: white;
}

.magazine-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.magazine-label {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.magazine-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.magazine-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.magazine-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.feature-icon {
    font-size: 18px;
}

.subscribe-btn-magazine {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.subscribe-btn-magazine:hover {
    background-color: #cc0000;
}

.magazine-image {
    border-radius: 12px;
    overflow: hidden;
}

.magazine-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* Categories Section */
.categories {
    padding: 60px 0;
    background-color: var(--light-background);
}

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

.category-card {
    background-color: var(--secondary-color);
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.category-card p {
    color: var(--light-text);
    font-size: 14px;
}

/* Newsletters Section */
.newsletters {
    padding: 60px 0;
}

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

.newsletter-card {
    background-color: var(--light-background);
    padding: 32px;
    border-radius: 8px;
}

.newsletter-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-card p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-form-inline {
    display: flex;
    gap: 8px;
}

.newsletter-form-inline input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.newsletter-form-inline input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form-inline button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.newsletter-form-inline button:hover {
    background-color: #333;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

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

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

.footer-section ul a {
    color: #999;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section ul a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #333;
    color: #999;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    color: white;
}

.footer-subscribe {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.footer-subscribe input {
    padding: 12px 14px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 14px;
    background-color: #222;
    color: var(--secondary-color);
    font-family: inherit;
}

.footer-subscribe input::placeholder {
    color: #666;
}

.footer-subscribe input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.footer-subscribe button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.footer-subscribe button:hover {
    background-color: #cc0000;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.badge-icon {
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #999;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    color: #666;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .magazine-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-top-right {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .hero-image img {
        height: 250px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .sidebar-article {
        grid-template-columns: 100px 1fr;
    }
    
    .sidebar-image img {
        height: 70px;
    }
    
    .subscriber-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .news-article {
        grid-template-columns: 1fr;
    }
    
    .news-article .article-image img {
        height: 200px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form-inline {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }
    
    .main-nav ul {
        gap: 12px;
    }
    
    .main-nav a {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .article-content h3 {
        font-size: 14px;
    }
    
    .magazine-text h2 {
        font-size: 24px;
    }
}
/* Article Page Styles */
.article-page {
    padding: 40px 0;
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
}

.article-header .category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta .author {
    font-weight: 600;
}

.article-meta .date {
    color: var(--light-text);
    font-size: 14px;
}

.article-share {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-background);
    border-radius: 50%;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.article-hero-image {
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--primary-color);
}

.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    font-size: 20px;
    color: #555;
}

.article-body ul, .article-body ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-back {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.article-back a {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.article-back a:hover {
    background-color: #333;
}

.related-section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.related-article {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
}

.related-article img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.related-article h4 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.related-article h4 a:hover {
    color: var(--accent-color);
}

.related-article .category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tags-section {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--light-background);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 28px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .article-meta {
        flex-wrap: wrap;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-share {
        margin-left: 0;
    }
}
