/* =====================================================
   ROX Insights Slider
   Base stylesheet (starter)
   ===================================================== */

:root {
    --forest: #243228;
    --bone: #f6f3ec;
    --ink: #20241f;
    --gold: #a97d3d;
    --hairline: #e7e2d8;
}

.insights-slider {
    padding: 120px 0 0;
}

.insights-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.insights-heading {
    margin-bottom: 56px;
}


.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: #666;
}

.section-label span {
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.insights-heading h2 {
    margin-top: 18px;
    font-family: "Fraunces", serif;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--ink);
}

.insights-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.insight-category {
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    margin-bottom: 18px;
}

.insight-content h3 {
    font-family: "Fraunces", serif;
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 22px;
}

.insight-content p {
    font-size: 1.05rem;
    line-height: 25px;
    color: #666;
    margin-bottom: 36px;
}

.read-article {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    transition: .3s;
}

.read-article:hover span {
    transform: translateX(5px);
}

.read-article span {
    transition: .3s;
}

/* =====================================
   ROX BUTTON
===================================== */

.read-article {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-width: 205px;
    height: 45px;

    padding: 0 34px;

    border-radius: 999px;

    background: #223126;

    color: #f6f3ec;

    text-decoration: none;

    text-transform: uppercase;

    font-size: 12px;

    font-weight: 500;

    letter-spacing: .24em;

    transition: all .45s ease;

    box-sizing: border-box;

}

.read-article span {

    color: #a97d3d;

    font-size: 14px;

    transition: transform .45s ease;

}

.read-article:hover {

    transform: translateY(-2px);

    box-shadow: 0 18px 38px rgba(34, 49, 38, .22);

}

.read-article:hover span {

    transform: translateX(5px);

}

/* =====================================
   ROX NAVIGATION
===================================== */

.insights-navigation {

    display: flex;
    justify-content: center;
    margin-top: 60px;

}

.slider-nav {

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 360px;
    height: 52px;

    padding: 0 12px;

    border: 1px solid #d9d3ca;
    border-radius: 999px;

    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);

}

.slider-arrow {

    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;

    padding: 6px;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    background: transparent !important;

    appearance: none;
    -webkit-appearance: none;

    color: #232323;

    cursor: pointer;

}

.slider-arrow svg {

    width: 16px;
    height: 16px;

}

.slider-dots {

    display: flex;
    align-items: center;
    gap: 13px;

}

.slider-dots button {

    width: 7px;
    height: 7px;

    border: none;
    border-radius: 50%;

    background: #cfcac1;

    cursor: pointer;

    transition: .35s;

    padding: 0;

}

.slider-dots button.active {

    background: #a97d3d;

    transform: scale(1.15);

}

.slider-arrow:focus,

.slider-arrow:focus-visible {

    outline: none;

    box-shadow: none;

}

.slider-dots {

    display: flex;
    align-items: center;

    gap: 11px;

    flex: 1;

    justify-content: center;

}

.slider-dots button {

    width: 8px;
    height: 8px;

    border: none;

    border-radius: 50%;

    background: #d0cdc6;

    padding: 0;

}

.slider-dots button.active {

    background: #a97d3d;

    transform: none;

}

/* ===========================
IMAGE FRAME
=========================== */

.insight-image {

    position: relative;

    width: 520px;

    height: 624px;

    overflow: hidden;

    background: #ebe7df;

    flex-shrink: 0;

}

/* Decorative gold corner */

.insight-image::before {

    content: "";

    position: absolute;

    left: -16px;

    bottom: -16px;

    width: 110px;

    height: 90px;

    border-left: 1px solid var(--gold);

    border-bottom: 1px solid var(--gold);

    z-index: 1;

}

/* Image */

.insight-image img {

    position: absolute;

    top: 50%;

    left: 50%;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center center;

    transform: translate(-50%, -50%);

    display: block;

    transition: transform 0.9s ease, opacity .45s ease;

}

/* Optional hover */

.insight-image:hover img {

    transform: translate(-50%, -50%) scale(1.04);

}

.insight-image-wrap {

    position: relative;

    width: 520px;

    height: 624px;

}

.insight-image {

    width: 100%;

    height: 100%;

    overflow: hidden;

    position: relative;

}

.insight-image-wrap::before {

    content: "";

    position: absolute;

    left: -16px;

    bottom: -16px;

    width: 95px;

    height: 95px;

    border-left: 1px solid var(--gold);

    border-bottom: 1px solid var(--gold);

    z-index: 0;

}

.insight-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    position: relative;

    z-index: 2;

}

@media (max-width: 992px) {
    .insight-image {

        width: 100%;

        max-width: 520px;

        height: auto;

        aspect-ratio: 520 / 624;

        margin: 0 auto;

    }

    .insights-slider {
        padding: 0;
    }

    .insights-container {
        padding: 0;
        max-width: 100%;
    }

    .insights-wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .insight-image-wrap::before,

    .insight-image-wrap::after,

    .insight-image::before,

    .insight-image::after {

        display: none !important;

        content: none !important;

    }

    .insight-image-wrap {

        order: 1;

        /* Break out of container */
        width: 100vw;
        height: 60vh;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);

        margin-top: -80px;
    }

    .insight-image {

        width: 100%;
        height: 60vh;
        max-width: none;
        border-radius: 0;
    }

    .insight-image img {

        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .insight-content {

        order: 2;
        padding: 0 24px;
    }

}

.insights-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    margin-top: 56px;
}

.slider-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: .3s;
}

.slider-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: #d2d2d2;
    cursor: pointer;
}

.slider-dots button.active {
    background: var(--gold);
}

@media (max-width:992px) {
    .insight-image-wrap {
        width: 100vw;
        height: 50vh;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-top: -80px;
    }

    .insight-image {
        width: 100%;
        height: 50vh;
        max-width: none;
        border-radius: 0;
    }

    .insight-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .insights-slider {
        padding: 80px 0 40px;
    }

    .insights-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .insight-image {
        order: -1;
    }

    .insights-heading h2 {
        font-size: 2.2rem;
    }

    .insight-content h3 {
        font-size: 1.8rem;
    }

}