@import "./global-colors.css";
@import "./global-fonts.css";

.values-hero-section {
    width: 100%;
    height: 50vh;
    position: relative;
    z-index: 1;
}

.hero-text-holder {
    width: 70%;
}

.hero-text-container .header-text {
    margin-bottom: 40px;
}

.down-arrow-container {
    bottom: 20px;
}

.value-offering-header {
    position: absolute;
    display: flex;
    justify-content: center;
    bottom: 20px;
    width: 100%;
}

.core-values-main-bg-img-holder {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: var(--dark-navy-blue);
}

.core-values-main-bg-img-holder img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
}

.core-values-main-mobile-bg-img-holder {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.value-offering-header h2 {
    font-family: var(--CalibriRegular);
    font-size: 40px;
}

.values-hero-section .down-arrow-container img {
    width: 32px;
    height: 32px;
}

.values-hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Core values description */

.core-values-description {
    padding: 0 6%;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.description-text {
    font-family: var(--CalibriRegular);
    text-align: center;
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.4;
}

.description-text p {
    font-family: var(--CalibriRegular);
    font-size: 1.5rem;
    color: var(--dark-blue);
    line-height: 1.4;
}

/*.our-values*/
.our-values-section {
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue-black);
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-header {
    position: relative;
    text-align: center;
    z-index: 2;
    margin-bottom: 0px;
}

.section-header h2 {
    color: var(--dark-blue-black-3);
    font-size: clamp(24px, 4vw, 40px);
}

.our-values-holder {
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}

.value-section {
    padding: clamp(30px, 5vw, 70px) 0;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* .value-section .section-header {
    margin-top: 40px;
} */

.value-section .section-content {
    display: flex;
    justify-content: center;
    width: 85%;
    padding-bottom: 2%;
    /*position: relative;*/
    /*z-index: 2;*/
}

.value-holder {
    background-color: var(--dark-navy-blue);
    border-radius: 10px;
    width: 100%;
    /* padding: clamp(15px, 2vw, 20px); */
    padding: 4%;
}

.value-row {
    display: flex;
}

.value-row .value {
    width: calc(100% / 5);
    padding: clamp(20px, 3vw, 30px) clamp(8px, 1.5vw, 10px);
    text-align: center;
    position: relative;
}

.side-hr {
    position: absolute;
    width: 1px;
    height: 75%;
    background-color: var(--blue-green);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hr-holder {
    display: none;
    width: 100%;
}

.value-row .value img {
    width: 100%;
    height: 100%;
}

.value-row .value .icon-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.value-row .value .icon-holder {
    width: clamp(80px, 12vw, 170px);
    height: clamp(80px, 12vw, 170px);
}

.value-row .value .header {
    margin-top: clamp(25px, 4vw, 40px);
}

.value-row .value .header h2 {
    color: var(--white);
    /* font-size: clamp(18px, 2.5vw, 24px); */
    font-size: 2rem;;
}

.value-row .value .text {
    font-family: var(--CalibriRegular);
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/*gallery*/

.gallery-description {
    padding: 0 10%;
    margin-bottom: 40px;
}

.gallery-description-text p {
    color: var(--white);
}

.gallery-section {
    padding: 2% 0 40px 0;
    background: var(--dark-navy-blue);
    margin-top: -10px;
    position: relative;
    z-index: 2;
}

.gallery-section .section-content {
    display: flex;
    justify-content: center;
}

.gallery-images-holder {
    position: relative;
    width: 90%;
    height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.gallery-images-holder img {
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-images-holder img.zoomed-out {
    transform: scale(1.2);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 70vw;
    height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    z-index: 2;
    background-color: var(--semi-transparent-black);
}

.gallery-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 25vh 25vh;
    /* Two rows, each 25vh height */
    gap: 10px;
    width: 100%;
}

.gallery-images img {
    width: 100%;
    height: 100%;
    /* Important: Keep this for the grid to work */
    object-fit: cover;
    /* This will now work correctly */
    gap: 10px;
}

img.first-image {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    /* Spans both rows (50vh total) */
}

img.other-image {
    height: 100%;
}

.image-title {
    color: var(--white);
    font-family: var(--CalibriRegular);
    font-size: 16px;
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 2
}

.image-container {
    height: 25vh;
}

@media (min-width: 380px) and (max-width: 520px) {


    .description-text p {
        font-family: var(--CalibriRegular);
        font-size: 12px;
    }

    .core-values-main-bg-img-holder img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .our-values-section {
        width: 100%;
        height: 130vh;
        background-color: var(--dark-blue-black);
        position: relative;
        z-index: 2;
        overflow: hidden;
    }
}

@media (max-width: 380px) {

    .core-values-main-bg-img-holder img {
        object-fit: cover;
        width: 100%;
        height: 142vh;
    }

    .our-values-section {
        width: 100%;
        height: 145vh;
        background-color: var(--dark-blue-black);
        position: relative;
        z-index: 2;
        overflow: hidden;
    }

    .core-values-main-mobile-bg-img-holder {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .core-values-main-mobile-bg-img-holder img {
        width: 100%;
        height: 120%;
        object-fit: cover;
    }

    /* strategic value */

    .our-values-section {
        width: 100%;
        height: 165vh !important;
        background-color: var(--dark-blue-black);
        position: relative;
        z-index: 2;
        overflow: hidden;
        margin-top: -10px;
    }
}

/* High zoom level support */
@media (min-resolution: 2dppx), (min-resolution: 192dpi) {
    .value-row .value .icon-holder {
        width: clamp(70px, 10vw, 100px);
        height: clamp(70px, 10vw, 100px);
    }
    
    .value-row .value .header h2 {
        font-size: clamp(14px, 2.2vw, 18px);
    }
    
    .value-row .value .text {
        font-size: clamp(12px, 1.6vw, 14px);
        line-height: 1.2;
    }
    
    .description-text {
        font-size: clamp(14px, 2vw, 18px);
        line-height: 1.3;
    }
}

/* Additional zoom support for very high zoom levels */
@media (min-resolution: 3dppx), (min-resolution: 288dpi) {
    .value-row .value .icon-holder {
        width: clamp(60px, 8vw, 80px);
        height: clamp(60px, 8vw, 80px);
    }
    
    .value-row .value .header h2 {
        font-size: clamp(12px, 1.8vw, 16px);
    }
    
    .value-row .value .text {
        font-size: clamp(10px, 1.4vw, 12px);
        line-height: 1.1;
    }
    
    .description-text {
        font-size: clamp(12px, 1.6vw, 16px);
        line-height: 1.2;
        padding: 15px;
    }
}


@media (max-width: 768px) {

    .core-values-main-bg-img-holder img {
        display: none;
        object-fit: cover;
        width: 100%;
        /* height: 70%; */
    }

    .core-values-main-mobile-bg-img-holder {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .core-values-main-mobile-bg-img-holder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .description-text p {
        font-family: var(--CalibriRegular);
        font-size: 12px;
    }

    /* strategic value */

    .our-values-section {
        width: 100%;
        height: auto;
        min-height: 115vh;
        background-color: var(--dark-blue-black);
        position: relative;
        z-index: 2;
        overflow: hidden;
        margin-top: -10px;
    }

    .our-values-section .main-bg {
        display: none;
    }

    .our-values-section .mobile-bg {
        display: block;
    }

    .our-values-holder {
        width: 100%;
    }

    .value-section .section-content {
        width: 95%;
        padding: 0 10px;
    }

    .value-holder {
        padding: clamp(10px, 3vw, 15px);
    }

    .value-row {
        display: block;
        padding: 0px 5px;
    }

    .side-hr {
        display: none;
    }

    .hr-holder {
        display: block;
        display: flex;
        justify-content: center;
        padding: 0px 15px;
        margin: 10px 0;
    }

    .bottom-hr {
        width: 100%;
        height: 1px;
        background-color: var(--blue-green);
        transform: scaleY(0.5);
    }

    .value-row .value {
        display: flex;
        padding: clamp(15px, 4vw, 25px) clamp(10px, 3vw, 20px);
        width: 100%;
        text-align: left;
        align-items: center;
    }

    .value-row .value .icon-container {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .value-row .value .icon-holder {
        display: flex;
        align-items: center;
        width: clamp(70px, 8vw, 60px);
        height: clamp(70px, 8vw, 60px);
    }

    .value-row .value img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .value-row .content {
        padding-left: clamp(15px, 4vw, 20px);
        flex: 1;
    }

    .value-row .value .header {
        padding-left: 0;
        margin-top: 0;
        margin-bottom: clamp(3px, 1vw, 5px);
    }

    .value-row .value .header h2 {
        font-size: clamp(16px, 3.5vw, 20px);
        line-height: 1.2;
    }

    .value-row .value .text {
        font-size: clamp(12px, 2.5vw, 14px);
        line-height: 1.3;
    }

    /*Gallery*/
    .gallery-images-holder {
        width: 100%;
        padding: 10px;
        height: 100%;
    }

    .gallery-images {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 20vh auto;
        /* Changed to 18vh */
    }

    img.first-image {
        grid-column: 1 / span 1;
        grid-row: 1 / span 1;
    }

    img.other-image {
        height: 20vh
    }

    @media (min-width: 1024px) and (max-width: 1200px) {

        .nav-holder {
            width: 100vw !important;
        }

        .core-values-main-bg-img-holder img {
            height: 100%;
            width: 110vw;
            object-fit: cover;
            position: relative;
        }

        .our-values-section {
            width: 100%;
            height: auto;
            min-height: 80vh;
            background-color: var(--dark-blue-black);
            position: relative;
            z-index: 2;
            overflow: hidden;
        }

        .value-section .section-content {
            width: 88%;
        }

        .value-row .value .icon-holder {
            width: clamp(100px, 11vw, 120px);
            height: clamp(100px, 11vw, 120px);
        }

        .value-row .value .header h2 {
            font-size: clamp(20px, 2.8vw, 24px);
        }

        .value-row .value .text {
            font-size: clamp(15px, 1.9vw, 16px);
        }

        @media (min-width: 768px) and (max-width: 1024px) {

            .core-values-main-bg-img-holder img {
                height: 85%;
                width: 100vw;
                object-fit: cover !important;
                position: relative !important;
            }

            .our-values-section {
                width: 100%;
                height: auto;
                min-height: 170vh;
                background-color: var(--dark-blue-black);
                position: relative;
                z-index: 2;
                overflow: hidden;
            }

            .value-section .section-content {
                width: 90%;
                padding: 0 15px;
            }

            /* strategic value */
            .value-holder {
                padding: clamp(12px, 2.5vw, 15px);
            }

            .our-values-holder {
                width: 100%;
            }

            .value-row .value {
                padding: clamp(15px, 2.5vw, 20px) clamp(8px, 1.5vw, 12px);
            }

            .value-row .value .icon-holder {
                width: clamp(70px, 10vw, 90px);
                height: clamp(70px, 10vw, 90px);
            }

            .value-row .value .header h2 {
                font-size: clamp(16px, 2.2vw, 20px);
            }

            .value-row .value .text {
                font-size: clamp(13px, 1.6vw, 15px);
            }

            .side-hr {
                height: 60%;
            }
        }

            @media (min-width: 380px) and (max-width: 520px) {

        .core-values-main-bg-img-holder img {
            object-fit: cover;
            width: 100%;
            height: 115vh;
        }

        .our-values-section {
            width: 100%;
            height: auto;
            min-height: 115vh;
            background-color: var(--dark-blue-black);
            position: relative;
            z-index: 2;
            overflow: hidden;
        }

        .value-row .value .icon-holder {
            width: clamp(35px, 7vw, 50px);
            height: clamp(35px, 7vw, 50px);
        }

        .value-row .value .header h2 {
            font-size: clamp(14px, 3vw, 18px);
        }

        .value-row .value .text {
            font-size: clamp(11px, 2.2vw, 13px);
        }
    }


    }
}