/* =========================================================
   About Page Layout
   ========================================================= */

/* Hero images container
   Fixed height constraint ensures layout stability
   Uses vw/vh units with min/max safety bounds */
.images-holder {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 40vh;
    max-height: 500px;
    min-height: 300px;
    margin-bottom: 30px;
    gap: 10px;
    overflow: hidden;
}

/* Image wrapper with smooth width transition */
.image-box {
    overflow: hidden;
    height: 100%;
    position: relative;
    transition: width 0.3s ease;
}

/* Width Distribution (35% | 35% | 30%) */
.image-box:nth-child(1) {
    width: 35%;
}

.image-box:nth-child(2) {
    width: 35%;
    min-width: 450px;
}

.image-box:nth-child(3) {
    width: 30%;
}


.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(100%);
}


.image-box:hover img {
    transform: scale(1.025);
}

/* =========================================================
   Content Section
   ========================================================= */

/* about-title removed - replaced by unified-page-title */

.about-content {
    display: flex;
    justify-content: space-evenly;
    margin-top: 25px;
    margin-bottom: 60px;
}

/* Left column alignment */
.topic:first-child {
    width: 35%;
    position: relative;
    top: 30px;
}

.topic {
    display: flex;
    flex-direction: column;
    width: 15%;
    font-size: 15px;
    line-height: 1.6;
    color: var(--secondary-white-color);
}

.topic .head-font {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--white-color);
}


/* =========================================================
   Responsive Adjustments
   ========================================================= */

/* Tablet Optimization
   Hides 3rd image, remaining 2 split evenly */
@media (max-width: 900px) {
    .about-title {
        margin-left: initial;
    }

    .image-box:nth-child(3) {
        display: none;
    }

    .image-box:nth-child(1),
    .image-box:nth-child(2) {
        min-width: 49%;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {

    .images-holder {
        gap: 5px;
    }

    .about-content {
        flex-direction: column;
        width: 90%;
        margin: auto;
        margin-top: 30px;
        gap: 30px;
    }

    .topic:first-child {
        width: 100%;
        position: static;
        top: 0;
    }

    .topic {
        width: 100%;
    }

    .about-title {
        text-align: center;
        width: 100%;
        display: block;
        margin-left: 0;
        font-size: var(--mobile-font-h1);
    }

    .about-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Small Mobile Optimization
   Shows only 1 image full width */
@media (max-width: 450px) {

    .image-box:nth-child(2) {
        display: none;
    }

    .image-box:nth-child(1) {
        width: 100%;
    }
}