/* Mobile-first responsive CSS for J.K Dental Clinic */

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: white;
    padding: 10px 20px;
    text-align: left;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

#hero {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

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

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
}

.hero-content {
    padding: 20px ;
    text-align: center;
    background: white;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: -1px;
    margin-bottom: 28px;
    color: #111;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #007bff;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

#services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px;
}

#services h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 12px;
}

.service-description {
    text-align: center;
    color: #666;
    margin: 0 auto 28px;
    max-width: 760px;
}

.service-card {
    width: 100%;
    margin: 0 auto 20px;
}

.card-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    object-fit: cover;
}

.card-content {
    width: 100%;
}

.btn {
    width: 273px;
    height: 62px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: none;
    background-image: none;
    text-decoration: none;
}

.btn:focus,
.btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.btn img {
    width: 20px;
    height: 20px;
}

#card-image {
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.service-item img {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    padding: 10px;
    flex-shrink: 0;
}

.service-item h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.service-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}


#about {
    padding: 20px;
    text-align: center;
    background: white;
}

#about h2 {
    color: #007bff;
    margin-bottom: 20px;
    position: relative;
}

#about h2::before,
#about h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: #007bff;
}

#about h2::before {
    left: 0;
}

#about h2::after {
    right: 0;
}

.doctor-image img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}
.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.clickable-image:hover {
    transform: scale(1.02);
}

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.image-modal.active {
    display: flex;
}

.image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.image-modal.active .image-modal-overlay {
    opacity: 1;
}

.image-modal-panel {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

.image-modal.active .image-modal-panel {
    transform: scale(1);
    opacity: 1;
}

.image-modal-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    background: #f9f9f9;
}

.image-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.image-modal-close:hover {
    background: #fff;
}
.doctor-info h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.doctor-info p {
    margin-bottom: 20px;
}

.doctor-info img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.footer-text {
    font-style: italic;
    color: #666;
}

#why-choose {
    padding: 20px;
    background: linear-gradient(to bottom, #e3f2fd, white);
}

#why-choose h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
}

.icon {
    color: green;
    font-size: 24px;
    margin-right: 15px;
}

.feature h4 {
    margin-bottom: 5px;
}

.feature p {
    color: #666;
}

footer {
    padding: 20px;
    background: #007bff;
    color: white;
    text-align: center;
}

.clinic-info h3 {
    margin-bottom: 10px;
}

.map {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
}

.map-open-link {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn-contact {
    display: inline-block;
    background: white;
    color: #007bff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-links a {
    color: white;
    text-decoration: underline;
    font-size: 13px;
}

/* Legal pages (privacy, terms, refund policy) */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.legal-page .back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.legal-page h1 {
    color: #007bff;
    font-size: 26px;
    margin-bottom: 8px;
}

.legal-page .last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
}

.legal-page h2 {
    color: #007bff;
    font-size: 19px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-page p {
    margin-bottom: 12px;
}

.legal-page ul {
    margin: 0 0 12px 20px;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page .contact-box {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.legal-page .contact-box a {
    color: #007bff;
}

/* Tablet styles */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .buttons {
        flex-direction: row;
        justify-content: center;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .features {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .hero-image {
        height: 400px;
    }

    #services {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        margin-bottom: 0;
    }
}