 :root {
        --gold-color: #c5a473;
        --dark-bg: #1a1a1a;
        --card-bg: rgba(6, 16, 31, 0.85);
        --border-color: #333333;
        --text-light: #e0e0e0;
        --text-dark: #cccccc;
    }
    
    /* Apply a consistent font scheme */
    .facilities-content {
        font-family: 'Montserrat', sans-serif; /* A clean sans-serif for body text */
    }
    .facilities-content h1, 
    .facilities-content h3, 
    .facilities-content h4 {
        font-family: 'Times New Roman', Times, serif; /* An elegant serif for headings */
    }
    
    /* --- Main Header Styling --- */
    .facilities-header {
        text-align: center;
        margin: 2rem 0 4rem 0; /* More vertical space */
        position: relative;
    }
    .facilities-header2 {
        text-align: center;
        margin: 2rem 0 4rem 0; /* More vertical space */
        position: relative;
    }
    .facilities-header h1 {
        font-size: 2.5rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 4px; /* More spacing for a premium feel */
        color: var(--gold-color);
        margin: 0 1rem;
        display: inline-block;
        position: relative;
        --header-line-gap:14px; /* jarak teks ke garis */
    }
    .facilities-header2 h1 {
        font-size: 2.5rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 4px; /* More spacing for a premium feel */
        color: var(--gold-color);
        margin: 0 1rem;
        display: inline-block;
        position: relative;
        --header-line-gap:14px; /* jarak teks ke garis */
    }
    
    /* Nonaktifkan garis container lama (dipindah ke h1) */
    .facilities-header::before,
    .facilities-header::after,
    .facilities-header2::before,
    .facilities-header2::after { display:none !important; }
    /* Garis baru ala product: pendek & beri gap dari teks */
    .facilities-header h1::before,
    .facilities-header h1::after,
    .facilities-header2 h1::before,
    .facilities-header2 h1::after {
        content:'';
        position:absolute;
        top:50%;
        height:1px;
        background-color: var(--gold-color);
        opacity:.5;
        transform:translateY(-50%) scaleX(1);
        width:200px; /* sama seperti product */
    }
    .facilities-header h1::before,
    .facilities-header2 h1::before { right:calc(100% + var(--header-line-gap)); }
    .facilities-header h1::after,
    .facilities-header2 h1::after { left:calc(100% + var(--header-line-gap)); }
    
    /* --- Intro Text --- */
    .intro-text {
        margin-bottom: 4rem;
        line-height: 1.8;
        font-size: 1.1rem;
        color: var(--text-light);
        text-align: center;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* --- Facility Card Styling --- */
    .facility-container {
        margin-bottom: 2rem;
    }
    
    .facility-card {
        display: flex;
        height: 150px;
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow: hidden;
    }

    .facility-card:hover {
        transform: translateY(-8px);
        border-color: var(--gold-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .facility-image {
        width: 40%;
        overflow: hidden;
        filter: saturate(0.8); 
        transition: filter 0.4s ease;
    }

    .facility-card:hover .facility-image {
        filter: saturate(1);
    }
    
    .facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    transition: transform 0.4s ease;
    }

    .facility-card:hover .facility-image img {
        transform: scale(1.05);
    }
    
    .facility-info {
        width: 60%;
        padding: 2rem;
        background-color: transparent; /* Remove the old blue */
        color: var(--text-light);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .facility-info h3 {
        color: var(--gold-color);
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
        letter-spacing: 1px;
    }
    
    /* --- Additional Facilities Section --- */
    .additional-facilities {
        background-color: var(--card-bg);
        color: var(--text-dark);
        padding: 3rem;
        border-top: 2px solid var(--gold-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .additional-facilities > p {
        font-size: 1.1rem;
        color: var(--text-light);
        margin-bottom: 3rem;
    }
    
    .additional-facilities h4 {
        color: var(--gold-color);
        font-size: 1.3rem;
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        letter-spacing: 1px;
    }
    
    .additional-facilities p {
        font-size: 0.95rem;
        line-height: 1.8;
        margin-bottom: 1rem;
        border-left: 2px solid var(--border-color);
        padding-left: 1rem;
    }
    
    /* --- Responsive Design (granular breakpoints & orientation) --- */
    /* XL ≥1200px (default base + slight upscale) */
    @media (min-width: 1200px) {
        .facilities-header h1, .facilities-header2 h1 { font-size: 3rem; letter-spacing: 5px; }
    }
    /* LG ≥992px <1200px */
    @media (min-width: 992px) and (max-width: 1199.98px) {
        .facilities-header h1, .facilities-header2 h1 { font-size: 2.7rem; letter-spacing: 4px; }
        .facilities-header h1::before, .facilities-header h1::after {width: 180px;}
    .facilities-header2 h1::before, .facilities-header2 h1::after { width:140px; }
    }
    /* MD ≥768px <992px */
    @media (min-width: 768px) and (max-width: 991.98px) {
        .facilities-header h1, .facilities-header2 h1 { font-size: 2.3rem; letter-spacing: 4px; }
        .facilities-header h1::before, .facilities-header h1::after {width: 120px;}
    .facilities-header2 h1::before, .facilities-header2 h1::after { width:70px; }
    }
    /* SM ≥576px <768px */
    @media (min-width: 576px) and (max-width: 767.98px) {
        .facilities-header h1, .facilities-header2 h1 { font-size: 2rem; letter-spacing: 3.5px; }
        .facilities-header h1::before, .facilities-header h1::after {width: 50px;}
    .facilities-header2 h1::before, .facilities-header2 h1::after { width:50px; }
    .facility-info h3 { font-size:1.35rem; }
    .facility-image { height:220px; }
    .facility-info { padding:1rem 0.9rem 0.9rem; }
    }
    /* XS <576px */
    @media (max-width: 575.98px) {
        .facilities-header h1, .facilities-header2 h1 { font-size: 1.65rem; letter-spacing: 3px; }
    .facilities-header h1::before, .facilities-header h1::after {width: 50px;}
    .facilities-header2 h1::before, .facilities-header2 h1::after { width:10px; --header-line-gap:0px;}
    .facility-info h3 { font-size:1.2rem; }
    .facility-image { height:200px; }
    .facility-info { padding:0.9rem 0.85rem 0.85rem; }
    .facility-card { border-radius:8px; }
    }

/* Popup Modal */
.facility-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.facility-modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

.facility-modal-content {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin-top: 70px;
}

.facility-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.facility-modal-close:hover,
.facility-modal-close:focus {
    color: var(--gold-color);
    text-decoration: none;
}

.facility-modal-caption {
    display: block;
    width: 100%;
    max-width: 500px;
    text-align: center;
    color: #fff;
    padding: 12px 20px;
    margin-top: 1rem;
  
}

/* Responsive popup */
@media (max-width: 768px) {
    .facility-modal-close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }
    
    .facility-modal-wrapper {
        max-width: 95%;
    }
    
    .facility-modal-content {
        max-height: 60vh;
    }
    
    .facility-modal-caption {
        font-size: 1rem;
        padding: 10px 15px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .facility-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .facility-modal-wrapper {
        max-width: 98%;
    }
    
    .facility-modal-content {
        max-height: 55vh;
    }
    
    .facility-modal-caption {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

    /* Shared layout changes for tablets & down */
    @media (max-width: 991.98px) {
        .facility-card { flex-direction: column; height: auto; min-height: 0; }
        .facility-image, .facility-info { width: 100%; }
        .facility-image { height: 240px; border-radius: 8px 8px 0 0; margin-bottom: 0; overflow: hidden; }
        .facility-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px 8px 0 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        .facility-info { padding: 1.2rem 1rem 1rem 1rem; }
    }
    /* Orientation specific tweaks */
    @media (orientation: portrait) and (max-width: 767.98px) {
        .facilities-header { margin: 1.5rem 0 3rem 0; }
        .facilities-header2 { margin: 2.5rem 0 3.2rem 0; }
        .facility-image { height: 220px; }
    }
    @media (orientation: landscape) and (max-width: 991.98px) {
        .facilities-header h1, .facilities-header2 h1 { font-size: 1.85rem; }
        .facilities-header { margin: 1.2rem 0 2.5rem 0; }
        .facilities-header2 { margin: 2rem 0 2.5rem 0; }
        .facility-image { height: 200px; }
    }