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

:root {
    --primary-color: #e63946;
    --secondary-color: #457b9d;
    --accent-color: #f4a261;
    --dark-bg: #1d3557;
    --light-bg: #f1faee;
    --text-dark: #1d3557;
    --text-light: #a8dadc;
    --text-muted: #6c757d;
    --border-radius: 16px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    min-height: 100vh;
}

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

.header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #284b63 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo:hover {
    color: var(--accent-color);
    transform: scale(1.02);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-content {
    padding: 2.5rem 0;
}

.hero-section {
    margin-bottom: 3rem;
}

.featured-article {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #fff;
}

.featured-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.featured-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-image {
    transform: scale(1.03);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(29,53,87,0.95) 0%, rgba(29,53,87,0.7) 50%, transparent 100%);
    color: #fff;
    padding: 3rem 2.5rem;
}

.category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.featured-title {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.featured-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    max-width: 800px;
}

.article-meta {
    font-size: 0.9rem;
    opacity: 0.85;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.article-meta .author::after {
    content: '•';
    margin-left: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.latest-news {
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.08);
}

.article-info {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-weight: 700;
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta-card {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
}

.categories-section {
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #284b63 100%);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-color) 0%, #c1121f 100%);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-count {
    opacity: 0.8;
    font-size: 0.85rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.popular-item {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.popular-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.popular-item img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-category {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.popular-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 0.75rem;
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-muted);
}

.category-header {
    margin-bottom: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.pagination-btn {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--dark-bg);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-muted);
    font-weight: 500;
}

.article-full {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.article-header {
    margin-bottom: 2rem;
}

.article-title-full {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
    color: var(--text-dark);
    font-weight: 800;
}

.article-meta-full {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.article-meta-full .author::after,
.article-meta-full .date::after {
    content: '•';
    margin: 0 0.75rem;
}

.read-time {
    color: var(--text-muted);
}

.article-featured-image {
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

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

.article-content h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
}

.tags-label {
    font-weight: 700;
    margin-right: 0.75rem;
    color: var(--text-dark);
}

.tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

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

.related-articles {
    margin-top: 3rem;
}

.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0d1b2a 100%);
    color: rgba(255,255,255,0.85);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-desc {
    line-height: 1.7;
    opacity: 0.85;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c1121f 100%);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
}

.newsletter-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.9rem 2rem;
    background: var(--dark-bg);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #0d1b2a;
    transform: translateY(-2px);
}

.page-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.content-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-section p {
    margin-bottom: 1rem;
    color: #555;
}

.content-section ul, .content-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

.static-page {
    text-align: center;
    padding: 3rem 2rem;
}

.static-page h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.static-page p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        padding: 1rem 0;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .featured-image {
        height: 320px;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-full {
        padding: 1.5rem;
    }
    
    .article-title-full {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .featured-content {
        padding: 1rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-excerpt {
        font-size: 0.95rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}