.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Baner.png') no-repeat center center/cover;
    flex-direction: column;
}

.hero h1 {
    font-size: 1.9rem; 
}

.hero p {
    font-size: 1rem; 
}

.doctor-photo {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
    margin-left: 0;
}

.services-grid.layout-2-cols,
.services-grid.layout-3-cols {
    grid-template-columns: 1fr; 
}

.contact-grid {
    grid-template-columns: 1fr; 
    text-align: center; 
}

.contact-info {
    text-align: right;
}

.cta-button {
    display: block; 
    margin: 10px auto; 
    width: 150px; 
}

.button-block {
    flex-direction: column;
}

.logo-link {
    top: 0.2rem; 
    left: 0.75rem; 
}

.logo-img {
    height: 60px;
}

.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    position: absolute;
    top: 100%;
    right: 0;
    padding: 0;
    border-radius: 0 0 15px 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 899;
}

.nav-menu.active {
    display: flex; 
}

.nav-menu li {
    margin: 0;
    width: 100%;
    text-align: center;
    align-items: center;
}

.nav-menu a {
    display: flex;
    padding: 1rem 2rem; 
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    align-items: center; 
    justify-content: center;
    box-sizing: border-box; 
    color: #fff; 
    background: transparent; 
    gap: 1rem;
}

.nav-menu a span {
    min-width: 30%;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20%;
    left: 20%;
}

.menu-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 898; 
    
    background: rgba(0, 0, 0, 0.3); 
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.menu-overlay.active {
    display: block;
}

.hamburger-menu {
    display: block; 
}

.gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.gallery-item {
    height: 150px;
}

.close-button {
    top: 10px; 
    right: 10px;
    font-size: 30px;
    width: 50px;
    height: 50px;
}

.lightbox-content {
    margin: 0 40px; 
}

.lightbox-content img,
.lightbox-content video {
    max-width: 85vw; 
}

.prev-button, .next-button {
    padding-top: 1.25rem;
    padding-left: 60px;
    padding-right: 60px;
    height: 2.5rem;
    bottom: 0;
}

.prev-button {
    border-radius: 10px 0 0 0;
}

.next-button {
    border-radius: 0 10px 0 0;
}