/* ==========================================================================
   About Hospital & College Page Styles (Figma Spec Matched Node 157:205)
   ========================================================================== */

/* 1. Page Hero Banner (Node 164:620 - 1539px x 294px) */
.gr-page-banner-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 31px;
    box-sizing: border-box;
    position: relative;
}

.gr-page-banner {
    position: relative;
    width: 100%;
    height: 294px;
    overflow: hidden;
    background-color: #1E1E1E;
}

.gr-page-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gr-page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 50px 50px 0;
    box-sizing: border-box;
}

/* Banner Title (Figma Node 164:617: 30px, Regular 400, #FFFFFF) */
.gr-page-banner-title {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.22;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0;
}

/* 2. Main About Section Container (Well inside compared to banner: 80px inset) */
.gr-about-page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 70px 80px 0 80px;
    box-sizing: border-box;
}

.gr-about-overview-row {
    margin-bottom: 20px;
}

.gr-about-overview-left {
    padding-right: 48px;
}

/* Section Headline (Figma Node 164:614: 56px, Regular 400, LH 1.08) */
.gr-about-main-headline {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(32px, 3.5vw, 56px);
    font-weight: 400;
    line-height: 1.08;
    color: #000000;
    letter-spacing: -0.02em;
    margin: 0 0 40px 0;
    max-width: 860px;
}

.gr-about-main-headline .gr-text-blue {
    color: var(--gr-primary-blue, #2A3EC0);
    display: inline;
}

/* Overview Paragraphs (Figma Node 164:621: 16.5px, Regular 400, LH 1.5) */
.gr-about-text-content {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(14.5px, 1.05vw, 16.5px);
    font-weight: 400;
    line-height: 1.5;
    color: #1E1E1E;
    max-width: 880px;
}

.gr-about-text-content p {
    margin-bottom: 22px;
}

.gr-about-text-content p:last-child {
    margin-bottom: 0;
}

/* Staggered Equal-Sized Image Cards (Right Column - Reduced & Proportional) */
.gr-about-overview-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.gr-about-images-wrapper {
    position: relative;
    width: 380px;
    max-width: 100%;
    height: 290px;
    display: block;
}

.gr-about-img-card {
    position: absolute;
    width: 190px;
    height: 190px;
    overflow: hidden;
    background-color: #E2E4E8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gr-about-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Top Left Image (OT Room - Node 171:941) */
.gr-about-img-1 {
    top: 0;
    left: 0;
    z-index: 1;
}

/* Bottom Right Image (Microscope Researcher - Node 164:615) */
.gr-about-img-2 {
    top: 95px;
    left: 190px;
    z-index: 2;
}

/* 3. Section Hairline Divider (Node 164:635) */
.gr-about-page-divider {
    border: none;
    height: 1px;
    background-color: #E2E4E8;
    width: 100%;
    max-width: 1440px;
    margin: 50px auto 40px auto;
    opacity: 1;
}

/* 4. Large Commitment Manifesto & Illustration (Nodes 164:663 & 167:669) */
.gr-commitment-section {
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.gr-commitment-text {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(22px, 2.5vw, 38px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.015em;
    max-width: 1320px;
    margin: 0 auto 30px auto;
    text-align: center;
    background: linear-gradient(90deg, #2A3EC0 0%, #C7243A 80%, #ED2225 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Line Art Doctor/Patient Illustration (Meeting Mission/Vision Cards) */
.gr-commitment-illustration {
    width: 100%;
    max-width: 480px;
    margin: 10px auto -3px 0;
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
    z-index: 2;
    position: relative;
}

.gr-commitment-illustration img {
    width: 100%;
    max-width: 460px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 5. Mission & Vision Dual Cards (#F6F7FF - Nodes 164:664 & 164:665) */
.gr-mission-vision-section {
    padding: 0 0 60px 0;
    position: relative;
    z-index: 1;
}

.gr-mv-card {
    background-color: #F6F7FF;
    padding: 56px 48px 50px 48px;
    height: 100%;
    min-height: 440px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Mission / Vision Titles (60px, Regular 400, #2A3EC0) */
.gr-mv-title {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(34px, 3.8vw, 60px);
    font-weight: 400;
    line-height: 1.08;
    color: var(--gr-primary-blue, #2A3EC0);
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
}

/* Mission / Vision Text (16.5px, Regular 400, LH 1.5) */
.gr-mv-desc {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(14.5px, 1.05vw, 16.5px);
    font-weight: 400;
    line-height: 1.5;
    color: #1E1E1E;
    margin: 0;
}

.gr-mv-desc p {
    margin-bottom: 20px;
}

.gr-mv-desc p:last-child {
    margin-bottom: 0;
}

/* Ensure Footer blue card sits on top of overlapping images and wrapper top is transparent */
.gr-footer-wrapper {
    background: linear-gradient(180deg, transparent 0px, transparent 85px, #1E1E1E 85px, #1E1E1E 100%) !important;
    position: relative;
    z-index: 10;
}

.gr-footer-blue-card {
    position: relative;
    z-index: 12;
}

/* Responsive Media Queries Synchronized with Header & Inset Guides */
@media (max-width: 1560px) {
    .gr-page-banner-section {
        padding-left: 24px;
        padding-right: 24px;
    }
    .gr-about-page-container {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 1279px) {
    .gr-page-banner-section {
        padding-left: 12px;
        padding-right: 12px;
    }
    .gr-about-page-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 991px) {

    .gr-about-images-wrapper {
        margin-top: 30px;
        height: auto;
        display: flex;
        gap: 16px;
        position: static;
    }

    .gr-about-img-card {
        position: static;
        width: calc(50% - 8px);
        height: 200px;
    }
}

@media (max-width: 768px) {
    .gr-page-banner-section,
    .gr-about-page-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gr-page-banner {
        height: 200px;
    }
    .gr-about-main-headline{text-align: center;}
    .gr-about-text-content p{text-align: justify;}

    .gr-page-banner-overlay {
        padding: 24px;justify-content: center;
    }
    .gr-about-overview-left {
    padding-right:calc(var(--bs-gutter-x) * .5);
}

    .gr-page-banner-title {
        font-size: 24px;
    }

    .gr-about-page-container {
        padding-top: 40px;
        padding-bottom:0px;
    }

    .gr-mv-card {
        padding: 36px 24px; text-align: center;
    }
    .gr-mission-vision-section {padding: 0 0 30px 0}


}
