/*.page-template-page-destinations .et_pb_section.et_pb_section_2_tb_body.gsi_section {
    padding-top: 0px !important;
}*/
.gsi_sec_f_c_study {
    padding-top: 0px !important;
}
.gsi_f_find_c {
    padding-top: 0px !important;
}
.gsi_f_course_slide .gsi_f_course_card,
.gsi-f-course-wrapper .gsi_f_course_item,
.gsi-f-course-list .gsi_f_course_card,
.gsi-f-courses-list-swiper .gsi_f_course_card {
    background-color: var(--cobalt);
    border-radius: 12px;
    padding: 40px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 0 12px;
    display: flex;             /* Make the card a flex container */
    flex-direction: column;    /* Stack elements vertically */
    justify-content: space-between; /* Space out content with space at the bottom */
    height: 100%;  
}

.gsi-f-course-list .gsi_f_course_card {
    margin: 0px;
}

.gsi-f-course-list .gsi-f-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gsi_f_course_slide .gsi_f_course_card::after,
.gsi-f-courses-list-swiper  .gsi_f_course_card::after{
    content: '';
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url(/wp-content/uploads/sites/3/2025/03/featured-courses-pc.svg);
    width: 251px;
    height: 311px;
}

.gsi-f-course-list .gsi_f_course_card::after {
    content: '';
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url(/wp-content/uploads/sites/3/2025/03/f-shortcode-list-icon.svg);
    width: 210px;
    height: 269px;
}

.gsi-f-course-slider a.gsi_cus_secondary_btn {
    display: block;
    width: fit-content;
    text-align: center;
    margin: 77px auto 0 auto;
}

.gsi_f_course_card h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    color: var(--cool-grey-1);
    padding-bottom: 16px;
    max-width: 416px;
}

.gsi_f_course_card p.gsi_uni_name {
    color: var(--lavender);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.gsi_f_course_card .gsi_f_course_data {
    margin: 32px 0 56px 0;

    flex-grow: 1; /* Allow the content area to grow and push the button down */
}

.gsi_f_course_data p {
    padding-bottom: 16px;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: var(--cool-grey-1);
}

.gsi_f_course_data p span {
    font-weight: 600;
    margin-right: 12px;
}

.gsi_f_course_card a {
    background: var(--mint);
    color: var(--deep-navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    padding: 16px 24px;
    display: block;
    text-align: center;
    width: fit-content;
    border-radius: 12px;

    margin-top: auto;          /* Push the "Read More" button to the bottom */
    align-self: flex-start;    /* Align the button to the left */
}

.sgi-nav-wrapper {
    position: absolute;
    right: 0;
    bottom: 7px;
    display: inline-flex;
    align-items: end;
    column-gap: 32px;
    height: 40px;
    justify-content: center;
}

.sgi-nav-wrapper .swiper-button-prev.sgi-fc-prev-btn, 
.sgi-nav-wrapper .swiper-button-next.sgi-fc-nxt-btn {
    position: unset;
    width: 40px;
    height: 40px;
}

.sgi-nav-wrapper .swiper-button-prev.sgi-fc-prev-btn::after {
    content: url('/wp-content/uploads/sites/3/2025/03/featured-course-left-arrow.svg');
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
}

.sgi-nav-wrapper .swiper-button-next.sgi-fc-nxt-btn::after {
    content: url('/wp-content/uploads/sites/3/2025/03/featured-course-right-arrow.svg');
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
}

.gsi_f_course_pagination{
    display: none;
}

/* Swiper layout for smaller screens */
.gsi-f-courses-list-swiper {
    display: none;
}

@media (max-width: 980px) {

    .gsi_f_course_slide .gsi_f_course_card,
    .gsi-f-course-wrapper .gsi_f_course_item,
    .gsi-f-course-list .gsi_f_course_card,
    .gsi-f-courses-list-swiper .gsi_f_course_card{
        margin: 0;
        padding: 24px;
    }

    .gsi-f-course-list .gsi-f-course-grid {
        gap: 0px;
    }

    .gsi-f-course-list {
        display: none; /* Hide grid */
    }

    .gsi-f-courses-list-swiper {
        display: block; /* Show swiper */
    }

    .sgi-nav-wrapper {
        display: none;
    }

    .gsi_f_course_slide .gsi_f_course_card {
        padding: 24px;
    }

    .gsi_f_course_pagination{
        display: block;
    }

    .gsi_f_course_pagination {
        margin-top: 40px;
        text-align: center;
    }
    
    .gsi_f_course_pagination span.swiper-pagination-bullet.swiper-pagination-bullet-active {
        background: var(--blossom);
        width: 36px;
        height: 8px;
        border-radius: 6px;
        transition: all 0.3s ease-in;
    }
    
    .gsi_f_course_pagination span.swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        border-radius: 6px;
        background: var(--cool-grey-4);
        margin: 0 2px !important;
        transition: all 0.3s ease-out;
    }

    .gsi-f-course-slider a.gsi_cus_secondary_btn {
        margin: 40px auto 0 auto;
    }

    .gsi_f_course_card h3 {
        max-width: 100%;
        font-size: 28px;
        line-height: 36px;
    }

    .gsi_f_course_slide .gsi_f_course_card::after {
        background-image: url(/wp-content/uploads/sites/3/2025/03/featured-courses-mob.svg);
        width: 144px;
        height: 190px;
    }

    .gsi-f-courses-list-swiper  .gsi_f_course_card::after {
        background-image: url(/wp-content/uploads/sites/3/2025/03/featured-courses-mob.svg);
        width: 144px;
        height: 190px;
    }

    .gsi_f_course_card a {
        margin-top: auto;         /* Ensure the button stays at the bottom */
    }

    /* .gsi_f_course_slide .gsi_f_course_card {
        margin: 0 12px;
    } */
    .gsi_full_row_tm_f_c {
        overflow: hidden;
    }

    .gsi_full_row_tm_f_c .gsi_f_course_pagination span.swiper-pagination-bullet.swiper-pagination-bullet-active {
        background: var(--cobalt);
    }

}
