:root {
    --primary-green: #1a5f1a;
    --secondary-green: #2d7a2d;
    --light-green: #4a9d4a;
    --accent-green: #6bcf6b;
    --dark-black: #0a0a0a;
    --medium-black: #1a1a1a;
    --light-black: #2a2a2a;
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --gold-accent: #ffd700;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, var(--light-green) 100%);
    color: var(--pure-white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" fill="white" opacity="0.05"><path d="M0,64L60,69.3C120,75,240,85,360,80C480,75,600,53,720,48C840,43,960,53,1080,58.7C1140,61,1200,59,1200,32L1200,120L1080,120C960,120,840,120,720,120C600,120,480,120,360,120C240,120,120,120,60,120L0,120Z"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.blog-hero h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Blog Navigation */
.blog-nav {
    background: var(--pure-white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile Category Dropdown */
.mobile-category-filter {
    padding: 0 1rem;
}

.mobile-category-filter .category-dropdown {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--medium-black);
    background: var(--pure-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-category-filter .category-dropdown:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 95, 26, 0.1);
    outline: none;
}

.mobile-category-filter .category-dropdown:hover {
    border-color: var(--light-green);
}

.blog-nav .category-btn {
    background: transparent;
    border: 2px solid var(--light-gray);
    color: var(--medium-black);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.blog-nav .category-btn:hover,
.blog-nav .category-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Live Update Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold-accent), #ffed4e);
    color: var(--dark-black);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Blog Cards */
.blog-card {
    max-width: 800px;
    margin: 2rem auto;
    border: 1px solid #b3d1ff;
    border-radius: 4px;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: var(--pure-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 95, 26, 0.15);
    border-color: var(--light-green);
}

.blog-content {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.blog-image-container {
    flex: 0 0 40%;
    aspect-ratio: 4/3;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.blog-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

.plus-icon {
    font-size: 24px;
    color: #666;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-text-container {
    flex: 1;
    border: 1px solid #b3d1ff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 150px;
}

.blog-title {
    margin: 0;
    font-size: 24px;
    color: #4a6a8a;
    font-weight: 600;
}

.blog-title:hover {
    color: var(--primary-green);
}

.blog-excerpt {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.social-share {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.share-icon {
    color: black;
    font-size: 24px;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.share-icon:hover {
    transform: scale(1.1);
    color: #333;
}

/* Responsive design for mobile */
@media (max-width: 600px) {
    .blog-content {
        flex-direction: column;
    }
    .blog-image-container {
        flex: 0 0 100%;
        width: 100%;
    }
}



/* New Post Animation */
.new-post {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-green);
    color: var(--pure-white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Blog Detail Page */
.blog-detail {
    background: var(--off-white);
    padding: 3rem 0;
}

.blog-detail-header {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.blog-detail-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.blog-detail-category {
    background: var(--primary-green);
    color: var(--pure-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Featured Image Container */
.featured-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 16px;
    position: relative;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-detail-content {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
}

.blog-detail-content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-content h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--secondary-green);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-detail-content p {
    margin-bottom: 1rem;
}

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

.blog-detail-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar */
.blog-sidebar {
    background: var(--pure-white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.blog-sidebar-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-green);
}

.recent-post-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    background: var(--off-white);
    padding-left: 0.5rem;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-black);
    margin-bottom: 0.25rem;
}

.recent-post-title:hover {
    color: var(--primary-green);
}

.recent-post-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Load More Button */
.load-more-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--pure-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 95, 26, 0.2);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 26, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .blog-nav .category-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }

    .blog-detail-title {
        font-size: 1.8rem;
    }

    .blog-detail-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 60px 0 40px;
    }

    .blog-hero h1 {
        font-size: 1.6rem;
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-card-body {
        padding: 1rem;
    }
}
