@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0c4c7d;
    --secondary-color: #f8f9fa;
    --accent-color: #25D366;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e0e0e0;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: #0c4c7d;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    color: var(--light-text);
    text-align: center;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: #1a6da8;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    background-color: #1a6da8;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background-color: var(--accent-color);
    color: var(--light-text) !important;
    border-radius: 50px;
    padding: 10px 22px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.4);
}

main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.address-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to right, #eef5f9, #d0e0eb);
    color: var(--primary-color);
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.address-hero h1 {
    font-size: 3em;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.08);
}

.address-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.info-card {
    background-color: var(--light-text);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    flex: 1;
    min-width: 300px;
    max-width: calc(33% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.info-card h3 i {
    color: var(--accent-color);
    font-size: 1.3em;
}

.info-card p, .info-card ul {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

.info-card ul li {
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.social-links a {
    color: var(--primary-color);
    font-size: 2.2em;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.map-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.map-section .section-title {
    margin-top: 0;
    margin-bottom: 30px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.address-details-text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.address-details-text strong {
    color: var(--primary-color);
}

.clinic-images-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.clinic-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.clinic-image-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.clinic-image-item img:hover {
    transform: scale(1.02);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    margin: auto; 
    display: block; 
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-nav-btn { 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 2001;
}

.lightbox-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.caption-text { 
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 1.1em;
    z-index: 2001;
}

footer {
    background-color: #0c4c7d;
    color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

footer > div.max-w-7xl {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1280px;
    gap: 2rem;
}

footer > div.max-w-7xl > div {
    flex: 1 1 auto;
    min-width: 200px;
    text-align: center;
}

footer > div.max-w-7xl > div:first-child {
    text-align: left;
}

footer > div.max-w-7xl > div:first-child img {
    height: 3rem;
    width: auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    footer > div.max.w-7xl > div {
        text-align: left;
    }
    footer > div.max-w-7xl > div:first-child {
        flex-basis: 25%;
    }
    footer > div.max-w-7xl > div:nth-child(2),
    footer > div.max-w-7xl > div:nth-child(3),
    footer > div.max-w-7xl > div:nth-child(4) {
        flex-basis: calc(75% / 3);
    }
}

@media (min-width: 1024px) {
    footer > div.max-w-7xl > div {
        flex-basis: 25%;
    }
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #a0aec0;
}

footer img {
    border-radius: 0.375rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    align-self: flex-start;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-end;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0c4c7d;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .nav-list.active {
        display: flex;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }

    .whatsapp-btn {
        padding: 10px 22px !important;
        font-size: 1rem;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .address-section {
        flex-direction: column;
        padding: 0 15px;
    }

    .info-card {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .address-hero h1 {
        font-size: 2.5em;
    }

    .map-section {
        padding: 0 15px;
    }
    .map-container iframe {
        height: 350px;
    }
    .clinic-images-section {
        padding: 0 15px;
    }
    .clinic-images-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-nav-btn {
        font-size: 40px;
        padding: 8px 15px;
    }
    .lightbox-close {
        font-size: 32px;
        right: 20px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 5px;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    .whatsapp-btn {
        padding: 8px 15px !important;
        font-size: 0.9rem;
    }

    .address-hero h1 {
        font-size: 2em;
    }
    .info-card {
        padding: 20px;
    }
    .map-container iframe {
        height: 250px;
    }
    .lightbox-nav-btn {
        font-size: 32px;
        padding: 5px 10px;
    }
}