.featured-post {
    width: 100%;
    min-height: 450px;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 2rem;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    cursor: pointer;
}

.container {
    margin-top: 60px;
}

.btn.btn-primary {
    min-width: fit-content !important;
    min-height: fit-content !important;
    width: fit-content !important;
    pointer-events: none !important;
}

.featured-post h4 {
    width: 50%;
    min-width: 280px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-post p img {
    border-radius: 50%;
}

.cards {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.cards .card {
    min-width: 290px;
    width: calc(100% / 3 - 20px);
    padding: 24px;
    border: none;
    box-shadow: 0px 0px 17.9px -7px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    cursor: pointer;
}

@media screen and (max-width: 515px) {
    .cards .card {
        max-width: none;
    }
}

.card .cover-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.card > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile {
    border-radius: 50%;
}

.cover-image {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.imgs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* Quill editor content styling for blog display */
.blog-content .ql-editor {
    padding: 0;
    border: none;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color, #333);
}

.blog-content .ql-editor h1,
.blog-content .ql-editor h2,
.blog-content .ql-editor h3,
.blog-content .ql-editor h4,
.blog-content .ql-editor h5,
.blog-content .ql-editor h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.blog-content .ql-editor blockquote {
    border-left: 4px solid #ddd;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #666;
    font-style: italic;
}

.blog-content .ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.blog-content .ql-editor a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
}

.blog-content .ql-editor a:hover {
    text-decoration: underline;
}

/* Blog Gallery Styling */
.blog-content .single-gallery-image {
    text-align: center;
    margin: 2rem 0;
}

.blog-content .carousel {
    margin: 2rem 0;
}

.blog-content .carousel .carousel-item img {
    height: 50vh;
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.blog-content .carousel .thumbnail-container {
    height: 50vh;
    max-height: 400px;
}

.blog-content h4 {
    color: var(--primary-color, #007bff);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsive adjustments for blog gallery */
@media (max-width: 768px) {
    .blog-content .carousel .carousel-container {
        flex-direction: column;
    }
    
    .blog-content .carousel .thumbnail-container {
        height: auto;
        width: 100%;
        max-height: 120px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .blog-content .carousel .vertical-thumbnails {
        flex-direction: row;
        gap: 10px;
        padding: 10px;
    }
    
    .blog-content .carousel .vertical-thumbnails .thumbnail {
        min-width: 80px;
        width: 80px;
        height: 80px;
    }
    
    .blog-content .carousel .carousel-item img {
        height: 40vh;
        max-height: 300px;
    }
}