* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* header */
header {
    background-color: #f59e0b;
    /* Orange-500 */
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
}

header .max-w-7xl {
    padding: 0 1.5rem;
    /* Add horizontal padding */
}

header a {
    color: #151414;
    /* Ensure header links are white */
    transition: color 0.2s ease-in-out;
}

header a:hover {
    color: #fed7aa;
    /* Lighter orange on hover */
}

header .text-orange-600 {
    /* For the clinic name in header */
    color: #ffffff;
    /* Make the clinic name white */
}

.banner {
    background: linear-gradient(120deg, #e8f7ff, #ffffff);
    padding: 180px 10%;
}

.banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.banner-text {
    flex: 1;
}

.banner-text h1 {
    font-size: 48px;
    color: #0c7a8a;
    margin-bottom: 15px;
}

.tagline {
    font-size: 24px;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    max-width: 550px;
}

.banner-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #00a6a6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.3s;
}

.banner-btn:hover {
    background: #007d7d;
}

.banner-image img {
    width: 450px;
    max-width: 100%;
}
.banner-text h1 {
    color: #0b7a8f;
}



/* introduction section */

.clinic-intro {
    padding: 80px 10%;
    background: #f9fcff;
}

.intro-container {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 36px;
    color: #0b7a8f;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 17px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.intro-icons {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.icon-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: 0.3s;
}

.icon-box:hover {
    transform: translateY(-5px);
}

.icon-box i {
    font-size: 32px;
    color: #00a6a6;
    margin-bottom: 15px;
}

.icon-box h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}

.icon-box p {
    font-size: 14px;
    color: #666;
}

/* why choose us section */
.why-choose {
    padding: 80px 10%;
    background: #ffffff;
}

.why-header {
    text-align: center;
    margin-bottom: 50px;
}

.why-header h2 {
    font-size: 36px;
    color: #0b7a8f;
    margin-bottom: 15px;
}

.why-header p {
    font-size: 17px;
    color: #555;
    max-width: 700px;
    margin: auto;
    line-height: 1.6;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-box {
    background: #f9fcff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.why-box:hover {
    transform: translateY(-8px);
}

.why-box i {
    font-size: 32px;
    color: #00a6a6;
    margin-bottom: 15px;
}

.why-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.why-box p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* treatment */
.treatment-section {
    padding: 60px 0;
    text-align: center;
}

.treatment-title {
    font-size: 32px;
    font-weight: 700;
    color: #0d3b66;
    margin-bottom: 40px;
}

.carousel-wrapper {
    overflow-x: auto;
    display: flex;
    gap: 20px;
    padding: 20px;
    scroll-behavior: smooth;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.treatment-card {
    min-width: 260px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.treatment-card:hover {
    transform: scale(1.05);
}

.treatment-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid #e6f0ff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.treatment-name {
    font-size: 18px;
    font-weight: 600;
    color: #1d3557;
}

.treatment-desc {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}

.btn-appointment {
    margin-top: 10px;
    font-size: 14px;
    border-radius: 20px;
}

.btn {
    background: #00a6a6;
    color: white;
}

/* branch */
.branch-card img {
    height: 20vh;
    object-fit: contain;
    align-items: center;
}

.branch-card {
    border-radius: 10px;
    overflow: hidden;
}

.btn-appointment {
    background: #00a6a6;
    color: white;
}

.btn-appointment:hover {
    background: #1d4ed8;
}

/* faq section */
.faq-section {
    padding: 40px;
    background: #f9fbfd;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0b3c5d;
}

.faq {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    padding: 15px;
    text-align: left;
    background: #0b3c5d;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.faq-answer {
    display: none;
    padding: 15px;
    background: #fff;
    font-size: 15px;
}

/* Optional toggle effect */
.faq.active .faq-answer {
    display: block;
}


/* Footer */
.footer {
    background: #3a3a3a;
    color: #ddd;
    padding: 50px 40px;
    font-family: Arial;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

/* LEFT */
.footer-left {
    width: 60%;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #555;
    margin-bottom: 20px;
}

.tab {
    cursor: pointer;
    padding-bottom: 10px;
    color: #aaa;
}

.tab.active {
    color: #ffc107;
    border-bottom: 2px solid #ffc107;
}

/* Branch */
.branch-content {
    display: none;
}

.branch-content.active {
    display: block;
}

.branch-content p {
    line-height: 1.7;
}

.branch-content h4 {
    color: #ffc107;
    margin: 20px 0 10px;
}

.branch-content iframe {
    width: 100%;
    height: 250px;
    border: none;
}


/* Doctor */
/* GENERAL CARD */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* BRANCH CARDS */
.branchCard {
    border: 2px solid transparent;
    cursor: pointer;
}

.branchCard:hover {
    transform: translateY(-5px);
}

/* ACTIVE BRANCH */
.branchCard.active {
    border: 2px solid #0b3c5d;
    background: #eaf4ff;
    transform: scale(1.03);
}

/* NAV BUTTONS */
.nav-btn {
    position: absolute;
    top: 40%;
    background: #0b3c5d;
    color: #fff;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.nav-btn.left {
    left: 0;
}

.nav-btn.right {
    right: 0;
}

/* DOCTOR SECTION */
.doctor-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

/* DOCTOR CARD */
.doctorCard {
    text-align: center;
}

.doctorCard h3 {
    margin-bottom: 10px;
}

/* BUTTON */
.btn.book {
    background: #0b3c5d;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
}

.modal input,
.modal select {
    width: 100%;
    margin: 8px 0;
    padding: 8px;
}

/* DEFAULT = MOBILE (Carousel ON) */
#branchSlider {
    display: flex;
    gap: 15px;
    transition: 0.3s;
}

.nav-btn {
    position: absolute;
    top: 40%;
    background: #0b3c5d;
    color: #fff;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
}

.nav-btn.left {
    left: 0;
}

.nav-btn.right {
    right: 0;
}

/* RIGHT */
.footer-right {
    width: 35%;
}

.footer-right h3 {
    color: #ffc107;
    margin-bottom: 20px;
}

/* Social */
.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #555;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

/* Brand */
.brand h2 {
    margin: 20px 0 5px;
}

.brand p {
    font-size: 14px;
    color: #bbb;
}

/* Info */
.footer-info {
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.8;
}

/* ---------------- MEDIA QUERIES ---------------- */

@media (min-width:240px) and (max-width:460px) {

    .banner-container {
        flex-direction: column;
        text-align: center;
    }

    .banner-text h1 {
        font-size: 28px;
    }

    .tagline {
        font-size: 18px;
    }

    .description {
        font-size: 15px;
    }

    .banner-image img {
        width: 100%;
        margin-top: 20px;
    }



    /* introduction section */

    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .intro-icons {
        grid-template-columns: 1fr;
    }

    .intro-text h2 {
        font-size: 26px;
    }

    /* why choose us section */

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-header h2 {
        font-size: 26px;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer-wrapper {
        flex-direction: column;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .faq-section {
        padding: 20px;
    }

    .faq-question {
        font-size: 14px;
        padding: 12px;
    }

    .faq-answer {
        font-size: 13px;
    }

    .treatment-title {
        font-size: 22px;
    }

    .carousel-wrapper {
        gap: 12px;
        padding: 10px;
    }

    .treatment-card {
        min-width: 200px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .treatment-img {
        width: 90px;
        height: 90px;
    }

    .treatment-name {
        font-size: 16px;
    }

    .treatment-desc {
        font-size: 13px;
    }

    /* Tabs scroll */
    .tabs {
        overflow-x: auto;
        gap: 15px;
    }

    .tab {
        font-size: 13px;
        white-space: nowrap;
    }

    /* Map smaller */
    .branch-content iframe {
        height: 180px;
    }

    /* Text */
    .branch-content p {
        font-size: 13px;
    }

    /* Social */
    .social-icons {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-right {
        text-align: center;
    }

    .brand h2 {
        font-size: 18px;
    }

}

@media (min-width:460px) and (max-width:720px) {

    .banner {
        padding: 50px 30px;
    }

    .banner-container {
        flex-direction: column;
        text-align: center;
    }

    .banner-text h1 {
        font-size: 34px;
    }

    .tagline {
        font-size: 20px;
    }

    .description {
        font-size: 16px;
    }

    .banner-image img {
        width: 90%;
        margin-top: 25px;
    }

    /* introduction section */
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .intro-icons {
        grid-template-columns: 1fr 1fr;
    }

    .intro-text h2 {
        font-size: 30px;
    }

    /* why choose us section */

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-header h2 {
        font-size: 30px;
    }

    .faq-section {
        padding: 25px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .treatment-title {
        font-size: 26px;
    }

    .carousel-wrapper {
        gap: 15px;
    }

    .treatment-card {
        min-width: 230px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .treatment-img {
        width: 100px;
        height: 100px;
    }

    .treatment-name {
        font-size: 17px;
    }

    .treatment-desc {
        font-size: 14px;
    }


    .footer {
        padding: 40px 20px;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    /* Tabs spacing */
    .tabs {
        gap: 20px;
    }

    .tab {
        font-size: 14px;
    }

    /* Map */
    .branch-content iframe {
        height: 220px;
    }

    /* Right section center */
    .footer-right {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

}


@media (min-width:720px) and (max-width:1080px) {

    .banner-text h1 {
        font-size: 40px;
    }

    .tagline {
        font-size: 22px;
    }

    .banner-image img {
        width: 380px;
    }

    /* Introduction section */


    .intro-container {
        flex-direction: column;
    }

    .intro-icons {
        grid-template-columns: repeat(2, 1fr);
    }


    /* why choose us section */

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-section {
        padding: 30px;
    }

    .faq-question {
        font-size: 17px;
    }

    .faq-answer {
        font-size: 15px;
    }

    .treatment-title {
        font-size: 28px;
    }

    .treatment-img {
        width: 100px;
        height: 100px;

    }

    .carousel-wrapper {
        gap: 18px;
    }

    .treatment-card {
        min-width: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }



    .treatment-name {
        font-size: 18px;
    }

    .treatment-desc {
        font-size: 14px;
    }

    .footer-wrapper {
        flex-direction: row;
        gap: 25px;
    }

    .footer-left {
        width: 55%;
    }

    .footer-right {
        width: 40%;
    }

    /* Tabs */
    .tabs {
        gap: 20px;
    }

    /* Map */
    .branch-content iframe {
        height: 220px;
    }

    /* Text */
    .branch-content p {
        font-size: 14px;
    }

}

/* DESKTOP (>=1040px) → GRID VIEW */
@media (min-width: 1040px) {

    /* Remove sliding */
    #branchSlider {
        transform: none !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Show as grid */
    .branchCard {
        min-width: 220px !important;
        flex: 0 0 calc(33.33% - 20px);
        cursor: pointer;
    }

    /* Hide arrows */
    .nav-btn {
        display: none;
    }

    /* Remove overflow hidden */
    #branchSlider {
        overflow: visible;
    }

}