/* =========================================================
   Facilities page stylesheet
   Imports the global design system then adds page-specific
   sections: page-hero (facilities photo), gallery grid
   ========================================================= */

@import url("components.css");
@import url("style.css");


/* =========================================================
   Page Hero (compact inner-page version — same pattern as
   about.css, own background)
   ========================================================= */

.page-hero {
    height: 70vh !important;
    min-height: 420px;
    background: url("/assets/hero/hero-classroom2.webp") no-repeat center center / cover !important;
}

.page-hero .hero-overlay {
    padding: calc(var(--nav-height) + 2.5rem) 0 4rem;
    display: flex;
    align-items: center;
    background-color: #353535bb;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .85);
    transition: color .2s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.crumb-sep {
    opacity: .5;
}

.crumb-current {
    color: #fff;
    font-weight: 600;
}

.text-em {
    color: var(--c-red);
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-top: 28px;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
    font-weight: 500;
}

.hero-meta-item i {
    color: var(--c-green);
}


/* =========================================================
   Gallery grid ("Inside Our Centre")
   Reuses .life-strip-item for the tile treatment (radius,
   shadow, hover zoom) already defined in style.css — this
   file only adds the grid layout and one featured tile.
   ========================================================= */

.facility-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 14px;
}

.facility-gallery .life-strip-item {
    aspect-ratio: 4/3;
}

.facility-gallery .gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.facility-gallery .gallery-featured .life-strip-item {
    aspect-ratio: auto;
    height: 100%;
}

@media (max-width: 767.98px) {
    .facility-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .facility-gallery .gallery-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .facility-gallery .gallery-featured .life-strip-item {
        aspect-ratio: 16/10;
        height: auto;
    }
}


/* =========================================================
   Safety & Health band — same feature-card component, given
   a touch more visual weight since the subject matters more
   ========================================================= */

.safety-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 2.5rem;
}

.safety-note i {
    color: var(--c-secondary);
    font-size: 1.1rem;
    margin-top: 2px;
}

.safety-note p {
    margin: 0;
    color: var(--c-secondary-soft);
    font-size: .92rem;
}


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

@media (max-width: 991.98px) {
    .page-hero {
        height: auto;
        min-height: 380px;
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .page-hero .hero-overlay {
        padding: calc(var(--nav-height) + 1.5rem) 0 3rem;
    }

    .hero-meta-row {
        gap: 14px 20px;
        margin-top: 22px;
    }

    .facility-gallery {
        gap: 10px;
    }
}




@media (max-height: 1000px) {
    
    .page-hero .hero-overlay {
        padding: calc(var(--nav-height) + 1.5rem) 0 2.5rem;
    }
    .page-hero h1 {
        font-size: clamp(1.9rem, 2.5rem + 1.6vw, 3.8rem);
    }
    .hero-meta-row {
        margin-top: 18px;
    }
}

@media (max-height: 720px) {
    .page-hero{
        height: 75vh !important;
    }
    .page-hero h1 {
        font-size: clamp(1.9rem, 2.5rem + 1.6vw, 2.8rem);
    }
}