    .blog-content.hidden {
        display: none;
    }
    
    .blog-card {
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .btn-read-more, .btn-close {
        cursor: pointer;
        color: #fff;
        background: #007bff;
        padding: 8px 16px;
        border-radius: 4px;
        text-decoration: none;
        display: inline-block;
        margin-top: 10px;
    }
    
    .btn-close {
        background: #6c757d;
    }
    
    /* Limit preview text to 3 lines */
    .blog-preview {
        display: -webkit-box;
        -webkit-line-clamp: 3; /* number of lines to show */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Modal for expanded blog content */
    .blog-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        width: 80%;
        max-width: 800px;
        padding: 2rem;
        border-radius: 20px;
        z-index: 1001;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        display: none;
        overflow-y: auto;
        max-height: 90%;
    }

    .blog-modal.active {
        display: block;
    }

    /* Background overlay with blur effect */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(5px);
        z-index: 1000;
        display: none;
    }

    .modal-overlay.active {
        display: block;
    }
    
    
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 11px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details {
    padding: 1rem;
    text-align: center;
}

.blog-details h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #3e3e3e;
    white-space: pre-wrap;
    word-wrap: break-word;
}



.blog-preview {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.btn-read-more {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-read-more:hover {
    background-color: #005bb5;
}

.blog-content {
    display: none;
    padding: 1rem;
    text-align: left;
}

.blog-content p {
    font-size: 1rem;
    color: #333;
}

.btn-close {
    display: inline-block;
    background-color: #cc3333;
    color: #fff;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn-close:hover {
    background-color: #b22222;
}

    .blog-preview {
        display: -webkit-box;
        -webkit-line-clamp: 3; /* number of lines to show */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Modal for expanded blog content */
    .blog-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        width: 80%;
        max-width: 800px;
        border-radius: 20px;
        padding: 2rem;
        z-index: 1001;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        display: none;
        overflow-y: auto;
        max-height: 90%;
    }

    .blog-modal.active {
        display: block;
    }

    /* Background overlay with blur effect */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(5px);
        z-index: 1000;
        display: none;
    }

    .modal-overlay.active {
        display: block;
    }
