/* Copy all CSS from the previous HTML file here */
/* Move all CSS styles from the <style> tag into this file */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #111111;
    --accent-color: #c70000;
    --accent-light: #ff0000;
    --highlight-color: #c70000;
    --text-color: #333333;
    --light-text: #ffffff;
    --gray-bg: #f5f5f5;
    --dark-bg: #1a1a1a;
    --border-color: #e0e0e0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    --header-height: 80px;
    --transition: all 0.3s ease;
}
 body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #ffffff;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 1rem;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .btn {
            display: inline-block;
            padding: 10px 24px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            border: none;
        }

        .btn-primary {
            background-color: var(--accent-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--accent-light);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(199, 0, 0, 0.2);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--accent-color);
            border: 1px solid var(--accent-color);
        }

        .btn-outline:hover {
            background-color: var(--accent-color);
            color: white;
        }

        .section-title {
            font-size: 1.8rem;
            position: relative;
            padding-bottom: 12px;
            margin-bottom: 2rem;
            color: var(--primary-color);
        }

        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--accent-color);
        }

        .text-muted {
            color: #666;
            font-size: 0.9rem;
        }

        /* Header Styles */
        header {
            background-color: var(--primary-color);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            position: sticky;
            top: 0;
            z-index: 1000;
            height: var(--header-height);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
        }

        .logo-container {
            display: flex;
            align-items: center;
        }

        .logo-img {
            height: 50px;
            width: auto;
        }

        .logo-text {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
            margin-left: 10px;
        }

        .main-nav ul {
            display: flex;
            gap: 2rem;
        }

        .main-nav a {
            font-weight: 500;
            font-size: 1rem;
            position: relative;
            padding: 5px 0;
            color: white;
        }

        .main-nav a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            transition: width 0.3s ease;
        }

        .main-nav a:hover:after {
            width: 100%;
        }

        .main-nav a:hover {
            color: #ffffff;
        }

        .main-nav a.active {
            color: var(--accent-light);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .search-btn {
            background: none;
            border: none;
            font-size: 1.2rem;
            color: white;
            cursor: pointer;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: white;
            cursor: pointer;
        }

        /* Breaking News Ticker */
        .breaking-news {
            background-color: var(--accent-color);
            color: white;
            padding: 10px 0;
            font-weight: 600;
        }

        .breaking-news-container {
            display: flex;
            align-items: center;
        }

        .breaking-label {
            background-color: var(--primary-color);
            padding: 5px 15px;
            margin-right: 20px;
            border-radius: 3px;
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .ticker-container {
            overflow: hidden;
            flex-grow: 1;
        }

        .ticker {
            display: inline-block;
            white-space: nowrap;
            animation: ticker 30s linear infinite;
        }

        @keyframes ticker {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }

        /* Main Content Layout */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 2rem;
            padding: 2rem 0;
        }

        /* Ads Container */
        .ads-container {
            margin-bottom: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Regular Ad Placeholder */
        .regular-ad {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .regular-ad:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        }

        .regular-ad img {
            width: 100%;
            height: auto;
        }

        /* Hero Section */
        .hero {
            padding: 2rem 0 0;
            background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
        }

        .hero-container {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 3rem;
            align-items: start;
        }

        .featured-article {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
        }

        .featured-image {
            height: 400px;
            background-color: var(--secondary-color);
            background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1588681664899-f142ff2dc9b1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: flex-end;
        }

        .featured-content {
            padding: 2rem;
            color: white;
        }

        .featured-content .category {
            display: inline-block;
            background-color: var(--accent-color);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .featured-content h1 {
            font-size: 2.2rem;
            margin-bottom: 1rem;
            color: white;
            min-height: 120px;
        }

        .typing-text {
            display: inline;
        }

        .cursor {
            display: inline-block;
            width: 3px;
            background-color: white;
            animation: blink 1s infinite;
            margin-left: 2px;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        .featured-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.9rem;
            opacity: 0.9;
        }

        /* Flipbook & Categories Section */
        .flipbook-categories-section {
            margin: 2rem 0;
        }

        .flipbook-categories-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        /* Flipbook Container - IMPROVED FOR MOBILE */
        .flipbook-container {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .flipbook-container h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent-color);
        }

        .flipbook-wrapper {
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            flex-grow: 1;
            position: relative;
            width: 100%;
            min-height: 420px;
            height: 420px;
        }

        .flipbook-iframe {
            width: 100%;
            height: 100%;
            border: none;
            position: absolute;
            top: 0;
            left: 0;
        }

        /* Categories Container */
        .categories-container-side {
            background-color: var(--dark-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
            height: 100%;
        }

        .categories-container-side h3 {
            color: white;
            margin-bottom: 1.5rem;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent-color);
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .category-card {
            background-color: #333;
            border-radius: 6px;
            padding: 1.5rem 1rem;
            text-align: center;
            transition: var(--transition);
            border: 1px solid #444;
        }

        .category-card:hover {
            background-color: var(--accent-color);
            transform: translateY(-3px);
            border-color: var(--accent-color);
        }

        .category-card i {
            font-size: 1.8rem;
            color: white;
            margin-bottom: 0.8rem;
            display: block;
        }

        .category-card span {
            color: white;
            font-weight: 600;
            font-size: 0.95rem;
        }

        /* Sidebar with scrolling articles */
        .sidebar {
            position: sticky;
            top: calc(var(--header-height) + 20px);
            height: calc(100vh - var(--header-height) - 40px);
            overflow-y: auto;
            padding-right: 10px;
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 10px;
        }

        /* A4 Ad in Sidebar */
        .a4-ad-sidebar {
            margin-bottom: 2rem;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .a4-ad-sidebar:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        }

        .a4-ad-sidebar img {
            width: 100%;
            height: auto;
        }

        .sidebar-articles {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .sidebar-article {
            display: flex;
            gap: 1rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .sidebar-article:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .sidebar-article-img {
            width: 100px;
            height: 80px;
            border-radius: 4px;
            overflow: hidden;
            flex-shrink: 0;
            background-color: #ddd;
        }

        .sidebar-article-content h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        /* YouTube Video Section */
        .video-section {
            margin: 2rem 0;
        }

        .video-container {
            background-color: var(--dark-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
        }

        .video-container h3 {
            color: white;
            margin-bottom: 1rem;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent-color);
        }

        .video-wrapper {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            height: 0;
            overflow: hidden;
            border-radius: 4px;
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* News Sections */
        .news-section {
            padding: 2rem 0;
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .news-card {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            background-color: white;
            border-top: 3px solid var(--accent-color);
        }

        .news-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
        }

        .news-card-img {
            height: 200px;
            background-color: #ddd;
            background-size: cover;
            background-position: center;
        }

        .news-card-content {
            padding: 1.5rem;
        }

        .news-card .category {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--accent-color);
            margin-bottom: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .news-card h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }

        .news-card p {
            color: #666;
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
        }

        .news-card-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: #888;
        }

        .view-all {
            text-align: center;
            margin-top: 2rem;
        }

        /* Trending Section */
        .trending {
            background-color: var(--gray-bg);
            padding: 2rem 0;
        }

        .trending-articles {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .trending-article {
            background-color: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
            border-left: 4px solid var(--accent-color);
        }

        .trending-number {
            font-size: 2rem;
            font-weight: 800;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }

        .trending-article h4 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        /* Footer */
        footer {
            background-color: var(--primary-color);
            color: var(--light-text);
            padding: 3rem 0 2rem;
            margin-top: 2rem;
        }

        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 2rem;
        }

        .footer-logo-container {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .footer-logo-img {
            height: 40px;
            width: auto;
        }

        .footer-logo-text {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
            margin-left: 10px;
        }

        .footer-about p {
            margin-bottom: 1.5rem;
            opacity: 0.8;
        }

        .footer-links h4, .footer-newsletter h4 {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-links h4:after, .footer-newsletter h4:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--accent-color);
        }

        .footer-links ul li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            opacity: 0.8;
            transition: var(--transition);
        }

        .footer-links a:hover {
            opacity: 1;
            color: var(--accent-color);
            padding-left: 5px;
        }

        .newsletter-form {
            display: flex;
            margin-top: 1.5rem;
        }

        .newsletter-form input {
            flex-grow: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 4px 0 0 4px;
            font-family: 'Inter', sans-serif;
        }

        .newsletter-form button {
            background-color: var(--accent-color);
            color: white;
            border: none;
            padding: 0 20px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            transition: var(--transition);
        }

        .newsletter-form button:hover {
            background-color: var(--accent-light);
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transition: var(--transition);
        }

        .social-icons a:hover {
            background-color: var(--accent-color);
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
            font-size: 0.9rem;
        }

        /* Responsive Design - IMPROVED FOR MOBILE & TABLET */
        @media (max-width: 1200px) {
            .flipbook-wrapper {
                min-height: 380px;
                height: 380px;
            }
        }

        @media (max-width: 992px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                position: static;
                height: auto;
                margin-top: 2rem;
            }
            
            .hero-container {
                grid-template-columns: 1fr;
            }
            
            .featured-image {
                height: 350px;
            }
            
            .flipbook-categories-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            /* On mobile, flipbook comes first */
            .flipbook-categories-container {
                display: flex;
                flex-direction: column;
            }
            
            .flipbook-container {
                order: 1;
            }
            
            .categories-container-side {
                order: 2;
            }
            
            /* Larger flipbook on tablet */
            .flipbook-wrapper {
                min-height: 450px;
                height: 450px;
            }
        }

        @media (max-width: 768px) {
            .main-nav {
                display: none;
                position: absolute;
                top: var(--header-height);
                left: 0;
                width: 100%;
                background-color: var(--primary-color);
                padding: 1rem;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
            }
            
            .main-nav.active {
                display: block;
            }
            
            .main-nav ul {
                flex-direction: column;
                gap: 1rem;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .header-actions {
                gap: 0.5rem;
            }
            
            .featured-content h1 {
                font-size: 1.8rem;
                min-height: 100px;
            }
            
            .news-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 1.5rem;
            }
            
            .section-title {
                font-size: 1.6rem;
            }
            
            .ticker {
                animation: ticker-mobile 15s linear infinite;
            }
            
            @keyframes ticker-mobile {
                0% { transform: translateX(100%); }
                100% { transform: translateX(-200%); }
            }
            
            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .category-card {
                padding: 1.2rem 0.8rem;
            }
            
            /* Optimized flipbook for tablet */
            .flipbook-wrapper {
                min-height: 500px;
                height: 500px;
            }
        }

        @media (max-width: 576px) {
            .hero {
                padding: 1rem 0 0;
            }
            
            .featured-image {
                height: 300px;
            }
            
            .featured-content {
                padding: 1.5rem;
            }
            
            .news-section {
                padding: 1.5rem 0;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .newsletter-form input {
                border-radius: 4px;
                margin-bottom: 10px;
            }
            
            .newsletter-form button {
                border-radius: 4px;
                padding: 12px;
            }
            
            .logo-text, .footer-logo-text {
                font-size: 1.5rem;
            }
            
            .ads-container {
                margin-bottom: 1rem;
            }
            
            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.8rem;
            }
            
            .category-card {
                padding: 1rem 0.5rem;
            }
            
            .category-card i {
                font-size: 1.5rem;
                margin-bottom: 0.5rem;
            }
            
            .category-card span {
                font-size: 0.85rem;
            }
            
            /* Full-width flipbook on mobile with better height */
            .flipbook-wrapper {
                min-height: 500px;
                height: 500px;
                width: 100%;
            }
            
            .flipbook-container {
                padding: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            /* Even better mobile optimization */
            .flipbook-wrapper {
                min-height: 450px;
                height: 450px;
            }
            
            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 400px) {
            .categories-grid {
                grid-template-columns: 1fr;
            }
            
            /* Compact but still usable flipbook on small phones */
            .flipbook-wrapper {
                min-height: 400px;
                height: 400px;
            }
        }
        
        @media (max-width: 360px) {
            /* Minimum usable size for flipbook */
            .flipbook-wrapper {
                min-height: 350px;
                height: 350px;
            }
        }
        
        /* Specific optimization for landscape mobile */
        @media (max-height: 600px) and (orientation: landscape) {
            .flipbook-wrapper {
                min-height: 300px;
                height: 300px;
            }
        }
        
        /* Optimization for iPad in portrait */
        @media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
            .flipbook-wrapper {
                min-height: 600px;
                height: 600px;
            }
        }
        
        /* Optimization for iPad in landscape */
        @media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
            .flipbook-wrapper {
                min-height: 500px;
                height: 500px;
            }
        }
/* Category Page Styles */
.category-container {
    padding: 2rem 0;
}

.category-header {
    margin-bottom: 3rem;
    text-align: center;
}

.category-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.category-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-article-image {
    height: 200px;
    overflow: hidden;
}

.category-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-article:hover .category-article-image img {
    transform: scale(1.05);
}

.category-article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.category-article-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-article-content h3 a:hover {
    color: var(--accent-color);
}

.category-article-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-link.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.no-articles {
    text-align: center;
    padding: 4rem 0;
}

.no-articles p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Article Page Styles */
.article-container {
    padding: 2rem 0;
}

.main-article {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 3rem;
}

.article-header {
    margin-bottom: 2rem;
}

.category-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.main-article h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    margin: 2rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.article-content h2, 
.article-content h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.article-tags {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-tags span {
    font-weight: 600;
    color: #666;
}

.article-tags a {
    background-color: var(--gray-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-tags a:hover {
    background-color: var(--accent-color);
    color: white;
}

.related-articles {
    margin-top: 3rem;
}

.related-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-article h4 {
    padding: 1.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-article h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article h4 a:hover {
    color: var(--accent-color);
}

.related-article .text-muted {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .main-article h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .category-article-content,
    .main-article {
        padding: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
/* Hide categories container on smaller screens */
@media (max-width: 768px) {
    .categories-container-side {
        display: none !important;
    }
    
    /* Adjust flipbook to take full width when categories are hidden */
    .flipbook-categories-container {
        display: flex;
        flex-direction: column;
    }
    
    .flipbook-container {
        width: 100%;
    }
}

/* For medium screens (768px to 992px), you might want to keep it visible */
@media (min-width: 769px) and (max-width: 992px) {
    .categories-container-side {
        display: block;
    }
    
    .flipbook-categories-container {
        grid-template-columns: 1fr 300px;
    }
}

/* Optional: If you want to hide it on all tablets and mobile */
/* @media (max-width: 992px) {
    .categories-container-side {
        display: none !important;
    }
    
    .flipbook-categories-container {
        grid-template-columns: 1fr;
    }
} */
/* ... [Copy ALL remaining CSS from the previous HTML file] ... */
/* Donations Card Styles */
.donations-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--accent-color), #2c3e50);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.donations-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 0.5rem;
}

.donations-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.donation-options {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.donation-option {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.donation-option.primary {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.donation-option.hidden {
    display: none;
}

.donation-option h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.donation-option p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* MPESA Quick View */
.mpesa-quick-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.till-display {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.till-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.till-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00FF88;
    letter-spacing: 2px;
}

/* Donate Buttons */
.donate-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
    width: 100%;
}

.paypal-btn {
    background: #003087;
    color: white;
}

.paypal-btn:hover {
    background: #001c5e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mpesa-modal-btn {
    background: #00A859;
    color: white;
}

.mpesa-modal-btn:hover {
    background: #008748;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.alternative-option {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.switch-donation {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
}

.switch-donation:hover {
    text-decoration: underline;
}

.donations-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    opacity: 0.7;
}

/* MPESA Modal */
.donation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(to right, #00A859, #007A3D);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: white;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mpesa-poster {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #00A859;
}

.mpesa-poster h4 {
    color: #333;
    margin-bottom: 1rem;
}

.qr-container {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin: 1rem 0;
}

.qr-image {
    width: 100%;
    max-width: 250px;
    border-radius: 4px;
}

.till-box {
    background: #00A859;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.till-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.till-value {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

/* Instructions */
.modal-right h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.steps {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.steps li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #00A859;
}

.steps .highlight {
    background: #00A859;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.notes {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.notes h5 {
    color: #333;
    margin-bottom: 1rem;
}

.notes ul {
    padding-left: 1.5rem;
    margin: 0;
}

.notes li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #00A859;
    color: white;
}

.btn-primary:hover {
    background: #008748;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    .donations-card {
        padding: 1.5rem;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .till-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .donations-card {
        padding: 1rem;
    }
    
    .donate-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}