﻿/* ===========================
   GLOBAL
=========================== */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--body-color);
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================
   MAIN LAYOUT
=========================== */

.facility-wrapper {
    width: 92%;
    max-width: 1400px;
    margin: 0px auto 0;
    padding: 60px 0 0;
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar {
    width: 270px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    align-self: flex-start;
}

    .sidebar ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sidebar li {
        margin-bottom: 12px;
    }

    .sidebar a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        padding: 15px 22px;
        background: var(--primary-color);
        color: var(--text-white);
        border-left: 5px solid var(--secondary-color);
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        transition: .35s;
    }

        .sidebar a:hover {
            background: var(--btn-secondary-bg);
            color: var(--primary-color);
            transform: translateX(8px);
        }

        .sidebar a.active {
            background: var(--btn-secondary-bg);
            color: var(--primary-color);
            box-shadow: 0 8px 25px rgba(0,0,0,.18);
        }

/* ===========================
   MOBILE DROPDOWN
=========================== */

.facility-dropdown {
    display: none;
    position: relative;
    width: 100%;
}

.dropdown-btn {
    width: 100%;
    padding: 15px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: .35s;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

    .dropdown-btn:hover {
        background: var(--btn-secondary-bg);
        color: var(--primary-color);
    }

    .dropdown-btn i {
        transition: .3s;
        font-size: 14px;
    }

.dropdown-menu {
    display: none;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

    .dropdown-menu.show {
        display: block;
        animation: dropdownFade .3s ease;
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        padding: 15px 22px;
        background: var(--primary-color);
        color: var(--text-white);
        border-left: 5px solid var(--secondary-color);
        font-size: 16px;
        font-weight: 600;
        transition: .35s;
    }

        .dropdown-menu a + a {
            border-top: 1px solid rgba(255,255,255,.08);
        }

        .dropdown-menu a:hover {
            background: var(--btn-secondary-bg);
            color: var(--primary-color);
            transform: translateX(8px);
        }

        .dropdown-menu a.active {
            background: var(--btn-secondary-bg);
            color: var(--primary-color);
        }

@keyframes dropdownFade {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   CONTENT
=========================== */

.content {
    flex: 1;
}

.content-box {
    background: var(--body-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

    .content-box img {
        width: 100%;
        height: 450px;
        object-fit: cover;
        display: block;
    }

.content-body {
    padding: 40px;
}

    .content-body h2,
    .content-body h4 {
        color: var(--primary-color);
        font-size: 36px;
        margin-bottom: 18px;
        position: relative;
    }

        .content-body h2::after,
        .content-body h4::after {
            content: "";
            width: 70px;
            height: 4px;
            background: var(--secondary-light);
            display: block;
            margin-top: 10px;
        }

    .content-body p {
        text-align: justify;
        margin-bottom: 20px;
        font-size: 16px;
        color: var(--text-paragraph);
    }

.facility-section {
    padding-bottom: 70px;
    scroll-margin-top: 120px;
}

.facilityimg {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* ===========================
   TABLET
=========================== */

@media (max-width:992px) {

    .facility-wrapper {
        gap: 25px;
    }

    .sidebar {
        width: 230px;
    }

    .content-box img {
        height: 320px;
    }

    .facilityimg {
        height: 420px;
    }
}

/* ===========================
   MOBILE
=========================== */

@media (max-width:768px) {

    .facility-wrapper {
        display: block;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

        .sidebar ul {
            display: none;
        }

    .facility-dropdown {
        display: block;
    }

    .content {
        width: 100%;
    }

    .content-box img {
        height: 260px;
    }

    .facilityimg {
        width: 100%;
        height: auto;
        max-height: 500px;
    }

    .content-body {
        padding: 25px;
    }

        .content-body h2,
        .content-body h4 {
            font-size: 28px;
        }
}

/* ===========================
   SMALL MOBILE
=========================== */

@media (max-width:576px) {

    .content-box img {
        height: 220px;
    }

    .content-body {
        padding: 20px;
    }

        .content-body h2,
        .content-body h4 {
            font-size: 24px;
        }

        .content-body p {
            font-size: 15px;
        }
}
