/* banner-module */

.banner-module {
    padding: 24px 60px;
}

.banner-module.banner-v4 {
    background-color: transparent !important;
}

.banner-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.banner-cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 40px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    border-radius: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.banner-cta:hover,
.banner-cta:focus {

}

/*  V1  */

.banner-v1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.banner-v1 .banner-title {
    flex: 1;
}

/*  V2  */

.banner-v2 {
    display: flex;
    justify-content: space-between;
}

.banner-v2 .banner-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.banner-v2 .banner-icon {
    display: flex;
    align-items: center;
    max-width: 48px;
}

.banner-v2 .banner-icon img,
.banner-v2 .banner-icon svg {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

.banner-v2 .banner-eyebrow {
    margin: 0;
}

.banner-v2 .banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 550px;
    gap: 8px;
}

.banner-v2 .banner-title {
    margin: 0;
    text-transform: uppercase;
}

.banner-v2 .banner-description {
    margin: 0;
}

.banner-v2 .banner-cta-wrapper {
    display: flex;
    align-items: center;
}

/* V3 */

.banner-ctas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.banner-ctas:has(> a:nth-child(1):last-child) {
    grid-template-columns: minmax(200px, 400px);
    justify-content: center;
}

.banner-ctas:has(> a:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.banner-ctas:has(> a:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.banner-ctas:has(> a:nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
}

.banner-ctas:has(> a:nth-child(5):last-child) {
    grid-template-columns: repeat(5, 1fr);
}

.banner-ctas:has(> a:nth-child(6):last-child) {
    grid-template-columns: repeat(6, 1fr);
}

.banner-ctas .banner-cta {
    width: 100%;
    text-align: center;
}

/*  V4 */

.banner-v4 {
    display: flex;
    flex-direction: column;
    position: relative;
}
.banner-v4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%; 
    background-color: var(--color-primary);
    z-index: 1;
}
.banner-v4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-color: var(--color-background-white);
    z-index: 1;
}

.banner-v4 > * {
    position: relative;
    z-index: 10; 
}

.banner-v4 .banner-title {
    text-align: left;
    padding-bottom: 20px;
}

.banner-boxes {
    display: grid;
    gap: 24px;
    padding: 20px 0 80px 0;
}

.banner-boxes:has(> .banner-box:nth-child(1):last-child) {
    grid-template-columns: minmax(300px, 600px);
    justify-content: center;
}

.banner-boxes:has(> .banner-box:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.banner-boxes:has(> .banner-box:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.banner-boxes:has(> .banner-box:nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
}

.banner-box {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    background-color: var(--color-neutral-beige-medium-light);
    padding: 40px;
}
.banner-box .banner-cta {
    position: absolute;
    bottom: 0;
    right: 37px;
    transform: translateY(50%);
    padding: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-background-white);
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: unset;
}

.banner-box .banner-cta span {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    max-width: 0;
    overflow: hidden;
    color: var(--color-background-white);
}

.banner-box .banner-cta::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url('../../assets/east.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.banner-box .banner-cta:hover {
    width: auto;
}

.banner-box .banner-cta:hover span {
    opacity: 1;
    transform: translateX(0);
    max-width: 300px;
    margin-right: 10px;
}

.banner-box .banner-cta:hover::after {
    transform: translateX(5px);
}

.banner-box .banner-cta:hover,
.banner-box .banner-cta:focus {
    background-color: var(--color-primary);
}

.banner-module.banner-v5{
    margin: 0px 60px;
    padding: 32px 0;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.banner-module.banner-v5 .banner-v5{
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.banner-module.banner-v5 .banner-v5 .banner-content{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 1024px) {
    .banner-ctas:has(> a:nth-child(4):last-child),
    .banner-ctas:has(> a:nth-child(5):last-child),
    .banner-ctas:has(> a:nth-child(6):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-boxes:has(> .banner-box:nth-child(3):last-child),
    .banner-boxes:has(> .banner-box:nth-child(4):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-v4::before {
    height: 30%;
    }

    .banner-module.banner-v5{
      margin: 0;
      padding: 40px 20px;
      position: relative;
    }

    .banner-module.banner-v5 .banner-v5{
      display: flex;
      flex-direction: column;
      align-items: start;
      gap: 40px;
    }
}

@media (max-width: 768px) {
    .banner-module {
        padding: 40px 20px;
    }
    
    .banner-v4 .banner-title {
        padding-bottom: 15px;
    }
    
    .banner-boxes {
        gap: 40px;
        padding: 15px 0 60px 0;
    }

    .banner-v1 {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-v1 .banner-cta {
        align-self: stretch;
        text-align: center;
    }

    .banner-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .banner-v2 .banner-header {
        width: 100%;
    }

    .banner-v2 .banner-content {
        width: 100%;
    }

    .banner-v2 .banner-cta-wrapper {
        width: 100%;
    }

    .banner-v2 .banner-cta {
        width: 100%;
        text-align: center;
    }

    .banner-ctas,
    .banner-ctas:has(> a:nth-child(3):last-child),
    .banner-ctas:has(> a:nth-child(4):last-child),
    .banner-ctas:has(> a:nth-child(5):last-child),
    .banner-ctas:has(> a:nth-child(6):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-ctas:has(> a:nth-child(1):last-child) {
        grid-template-columns: 1fr;
    }

    .banner-boxes,
    .banner-boxes:has(> .banner-box:nth-child(2):last-child),
    .banner-boxes:has(> .banner-box:nth-child(3):last-child),
    .banner-boxes:has(> .banner-box:nth-child(4):last-child) {
        grid-template-columns: 1fr;
    }
    .banner-box {
        padding: 32px 16px;
        text-align: left; 
        align-items: flex-start; 
    }
    
    .banner-box .banner-cta {
        position: relative;
        right: auto; 
        bottom: auto;
        transform: none; 
        width: auto; 
        height: auto; 
        margin-left: 0; 
        align-self: flex-start; 
    }
    
    .banner-v4::before {
       height: 100%;
    }
    .banner-v4::after {
      height: 0;
    }
}

@media (max-width: 480px) {
    .banner-ctas,
    .banner-ctas:has(> a:nth-child(2):last-child),
    .banner-ctas:has(> a:nth-child(3):last-child),
    .banner-ctas:has(> a:nth-child(4):last-child),
    .banner-ctas:has(> a:nth-child(5):last-child),
    .banner-ctas:has(> a:nth-child(6):last-child) {
        grid-template-columns: 1fr;
    }
}