/* ========================================
   Card Section
======================================== */
.card_section {
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    padding: 150px 0 220px 0;
}

.card_section_top_shape {
    position: absolute;
    top: -105px;
    height: 105px;
    width: 100%;
}

.card_section_top_shape img {
    width: 100%;
    object-fit: cover;
    height: 100%;
}

.card_section_title {
    margin: 0 0 42px 0;
}

.card_section_description {
    color: var(--color-brown);
}

/* Decorative background circles */

.card_section::before {
    content: "";
    position: absolute;
    top: 28%;
    left: 0;
    width: 16%;
    height: 60%;
    z-index: -1;
    background-image: url('../../../assets/images/upcoming-gatherings-left-circle.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.card_section::after {
    content: "";
    position: absolute;
    top: 3%;
    right: 0;
    width: 16%;
    height: 60%;
    z-index: -1;
    background-image: url('../../../assets/images/upcoming-gatherings-right-circle.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* ========================================
   Header
======================================== */

.card_section_header {
    margin: 0 0 64px 0;
}

/* ========================================
   Grid Wrap
======================================== */

.card_section_wrap {
    gap: 32px;
}

.card_section_col {
    width: calc((100% - 64px)/ 3);
    display: flex;
}

/* ========================================
   Card
======================================== */

.card_section_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    background: var(--color-white);
    box-shadow: 0 16px 56px 10px rgba(103, 45, 12, 0.06);
    transition: all 0.3s ease;
    width: 100%;
}

.card_section_card:hover {
    transform: translateY(-6px);
}

/* Image */

.card_section_card_image {
    padding-top: 68%;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.card_section_card_image img {
    border-radius: inherit;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.4s ease;
}

.card_section_card:hover .card_section_card_image img {
    transform: scale(1.1);
}

/* Full clickable link */

.card_full_link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Content */

.card_section_card_content {
    padding: 34px 31px 38px 31px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.card_link {
    gap: 10px;
    display: flex;
}

.card_link:hover .card-link-text {
    color: var(--color-orange);
}

.card_link:hover .card-link-icon path {
    stroke: var(--color-orange);
}

.card_link .card-link-icon svg {
    transition: 0.5s;
}

.card_link:hover .card-link-icon svg {
    transform: rotate(45deg);
}

/* Optional decorative shape */
.card_section_card_content::before {
    content: "";
    width: 100%;
    height: 20px;
    background-image: url('../../../assets/images/image-shape.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: -15px;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

/* Title */

.card_section_card_title {
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 16px 0;
}

.card-description {
    margin: 0 0 18px 0;
}

.card-link-text {
    color: var(--color-dark-green);
    font-weight: 600;
}

.card_section_card_title a {
    color: var(--color-brown);
}

.card_section_card_title a:hover {
    color: var(--color-orange);
}

.card_section_card_title a:hover {
    color: var(--color-orange);
}

/* ========================================
   Responsive
======================================== */
@media screen and (max-width: 1800px) {
    .card_section {
        padding: 100px 0 210px 0;
    }
}

@media screen and (max-width: 1360px) {

    .card_section {
        padding: 60px 0 80px;
    }

    .card_section_top_shape {
        top: -85px;
        height: 85px;
    }

    .card_section_wrap {
        gap: 25px;
    }

    .card_section_col {
        width: calc((100% - 50px)/ 3);
    }

    .card_section_header {
        margin: 0 0 50px 0;
    }
}

@media screen and (max-width: 1200px) {

    .card_section_wrap {
        gap: 20px;
    }

    .card_section_col {
        width: calc((100% - 40px)/ 3);
    }

    .card_section {
        padding: 60px 0 70px;
    }

    .card_section_card_content {
        padding: 25px 25px 30px 25px;

    }

    .card_section_card_content::before {
        background-size: cover;
    }
}

@media screen and (max-width: 992px) {

    .card_section {
        padding: 50px 0 70px;
    }

    .card_section_col {
        width: calc((100% - 20px)/ 2);
    }

}

@media screen and (max-width: 768px) {
    .card_section_card_content {
        padding: 20px 20px 25px 20px;
    }
}

@media screen and (max-width: 640px) {

    .card_section {
        padding: 26px 0 0;
    }

    .card_section_col {
        width: 100%;
    }

    .card_section_wrap {
        gap: 16px;
    }

    .card_section_card_content {
        padding: 23px 16px;
    }

    .card_section_card_title {
        font-size: 20px;
    }

    .card_section {
        padding: 30px 0 55px 0;
    }
}