/* =========================
   ACTIVE NAVIGATION STATE
========================= */

.navbar .nav-link {
    position: relative;
}

.navbar .nav-link.active {
    color: #198754 !important;
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: #198754;
}

@media (max-width: 991.98px) {
    .navbar .nav-link.active::after {
        right: auto;
        width: 28px;
    }
}

/* Keep anchored sections visible below the fixed navigation bar. */
#home,
#services,
#branches,
#accredited-hmo,
#contact,
#appointment {
    scroll-margin-top: 90px;
}

/* =========================
    HERO SECTION
========================= */

.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(
        135deg,
        #f4fff9 0%,
        #ffffff 55%,
        #f8fffb 100%
    );

    display: flex;
    align-items: center;
}


.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    background: #e5f6ed;
    color: #198754;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
}


.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    color: #212529;
    margin-bottom: 25px;
}


.hero-title span {
    color: #198754;
}


.hero-text {
    font-size: 18px;
    line-height: 1.8;
    color: #6c757d;
    max-width: 600px;
    margin-bottom: 30px;
}


.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}


.hero-highlights {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}


.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}


.highlight-item i {
    color: #198754;
}


.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
}


.hero-carousel {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    border-radius: 30px;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Keep carousel controls visible on both light and dark promo artwork. */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 12%;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.35rem;
    border-radius: 50%;
    background-color: rgba(25, 135, 84, 0.78);
    background-size: 55% 55%;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 0.8rem;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    margin: 0 5px;
}


.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;

    background: #ffffff;
    padding: 20px 25px;
    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(
        0,
        0,
        0,
        0.12
    );

    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
}


.hero-floating-card i {
    font-size: 28px;
    color: #198754;
}


.hero-floating-card strong {
    display: block;
    font-size: 14px;
}


.hero-floating-card small {
    display: block;
    color: #6c757d;
    margin-top: 3px;
}


/* =========================
   SERVICES
========================= */

.service-card {
    height: 100%;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e8f2ed;

    box-shadow: 0 5px 20px rgba(
        0,
        0,
        0,
        0.06
    );

    transition: 0.3s;
}


.service-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 12px 30px rgba(
        0,
        0,
        0,
        0.10
    );
}


.service-list {
    padding-left: 20px;
    margin-top: 15px;
    color: #6c757d;
}


.service-list li {
    margin-bottom: 8px;
}


/* =========================
   REVIEWS PAGE
========================= */

.reviews-hero {
    text-align: center;
    padding: 140px 20px 70px;
    background: #f4fbf7;
}


.reviews-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}


.reviews-hero h1 span {
    color: #198754;
}


.reviews-hero p {
    font-size: 18px;
    color: #6c757d;
}


.rating-summary {
    text-align: center;
    padding: 50px 20px;
}


.rating-summary h2 {
    font-size: 42px;
    color: #198754;
    margin-bottom: 5px;
}


.stars {
    font-size: 28px;
    letter-spacing: 4px;
    margin: 10px 0;
}


.rating-summary p {
    color: #6c757d;
}


.reviews-section {
    padding: 70px 20px;
    background: #f8f9fa;
}


.reviews-container {
    max-width: 1100px;
    margin: auto;
}


.section-title {
    text-align: center;
    margin-bottom: 45px;
}


.section-title h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}


.section-title p {
    color: #6c757d;
}


.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(
        0,
        0,
        0,
        0.06
    );
}


.review-stars {
    color: #f5b301;
    font-size: 20px;
    margin-bottom: 15px;
}


.review-text {
    color: #475467;
    line-height: 1.7;
    margin-bottom: 20px;
}


.review-author {
    font-weight: 600;
    color: #198754;
}


.review-branch {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}


.review-cta {
    text-align: center;
    padding: 80px 20px;
}


.review-cta h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
}


.review-cta p {
    color: #6c757d;
    margin-bottom: 25px;
}


.review-button {
    display: inline-block;
    padding: 14px 28px;
    background: #198754;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}


.review-button:hover {
    background: #146c43;
    color: #ffffff;
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 991px) {

    .hero-section {
        padding-top: 120px;
        text-align: center;
    }


    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-buttons {
        justify-content: center;
    }


    .hero-highlights {
        justify-content: center;
    }


    .hero-image-wrapper {
        margin-top: 30px;
    }


    .hero-floating-card {
        left: 10px;
    }


    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .hero-section {
        padding-top: 110px;
        padding-bottom: 60px;
    }


    .hero-title {
        font-size: 42px;
    }


    .hero-text {
        font-size: 16px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .hero-buttons .btn {
        width: 100%;
    }


    .hero-highlights {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }


    .hero-floating-card {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 15px;
        justify-content: center;
    }


    .reviews-hero h1 {
        font-size: 36px;
    }


    .reviews-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   BRANCH IMAGES
========================= */

.branch-image {

    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;

}


.branch-card {

    height: 100%;

    transition: 0.3s;

}


.branch-card:hover {

    transform: translateY(-8px);

}


@media (max-width: 576px) {

    .branch-image {

        height: 200px;

    }

}

/* =========================
   BRANCH DETAILS PAGE
========================= */

.branch-detail-hero {

    padding: 150px 20px 80px;

    background: #f4fbf7;

}


.branch-detail-image {

    width: 100%;

    height: 450px;

    object-fit: cover;

    border-radius: 25px;

}


.branch-info-card {

    height: 100%;

    padding: 30px;

    text-align: center;

    background: #ffffff;

    border-radius: 20px;

    box-shadow: 0 5px 20px rgba(
        0,
        0,
        0,
        0.06
    );

}


.branch-info-card i {

    font-size: 35px;

    color: #198754;

    margin-bottom: 15px;

}


.branch-info-card h5 {

    font-weight: 700;

}


.branch-info-card p {

    color: #6c757d;

}


@media (max-width: 576px) {

    .branch-detail-hero {

        padding-top: 120px;

    }


    .branch-detail-image {

        height: 300px;

    }

}

/* =========================
   DENTAL SCHEDULE CARDS
========================= */

.schedule-card {

    height: 100%;

    padding: 30px 20px;

    text-align: center;

    background: #ffffff;

    border-radius: 20px;

    box-shadow: 0 5px 20px rgba(
        0,
        0,
        0,
        0.06
    );

    transition: 0.3s;

}


.schedule-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 12px 30px rgba(
        0,
        0,
        0,
        0.10
    );

}


.schedule-icon {

    width: 65px;

    height: 65px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e5f6ed;

    color: #198754;

    border-radius: 50%;

    font-size: 30px;

}


.schedule-card h5 {

    font-weight: 700;

    margin-bottom: 15px;

}


.schedule-label {

    color: #6c757d;

    font-size: 14px;

    margin-bottom: 5px;

}


.schedule-time {

    color: #198754;

    font-weight: 600;

    margin-bottom: 0;

}

/* =========================
   BRANCH IMAGE GALLERY
========================= */

.branch-gallery {

    width: 100%;

    overflow: hidden;

    border-radius: 25px;

}


.branch-gallery .carousel-item img {

    width: 100%;

    height: 450px;

    object-fit: cover;

}


.branch-gallery .carousel-control-prev,
.branch-gallery .carousel-control-next {

    width: 10%;

}


@media (max-width: 576px) {

    .branch-gallery .carousel-item img {

        height: 300px;

    }

}

/* =========================
   GOOGLE MAP
========================= */

.map-container {

    overflow: hidden;

    border-radius: 20px;

    box-shadow: 0 5px 20px rgba(
        0,
        0,
        0,
        0.08
    );

}

.facebook-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 4px 12px !important;
    height: 36px;

    font-size: 13px;
    line-height: 1;
}

/* =========================
   FACEBOOK BUTTON
========================= */

.branch-info-card .btn-outline-success {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 5px 14px;

    min-height: 38px;

    line-height: 1;

}


/* FACEBOOK ICON */

.branch-info-card .btn-outline-success i {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;

    width: 22px;

    height: 22px;

    line-height: 1;

    transform: translateY(2px);

}


/* MOBILE */

@media (max-width: 400px) {

    .branch-info-card .btn-outline-success {

        font-size: 12px;

        padding: 5px 10px;

        gap: 6px;

    }


    .branch-info-card .btn-outline-success i {

        font-size: 18px;

        width: 18px;

        height: 18px;

    }

}

/* =========================
   REVIEW SCREENSHOT GALLERY
========================= */
.review-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.review-image-card {
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.review-image-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================
   APPOINTMENT OPTIONS
========================= */
.appointment-options {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.appointment-option-card {
    padding: 32px 24px;
    background: #ffffff;
    border: 1px solid #e7eee9;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.appointment-option-icon {
    display: inline-block;
    margin-bottom: 14px;
    color: #198754;
    font-size: 34px;
}

.appointment-option-card h4 {
    font-weight: 700;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .review-image-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   ACCREDITED HMO SECTION
========================= */
.hmo-image-card {
    background: #ffffff;
    border: 1px solid #e7eee9;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.hmo-image-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.hmo-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #eaf7ef;
    color: #198754;
    border-radius: 14px;
    font-weight: 500;
}

.hmo-note i {
    font-size: 18px;
}
