﻿/* =========================================================
   WHAT WE DO / RESEARCH & TRAINING
   CURRENT VERSION
========================================================= */


/* =========================================================
   HERO
========================================================= */

.segment-hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    aspect-ratio: 24 / 9;
    overflow: hidden;
    color: #fff;
}


/* Background image */

.segment-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: brightness(.90);
    transition: background-image .6s ease-in-out, filter .3s ease;
}


/*
 * Light strategic overlay.
 *
 * We don't want to darken the artwork too much,
 * but counters and tab still need predictable contrast.
 */

.segment-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( to bottom, rgba(5, 13, 24, .18) 0%, rgba(5, 13, 24, .04) 42%, rgba(5, 13, 24, .28) 100% );
    pointer-events: none;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.segment-hero-overlay {
    position: relative;
    z-index: 2;
    min-height: inherit;
    height: 100%;
    padding-top: 18px;
    padding-bottom: 22px;
}


/* =========================================================
   RESEARCH & TRAINING STATS
   TOP CENTER
========================================================= */

.research-training-content {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: calc(100% - 32px);
}

.research-training-period {
    margin-bottom: 10px;
    max-width: 560px;
    color: #0b3153;
    font-size: clamp(.9rem, 1.2vw, 1.1rem);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    letter-spacing: .01em;
    /* Helps readability on the light photographic background */
   /* text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 0 6px rgba(255,255,255,.65);*/
}
/*
 * One unified HUDCO-style data panel,
 * rather than two independent floating cards.
 */

.research-training-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: linear-gradient( 135deg, rgba(12, 27, 47, .92) 0%, rgba(25, 34, 51, .90) 55%, rgba(77, 10, 18, .88) 100% );
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* Individual statistic */

.research-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 185px;
    padding: 14px 24px;
    background: transparent;
    text-align: center;
}


    /* Divider between statistics */

    .research-stat-card + .research-stat-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 18%;
        width: 1px;
        height: 64%;
        background: linear-gradient( to bottom, transparent, rgba(255, 255, 255, .28), transparent );
    }


/* Number */

.research-stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(1.65rem, 2vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}


/* + suffix */

.research-stat-suffix {
    color: #d9ba70;
    font-size: .62em;
    font-weight: 800;
}


/* Counter label */

.research-stat-label {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .015em;
}

/* =========================================================
   RESEARCH & TRAINING LINK CARD
   BOTTOM LEFT
========================================================= */

.what-we-do-link-wrap {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 20;
    width: min(380px, calc(100% - 24px));
}


.what-we-do-link-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 13px 48px 13px 18px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 13px;
    background: linear-gradient( 135deg, rgba(10, 25, 44, .95) 0%, rgba(24, 31, 47, .94) 60%, rgba(92, 8, 19, .93) 100% );
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}


    .what-we-do-link-card:hover,
    .what-we-do-link-card:focus-visible {
        color: #fff;
        text-decoration: none;
        transform: translateY(-3px);
        border-color: rgba(255,255,255,.38);
        box-shadow: 0 14px 36px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10);
    }


/* Main heading */

.what-we-do-link-title {
    position: relative;
    display: block;
    width: fit-content;
    padding-bottom: 7px;
    margin-bottom: 6px;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .02em;
}


    .what-we-do-link-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 44px;
        height: 2px;
        border-radius: 10px;
        background: #b51220;
    }


/* Description */

.what-we-do-link-description {
    display: block;
    max-width: 290px;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
    line-height: 1.45;
}


/* Arrow */

.what-we-do-link-arrow {
    position: absolute;
    right: 17px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #fff;
    transform: translateY(-50%);
    transition: background .25s ease, transform .25s ease;
}


.what-we-do-link-card:hover
.what-we-do-link-arrow {
    background: #880000;
    transform: translateY(-50%) translateX(3px);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .segment-hero {
        min-height: 330px;
        aspect-ratio: 16 / 7;
    }


    .segment-hero-overlay {
        padding-top: 14px;
        padding-bottom: 18px;
    }


    .research-training-content {
        top: 14px;
        max-width: calc(100% - 24px);
    }


    .research-stat-card {
        min-width: 155px;
        padding: 12px 18px;
    }


    .research-stat-number {
        font-size: 1.65rem;
    }


    .research-stat-label {
        font-size: .68rem;
    }


    .what-we-do-link-wrap {
        left: 12px;
        bottom: 14px;
        width: min(350px, calc(100% - 24px));
    }


    .what-we-do-link-card {
        padding: 12px 44px 12px 15px;
    }


    .what-we-do-link-title {
        font-size: .82rem;
    }


    .what-we-do-link-description {
        font-size: .66rem;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .segment-hero {
        min-height: 390px;
        aspect-ratio: auto;
    }


    /*
     * Preserve useful parts of the artwork.
     * Can be fine-tuned later depending on
     * the mobile image composition.
     */

    .segment-hero-bg {
        background-position: center center;
    }


    .segment-hero-overlay {
        padding-top: 10px;
        padding-bottom: 14px;
    }


    /* Stats remain top-center */

    .research-training-content {
        top: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }


    .research-training-stats {
        width: 100%;
    }


    .research-stat-card {
        flex: 1 1 50%;
        min-width: 0;
        padding: 10px 7px;
    }


    .research-stat-number {
        margin-bottom: 4px;
        font-size: 1.3rem;
    }


    .research-stat-label {
        font-size: .59rem;
        line-height: 1.25;
    }


    .what-we-do-link-wrap {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }


    .what-we-do-link-card {
        padding: 10px 42px 10px 12px;
        border-radius: 10px;
    }


    .what-we-do-link-title {
        margin-bottom: 5px;
        font-size: .73rem;
    }


    .what-we-do-link-description {
        max-width: calc(100% - 10px);
        font-size: .61rem;
    }


    .what-we-do-link-arrow {
        right: 12px;
        width: 25px;
        height: 25px;
        font-size: .7rem;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .research-stat-card {
        padding-left: 5px;
        padding-right: 5px;
    }


    .research-stat-number {
        font-size: 1.18rem;
    }


    .research-stat-label {
        font-size: .55rem;
    }

}
