/* About page: readability, image-box hovers, engage cards (body has .page-body.page-about) */

/* First block sits in .container.about-top-wrap (avoids edge-to-edge on wide screens) */
.page-body.page-about .about-top-wrap {
    padding-top: clamp(0.5rem, 1.5vw, 1.25rem);
    padding-bottom: clamp(0.25rem, 1vw, 0.75rem);
}

/* Equal-height mission / vision / philosophy / strategy tiles (theme staggers st1/st3 with negative margin) */
.page-body.page-about .about-mission-grid {
    margin-left: -10px;
    margin-right: -10px;
}

.page-body.page-about .about-mission-grid > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 16px;
    display: flex;
}

/* Two-column grid: last row has no extra bottom gap */
@media (min-width: 576px) {
    .page-body.page-about .about-mission-grid > [class*="col-"]:nth-last-child(-n + 2) {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .page-body.page-about .about-mission-grid > [class*="col-"] {
        margin-bottom: 14px;
    }

    .page-body.page-about .about-mission-grid > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

.page-body.page-about .about-mission-grid .ot-image-box.st1,
.page-body.page-about .about-mission-grid .ot-image-box.st2,
.page-body.page-about .about-mission-grid .ot-image-box.st3,
.page-body.page-about .about-mission-grid .ot-image-box.st4 {
    margin-top: 0 !important;
}

.page-body.page-about .about-mission-grid .ot-image-box.v3 {
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 0 !important;
    aspect-ratio: 5 / 4;
    min-height: 200px;
}

.page-body.page-about .about-mission-grid .ot-image-box.v3 img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Capability mix: photo column */
.page-body.page-about .about-capability-visual {
    padding-left: clamp(0.5rem, 2vw, 1.5rem);
    text-align: center;
}

@media (min-width: 992px) {
    .page-body.page-about .about-capability-visual {
        text-align: right;
    }
}

.page-body.page-about .about-capability-img {
    width: 100%;
    max-height: min(440px, 52vw);
    object-fit: cover;
    object-position: center;
}

/* Left column: comfortable measure + contrast (avoid edge-to-edge wall of text) */
.page-body.page-about .about-intro-col {
    padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

.page-body.page-about .about-intro-copy {
    max-width: 34rem;
    color: #2a3238;
}

.page-body.page-about .about-intro-copy .ot-heading span {
    letter-spacing: 0.02em;
}

.page-body.page-about .about-intro-copy .main-heading {
    line-height: 1.2;
}

.page-body.page-about .about-intro-copy p {
    line-height: 1.72;
    font-size: 1rem;
}

.page-body.page-about .about-intro-copy p.lead {
    color: #3d474d !important;
    font-weight: 500;
}

.page-body.page-about .about-intro-copy .ot-button .octf-btn.btn-border {
    color: #19a49e !important;
    border-color: #19a49e !important;
    background: #fff !important;
}

.page-body.page-about .about-intro-copy .ot-button .octf-btn.btn-border:hover {
    color: #fff !important;
    background: #19a49e !important;
}

/* Mission / vision / philosophy / strategy tiles: readable overlay on hover + default */
.page-body.page-about .ot-image-box.v3 {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 28, 35, 0.12);
}

.page-body.page-about .ot-image-box .overlay {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    box-sizing: border-box;
    transition: background 0.35s ease;
}

.page-body.page-about .ot-image-box .overlay h4 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-body.page-about .ot-image-box .overlay p {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 22rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    opacity: 0.96;
}

/* Default + hover: keep a readable scrim (theme default clears overlay on hover) */
.page-body.page-about .ot-image-box:not(:hover) .overlay {
    background: linear-gradient(
        180deg,
        rgba(6, 22, 26, 0.45) 0%,
        rgba(6, 22, 26, 0.72) 100%
    ) !important;
}

.page-body.page-about .ot-image-box:hover .overlay {
    background: linear-gradient(
        180deg,
        rgba(4, 18, 22, 0.88) 0%,
        rgba(25, 164, 158, 0.55) 100%
    ) !important;
}

.page-body.page-about .ot-image-box img {
    filter: grayscale(35%) brightness(0.95);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.page-body.page-about .ot-image-box:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.03);
}

/* From clarity to code: equal-height cards, links bottom-aligned */
.page-body.page-about .about-engage-grid {
    align-items: stretch;
}

.page-body.page-about .about-engage-grid > [class*="col-"] {
    display: flex;
}

.page-body.page-about .about-engage-grid .icon-box-s2.s1 {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 1.5rem;
}

.page-body.page-about .about-engage-grid .icon-box-s2.s1 .content-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.page-body.page-about .about-engage-grid .icon-box-s2.s1 .content-box p {
    flex: 1 1 auto;
}

.page-body.page-about .about-engage-grid .icon-box-s2.s1 .content-box .btn-details {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 0.75rem;
}

/* Capability section: slightly clearer progress labels on about */
.page-body.page-about .technology-v3-left .ot-heading .main-heading {
    line-height: 1.25;
}

/* Secondary CTA on light gray about-counter (theme .btn-border is for dark bands) */
.page-body.page-about .about-counter .technology-v3-left .octf-btn.btn-border {
    color: #19a49e !important;
    border-color: #19a49e !important;
    background-color: #fff !important;
}

.page-body.page-about .about-counter .technology-v3-left .octf-btn.btn-border:hover {
    color: #fff !important;
    background-color: #19a49e !important;
    border-color: #19a49e !important;
}
