.dr-nick-section {
    background-color: var(--dark-blue);
    padding-block: 155px;
    position: relative;
    max-width: 1920px;
    width: calc(100% - 60px);
    margin-inline: auto;
    border-radius: 20px;
    border-top: 5px solid var(--gold);
    overflow: hidden;
}

.dr-nick-section .container {
    position: relative;
}

.dr-nick-section:before {
    content: '';
    position: absolute;
    bottom: -70px;
    left: -200px;
    background-image: url('/wp-content/uploads/2026/08/Lotus-bg.svg');
    width: 923px;
    height: 787px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.heading-area {
    display: flex;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 30px;
}

.dr-button {
    margin-top: 40px;
}


.dr-nick-section p {
    max-width: 700px;
    width: 100%;
    opacity: .8;
}

.outline-button {
    display: block;
    width: fit-content;
    position: relative;
    z-index: 10;
}

.dots-background-nick-section {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
}

.dr-nick-section .row {
    align-items: center;
}

.nick-image {
    max-width: 390px;
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--gold);
    margin-left: auto;
}

.nick-image img {
    border-radius: 10px;
}

.foundation-image {
    display: flex;
}

/* History section */

.history-section {
    padding-block: 140px 60px;
    position: relative;
}

.history-section:before {
    content: '';
    position: absolute;
    top: -225px;
    z-index: -1;
    background-image: url('/wp-content/uploads/2026/08/XNL-Foundation-LOGO-effect.webp');
    width: 1854px;
    height: 1837px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    left: -300px;
}

.history-section h2 {
    margin-bottom: 30px;
}

.subheading {
    text-transform: uppercase;
}

.history-container {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    row-gap: 80px;
    position: relative;
}

.history-container-line{
    position: absolute;
    top: 71px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 95%;
    background-color: var(--gold);
    display: block;
}

.history-line-circle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 20px;
    left: -84px;
    background-color: var(--bone-white);
    z-index: 2;
    border: 2px solid var(--gold);
}

.history-container .row:nth-of-type(even) .history-line-circle {
    left: unset;
    right: -84px;
    top: -36px;
}

.history-container .row {
    align-items: center;
}

.history-container .row:nth-of-type(even) {
    flex-direction: row-reverse;
}

.history-container h3 {
    margin-block: 15px;
}

.history-image-wrapper {
    position: relative;
    min-height: 400px;
}

.history-image img {
    border-radius: 20px;
    height: 400px;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: calc(100% + 80px);
    left: -80px;
}

.history-container .row:nth-of-type(even) .history-image img {
    left: unset;
    right: -80px;
}


.history-container .history-info-wrapper {
    padding-left: 80px;
}

.history-container .history-info-wrapper p {
    max-width: 500px;
    width: 100%;
}

.history-container .row:nth-of-type(even) .history-info-wrapper {
    padding-right: 80px;
    padding-left: 0;
}

.history-title {
    position: relative;
}

.history-number-desktop {
    display: inline;
}

.history-number-mobile {
    display: none;
}

/* History section ends */


@media(max-width: 1500px) {
    .history-image img {
        left: -40px;
        width: calc(100% + 40px);
    }

    .history-container .row:nth-of-type(even) .history-image img {
        right: -40px;
    }

    .history-container .history-info-wrapper {
        padding-left: 40px;
    }

    .history-container .row:nth-of-type(even) .history-info-wrapper {
        padding-right: 40px;
        padding-left: 0;
    }

    .history-line-circle {
        left: -44px
    }

    .history-container .row:nth-of-type(even) .history-line-circle {
        right: -44px;
    }

    .history-container-line {
        top: 85px;
    }
}

@media(max-width: 1320px) {
    .history-image img {
        left: -20px;
        width: calc(100% + 20px);
    }

    .history-container .row:nth-of-type(even) .history-image img {
        right: -20px;
    }

    .history-container .history-info-wrapper {
        padding-left: 20px;
    }

    .history-container .row:nth-of-type(even) .history-info-wrapper {
        padding-right: 20px;
        padding-left: 0;
    }

    .history-line-circle {
        left: -24px;
    }

    .history-container .row:nth-of-type(even) .history-line-circle {
        right: -24px;
    }

    .history-container-line {
        top: 85px;
    }
}

@media(max-width: 1300px) {
    .history-container .row:nth-of-type(even) .history-image img, .history-image img {
        position: relative;
        top: unset;
        left: unset;
        right: unset;
        max-width: 80%;
        margin-inline: auto;
        display: block;
        height: 250px;
    }

    .history-info {
        max-width: 80%;
        margin-inline: auto;
    }

    .history-container .row:nth-of-type(even) .history-info-wrapper, .history-container .history-info-wrapper {
        padding-right: 12px;
        padding-left: 12px;
    }

    .history-image-wrapper {
        min-height: unset;
    }

    .history-line-circle {
        left: calc(-14.77% - 5px);
    }

    .history-container .row:nth-of-type(even) .history-line-circle {
        right: calc(-14.77% - 5px);
    }

    .history-container-line {
        top: 60px;
    }
}

@media(max-width: 1200px) {
    .history-line-circle {
        left: calc(-15% - 7px);
    }

    .history-container .row:nth-of-type(even) .history-line-circle {
        right: calc(-15% - 7px);
    }
}

@media(max-width: 991px) {
    .dr-nick-section .container {
        text-align: center;
    }

    .nick-image {
        margin-inline: auto;
    }

    .heading-area {
        justify-content: center;
    }

    .dr-button {
        margin-block: 40px;
    }

    .dr-button a {
        margin-inline: auto;
    }

    .dr-nick-section {
        padding-block: 80px 145px;
    }

    .dr-nick-section:before {
        left: 50%;
        transform: translateX(-50%);
    }

    .history-container-line {
        display: none;
    }

    .history-container .row:nth-of-type(even) .history-image img, .history-image img, .history-info {
        max-width: 100%;
        width: 100%;
    }

    .history-section {
        padding-block: 80px;
    }

    .history-container {
        row-gap: 40px;
        margin-top: 40px;
    }

    .history-section h2 {
        margin-bottom: 20px;
    }

    .history-container .row {
        row-gap: 30px;
    }

    .history-number-desktop {
        display: none;
    }

    .history-number-mobile {
        position: absolute;
        bottom: 10px;
        left: 22px;
        width: 38px;
        height: 38px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--gold);
        color: #ffffff;
        border-radius: 6px;
        z-index: 2;
        font-size: 18px;
        line-height: 22px;
        font-weight: 300;
    }

    .history-image img {
        border-radius: 6px;
    }

    .history-container {
        padding: 20px 20px 30px;
        border-radius: 10px;
    }

    .history-container:before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 2px 2px 10px 2px;
        background: linear-gradient(
                -90deg,
                rgba(187, 154, 112, .7) 0%,
                rgba(187, 154, 112, 0.1) 100%
        );
        -webkit-mask: linear-gradient(#F6F3EE 0 0) content-box,
        linear-gradient(#F6F3EE 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#F6F3EE 0 0) content-box exclude,
        linear-gradient(#F6F3EE 0 0);
        pointer-events: none;
        border-radius: 10px;
    }

    .history-line-circle {
        display: none;
    }

    .history-container h3 {
        margin-block: 30px 20px;
    }

    .history-section:before {
        display: none;
    }

    .history-container .history-info-wrapper p {
        max-width: 100%;
    }
}

@media(max-width: 575px) {
    .dr-nick-section {
        padding-block: 40px 70px;
    }

    .dr-button {
        margin-block: 30px;
    }

    .nick-image {
        padding: 10px;
    }

    .dots-background-nick-section {
        height: 30px;
    }

    .foundation-logo img {
        height: 30px;
    }

    .heading-area {
        margin-bottom: 20px;
    }

    .dr-nick-section {
        width: calc(100% - 20px);
    }

    .history-section {
        padding-block: 40px;
    }

    .history-container {
        row-gap: 20px;
        margin-top: 20px;
        width: calc(100% - 20px);
        padding: 10px 10px 20px;
    }

    .history-section h2 {
        margin-bottom: 20px;
    }

    .history-container .row {
        row-gap: 0;
    }

    .history-container .row:nth-of-type(even) .history-image img, .history-image img {
        height: 195px;
    }

    .history-container .row:nth-of-type(even) .history-info-wrapper, .history-container .history-info-wrapper {
       padding-inline: 20px;
    }
}