﻿
.insights-filters {
    background-color: #d9df55;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 30px;
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.first-section-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 30px;
}

.card-media {
    width: 100%;
    min-height: 380px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.card-modal {
    width: min(1000px, 90vw);
    height: 90vh;
    padding: 0;
    border: 0;
    border-radius: 20px;
}

.card-modal__content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: thin;
}

.modal-swiper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.modal-slide {
    height: 360px !important;
}
.card-modal__image.custom-class {
    height: 360px;
    overflow: hidden;
    border-radius: 12px; 
}

    .card-modal__image.custom-class img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
.card-modal__content {
    padding: 24px;
    background: #fff;
    position: relative;
}

.modal-header-slide {
    margin-top: 20px;
}

.card-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.swiper {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    height: 100%;
    display: flex;
}

    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.swiper-button-next,
.swiper-button-prev {
    color: #d9df55 !important;
}

.swiper-pagination-bullet-active {
    background-color: #d9df55 !important;
}

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

.filter-btn.active {
    font-weight: 700;
   
}

.when-title {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 2rem;
}
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.divider{
    margin-top:20px;
    margin-bottom:20px;
}
.modal-tag-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: #f2f2f2;
    color: #333;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

    .modal-tag-item:hover {
        background: #d9df55;
        border-color: #d9df55;
        color: #000;
    }
@media (max-width: 992px) {

    .first-section-card {
        grid-template-columns: 1fr;
    }

    .swiper {
        height: 280px;
    }

    .card-media {
        min-height: 260px;
    }
}

@media (max-width: 576px) {

    .swiper {
        height: 220px;
    }

    .card-media {
        min-height: 220px;
    }
}
