/* =========================
   GLOBAL
========================= */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    scroll-behavior: smooth;
}

/* =========================
   NAVBAR (MOBILE FIRST)
========================= */
.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #1e3c72;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
}

.nav-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.navbar a {
    color: white;
    margin: 5px 10px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.navbar a:hover {
    color: #ffcc00;
}

/* =========================
   HERO
========================= */
.hero {
    height: 70vh;
    background: url('https://images.unsplash.com/photo-1580582932707-520aed937b7b') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 20px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero div {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 14px;
}

/* =========================
   BUTTON
========================= */
.btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff9800, #ff5722);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* =========================
   SECTION
========================= */
.section {
    padding: 40px 15px;
    text-align: center;
}

.content-box {
    max-width: 800px;
    margin: auto;
}

.section:nth-child(even) {
    background: #ffffff;
}

.section h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* =========================
   CARDS
========================= */
.cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.card {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 26px;
    color: #ff5722;
    margin-bottom: 10px;
}

/* =========================
   ICON LIST
========================= */
.icon-list {
    max-width: 600px;
    margin: 20px auto;
    padding: 0;
    list-style: none;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    margin: 10px 0;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.icon-list i {
    color: #28a745;
}

/* =========================
   FACILITY IMAGE
========================= */
.facility img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

/* =========================
   GALLERY
========================= */
.gallery {
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* =========================
   FLOATING ACTION BAR (FINAL)
========================= */
.mobile-bar {
    position: fixed;

    bottom: 15px;
    left: 10px;
    right: 10px;   /* 🔥 KEY FIX */

    width: auto;   /* 🔥 important */

    display: flex;
    background: #ffffff;

    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    z-index: 1000;
    overflow: hidden;
}

.bar-item {
    flex: 1;
    padding: 14px 10px;
    text-decoration: none;
    color: #333;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;
    font-size: 13px;
}

.bar-item i {
    font-size: 20px;
}

.bar-item:not(:last-child) {
    border-right: 1px solid #eee;
}

.bar-item.highlight {
    background: linear-gradient(45deg, #ff9800, #ff5722);
    color: white;
}

.bar-item:hover {
    background: #f5f5f5;
}

.bar-item.highlight:hover {
    opacity: 0.9;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111;
    color: #aaa;
    padding: 20px;
    text-align: center;
    font-size: 12px;
}

/* =========================
   TABLET (>=768px)
========================= */
@media (min-width: 768px) {

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 30px;
    }

    .nav-right {
        margin-top: 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        width: 200px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================
   DESKTOP (>=1024px)
========================= */
@media (min-width: 1024px) {

    .hero {
        height: 90vh;
    }

    .hero h1 {
        font-size: 48px;
    }

    .section {
        padding: 70px 20px;
    }

    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}