/* ========== CORE ========== */
.shuhada-profile-modern {
    direction: rtl;
    text-align: right;
    font-family: 'calibri', 'Segoe UI', Tahoma, sans-serif;
    color: #334155;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
}

.profile-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-col {
    flex: 1;
    min-width: 300px;
}

.info-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.section-title {
    color: #1e293b;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
    position: relative;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    margin-right: 15px;
}

/* ========== TABS (row-3) ========== */
.tabs-box {
    padding: 0;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.tab-button {
    flex: 1;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: #f1f5f9;
    color: #475569;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: white;
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-text {
    line-height: 1.8;
    color: #334155;
    font-size: 15px;
    text-align: justify;
}

.no-content {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-style: italic;
}

/* ========== SOCIAL (row-5) ========== */
.full-width {
    flex: 1 1 100%;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.social-link svg {
    margin-left: 8px;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-link.youtube {
    background: #ff0000;
}

/* ========== WORKS (row-6) ========== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.work-item {
    display: block;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.work-image img,
.work-image-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.work-info {
    padding: 20px;
}

.work-title {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.work-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
}

/* ========== GALLERY (row-4) ========== */
.gallery-preview {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.preview-item {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-count {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

/* ========== LIGHTBOX ========== */
.shuhada-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.shuhada-lightbox.active {
    display: block;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #fbbf24;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    right: -80px;
}

.lightbox-next {
    left: -80px;
}

.lightbox-main {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    display: inline-block;
    border-radius: 20px;
    margin: 0 auto;
    width: fit-content;
}

.lightbox-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 0;
    justify-content: center;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumb-item:hover,
.thumb-item.active {
    opacity: 1;
    border-color: #3b82f6;
    transform: scale(1.05);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .lightbox-prev {
        right: 20px;
    }
    .lightbox-next {
        left: 20px;
    }
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .preview-item {
        width: 100px;
        height: 100px;
    }
    .lightbox-content {
        width: 95%;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .thumb-item {
        width: 60px;
        height: 60px;
    }
    .image-counter {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .preview-item {
        width: 80px;
        height: 80px;
    }
    .lightbox-prev {
        right: 10px;
    }
    .lightbox-next {
        left: 10px;
    }
    .thumb-item {
        width: 50px;
        height: 50px;
    }
    .image-counter {
        font-size: 14px;
        padding: 6px 12px;
    }
}









/* ========== EQUAL HEIGHT COLUMNS ========== */
.equal-height {
    display: flex;
    align-items: stretch; /* این باعث می‌شود ستون‌ها هم‌ارتفاع شوند */
}

.equal-height .profile-col {
    display: flex;
}

.equal-height .info-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.equal-height .profile-image-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equal-height .profile-image-box img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.equal-height .no-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    min-height: 200px;
}

/* ========== COMBINED INFO BOX (ردیف ۲) ========== */
.combined-info {
    padding: 30px;
}

.combined-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0px;
}

.info-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-section:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.subsection-title {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* تنظیمات آیتم‌های اطلاعاتی در بخش‌های ترکیبی */
.combined-info .info-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.combined-info .info-item:last-child {
    border-bottom: none;
}

.combined-info .info-label {
    font-size: 13px;
    color: #64748b;
}

.combined-info .info-value {
    font-size: 14px;
    color: #334155;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .combined-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .equal-height {
        flex-wrap: wrap;
    }
    
    .equal-height .profile-col {
        min-height: auto;
    }
    
    .combined-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-section {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .equal-height .profile-col {
        flex: 1 1 100%;
    }
}