/*
 * Facilities Page – Icon-led sections, modern card design (futuristic)
 * Bootstrap 5 | Responsive | Distinct from other pages
 */

.facilities-page-wrap {
    --fac-accent: #4f46e5;
    --fac-bg: #eef2ff;
}

.facilities-page-wrap .inner-page-hero {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #4f46e5 100%);
}
.facilities-page-wrap .inner-page-hero-sub { color: rgba(255,255,255,0.85); }

.facilities-page-wrap .inner-content-section {
    background: var(--fac-bg);
    padding: 2.5rem 0 4rem;
}

/* Anchor nav – pill style */
.facilities-page-wrap .anchor-nav {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.15);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 90px;
    z-index: 10;
}
.facilities-page-wrap .anchor-nav .nav-link {
    color: #4338ca;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.facilities-page-wrap .anchor-nav .nav-link:hover {
    background: rgba(79, 70, 229, 0.12);
    color: #312e81;
}

/* Facility card – icon strip left */
.fac-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.12);
    margin-bottom: 2rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 80px 1fr;
    transition: box-shadow 0.3s, transform 0.3s;
}
.fac-card:hover {
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.12);
    transform: translateY(-2px);
}
@media (max-width: 767.98px) {
    .fac-card { grid-template-columns: 1fr; }
}
.fac-card-icon {
    background: linear-gradient(180deg, var(--fac-accent), #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    padding: 1.5rem 0.5rem;
}
@media (max-width: 767.98px) {
    .fac-card-icon {
        flex-direction: row;
        padding: 1rem;
        font-size: 1.5rem;
    }
}
.fac-card-body {
    padding: 1.75rem 2rem;
}
.fac-card-body .section-heading {
    color: #312e81;
    border-bottom: none;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}
.fac-card-body .fac-sub {
    color: var(--fac-accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.fac-card-body p { color: #475569; line-height: 1.7; margin-bottom: 0.75rem; font-size: 0.95rem; }
.fac-card-body ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.fac-card-body ul li { margin-bottom: 0.35rem; line-height: 1.6; color: #475569; font-size: 0.9rem; }
.fac-card-body .lab-label {
    display: inline-block;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.facilities-page-wrap .photo-placeholder {
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    border: 2px dashed rgba(79, 70, 229, 0.3);
}
.facilities-page-wrap .photo-grid img { border-radius: 12px; transition: transform 0.3s; }
.facilities-page-wrap .photo-grid img:hover { transform: scale(1.02); }

/* Keep content-card for backward compatibility when not using fac-card */
.facilities-page-wrap .content-card {
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow: 0 4px 24px rgba(79, 70, 229, 0.06);
}

@media (max-width: 575.98px) {
    .facilities-page-wrap .anchor-nav { position: static; }
    .fac-card-body { padding: 1.25rem 1.5rem; }
}
