* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* Home hero section */
.home-hero {
    background-image: url("/static/images/Banner_new.f81b7dc15568.jpg");
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
    text-align: left;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 5%;
    max-width: 600px;
    width: 100%;
    text-align: left;
}


.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 1rem;
    color: #223A66;
}

.hero-text h3 {
    color: #1AB006;
    font-family:Arial, Helvetica, sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.hero-text .home-btn {
    background-color: #BFD2F8;
}

.hero-text a {
    border-radius: 12px;
    margin: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

/* End Home hero section */


/* Home info section */
.home-info {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: -30px;
    padding: 0 10px;
}

.home-info .icon-text {
    flex: 1 1 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 160px;
    max-width: 300px;
    margin: 0;
}

.home-info button {
    width: 100%;
    max-width: 220px;
    min-width: 100px;
    font-size: 1rem;
    padding: 12px 10px;
    margin: 0 auto;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.home-info .book-btn {
    background-color: #223A66;
}
.home-info .book-btn a{
    text-decoration: none;
    color: #fff;
}
.home-info .book-btn i{
    color: #fff;
    font-size: 3rem;
}

.home-info .info-btn {
    background-color: #BFD2F8;
}
.home-info .info-btn a{
    text-decoration: none;
    color: #223A66;
}
.home-info .info-btn i{
    color: #223A66;
    font-size: 3rem;
}

.home-info .reach-btn {
    background-color: #30DB19;
}
.home-info .reach-btn a{
    text-decoration: none;
    color: #fff;
}
.home-info .reach-btn i{
    color: #fff;
    font-size: 3rem;
}

.home-btn {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 12px 32px;
    background: #223A66;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(34,58,102,0.1);
    transition: background 0.3s;
    max-width: 220px;
    width: auto;
}

.home-btn:hover {
    background: #1ab006;
    color: #fff;
}

/* End Home info section */


/* Home brief section */
.brief {
    background-color: #ffffff;
    padding: 40px 20px;
}

.brief h1 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 40px;
    color: #223A66;
}

.brief h3 {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #30DB19;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.brief p {
    color: #000;
    font-size: 1.1rem;
    text-align: justify;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto 5px auto;
}
.brief a {
    color: #30DB19;
    text-decoration: none;
}
.brief i {
    color: #223A66;
    text-decoration: none;
}

/* End Home brief section */

/* Home mid banner section */

.home-image {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.happy-banner {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

/* End Home mid banner section */


/* Home service section */
.home-service {
    background: #fff;
    padding: clamp(20px, 4vw, 40px) 0;
}

.service-head h3 {
    color: #30DB19;
    font-size: clamp(0.8rem, 2vw, 1rem);
    margin-bottom: 0.5rem;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-head h1 {
    color: #223A66;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 1rem;
}

/* --- Service Layout --- */
.service-section {
    margin-top: 32px;
}

.service-left, .service-middle, .service-right {
    background: transparent;
    width: 100%;
}

.service-section .btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.service-section .btn-group-vertical .btn,
.service-section .btn-group-vertical .home-view-btn {
    border-radius: 6px;
    padding: 16px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-align: center;
    color: #223A66;
    background: #fff;
    border: 1px solid #223A66;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.service-section .btn-group-vertical .btn:hover,
.service-section .btn-group-vertical .home-view-btn:hover {
    background: #223A66;
    border: 1px solid #1AB006;
    transition: all 0.3s;
    color: #fff;
}

.service-section .btn-group-vertical .btn i {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #30DB19;
}

/* --- Middle: Description --- */
#service-description {
    padding: clamp(12px, 2vw, 24px);
    border-radius: 8px;
    background: #f9f9f9;
    width: 100%;
}

#service-description h3 {
    color: #000;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 16px;
}

#service-description ul {
    padding-left: 0;
    margin-bottom: 0;
}

#service-description li {
    list-style: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    text-align: justify;
}
#service-description li i {
    color: #1AB006;
}

/* --- Right: Images --- */
#service-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

#service-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}


/* End Home service section */


/* Home specialties section */
.specialties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.specialty-box {
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc; /* Slim border */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px; /* Ensures uniform height */
    transition: all 0.3s ease-in-out;
}

.specialty-box i {
    font-size: 2rem;
    color: #30DB19;
    margin-bottom: 10px;
}

.specialty-box h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.specialty-box:hover {
    background: #223A66;
    opacity: 1.2;
    border-color: #223A66;
    color: #fff;
}

/* End of home specialties section */


/* Home appointment section */
.appointment-section {
    background-image: url("/static/images/doc2_appoint.e4b3fa4fd88e.png");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    text-align: center;
    padding: 40px 20px;
}

.appointment-section h3{
    color: #223A66;
    font-family:'Times New Roman', Times, serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 1rem;
    padding: 0;
}

.appointment-section p {
    color: #000;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 15px;
    margin: 10px;
    text-align: left;
    justify-content: center;
    align-items: center;
}
.appointment-form {
    background: rgba(255, 255, 255, 0.99);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.appointment-form .form-group {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.appointment-form .form-group label {
    font-weight: bold;
    color: #223A66;
    display: block;
    text-align: left;
}

.appointment-form .form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    height: 40px;
    padding-left: 10px;
}

.appointment-form .row .col-md-6 {
    padding-right: 10px;
    padding-left: 10px;
}

.appointment-form button {
    margin-top: 20px;
    border-radius: 8px;
    background-color: #36c919;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.appointment-form button:hover {
    background-color: #2ea310;
}

/* Center content vertically on both sides */
.appointment-section .d-flex {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

/* End of home appointment section */

/* Home team section */
.doc-card {
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 15px;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.doc-card img {
    height: 350px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.3s ease;
}

.doc-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.doc-card-body {
    padding: 30px;
    background: #f9f9f9;
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.doc-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #223A66;
    margin-bottom: 10px;
}

.doc-card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}
/* End of home team section */


/* Blog Section */
/* .blog-section {
    border-radius: 10px;
    padding: 50px 20px;
} */

.blog-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

.blog-card:hover {
    transform: scale(1.03);
}

.blog-image {
    width: 150px; 
    height: 150px; 
    object-fit: cover;
    flex-shrink: 0;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.blog-date {
    color: #30DB19;
    font-weight: bold;
    margin-bottom: 10px;
}

.blog-views {
    color: #2F60BD;
    font-weight: bold;
    margin-bottom: 10px;
}
.blog-likes {
    color: #db1930;
    font-weight: bold;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.2rem;
    color: #333;
}

.contact-card, .contact-card-2{
    background-color: #BFD2F8 !important; 
    min-width: 220px;
    max-width: 100%;
}
.contact-card i {
    color: #223A66;
}

.contact-card h5 {
    justify-content: left;
    align-items: center;
    text-align: left;
    color: #223A66;
}

.contact-card p {
    color: #223A66;
    text-align: left;
    justify-content: left;
    align-items: center;
}

.contact-card-2 {
    background-color: #223A66 !important; 
}
.contact-card-2 i {
    color: #BFD2F8;
}

.contact-card-2 h5 {
    justify-content: left;
    align-items: center;
    text-align: left;
    color: #BFD2F8;
}

.contact-card-2 p {
    color: #BFD2F8;
    text-align: left;
    justify-content: left;
    align-items: center;
}

.card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.card i {
    display: block;
    text-align: left;
}

/* RESPONSIVE BREAKPOINTS */

/* Large tablets and small desktops */
@media (max-width: 992px) {
    .hero-text {
        padding: 0 10%;
        text-align: center;
    }

    .home-info {
        margin-top: -30px;
    }

    .happy-banner {
        max-width: 100%;
        border-radius: 8px;
    }

    .brief h3, .brief h1 {
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .service-section .btn-group-vertical {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .service-section .btn-group-vertical .btn,
    .service-section .btn-group-vertical .home-view-btn {
        flex: 1 1 45%;
        font-size: 1rem;
        padding: 14px 6px;
        min-width: 120px;
        max-width: 120px;
    }

    #service-description {
        margin-top: 10px;
        padding: 16px 8px;
    }

    #service-images {
        margin-top: 10px;
    }

    .appointment-section {
        min-height: 60vh;
    }

    .contact-section .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .contact-section .col-md-3 {
        width: 100%;
        margin-bottom: 0;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .home-hero {
        height: 40vh;
        padding: 0 10px;
    }

    .hero-text {
        padding: 0;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .home-btn {
        font-size: 1rem;
        padding: 10px 24px;
        margin-top: 1rem;
    }

    .home-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: -20px;
        gap: 12px;
        padding: 0 5px;
    }

    .home-info .icon-text {
        justify-content: center;
        align-items: center;
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }
    .home-info button {
        width: 100%;
        max-width: 100%;
        min-width: 80px;
        font-size: 0.95rem;
        padding: 10px 6px;
    }

    .brief p {
        text-align: justify;
        font-size: 1rem;
        padding: 0 10px;
        margin: 0 auto;
        max-width: 95vw;
    }

    .appointment-section {
        min-height: auto;
        padding: 30px 15px;
    }
    
    .appointment-form {
        padding: 25px;
    }
    
    .blog-card {
        flex-direction: column;
    }
    
    .blog-image {
        width: 100%;
        height: 200px;
    }

    .specialties {
        gap: 15px;
    }
    
    .specialty-box {
        height: 120px;
    }

    .contact-section .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px; 
    }

    .contact-card, .contact-card-2{
        margin-bottom: 0;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .home-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 14px;
        margin-top: -15px;
        padding: 0 5px;
    }
    .home-info .icon-text:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    .home-info .icon-text:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    .home-info .icon-text:nth-child(3) {
        grid-column: 1 / span 2;
        grid-row: 2;
        justify-self: center;
    }

    .home-info .icon-text {
        min-width: 80px;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        margin: 0;
    }
    .home-info button {
        max-width: 140px;
        min-width: 60px;
        font-size: 0.95rem;
        padding: 8px 4px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .home-hero {
        height: 40vh;
        padding: 0 15px;
        text-align: center;
    }

    .hero-text {
        padding: 0;
        align-items: center;
        text-align: center;
    }

    .home-btn {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        padding: 10px 0;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text h3 {
        font-size: 0.9rem;
    }
    
    .home-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        margin-top: -10px;
        padding: 0 5px;
    }

    .home-info .icon-text:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    .home-info .icon-text:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    .home-info .icon-text:nth-child(3) {
        grid-column: 1 / span 2;
        grid-row: 2;
        justify-self: center;
    }
    .home-info .icon-text {
        min-width: 80px;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .home-info button {
        max-width: 140px;
        min-width: 60px;
        font-size: 0.9rem;
        padding: 8px 4px;
    }

    .happy-banner {
        max-width: 100%;
        border-radius: 6px;
    }
    
    .brief {
        padding: 30px 15px;
    }
    
    .brief h1 {
        font-size: 1.8rem;
    }

    .service-section .btn-group-vertical {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .service-section .btn-group-vertical .btn,
    .service-section .btn-group-vertical .home-view-btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px 4px;
        min-width: 80px;
        max-width: 100%;
    }

    #service-description {
        padding: 12px 4px;
    }
    #service-images {
        margin-top: 8px
    }

    .appointment-section {
        padding: 20px 10px;
    }
    
    .appointment-section h3 {
        font-size: 1.5rem;
    }
    
    .appointment-form {
        padding: 20px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }

    .specialties .col-md-4 {
        margin-bottom: 15px;
    }
    
    .specialty-box {
        height: 100px;
    }
    
    .doc-card img {
        height: 200px;
    }
    
    .doc-card-body {
        padding: 15px;
    }

    .contact-section .row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px; 
    }

    .contact-card, .contact-card-2{
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .home-hero {
        height: 35vh;
    }
    
    .hero-text h1 {
        font-size: 1.3rem;
    }

    .home-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 2px;
        margin-top: -5px;
    }
    .home-info .icon-text {
        min-width: 50px;
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }
    .home-info button {
        max-width: 80px;
        min-width: 40px;
        font-size: 0.8rem;
        padding: 6px 2px;
    }

    .brief p {
        text-align: justify;
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .appointment-form {
        padding: 15px;
    }

    .blog-content {
        padding: 12px;
    }

    .service-section {
        gap: 8px;
        margin-top: 16px;
    }

    .service-section .btn-group-vertical .btn,
    .service-section .btn-group-vertical .home-view-btn {
        font-size: 0.9rem;
        padding: 8px 2px;
    }

    #service-description {
        padding: 8px 2px;
    }
}
