
/* About Page Styles */
/* .container {
    margin-top: 110px;
} */

.dark-about-section {
    background: transparent;
    padding: 3rem 0;
    min-height: 60vh;
}

.dark-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dark-about-card {
    background-image: url('../images/Image-back.jpg');
    /* background: rgba(255, 255, 255, 0.05); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.dark-about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-card-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.dark-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.dark-about-card:hover .dark-card-img {
    transform: scale(1.05);
}

.dark-card-body {
    padding: 3rem;
    text-align: center;

}

.dark-card-title {
    /* color: #ffffff; */
    color: #D4AF37;
    /* text-align: center; */
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    font-family:  'IranNastaliq', 'Vazirmatn', sans-serif;
}

.dark-card-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.dark-card-text p {
    margin-bottom: 1rem;
    text-align: center;
}

.dark-card-text p:last-child {
    margin-bottom: 0;

}

/* ============================================
   RESPONSIVE BUTTONS FOR ABOUT PAGE
   ============================================ */

/* Mobile About Buttons (< 480px) */
@media (max-width: 479px) {
    .dark-about-section {
        padding: 1.5rem 0;
    }
    
    .dark-about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dark-about-card {
        border-radius: 8px;
    }
    
    .dark-card-media {
        height: 200px;
    }
    
    .dark-card-body {
        padding: 1.25rem;
    }
    
    .dark-card-title {
        font-size: 3rem;
    }
    
    .dark-card-text {
        font-size: 0.95rem;
    }
    
    button,
    input[type="submit"],
    input[type="button"] {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        min-height: 44px;
        width: 100%;
    }
}

/* Tablet About Buttons (480px - 768px) */
@media (min-width: 480px) and (max-width: 768px) {


    /* .container{
        margin-top: 80px;
    } */


    .dark-about-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .dark-card-body {
        padding: 1.5rem;
    }
    
    .dark-card-title {
        font-size: 3rem;
    }
    
    button,
    input[type="submit"],
    input[type="button"] {
        padding: 1rem 1.8rem;
        font-size: 1rem;
        min-height: 44px;
    }

    /* Tablet adjustments for gallery typography */
    .gallery-heading { font-size: 1.6rem; }
    .gallery-caption { font-size: 0.95rem; }
    .gallery-modal-title { font-size: 1.25rem; }
    .gallery-modal-desc { font-size: 0.95rem; }
}

/* Desktop About Buttons (> 768px) */
@media (min-width: 769px) {
    .dark-about-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

/* Simple About Slider Styles */
.about-slider {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 12px;
}
.about-slider-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}
.about-slide {
    min-width: 100%;
    position: relative;
}
.about-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.about-slide-caption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: rgba(0,0,0,0.45);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    max-width: 60%;
}
.about-slide-caption h3 { margin: 0 0 0.5rem 0; font-size: 1.25rem; }
.about-slider-prev,
.about-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 0.5rem 0.85rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 6px;
}
.about-slider-prev { left: 12px; }
.about-slider-next { right: 12px; }

@media (max-width: 768px) {
    .about-slide img { height: 240px; }
    .about-slide-caption { max-width: 90%; right: 0.5rem; bottom: 0.5rem; }
}

/* Gallery grid for About page */
.about-gallery-section {
    padding: 1rem 0 4rem;
}
.gallery-heading {
    background-color: #5c0a1e;
    border-radius: 20px;
    color: #D4AF37;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: stretch;
}
.gallery-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.gallery-item img.gallery-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.gallery-item:hover img.gallery-thumb { transform: scale(1.03); }
.gallery-caption {
    padding: 0.6rem 0.9rem;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

/* Modal */
.gallery-modal { display: none; position: fixed; inset: 0; z-index: 1500; }
.gallery-modal[aria-hidden="false"] { display: block; }
.gallery-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.gallery-modal-content {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    /* background: #111; max-width: 920px; width: 94%; border-radius: 10px; padding: 1rem; z-index: 1510; */
    background-image: url('../images/Img_123.jpg');
    box-shadow: 0 20px 60px rgba(0,0,0,0.6); max-width: 920px; width: 94%; border-radius: 10px; padding: 1rem; z-index: 1510;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}
.gallery-close {
    position: absolute; right: 8px; top: 6px; background: transparent; border: none; color: #fff; font-size: 1.6rem; cursor: pointer;
}
.gallery-modal-img { width: 100%; height: auto; display: block; border-radius: 6px; margin-bottom: 0.75rem; }
.gallery-modal-title { color: #D4AF37; margin: 0 0 0.5rem 0; font-size: 1.75rem; text-align: center; }
.gallery-modal-desc {
    /* color: rgba(255,255,255,0.96); */
    /* color: #D4AF37; */
    color: #5c0a1e;
    text-align: center ;
    line-height: 1.8;
    padding: 0 0.5rem;
    white-space: normal;
    /* Prefer natural breaking and wrapping to avoid character clipping */
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 767px) {
    .gallery-modal-content { padding: 0.6rem; }
    .gallery-item img.gallery-thumb { height: 160px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dark-card-title { font-size: 3rem; }
    .dark-card-text { font-size: 1.5rem; }
    .gallery-item img.gallery-thumb { height: 200px; }
    /* Larger tablets */
    .gallery-heading { font-size: 3rem; }
    .gallery-caption { font-size: 1rem; }
    .gallery-modal-title { font-size: 3rem; }
    .gallery-modal-desc { font-size: 1.5rem; }
}