/* Style rules scoped to Latest Resources widget */

.lr-resources-section {
    display: block;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.lr-resources {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
}

/* Left Column */
.lr-resources-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.lr-resources-header-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.lr-resources-heading-line {
    flex-shrink: 0;
}

.lr-resources-heading {
    margin: 0;
    padding: 0;
    font-family: inherit;
    line-height: 1.2;
}

/* Round Arrow Navigation buttons */
.lr-resources-navigation {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.lr-resources-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    border-style: solid;
    border-width: 0px;
    border-radius: 50%;
    transition: all 0.3s ease-block;
    outline: none;
}

.lr-arrow-sym {
    display: inline-block;
}

/* Right Column (Carousel Slider) */
.lr-resources-right {
    flex-grow: 1;
    overflow: hidden;
}

.lr-resources-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.lr-resources-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.lr-resources-carousel::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbar */
}

/* Cards */
.lr-resource-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    box-sizing: border-box;
}

.lr-resource-image-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.lr-resource-image {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.lr-resource-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.lr-resource-title {
    margin: 0;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
}

.lr-resource-description {
    margin: 0;
    font-family: inherit;
    line-height: 1.5;
}

/* Button style */
.lr-resource-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
    box-sizing: border-box;
}

.lr-resource-arrow-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Responsive adjustment */
@media (max-width: 767px) {
    .lr-resources {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .lr-resources-left {
        width: 100% !important;
    }
    .lr-resources-navigation {
        margin-top: 20px;
    }
}
