/* =========================================================
   RESEARCH AND EXTENSION OFFICE
   CITY COLLEGE OF ORMOC

   Matches the established:
   - GAD Office
   - Legal Office
   - College Secretary
   - NSTP Coordinator

   Design System
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --research-blue: #002D4F;

    --research-cyan: #7EC8E3;

    --research-light-blue: #A9D6F5;

    --research-pale-blue: #D6EAF7;

    --research-background: #F7F9FB;

    --research-white: #FFFFFF;

    --research-text: #31465A;

    --research-border: rgba(0, 45, 79, 0.12);

}


/* =========================================================
   PAGE
   ========================================================= */

.research-page {

    width:
        100%;

    overflow:
        hidden;

    background:
        var(--research-background);

    color:
        var(--research-text);

    font-family:
        "Graphik",
        Arial,
        sans-serif;

}


.research-page *,
.research-page *::before,
.research-page *::after {

    box-sizing:
        border-box;

}


/* =========================================================
   CONTAINER
   ========================================================= */

.research-container,
.research-hero-inner {

    width:
        calc(100% - 2in);

    margin-left:
        auto;

    margin-right:
        auto;

}


/* =========================================================
   HERO
   ========================================================= */

.research-hero {

    position:
        relative;

    min-height:
        430px;

    display:
        flex;

    align-items:
        center;

    background:
        var(--research-blue);

    color:
        var(--research-white);

    overflow:
        hidden;

}


.research-hero-inner {

    position:
        relative;

    min-height:
        430px;

    display:
        flex;

    align-items:
        center;

}


.research-hero-content {

    position:
        relative;

    z-index:
        2;

    max-width:
        850px;

    padding:
        55px 0 70px;

}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.research-back-button {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    margin-bottom:
        28px;

    padding:
        9px 15px;

    border:
        1px solid rgba(255, 255, 255, .28);

    border-radius:
        6px;

    background:
        rgba(255, 255, 255, .06);

    color:
        #FFFFFF;

    font-size:
        11px;

    font-weight:
        600;

    line-height:
        1;

    text-decoration:
        none;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;

}


.research-back-arrow {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        17px;

    line-height:
        1;

    transition:
        transform .25s ease;

}


.research-back-button:hover {

    background:
        var(--research-light-blue);

    border-color:
        var(--research-light-blue);

    color:
        var(--research-blue);

    transform:
        translateX(-2px);

}


.research-back-button:hover .research-back-arrow {

    transform:
        translateX(-3px);

}


/* =========================================================
   HERO EYEBROW
   ========================================================= */

.research-eyebrow {

    display:
        block;

    margin-bottom:
        20px;

    color:
        var(--research-cyan);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        2.5px;

    text-transform:
        uppercase;

}


/* =========================================================
   HERO TITLE
   ========================================================= */

.research-hero h1 {

    max-width:
        1000px;

    margin:
        0;

    color:
        #FFFFFF;

    font-size:
        clamp(54px, 6vw, 88px);

    line-height:
        .92;

    letter-spacing:
        -4px;

    font-weight:
        750;

}


.research-hero h1 span {

    display:
        block;

    color:
        var(--research-light-blue);

}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.research-hero p {

    max-width:
        680px;

    margin:
        30px 0 0;

    color:
        rgba(255, 255, 255, .86);

    font-size:
        14px;

    line-height:
        1.7;

}


/* =========================================================
   HERO DECORATIONS
   ========================================================= */

.research-hero-decoration {

    position:
        absolute;

    inset:
        0;

    pointer-events:
        none;

}


.research-circle {

    position:
        absolute;

    display:
        block;

    border:
        1px solid
        rgba(126, 200, 227, .22);

    border-radius:
        50%;

}


.research-circle-one {

    width:
        360px;

    height:
        360px;

    top:
        -155px;

    right:
        60px;

}


.research-circle-two {

    width:
        150px;

    height:
        150px;

    top:
        -50px;

    right:
        165px;

    background:
        rgba(126, 200, 227, .035);

}


.research-circle-three {

    width:
        190px;

    height:
        190px;

    bottom:
        -135px;

    right:
        270px;

}


/* =========================================================
   HERO NUMBER
   ========================================================= */

.research-hero-number {

    position:
        absolute;

    right:
        6%;

    bottom:
        5px;

    z-index:
        1;

    color:
        rgba(126, 200, 227, .08);

    font-size:
        clamp(110px, 12vw, 190px);

    line-height:
        .8;

    font-weight:
        800;

    letter-spacing:
        -8px;

}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.research-overview,
.research-personnel,
.research-functions {

    padding:
        95px 0;

}


/* =========================================================
   OVERVIEW
   ========================================================= */

.research-overview {

    background:
        var(--research-white);

}


/* =========================================================
   PERSONNEL
   ========================================================= */

.research-personnel {

    background:
        var(--research-background);

}


/* =========================================================
   CORE FUNCTIONS
   ========================================================= */

.research-functions {

    background:
        var(--research-background);

}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.research-section-heading {

    display:
        grid;

    grid-template-columns:
        70px
        760px;

    margin-bottom:
        45px;

}


.research-section-number {

    padding-top:
        3px;

    color:
        var(--research-cyan);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        2px;

}


.research-kicker {

    display:
        block;

    margin-bottom:
        13px;

    color:
        var(--research-cyan);

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

}


.research-section-heading h2 {

    margin:
        0;

    color:
        var(--research-blue);

    font-size:
        clamp(38px, 4vw, 57px);

    line-height:
        1;

    letter-spacing:
        -2px;

    font-weight:
        750;

}


.research-section-heading p {

    max-width:
        700px;

    margin:
        18px 0 0;

    color:
        var(--research-text);

    font-size:
        14px;

    line-height:
        1.75;

}


/* =========================================================
   OVERVIEW CONTENT
   ========================================================= */

.research-overview-content {

    display:
        grid;

    grid-template-columns:
        70px
        760px;

    margin-left:
        70px;

}


.research-overview-line {

    width:
        1px;

    min-height:
        165px;

    background:
        var(--research-light-blue);

}


.research-overview-text {

    padding-left:
        35px;

}


.research-overview-text p {

    max-width:
        760px;

    margin:
        0 0 20px;

    color:
        var(--research-text);

    font-size:
        14px;

    line-height:
        1.8;

}


.research-overview-text p:last-child {

    margin-bottom:
        0;

}


/* =========================================================
   PERSONNEL GRID
   ========================================================= */

.research-members-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        16px;

    margin-left:
        70px;

}


/* =========================================================
   PERSONNEL CARD
   ========================================================= */

.research-member-card {

    min-width:
        0;

    background:
        var(--research-white);

    border:
        1px solid
        var(--research-border);

    border-radius:
        8px;

    overflow:
        hidden;

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;

}


.research-member-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(126, 200, 227, .55);

    box-shadow:
        0 18px 35px
        rgba(0, 45, 79, .09);

}


/* =========================================================
   MEMBER IMAGE
   ========================================================= */

.research-member-image {

    width:
        100%;

    height:
        250px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        var(--research-light-blue);

    overflow:
        hidden;

}


.research-member-image img {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        contain;

    object-position:
        center center;

}


/* =========================================================
   IMAGE PLACEHOLDER
   ========================================================= */

.research-image-placeholder {

    width:
        100%;

    height:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        linear-gradient(
            135deg,
            var(--research-light-blue),
            var(--research-pale-blue)
        );

}


.research-image-placeholder span {

    color:
        rgba(0, 45, 79, .55);

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        2px;

}


/* =========================================================
   MEMBER CONTENT
   ========================================================= */

.research-member-content {

    min-height:
        115px;

    padding:
        20px;

    background:
        var(--research-white);

}


.research-member-role {

    display:
        block;

    margin-bottom:
        8px;

    color:
        var(--research-cyan);

    font-size:
        7px;

    line-height:
        1.5;

    font-weight:
        700;

    letter-spacing:
        1.2px;

    text-transform:
        uppercase;

}


.research-member-content h3 {

    margin:
        0;

    color:
        var(--research-blue);

    font-size:
        14px;

    line-height:
        1.25;

    font-weight:
        700;

}


/* =========================================================
   CORE FUNCTIONS
   ========================================================= */

.research-function-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        16px;

    margin-left:
        70px;

}


/* =========================================================
   FUNCTION CARD
   ========================================================= */

.research-function-card {

    min-height:
        190px;

    padding:
        30px;

    display:
        flex;

    flex-direction:
        column;

    background:
        var(--research-white);

    border:
        1px solid
        var(--research-border);

    border-radius:
        8px;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background-color .25s ease;

}


.research-function-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(126, 200, 227, .55);

    background:
        var(--research-white);

    box-shadow:
        0 16px 35px
        rgba(0, 45, 79, .08);

}


/* =========================================================
   FUNCTION NUMBER
   ========================================================= */

.research-function-number {

    margin-bottom:
        25px;

    color:
        var(--research-cyan);

    font-size:
        9px;

    line-height:
        1;

    font-weight:
        700;

    letter-spacing:
        2px;

}


/* =========================================================
   FUNCTION CONTENT
   ========================================================= */

.research-function-content {

    display:
        flex;

    flex-direction:
        column;

}


.research-function-kicker {

    display:
        block;

    margin-bottom:
        11px;

    color:
        var(--research-cyan);

    font-size:
        8px;

    line-height:
        1.3;

    font-weight:
        700;

    letter-spacing:
        1.8px;

    text-transform:
        uppercase;

}


.research-function-content h3 {

    margin:
        0 0 12px;

    color:
        var(--research-blue);

    font-size:
        20px;

    line-height:
        1.2;

    letter-spacing:
        -.4px;

    font-weight:
        700;

}


.research-function-content p {

    max-width:
        650px;

    margin:
        0;

    color:
        var(--research-text);

    font-size:
        12px;

    line-height:
        1.7;

}


/* =========================================================
   CLOSING
   ========================================================= */

.research-closing {

    position:
        relative;

    padding:
        110px 0;

    background:
        var(--research-blue);

    overflow:
        hidden;

}


.research-closing-kicker {

    display:
        block;

    margin-bottom:
        20px;

    color:
        var(--research-cyan);

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        2px;

}


.research-closing h2 {

    position:
        relative;

    z-index:
        2;

    max-width:
        900px;

    margin:
        0;

    color:
        #FFFFFF;

    font-size:
        clamp(40px, 5vw, 70px);

    line-height:
        .98;

    letter-spacing:
        -3px;

    font-weight:
        750;

}


.research-closing h2 span {

    display:
        block;

    color:
        var(--research-light-blue);

}


.research-closing-mark {

    position:
        absolute;

    right:
        6%;

    bottom:
        15px;

    color:
        rgba(126, 200, 227, .07);

    font-size:
        clamp(90px, 12vw, 180px);

    line-height:
        .8;

    font-weight:
        800;

    letter-spacing:
        -8px;

}


/* =========================================================
   1200px
   ========================================================= */

@media (max-width: 1200px) {

    .research-container,
    .research-hero-inner {

        width:
            calc(100% - 80px);

    }


    .research-members-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


/* =========================================================
   900px
   ========================================================= */

@media (max-width: 900px) {

    .research-container,
    .research-hero-inner {

        width:
            calc(100% - 40px);

    }


    .research-hero,
    .research-hero-inner {

        min-height:
            400px;

    }


    .research-hero-content {

        padding:
            50px 0 60px;

    }


    .research-hero h1 {

        font-size:
            clamp(48px, 8vw, 72px);

    }


    .research-section-heading {

        grid-template-columns:
            1fr;

        gap:
            14px;

    }


    .research-overview-content {

        margin-left:
            0;

        grid-template-columns:
            1px
            minmax(0, 1fr);

    }


    .research-members-grid {

        margin-left:
            0;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .research-function-grid {

        margin-left:
            0;

    }

}


/* =========================================================
   650px
   ========================================================= */

@media (max-width: 650px) {

    .research-container,
    .research-hero-inner {

        width:
            calc(100% - 30px);

    }


    .research-hero,
    .research-hero-inner {

        min-height:
            440px;

    }


    .research-hero-content {

        padding:
            40px 0 55px;

    }


    .research-back-button {

        margin-bottom:
            24px;

        padding:
            8px 12px;

        font-size:
            10px;

    }


    .research-back-arrow {

        font-size:
            15px;

    }


    .research-eyebrow {

        font-size:
            8px;

        letter-spacing:
            1.7px;

    }


    .research-hero h1 {

        font-size:
            50px;

        letter-spacing:
            -2.5px;

    }


    .research-hero p {

        font-size:
            12px;

    }


    .research-hero-number {

        font-size:
            100px;

    }


    .research-overview,
    .research-personnel,
    .research-functions {

        padding:
            70px 0;

    }


    .research-section-heading {

        margin-bottom:
            35px;

    }


    .research-section-heading h2 {

        font-size:
            38px;

        letter-spacing:
            -1.5px;

    }


    .research-section-heading p {

        font-size:
            13px;

    }


    /* =====================================================
       OVERVIEW
       ===================================================== */

    .research-overview-text {

        padding-left:
            22px;

    }


    .research-overview-text p {

        font-size:
            13px;

    }


    /* =====================================================
       PERSONNEL
       ===================================================== */

    .research-members-grid {

        grid-template-columns:
            1fr;

        gap:
            12px;

    }


    .research-member-image {

        height:
            300px;

    }


    .research-member-content {

        min-height:
            0;

        padding:
            20px;

    }


    .research-member-content h3 {

        font-size:
            15px;

    }


    /* =====================================================
       CORE FUNCTIONS
       ===================================================== */

    .research-function-grid {

        grid-template-columns:
            1fr;

        gap:
            12px;

        margin-left:
            0;

    }


    .research-function-card {

        min-height:
            175px;

        padding:
            24px;

    }


    .research-function-number {

        margin-bottom:
            22px;

    }


    .research-function-content h3 {

        font-size:
            18px;

    }


    .research-function-content p {

        font-size:
            12px;

    }


    /* =====================================================
       CLOSING
       ===================================================== */

    .research-closing {

        padding:
            80px 0;

    }


    .research-closing h2 {

        font-size:
            42px;

        letter-spacing:
            -1.5px;

    }

}