nav {
    flex: 2;
    text-align: center;
    margin: 0 0 0 21.2rem;
    
}
nav ul{
    display: flex;
    justify-content: center;
    list-style: none;
    /* gap: 500px; */
}


nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.gallery-header {
    background-color: #0b2282;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gallery-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.gallery-header .logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.gallery-header nav {
    flex: 2;
    text-align: center;
}

.gallery-header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    /* gap: 40px; */
    padding: 0;
}

.gallery-header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gallery-header nav a:hover {
    color: #e26413;
}

.gallery-header .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    margin-right: 10px;
    z-index: 1001;
}

.gallery-header .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-header .mobile-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.gallery-header .mobile-menu a:hover {
    color: #e26413;
}

nav a:hover {
    color: #e26413;
}
.gallery-intro {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0b2282, #1e3a8a);
    color: white;
    margin-top: 80px;
}

.gallery-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gallery-intro p {
    font-size: 1.2rem;
    color: #e0e7ff;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 300px;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

/* استایل جدید برای متن زیر عکس */
.image-caption {
    display: block;
    color: #2c3e50;
    background-color: #ffffff;
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    font-family: Vazir, sans-serif;
    font-weight: 500;
    margin: 0;
    border-top: 2px solid #0b2282;
    direction: rtl;
    line-height: 1.6;
    transition: all 0.3s ease;
    height: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .image-caption {
    background-color: #f8f9fa;
    color: #0b2282;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 34, 130, 0.9), transparent);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: right;
}

.overlay h3 {
    margin: 0;
    font-size: 1.3rem;
}

.overlay p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #e0e7ff;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: #1f2937;
    color: #d1d5db;
    margin-top: 80px;
}

.footer-bottom {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .gallery-intro {
        padding: 40px 20px;
    }
    .gallery-intro h1 {
        font-size: 2rem;
    }
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .gallery-item {
        height: 250px;
    }
    .image-caption {
        font-size: 12px;
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 220px;
    }
    .image-caption {
        font-size: 11px;
        padding: 8px 5px;
    }
}
.lightbox {
    display: none;           
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;     
}

.lightbox.active {
    display: flex;            
    opacity: 1;
    pointer-events: auto;     
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
}

#close-lightbox:hover {
    color: #e26413;
}
#prev-lightbox, #next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0.8;
    transition: all 0.3s ease;
}

#prev-lightbox:hover, #next-lightbox:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

#prev-lightbox {
    left: 20px;
}

#next-lightbox {
    right: 20px;
}

@media (max-width: 768px) {
    #prev-lightbox, #next-lightbox {
        display: none;
    }
}
footer {
    background-color: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column p {
    color: #d1d5db;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #9ca3af;
}

.contact-info-footer {
    list-style: none;
}

.contact-info-footer li {
    margin: 0 135px 15px 0;
    display: flex;
    align-items: center;
    color: #d1d5db;
}

.contact-info-footer i {
    margin-left: 10px;
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 15px 135px 0 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #374151;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #4b5563;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}