@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb-FaNum.woff2') format('woff2'),
        url('../fonts/IRANSansWeb-FaNum.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb-FaNum_Bold.woff2') format('woff2'),
        url('../fonts/IRANSansWeb-FaNum_Bold.woff') format('woff');
    font-weight: bold;
    font-style: bold;
}

:root {
    --primary-color: #3ebdb3;
    --secondary-color: #646cd4;
    --map-color: #d54a4a;
    --clock-color: #e4883c;
    --dark-color: #333;
    --light-color: #f4f4f4;
}

body {
    font-family: 'IRANSansWeb', sans-serif;
    font-feature-settings: "ss01";
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--dark-color);

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1; 
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}

section {
    padding: 4rem 1rem; 
}

h1, h2 {
    margin-bottom: 1rem;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Baner.png') no-repeat center 70%/cover;
    height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
    padding-top: 40px;
}

.hero-info {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem; 
}

.doctor-photo {
    width: 320px;
    height: 320px;
    min-width: 320px;
    min-height: 320px;
    border-radius: 50%; 
    border: 5px solid var(--primary-color);
    margin-bottom: 0;
    margin-left: 5rem;
    
    background-image: url('../images/Dr.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
}

.button-block {
    background: none;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6); 
    color: #fff; 
}

.hero p {
    font-size: 1.5rem;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6); 
    color: #fff;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 1rem;
    background: var(--primary-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
    min-width: 170px;
}

.cta-button i {
    padding-left: 0.5rem;
}

.cta-button:hover {
    background: #c0fff1;
}

#services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

.services-grid.layout-2-cols {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px; 
    margin: 2rem auto;
}

.services-grid.layout-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px 50px 15px 50px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.service-card ul {
    text-align: justify;
    
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card li {
    text-align: justify;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    text-align: right;
}

.contact-grid iframe {
    width: 100%;
    height: 300px;
    border:0;
    border-radius: 10px;
}

.contact-info p {
    margin-bottom: 1rem;
}

footer {
    background: var(--dark-color);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    font-size: smaller;
}

.social-icons {
    margin-bottom: 1.5rem; 
}

.social-icons a {
    color: #fff; 
    font-size: 1.8rem; 
    margin: 0 15px; 
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color); 
    transform: scale(1.2); 
}

.social-icons a.disabled {
    color: #6c757d; 
    pointer-events: none; 
    cursor: default; 
}

.social-icons a.disabled:hover {
    color: #6c757d; 
    transform: none; 
}

.logo-link {
    position: absolute;
    top: 0.2rem; 
    left: 6rem; 
    z-index: 900;
}

.logo-img {
    height: 75px; 
    width: auto;  
    display: block;
    background-color: transparent;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.6));
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px); 
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0.1rem 2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2.5rem; 
}

.nav-menu a {
    display: flex;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 1rem 0;
    display: block;
    transition: color 0.3s ease;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.nav-menu a i {
    padding-left: 0.5rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--light-color); 
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -0.7rem;
    left: -0.7rem;
    height: 3px; 
    background-color: var(--secondary-color); 
    border-radius: 2px;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
}

.main-content {
    padding: 4rem 1rem;
    background-color: #fff;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 200px;
    background-color: #e0e0e0;
}
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
    pointer-events: none;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .play-icon{
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    overflow: auto; 
    -webkit-overflow-scrolling: touch; 
}

.lightbox-content {
    max-width: 90vw; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
    
    box-sizing: border-box; 
    margin: 0 60px;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw; 
    max-height: 90vh; 
    object-fit: contain; 
    border-radius: 5px;
    display: block; 
}

.close-button {
    position: absolute;
    top: 5px; 
    right: 5px; 
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1; 
    z-index: 1002;
    box-sizing: border-box; 
}

.close-button:hover {
    color: #bbb;
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-button, .next-button {
    cursor: pointer;
    position: absolute;
    width: auto;
    height: 50px;
    padding: 10px;
    padding-top: 25px;
    color: white;
    font-weight: bold;
    font-size: 35px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 1002; 
    vertical-align: middle; 
}

.prev-button {
    right: 0; 
    border-radius: 10px 0 0 10px;
}

.next-button {
    left: 0; 
    border-radius: 0 10px 10px 0;
}

.prev-button:hover, .next-button:hover {
    background-color: rgba(0,0,0,0.8);
}

/* استایل صفحه سوالات متداول */
.faq-container {
    max-width: 800px;
    margin: 2rem auto;
    text-align: right;
}
details {
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}
summary {
    font-weight: bold;
    padding: 1rem;
    cursor: pointer;
    outline: none;
}
details[open] summary {
    border-bottom: 1px solid #ddd;
}
.faq-container p {
    padding: 1rem;
    text-align: justify;
    line-height: 1.8;
}