.container {
    margin: 0 auto;
    padding: 0 15px;
}

/* .community-container {
    max-width: 1200px;
} */

.header-section {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e9e9e9;
    margin-bottom: 40px;
}

.write-blog-btn {
    background-color: #f614cd;
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.write-blog-btn:hover {
    color: #fff !important;
    background-color: #d800b2;
}

.search-bar-container {
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    border-color: #f614cd;
}

.search-bar-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Main Content */
.blog-listing-section {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.blog-content {
    flex-grow: 1;
}

.filter-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-card h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.filter-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-card li {
    margin-bottom: 10px;
}

.filter-card a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.filter-card a:hover {
    color: #f614cd;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

/* Blog Card */
.blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

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

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
}

.blog-card-content .category {
    font-size: 14px;
    color: #f614cd;
    font-weight: 500;
    margin-bottom: 8px;
}

.blog-card-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

.blog-card-footer {
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #e9e9e9;
}

.engagement-icons {
    display: flex;
    margin: 10px;
    padding: 2px;
}

.engagement-icons i {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin: 5px;
    margin-top: 6px;
}

.engagement-icons i:hover {
    color: #f614cd;
}

.engagement-icons .like-count,
.engagement-icons .dislike-count {
    font-size: 14px;
    margin: 5px;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.author-info span {
    font-size: 14px;
    color: #555;
}

/* Featured Blogs - CAROUSEL VERSION */
.featured-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.featured-section h3 {
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.featured-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.featured-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.featured-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    flex: 0 0 calc(33.333% - 13.333px);
    min-width: 350px;
}

.featured-card-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.featured-card-content h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.featured-card-content span {
    font-size: 14px;
    color: #888;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-nav button {
    background-color: #f614cd;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-nav button:hover {
    background-color: #d800b2;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #f614cd;
}

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    color: #555;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
}

.pagination a.active {
    background-color: #f614cd;
    color: white;
    border: 1px solid #f614cd;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .blog-listing-section {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .featured-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .header-section .d-flex {
        flex-direction: column;
        gap: 20px;
    }

    .search-bar-container {
        width: 100%;
    }

    .write-blog-btn {
        width: 100%;
        text-align: center;
    }

    .featured-card {
        flex: 0 0 calc(100% - 10px);
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content .close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.modal-content .close-btn:hover,
.modal-content .close-btn:focus {
    color: #f614cd;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.modal-form-group input,
.modal-form-group textarea,
.modal-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus,
.modal-form-group select:focus {
    border-color: #f614cd;
    outline: none;
}

.modal-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.modal-form-btn {
    display: block;
    width: 100%;
    background-color: #f614cd;
    color: #fff;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-form-btn:hover {
    background-color: #d800b2;
}

.small-modal {
    max-width: 400px;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn i {
    font-size: 20px;
    margin-right: 10px;
}

.share-btn.facebook-btn {
    background-color: #3b5998;
}

.share-btn.facebook-btn:hover {
    background-color: #2d4373;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn.instagram-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.share-btn.instagram-btn:hover {
    background: linear-gradient(45deg, #d8822e, #ce5d31, #c51d36, #b21f57, #a41772);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn.copy-btn {
    background-color: #f614cd;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-check-input:checked {
    background-color: #f614cd;
    border-color: #f614cd;
}

.form-check-input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.form-check-label {
    cursor: pointer;
    color: #555;
    font-weight: 400;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-link:hover .blog-card {
    transform: translateY(-5px);
}


.star-rating-integrated {
    display: flex;
    /* align-items: center;
    margin-left: 10px;
    padding-left: 10px; */
    /* border-left: 1px solid #dee2e6; */
}

.rating-stars-integrated {
    display: flex;
    gap: 2px;
}

.rating-stars-integrated .fa-star {
    transition: all 0.2s ease;
}

.rating-stars-integrated .fa-star:hover {
    transform: scale(1.2);
}

.rating-text {
    color: #6c757d;
    font-size: 0.875rem;
}

.engagement-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .star-rating-integrated {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 5px;
        width: 100%;
    }

    .engagement-icons {
        gap: 10px;
    }
}
