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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #fafbfc;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.3;
    color: #1a252f;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    border-bottom: 2px solid #e8f4f8;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #2c5aa0;
    letter-spacing: -0.5px;
}

.logo-domain {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #7f8c8d;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #34495e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2c5aa0;
    background-color: #e8f4f8;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background-color: #2c5aa0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 4rem;
    border-radius: 16px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #667eea);
    margin: 0 auto;
    border-radius: 2px;
}

/* Featured Articles */
.featured-section {
    margin-bottom: 5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.featured-article {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid #f1f3f4;
}

.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 2rem;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a252f;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.article-excerpt {
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border: 2px solid #2c5aa0;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background-color: #2c5aa0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Latest News Section */
.latest-section {
    margin-bottom: 4rem;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.latest-article {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.latest-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.latest-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.latest-article:hover .latest-image img {
    transform: scale(1.1);
}

.latest-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.latest-category {
    color: #2c5aa0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.latest-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1a252f;
    line-height: 1.4;
}

.latest-excerpt {
    color: #5a6c7d;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.latest-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.latest-link:hover {
    text-decoration: underline;
}

/* Category Page Styles */
.category-hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.category-breadcrumb {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.category-breadcrumb a {
    color: #2c5aa0;
    text-decoration: none;
}

.category-breadcrumb a:hover {
    text-decoration: underline;
}

.category-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #1a252f;
}

.category-description {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.category-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #667eea);
    margin: 0 auto;
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid #f1f3f4;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.category-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.category-tag {
    background: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-content {
    padding: 2rem;
}

.category-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a252f;
    line-height: 1.4;
}

.category-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.category-excerpt {
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.category-read-more {
    display: inline-flex;
    align-items: center;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border: 2px solid #2c5aa0;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-read-more:hover {
    background-color: #2c5aa0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-top: 2px solid #f1f3f4;
}

.pagination-info {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
}

.pagination-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    color: #5a6c7d;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #e8f4f8;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.pagination-btn.current {
    background-color: #2c5aa0;
    color: #ffffff;
    border-color: #2c5aa0;
}

.pagination-next {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.pagination-next:hover {
    background-color: #2c5aa0;
    color: #ffffff;
}

.pagination-dots {
    color: #7f8c8d;
    padding: 0 0.5rem;
}

/* Article Page Styles */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.article-breadcrumb {
    padding: 1.5rem 2rem 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.article-breadcrumb a {
    color: #2c5aa0;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-header {
    padding: 2rem 2rem 1rem;
}

.article-category-tag {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.article-main-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: #1a252f;
    line-height: 1.2;
}

.article-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1a252f;
    font-size: 1rem;
}

.article-publish-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-reading-time {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-hero-image {
    width: 100%;
    margin: 2rem 0;
}

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

.image-caption {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
    background-color: #f8f9fa;
    border-left: 4px solid #2c5aa0;
}

.article-body {
    padding: 0 2rem 2rem;
}

.article-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.6;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    border-radius: 0 8px 8px 0;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: #1a252f;
}

.article-body p {
    margin-bottom: 1.8rem;
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.05rem;
}

.article-tags {
    padding: 0 2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.article-tag {
    background: #e8f4f8;
    color: #2c5aa0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.article-navigation {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.back-to-category {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid #2c5aa0;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-to-category:hover {
    background-color: #2c5aa0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .logo-text {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .logo-text, .logo-domain {
        font-size: 1.5rem;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 2px solid #e8f4f8;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 1.5rem 0;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .menu-icon {
        display: flex;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .menu-toggle:checked ~ .nav {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .latest-article {
        flex-direction: column;
    }
    
    .latest-image {
        width: 100%;
        height: 180px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
    
    .article-main-title {
        font-size: 2.2rem;
    }
    
    .article-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .article-body {
        padding: 0 1.5rem 1.5rem;
    }
    
    .image-caption {
        padding: 1rem 1.5rem;
    }
    
    .article-tags {
        padding: 0 1.5rem 1.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .pagination-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 1.5rem;
    }
    
    .latest-content {
        padding: 1.2rem;
    }
    
    .category-content {
        padding: 1.5rem;
    }
    
    .article-hero-image img {
        height: 250px;
    }
    
    .article-meta-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .hero {
        padding: 3rem 0;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}