/* Modern Blog CSS */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

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

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

/* Header */
.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo-text:hover {
    color: var(--primary-dark);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section (kept for backward compatibility) */
.hero-section {
    margin-bottom: 4rem;
}

.hero-post {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

.hero-post:hover .hero-image img {
    transform: scale(1.05);
}

.hero-content {
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.hero-content h1 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.hero-content h1 a:hover {
    color: var(--primary-color);
}

/* Banner Slider */
.banner-slider-section {
    margin-bottom: 3rem;
}

.banner-slider {
    position: relative;
    width: 100%;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 300px;
    max-height: 500px;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-slide {
    display: none;
    width: 100%;
    padding: 1rem;
    text-align: center;
    min-height: 300px;
    max-height: 500px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-slide.active {
    display: flex;
}

.slide-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content img {
    max-width: 100%;
    max-height: 480px;
    height: auto;
    width: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: white;
}

/* Newspaper Layout */
.newspaper-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.newspaper-featured {
    width: 100%;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.newspaper-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.newspaper-featured .post-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.newspaper-featured .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.newspaper-featured .post-content {
    padding: 2.5rem;
}

.newspaper-featured h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.newspaper-featured h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.newspaper-featured h2 a:hover {
    color: var(--primary-color);
}

.newspaper-featured .post-excerpt {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 1rem 0;
}

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

.newspaper-post {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.newspaper-post .post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.newspaper-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.newspaper-post:hover .post-image img {
    transform: scale(1.1);
}

.newspaper-post .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.newspaper-post h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.newspaper-post h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.newspaper-post h3 a:hover {
    color: var(--primary-color);
}

/* Posts Grid (for backward compatibility) */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

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

.post-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-decoration: none;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: auto;
}

/* Single Post */
.single-post {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

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

.post-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Category Header */
.category-header {
    margin-bottom: 3rem;
    text-align: center;
}

.category-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

.related-posts h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary {
    background: var(--text-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-color);
    border-radius: 12px;
}

.no-posts h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .posts-container {
        grid-template-columns: 1fr;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }

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

    .newspaper-featured .post-image {
        height: 300px;
    }

    .newspaper-featured h2 {
        font-size: 1.75rem;
    }

    .newspaper-featured .post-content {
        padding: 1.5rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}

