/* ===================================
   Blog Section Styles
   =================================== */

.montor-blog-section {
    padding: 100px 0;
    background: #ffffff;
}

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

/* Section Title */
.blog-section-title {
    font-size: 48px;
    font-weight: 700;
    color: #0a2540;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.blog-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blog-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Blog Image */
.blog-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
}

.blog-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail {
    transform: scale(1.05);
}

/* Blog Content */
.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Blog Title */
.blog-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #17a2b8;
}

/* Blog Excerpt */
.blog-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 20px;
    flex: 1;
}

/* Read More Link */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #17a2b8;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: #138496;
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Explore Blogs Button */
.blog-button-wrapper {
    text-align: center;
    margin-top: 20px;
}

.blog-explore-button {
    display: inline-block;
    padding: 18px 45px;
    background: #0a2540;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.blog-explore-button:hover {
    background: #17a2b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .montor-blog-section {
        padding: 60px 0;
    }

    .blog-grid.columns-2,
    .blog-grid.columns-3,
    .blog-grid.columns-4 {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .blog-content {
        padding: 25px;
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .montor-blog-section {
        padding: 40px 0;
    }

    .blog-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-explore-button {
        padding: 15px 35px;
        font-size: 13px;
    }
}

/* Animation for cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

