/* blog.css */
.blog-hero {
    background: linear-gradient(135deg, var(--deep-cyan-green) 0%, var(--black) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2301B12F' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--golden-brown) 0%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--light-gray);
    line-height: 1.6;
}

.hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
    color: var(--deep-cyan-green);
}

.search-btn {
    background: var(--electric-green);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--deep-cyan-green);
    transform: scale(1.05);
}

/* Blog Layout */
.blog-layout {
    padding: 80px 0;
    background: var(--off-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 40px;
}

.post-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--electric-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--golden-brown);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta span::before {
    content: '•';
    margin-right: 5px;
}

.post-meta span:first-child::before {
    content: '';
    margin: 0;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--deep-cyan-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--electric-green);
}

.post-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.read-more {
    color: var(--electric-green);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--off-white);
    color: var(--deep-cyan-green);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--electric-green);
    color: var(--white);
}

/* Pagination */
.pagination {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.pagination.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pagination-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-btn, .pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn {
    background: var(--white);
    color: var(--deep-cyan-green);
    border: 2px solid var(--light-gray);
}

.pagination-btn:hover {
    background: var(--electric-green);
    color: var(--white);
    border-color: var(--electric-green);
}

.pagination-number {
    background: var(--white);
    color: var(--deep-cyan-green);
    border: 2px solid transparent;
}

.pagination-number:hover, .pagination-number.active {
    background: var(--electric-green);
    color: var(--white);
    border-color: var(--electric-green);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
}

.sidebar-widget.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--deep-cyan-green);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--off-white);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--electric-green);
}

/* Trending Posts */
.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-post {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trending-post:hover {
    background: var(--off-white);
    transform: translateX(5px);
}

.trending-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--electric-green);
    min-width: 40px;
}

.trending-content h4 {
    margin-bottom: 5px;
}

.trending-content h4 a {
    color: var(--deep-cyan-green);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.trending-content h4 a:hover {
    color: var(--electric-green);
}

.trending-views {
    font-size: 0.8rem;
    color: var(--golden-brown);
}

/* Categories */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--off-white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--deep-cyan-green);
    transition: all 0.3s ease;
}

.category-item:hover {
    background: var(--electric-green);
    color: var(--white);
    transform: translateX(5px);
}

.category-name {
    font-weight: 600;
}

.category-count {
    background: var(--white);
    color: var(--deep-cyan-green);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-item:hover .category-count {
    background: var(--deep-cyan-green);
    color: var(--white);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: var(--off-white);
    color: var(--deep-cyan-green);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--electric-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-box {
    text-align: center;
}

.newsletter-box p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--electric-green);
}

.newsletter-btn {
    background: var(--electric-green);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--deep-cyan-green);
    transform: translateY(-2px);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--deep-cyan-green);
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.no-posts p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .sidebar-widgets {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sidebar-widgets {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .hero-search {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 15px;
    }
    
    .search-input {
        background: var(--white);
        border-radius: 50px;
        text-align: center;
    }
    
    .search-btn {
        width: 100%;
        border-radius: 50px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-image {
        height: 200px;
    }
}

/* Scroll Animation Delays */
[data-scroll]:nth-child(1) { transition-delay: 0.1s; }
[data-scroll]:nth-child(2) { transition-delay: 0.2s; }
[data-scroll]:nth-child(3) { transition-delay: 0.3s; }
[data-scroll]:nth-child(4) { transition-delay: 0.4s; }
[data-scroll]:nth-child(5) { transition-delay: 0.5s; }