/**
 * Facilities Section Styles
 * Path: assets/css/facilities.css
 */

:root {
    --bhn-primary-green: #0a5628;
    --bhn-accent-orange: #ea580c;
    --bhn-badge-green: #04471e;
    --bhn-text-dark: #1b2e23;
    --bhn-text-muted: #5c6e64;
    --bhn-bg-light: #f4f7f4;
    --bhn-service-bg: #edf2ee;
    --bhn-card-border: #0a5628;
    --bhn-white: #ffffff;
}

.facilities-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.facilities-section {
    position: relative;
    padding: 85px 20px 95px 20px;
    background-color: var(--bhn-bg-light);
    overflow: hidden;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--bhn-text-dark);
}

.facilities-container {
    max-width: 1260px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Dots and Curved Decorative Background Elements */
.dots-pattern {
    position: absolute;
    width: 90px;
    height: 90px;
    background-image: radial-gradient(var(--bhn-primary-green) 2.2px, transparent 2.2px);
    background-size: 11px 11px;
    opacity: 0.22;
    z-index: 1;
}

.dots-top-left { top: 30px; left: 30px; }
.dots-bottom-right { bottom: 50px; right: 30px; }

.bg-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.bg-shape-left {
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(10, 86, 40, 0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.bg-shape-right {
    top: -50px;
    right: -50px;
    width: 380px;
    height: 380px;
    border-radius: 0 0 0 100%;
    border: 2px solid rgba(10, 86, 40, 0.12);
}

/* HEADER STYLING (CENTERED) */
.facilities-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--bhn-primary-green);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.facilities-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--bhn-primary-green);
    line-height: 1.22;
    margin-bottom: 14px;
}

.facilities-header h2 span {
    color: var(--bhn-accent-orange);
}

.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 18px 0;
}

.header-divider .line {
    width: 55px;
    height: 2px;
    background-color: var(--bhn-accent-orange);
}

.header-divider i {
    color: var(--bhn-accent-orange);
    font-size: 15px;
}

.facilities-header p {
    color: var(--bhn-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* 4-COLUMN CARD GRID */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 45px;
}

/* CARD LAYOUT */
.facility-card {
    background: var(--bhn-white);
    border-radius: 20px;
    border: 2.5px solid var(--bhn-card-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* IMAGE & CIRCULAR BADGE OVERLAY */
.facility-image-wrap {
    position: relative;
    height: 210px;
}

.facility-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.facility-badge-icon {
    position: absolute;
    bottom: -27px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background-color: var(--bhn-badge-green);
    border: 3.5px solid var(--bhn-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bhn-white);
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

/* CARD CONTENT */
.facility-card-body {
    padding: 38px 18px 22px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.facility-card-body h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--bhn-primary-green);
    margin-bottom: 6px;
}

.facility-location {
    font-size: 13px;
    font-weight: 600;
    color: var(--bhn-accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.facility-desc {
    font-size: 13px;
    color: var(--bhn-text-muted);
    line-height: 1.55;
    margin-bottom: 22px;
    flex-grow: 1;
}

/* GREY MINI SERVICES BAR WITH 4 ICONS */
.facility-services-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background-color: var(--bhn-service-bg);
    border-radius: 12px;
    padding: 12px 6px;
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.service-item i {
    font-size: 17px;
    color: var(--bhn-badge-green);
}

.service-item span {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--bhn-text-dark);
    line-height: 1.15;
    text-align: center;
}

/* LEARN MORE BUTTON */
.facility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bhn-primary-green);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.facility-btn i {
    color: var(--bhn-accent-orange);
    font-size: 13.5px;
}

.facility-btn:hover {
    color: var(--bhn-accent-orange);
}

/* FOOTER BUTTON */
.facilities-footer {
    text-align: center;
}

.explore-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--bhn-badge-green);
    color: var(--bhn-white);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(4, 71, 30, 0.25);
    transition: background-color 0.3s ease;
}

.explore-all-btn i {
    color: var(--bhn-white);
}

.explore-all-btn:hover {
    background-color: var(--bhn-primary-green);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1100px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .facilities-header h2 {
        font-size: 28px;
    }
}