/* Global mobile fixes */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
.mt-5 {
    margin-bottom: 20px;
}
img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    padding-left: 12px;
    padding-right: 12px;
}

/* Header section */
.logo_nav {
    text-align: center;
}

.sec_two {
    background-color: rgba(32, 42, 91, 1);
    color: rgba(255, 255, 255, 1);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 1px;
}

h1.book-heading {
    font-size: 48px;
    padding: 0 0 6px 0;
}

h1.consult-heading {
    margin: 0 0 25px 0;
}

.logo {
    width: 300px;
    height: 64px;
    max-width: 90%;
}
/* X===X==X */

/* Book Section */
.book {
    background-image: url(img/book.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.Book-img {
    font-weight: 500;
    font-size: 18px;
    line-height: 36px;
}

.form {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
}

.book-heading {
    color: rgba(32, 42, 91, 1);
}

.para {
    margin: 4px 0;
}

.book-num {
    color: rgba(32, 43, 87, 1);
    display: flex;
    gap: 20px;
    margin-top: 1rem;
}

.counter-number {
    display: inline-block;
    transition: all 0.3s ease;
}

.book-text {
    color: rgba(0, 0, 0, 0.6); 
    font-weight: 500;
}

.form-control {
    height: 60px;
}

.form-select {
    height: 60px;
}

.book-btn {
    background-color: rgba(32, 43, 87, 1);
    color: white;
    width: 100%;
    font-weight: 500;
    border-radius: 8px;
    height: 48px;
    border: none;      
    outline: none;        
    padding: 0;           
    cursor: pointer;     
    font-family: inherit;  
}

.parag {
    color: rgba(32, 43, 87, 1);
}

.custom-iframe {
    width: 100%;
    height: 520px;
    border: none;
    border-radius: 8px;
    display: block;
}

p.my-3.d-flex.align-items-center.justify-content-center.gap-2 {
    text-align: left !important;
    width: 33%;
}

@media (max-width: 576px) {
    .custom-iframe {
        height: 600px;
    }
    
    .consult-widh {
        width: 100% !important;
    }
    
    .book h1.book-heading {
        font-size: 24px !important;
        line-height: 1.4;
    }
    
    .book p {
        font-size: 14px;
    }
    
    .Book-img {
        font-size: 14px;
        line-height: 28px;
    }
    
    .Book-img img {
        width: 16px;
        height: 16px;
    }
    
    .form {
        padding: 20px !important;
        margin: 0 10px;
    }
    
    .parag {
        font-size: 12px;
        text-align: center;
    }
    
    .parag img {
        width: 14px;
        height: 14px;
    }
    
    h2.book-heading {
        font-size: 20px !important;
    }
    
    .Footer-BackG .row {
        flex-direction: column;
        text-align: center;
    }

    .Footer-BackG .col {
        width: 100%;
        max-width: 100%;
    }

    .Footer-BackG .col:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .Footer-BackG .Footer-Text {
        justify-content: center !important;
        text-align: center;
    }

    .Footer-BackG .col.text-white {
        justify-content: center !important;
        text-align: center !important;
    }

    .Footer-BackG .text-end {
        text-align: center !important;
    }

    .Footer-BackG .row:last-child {
        flex-direction: column;
        text-align: center;
        gap: 0px;
    }

    .Footer-BackG .row:last-child .col {
        justify-content: center !important;
        text-align: center !important;
    }

    .Footer-BackG .mx-3 {
        margin: 5px !important;
    }
    
    .col.Footer-Text.d-flex.justify-content-end.gap-2 {
        padding: 0 0 20px 0;
        margin: -10px 0 0 0;
    }
    
    p.my-3.d-flex.align-items-center.justify-content-center.gap-2 {
        text-align: center !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 992px) {
    .book .row {
        flex-direction: column;
    }

    .book .col {
        width: 100%;
    }

    .book .col:first-child {
        text-align: left;
        margin-bottom: 30px;
    }

    .book .col:first-child .row {
        justify-content: center;
        text-align: center;
    }

    .book .form {
        padding: 30px 20px !important;
    }
    
    h1.book-heading {
        font-size: 36px;
    }
    
    .consult-heading {
        font-size: 32px;
    }
    
    .consult-widh {
        width: 100%;
    }
    
    /* Dental cards stack on tablet */
    .Dental-BackG .col-md-3 {
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    /* Review cards stack */
    .Review-Card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .Service-Img {
        width: 35%;
    }
    
    .Cities-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .parag {
        text-align: center;
    }

    .book h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .book h2 {
        font-size: 22px;
    }

    .book p {
        font-size: 14px;
    }

    .form-control,
    .form-select {
        height: 50px !important;
    }

    .book button {
        height: 45px;
    }

    .book form .row {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .book form .row .col {
        justify-content: center !important;
    }
    
    /* Consult section mobile */
    .consult-heading {
        font-size: 24px !important;
        line-height: 1.4;
    }
    
    .consult-img {
        max-width: 100% !important;
        margin-top: 20px;
    }
    
    .button {
        text-align: center;
    }
    
    .consult-btn {
        width: 100% !important;
        max-width: 300px;
    }
    
    /* Dental care cards mobile */
    .Dental-BackG h1 {
        font-size: 24px !important;
        padding: 30px 15px !important;
    }
    
    .Dental-Card {
        margin: 10px !important;
    }
    
    /* Service cards mobile */
    .Dental-Service-Heading {
        font-size: 24px !important;
        padding: 0 15px;
    }
    
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .Service-Img {
        width: 40% !important;
    }
    
    .Servive-Card h5 {
        font-size: 14px !important;
    }
    
    /* Review cards mobile */
    .Review-Heading {
        font-size: 24px !important;
        padding: 0 15px;
    }
    
    .Review-Card {
        width: 100% !important;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Cities section mobile */
    .Cities-Heading h1 {
        font-size: 24px !important;
    }
    
    .Cities-Heading h4 {
        font-size: 18px !important;
    }
    
    .card.Cities-card.border-0 {
        height: auto !important;
        min-height: 350px;
    }
    
    /* FAQ mobile */
    .faq-heading {
        font-size: 24px !important;
        padding: 0 15px;
    }
    
    .accordion-button {
        font-size: 16px !important;
        padding: 15px 10px !important;
    }
}

@media (max-width: 575px) {
    .book-num {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: center;
        gap: 15px;          
    }

    .book-num .px-5 {
        padding-left: 0 !important;  
        padding-right: 0 !important;
    }

    .book-num h2 span {
        display: block; 
    }

    h2.book-heading.mb-1 {
        text-align: center;
    }
    
    hr.w-75 {
        width: 50%;       
    }
}
/* X==X==X */

a.consult-btn.my-3.mb-5.px-4 {
    padding: 11px 36px 11px 40px !important;
    text-decoration: none;
}

/* Consult A Dentist */
.consult-heading {
    color: black;
}

.consult-btn {
    background-color: rgba(32, 43, 87, 1); 
    color: white;
    font-weight: 500;
    border-radius: 8px;
    height: 48px;
    width: 300px;
    border: none;      
    outline: none;        
    padding: 0;           
    cursor: pointer;     
}

.consult-widh {
    width: 80%;
}

a.btn.Last-Sec-btn.mt-3 {
    padding: 10px;
}

.consult-img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

a.btn.Footer-Btn.my-3 {
    padding: 16px;
}
/* X==X==X */

/* Dental Care Cards */
.Dental-BackG {
    background-color: rgba(32, 43, 87, 1);
}

.Dental-Card {
    border-radius: 12px !important;
    overflow: hidden;
    border: none;
    padding-bottom: 10px;
}

.Dental-Heading {
    color: rgba(32, 42, 91, 1);
    font-weight: 600;
}

.card-text {
    width: 80%;
}

.card.Dental-Card.h-100 .card-body.d-flex.flex-column {
    padding: 20px 16px 20px 16px !important;
}
/* X==X==X */

.card.Servive-Card.h-100.text-center.shadow h5.mb-2 {
    font-size: 16px;
    font-weight: 600;
    padding: 20px 0 0 0;
}

/* Dental Services Cards */
.Dental-Service-Heading {
    color: black;
}

.Service-Img {
    width: 30%;
}

.g-3, .gx-3 {
    --bs-gutter-x: 2rem !important;
}

.card-body {
    flex: 1 1 auto;
    padding: 30px 0px 25px 0 !important;
}

.Servive-Card {
    border-radius: 10px !important;
    overflow: hidden;
    border: 1px solid transparent; 
}

/* col-md-2-4 class definition for 5 columns layout */
@media (min-width: 768px) {
    .col-md-2-4 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}
/* X==X==X */

h6.card-text.Cities-Card-Heading {
    font-size: 20px;
}

/* Review Section */
.Review-Heading {
    color: black;
    font-weight: 600;
}

.Review-card-text {
    font-weight: 500;
    width: 100%;
}

.card-body.text-start {
    padding: 15px 10px 0px 10px !important;
}

.Review-Card {
    border-radius: 8px !important;
    width: 350px;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.Review-Card-Body {
    height: 300px;
}

.Review-Card-Img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: center top;
}
/* X==X==X */

section.sec_two p {
    margin: 0px 0 10px 0px !important;
}

/* Cities Cards Section */
.Cities-BackG {
    background-color: rgba(249, 249, 249, 1);
}

.Cities-Heading {
    color: black;
}

.Cities-card {
    border-radius: 16px;
}

.Cities-Card-Heading {
    font-weight: 600;
    color: black;
}

.Cities-card-text {
    font-size: 16px;
    font-weight: 400;
}

.card.Cities-card.border-0 {
    height: 400px;
    border-radius: 20px;
}

.accordion-button {
    font-size: 20px !important;
}

@media (max-width: 767px) {
    #locationCarousel .carousel-item .col-12 {
        display: block;
    }

    #locationCarousel .carousel-item .col-12:not(:first-child) {
        display: none;
    }
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: black;
}
/* X==X==X */

/* FAQs Section */
.faq-con {
    max-width: 900px !important;
}

.faq-heading {
    color: rgba(36, 27, 65, 1);
}

.faqs-button {
    color: rgba(32, 43, 87, 1) !important;
    font-weight: 600;
}

.accordion-item.border-bottom {
    border-bottom: 2px solid #000000; 
}
/* x==x==x */

/* Last Section */
.Last-Sec {
    background-image: url(img/bac.jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.Last-Sec-btn {
    background-color: rgba(32, 43, 87, 1) !important;
    color: white !important;
    width: 70%;
    max-width: 250px;
    border-radius: 8px;
    height: 48px;
    font-weight: 500;
}

@media (max-width: 575px) {
    .Last-Sec h1 {
        padding-top: 50px;
        font-size: 1.5rem;
    }

    .Last-Sec-btn {
        width: 90%; 
        font-size: 0.9rem; 
        height: 45px; 
    }

    .Last-Sec .col-md-6 {
        text-align: center; 
        margin-bottom: 20px; 
    }

    .Last-Sec img {
        max-width: 80%; 
        height: auto;
    }
    
    footer.Footer-BackG span.mx-3 {
        font-size: 12px;
        margin: 0px !important;
    }
    
    img.img-fluid.mb-4 {
        width: 70% !important;
    }
    
    .justify-content-end {
        justify-content: center !important;
    }
    
    .pt-5.mt-3.text-end {
        padding: 0px !important;
        margin-top: 20px !important;
    }
    
    section.sec_two .px-3 {
        padding-right: 4px !important;
        padding-left: 4px !important;
    }
    
    .sec_two span.px-3 {
        font-size: 11px !important; 
    }
    
    .row.align-items-center {
        gap: 20px !important;
    }
    
    .Footer-Btn {
        width: 100% !important;
        max-width: 300px;
        font-size: 16px !important;
    }
    
    .Footer-BackG h3 {
        font-size: 20px !important;
    }
    
    .Footer-BackG p {
        font-size: 14px;
    }
    .book-num span.counter-number.animated {
    font-size: 40px;
}
}
/* X==X==X */

/* Footer Section */
.Footer-BackG {
    background-color: rgba(32, 42, 91, 1);
}

.Footer-Text {
    color: white;
}

.Footer-Btn {
    background-color: rgb(255, 255, 255) !important;
    color: rgba(32, 42, 91, 1) !important;
    font-weight: 500 !important;
    font-size: 20px;
    width: 300px;
    border-radius: 8px !important;
    height: 60px;
    font-weight: 600;
}

img.img-fluid.mb-4 {
    width: 50%;
}

/* Apply Gilroy to entire site */
body {
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
}

/* Headings */
h1 { 
    font-weight: 900;
}

h2, h3 { 
    font-weight: 700;
}

/* Optional classes */
.light { 
    font-weight: 300;
}

.regular { 
    font-weight: 400;
}

.medium { 
    font-weight: 500;
}

.bold { 
    font-weight: 700;
}

.heavy { 
    font-weight: 900;
}
