/* =====================================================
   PAGE
===================================================== */

.fasilitas-page,
.fasilitas-detail-page{
    padding:40px 0 80px;
    background:#f8fafc;
}

/* =====================================================
   HERO
===================================================== */

.fasilitas-hero{
    background:
        linear-gradient(
            135deg,
            #0f2d5c,
            #18468f
        );

    border-radius:24px;

    padding:50px;

    margin-bottom:45px;

    color:#fff;

    position:relative;
    overflow:hidden;
}

.fasilitas-hero::before{
    content:'';

    position:absolute;

    top:-120px;
    right:-120px;

    width:320px;
    height:320px;

    border-radius:50%;

    background:rgba(255,255,255,.08);
}

.fasilitas-hero::after{
    content:'';

    position:absolute;

    bottom:-90px;
    left:-90px;

    width:220px;
    height:220px;

    border-radius:50%;

    background:rgba(255,255,255,.05);
}

.fasilitas-hero .hero-content{
    position:relative;
    z-index:2;
}

.fasilitas-hero .hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;

    padding:8px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.15);

    margin-bottom:18px;

    font-size:13px;
    font-weight:600;

    color:#fff;
}

.fasilitas-hero h1{
    font-size:42px;
    font-weight:700;

    line-height:1.3;

    margin-bottom:15px;
}

.fasilitas-hero p{
    max-width:760px;

    line-height:1.9;

    font-size:16px;

    opacity:.95;

    margin:0;
}

/* =====================================================
   GRID
===================================================== */

.fasilitas-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fill,minmax(320px,1fr));

    gap:24px;
}

/* =====================================================
   CARD
===================================================== */

.fasilitas-card{
    display:block;

    text-decoration:none;

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    border:1px solid #e5e7eb;

    transition:.3s ease;

    color:inherit;
}

.fasilitas-card:hover{
    transform:translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.08);
}

/* =====================================================
   IMAGE
===================================================== */

.fasilitas-image{
    height:250px;
    overflow:hidden;
}

.fasilitas-image img{
    width:100%;
    height:100%;
    object-fit:cover;

    transition:.4s ease;
}

.fasilitas-card:hover img{
    transform:scale(1.06);
}

/* =====================================================
   PLACEHOLDER
===================================================== */

.fasilitas-placeholder{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            135deg,
            #f1f5f9,
            #e2e8f0
        );

    color:#94a3b8;
}

.fasilitas-placeholder i{
    font-size:60px;
}

/* =====================================================
   CONTENT
===================================================== */

.fasilitas-body{
    padding:22px;
}

.fasilitas-body h3{
    margin-bottom:10px;

    font-size:22px;

    color:#0f172a;
}

.fasilitas-body p{
    margin:0;

    color:#64748b;

    line-height:1.8;
}

/* =====================================================
   DETAIL HEADER
===================================================== */

.detail-header{
    margin-bottom:25px;
}

.back-link{
    display:inline-flex;
    align-items:center;
    gap:10px;

    text-decoration:none;

    color:#2563eb;

    font-weight:600;

    margin-bottom:15px;

    transition:.3s;
}

.back-link:hover{
    color:#1d4ed8;

    transform:translateX(-4px);
}

.detail-header h1{
    margin:0;

    font-size:38px;
    font-weight:700;

    color:#0f172a;
}

/* =====================================================
   COVER
===================================================== */

.cover-image{
    overflow:hidden;

    border-radius:24px;

    margin-bottom:30px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.08);
}

.cover-image img{
    width:100%;
    height:520px;

    object-fit:cover;

    display:block;
}

/* =====================================================
   DETAIL CONTENT
===================================================== */

.detail-content{
    background:#fff;

    border-radius:24px;

    padding:35px;

    margin-bottom:30px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.05);

    color:#334155;

    line-height:1.9;
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4{
    color:#0f172a;
    margin-bottom:15px;
}

.detail-content p{
    margin-bottom:18px;
}

.detail-content img{
    max-width:100%;
    height:auto;
}

.detail-content ul,
.detail-content ol{
    padding-left:20px;
}

.detail-content table{
    width:100%;
    border-collapse:collapse;
}

.detail-content table td,
.detail-content table th{
    border:1px solid #e5e7eb;
    padding:10px;
}

/* =====================================================
   GALLERY
===================================================== */

.gallery-section{
    background:#fff;

    border-radius:24px;

    padding:35px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.05);
}

.gallery-header{
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:25px;
}

.gallery-header h2{
    margin:0;

    font-size:26px;

    color:#0f172a;
}

.gallery-count{
    padding:8px 16px;

    border-radius:999px;

    background:#eef2ff;

    color:#2563eb;

    font-size:13px;
    font-weight:600;
}

/* =====================================================
   PREVIEW
===================================================== */

.gallery-preview{
    background:#f8fafc;
    border-radius:20px;
    overflow:hidden;

    margin-bottom:20px;

    border:1px solid #e2e8f0;
}

.gallery-preview img{
    width:100%;
    height:380px;

    object-fit:cover;
    object-position:center;

    display:block;
}

/* =====================================================
   THUMBNAILS
===================================================== */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);

    gap:16px;

    margin-top:8px;
}

.gallery-item{
    padding:0;

    border:none;

    background:none;

    cursor:pointer;

    overflow:hidden;

    border-radius:14px;

    transition:.3s;
}

.gallery-item img{
    width:100%;
    height:100px;

    object-fit:cover;

    display:block;

    transition:.3s ease;
}

.gallery-item:hover img{
    transform:scale(1.05);
}

.gallery-item.active{
    border-radius:14px;

    box-shadow:
        0 0 0 4px #2563eb,
        0 12px 24px rgba(37,99,235,.25);

    transform:translateY(-2px);
}

/* =====================================================
   PREVIEW ANIMATION
===================================================== */

.gallery-preview img.fade{
    animation:galleryFade .25s ease;
}

@keyframes galleryFade{

    from{
        opacity:.4;
        transform:scale(.98);
    }

    to{
        opacity:1;
        transform:scale(1);
    }

}

/* =====================================================
   TABLET
===================================================== */

@media(max-width:991px){

    .fasilitas-hero h1{
        font-size:34px;
    }

    .detail-header h1{
        font-size:32px;
    }

    .cover-image img{
        height:420px;
    }

.gallery-preview img{
    height:320px;
}

    .gallery-grid{
        grid-template-columns:repeat(4,1fr);
    }

}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:768px){

    .fasilitas-page,
    .fasilitas-detail-page{
        padding:25px 0 50px;
    }

    .fasilitas-hero{
        padding:30px;
        margin-bottom:30px;
    }

    .fasilitas-hero h1{
        font-size:28px;
    }

    .fasilitas-hero p{
        font-size:14px;
    }

    .fasilitas-grid{
        grid-template-columns:1fr;
    }

    .detail-header h1{
        font-size:28px;
    }

    .cover-image img{
        height:120px;
    }

    .detail-content{
        padding:22px;
    }

    .gallery-section{
        padding:20px;
    }

    .gallery-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .gallery-preview img{
        height:220px;
    }

    .gallery-grid{
        grid-template-columns:repeat(3,1fr);
        gap:10px;
    }

    .gallery-item img{
        height:75px;
    }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media(max-width:480px){

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-item img{
        height:90px;
    }

}

.hero-back-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;

    margin-top:25px;

    padding:12px 22px;

    border-radius:12px;

    background:rgba(255,255,255,.15);

    color:#fff;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

.hero-back-btn:hover{
    background:rgba(255,255,255,.25);
    color:#fff;
}