/* Blog Page Styles */
.blog-section {
    padding-top: 120px;
    min-height: 100vh;
}

/* Featured Posts */
.featured-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.featured-post-image {
    height: 100%;
    overflow: hidden;
}

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

.featured-post:hover .featured-post-image img {
    filter: grayscale(40%);
    transform: scale(1.05);
}

.featured-post-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.post-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

.post-date {
    font-size: 14px;
    color: var(--accent);
}

.post-tag {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 500;
}

.featured-post-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.featured-post-excerpt {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #e0e0e0;
    flex-grow: 1;
}

.featured-post-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.read-more-btn svg {
    transition: var(--transition);
}

.read-more-btn:hover svg {
    transform: translateX(3px);
}

/* Upcoming Posts Section */
.upcoming-posts-header {
    margin-bottom: 30px;
}

.upcoming-posts-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-small-divider {
    width: 40px;
    height: 3px;
    background: var(--secondary);
    margin-bottom: 20px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: rgba(20, 20, 40, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    filter: grayscale(40%);
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #e0e0e0;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    padding-bottom: 5px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.read-more:hover::after {
    width: 100%;
}

/* Blog CTA */
.blog-cta {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-cta-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-cta-content p {
    font-size: 16px;
    color: #e0e0e0;
    max-width: 600px;
}

.blog-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
}

.blog-cta .btn svg {
    transition: var(--transition);
}

.blog-cta .btn:hover {
    background: var(--secondary);
    color: var(--primary);
}

.blog-cta .btn:hover svg {
    stroke: var(--primary);
}

/* Animation for blog cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-post {
    animation: fadeIn 0.8s ease-out forwards;
}

.featured-post:nth-child(1) {
    animation-delay: 0.1s;
}

.featured-post:nth-child(2) {
    animation-delay: 0.3s;
}

.blog-card {
    animation: fadeIn 0.8s ease-out forwards;
    animation-fill-mode: both;
}

.blog-card:nth-child(1) {
    animation-delay: 0.5s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.6s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.7s;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .blog-section {
        padding-top: 100px;
    }

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

    .blog-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .featured-post-content,
    .blog-card-content {
        padding: 20px;
    }

    .featured-post-title {
        font-size: 24px;
    }

    .blog-section,
    .container {
        min-height: unset;
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .featured-post-image {
        height: 200px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}