
.egm-dark-section {
    position: relative;
    margin-left: -50px;
    margin-right: -50px;
    width: calc(100% + 100px);
    max-width: calc(100% + 100px);
    background-color: var(--color-navy-blue);
    padding: min(max(60px, calc(3.75rem + (90 - 60) * ((100vw - 390px) / (1440 - 390)))), 90px) min(max(30px, calc(1.875rem + (60 - 30) * ((100vw - 390px) / (1440 - 390)))), 60px) min(max(50px, calc(3.125rem + (110 - 50) * ((100vw - 390px) / (1440 - 390)))), 110px);
    min-height: 0vw;
    box-sizing: border-box;
}

.egm-container {
    max-width: 1400px;
    margin: 0 auto;
}

.egm-section-title {
    color: var(--color-white) !important;
    text-align: center !important;
    font-size: var(--font-size-h3) !important;
    line-height: var(--line-height-h3) !important;
    font-weight: 500 !important;
    margin-bottom: 50px;
    letter-spacing: 0;
}

.egm-slider {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.egm-slide-inner {
    position: relative;
    width: auto;
    min-height: 275px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: min(max(40px, calc(2.5rem + (55 - 40) * ((100vw - 390px) / (1440 - 390)))), 55px) min(max(30px, calc(1.875rem + (60 - 30) * ((100vw - 390px) / (1440 - 390)))), 60px) min(max(40px, calc(2.5rem + (65 - 40) * ((100vw - 390px) / (1440 - 390)))), 65px);
    overflow: hidden;
    border-radius: 30px;
}

.egm-slide-inner:before {
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), linear-gradient(180deg, rgba(0, 0, 0, 0) 52.22%, rgba(0, 0, 0, 0.6) 100%);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
}

.egm-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.egm-slide-bg.has-fallback-logo {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: var(--color-navy-blue-extra-dark);
}

.egm-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, var(--color-navy-blue-dark-trans-90) 0%, rgba(var(--color-navy-blue-dark-rgb), 0) 100%);
    z-index: 2;
}

.egm-slide-date {
    position: absolute;
    top: min(max(40px, calc(2.5rem + (55 - 40) * ((100vw - 390px) / (1440 - 390)))), 55px);
    left: min(max(30px, calc(1.875rem + (60 - 30) * ((100vw - 390px) / (1440 - 390)))), 60px);
    min-height: 0vw;
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 4px 14px 6px;
    border-radius: 100px;
    font-size: var(--font-size-body-r);
    line-height: var(--line-height-body-r);
    font-weight: 500;
    z-index: 5;
}

.egm-slide-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.egm-pagination.swiper-pagination-clickable {
    position: absolute;
    top: min(max(40px, calc(2.5rem + (55 - 40) * ((100vw - 390px) / (1440 - 390)))), 55px); 
    right: min(max(30px, calc(1.875rem + (60 - 30) * ((100vw - 390px) / (1440 - 390)))), 60px);
    min-height: 0vw;
    bottom: auto !important; 
    left: auto;
    justify-content: flex-end;
    width: auto;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
/* Dots Styling is handled globally in styleguide.css */

.egm-content-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    height: auto !important;
    gap: 20px;
}

.egm-text-group {
    color: var(--color-white);
    max-width: 450px;
}

.egm-slide-title {
    font-size: var(--font-size-lead-in-1) !important;
    line-height: var(--line-height-lead-in-1) !important;
    margin-bottom: 12px;
    font-weight: 500 !important;
    color: var(--color-white) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.egm-slide-desc {
    font-size: var(--font-size-body-r);
    line-height: var(--line-height-body-r);
    color: var(--color-white);
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.egm-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-cyan-light);
    color: var(--color-black);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-body-r);
    overflow: hidden;
    transition: background-color 0.4s cubic-bezier(0.77, 0, 0.175, 1), color 0.4s cubic-bezier(0.77, 0, 0.175, 1), transform 0.3s ease;
}

.egm-dark-section a:focus {
    background: transparent;
    outline: none;
    text-decoration: none;
}

.egm-btn:focus {
    background-color: var(--color-cyan-light);
    outline: none;
    text-decoration: none;
}

.egm-btn:hover {
    background-color: var(--color-pink);
    color: var(--color-white);
}

.egm-btn-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: var(--line-height-body-r);
    line-height: var(--line-height-body-r);
    vertical-align: middle;
}

.egm-btn-label {
    display: block;
    height: var(--line-height-body-r);
    line-height: var(--line-height-body-r);
    white-space: nowrap;
    color: var(--color-black);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), color 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.egm-btn-label.clone {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    color: var(--color-white);
}

.egm-btn:hover .egm-btn-label {
    transform: translateY(-100%);
    color: var(--color-white);
}

.egm-btn-divider {
    width: 1px;
    height: 16px;
    background-color: var(--color-navy-blue-dark-trans-30);
    margin: 0 12px;
    transition: background-color 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.egm-btn:hover .egm-btn-divider {
    background-color: var(--color-white-trans-40);
}

.egm-no-content {
    color: var(--color-white);
    text-align: center;
    font-size: var(--font-size-body-r);
}

@media (min-width: 990px) {
    .egm-text-group {
        max-width: 535px;
    }
}

@media (max-width: 767px) {
    .egm-dark-section {
        margin-left: -30px;
        margin-right: -30px;
        width: calc(100% + 60px);
        max-width: calc(100% + 60px);
    }

    .egm-section-title {
        font-size: var(--font-size-lead-in-2) !important;
        line-height: var(--line-height-lead-in-2) !important;
        margin-bottom: 40px;
    }

    .egm-slide-inner {
        padding: 40px 30px;
        min-height: 480px;
    }

    .egm-slide-date {
        top: 40px;
        left: 30px;
        border-radius: 16px;
        padding: 2px 12px 4px;
    }

    .egm-pagination.swiper-pagination-clickable {
        top: auto;
        right: auto;
        bottom: var(--mobile-pagination-bottom, 230px) !important;
        left: 30px;
        justify-content: center;
        position: static;
        margin-top: 40px;
    }

    .egm-content-bottom {
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }

    .egm-text-group {
        max-width: 100%;
    }

    .egm-slide-title {
        font-size: var(--font-size-lead-in-2) !important;
        line-height: var(--line-height-lead-in-2) !important;
        margin-bottom: 12px;
    }
}
