/* Atomdev Sales Experts - User Card UI مطابق HTML */
.mobile-dropdown {
    display: none;
    background: #fff;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    width: 100px;
}

.mobile-dropdown:focus,
.mobile-dropdown:hover {
    border-color: #0073aa; 
    outline: none; 
}

@media (max-width: 768px) {
    .desktop-tabs {
        display: none !important;
    }
    
    .mobile-dropdown {
        display: block; 
    }
	
	.experts-logo {
    width: 20px !important;
    height: 20px !important;
}
	.experts-brand h2  , .atomdev-table-brand h2 {
    font-size: 16px !important;
}
}
.experts-tab {
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    text-align: center;
    direction: rtl;
}

.experts-tab.active {
    background: #0073aa;
    color: white;
}

/* Header */
.experts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	margin-bottom:20px;
}
.bg-home-section {
    background: #fbf8ef;
}
.experts-brand { display: flex; align-items: center; gap: 12px; }
.experts-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a9c0f6, #346aea);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}
.experts-brand h2 { font-size: 20px; color: #1e293b; margin: 0; }
.experts-brand p {color: #64748b; margin-top: 2px; }

/* Filters */

.experts-filter-row { display: flex; align-items: center; gap: 16px; }
.experts-filter-label { font-weight: 600; min-width: 60px; color: #374151; }
.experts-tabs { display: flex; gap: 0px; flex-wrap: wrap; }
.experts-tab {
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
}
.experts-tab.active { background: #346aea; color: white; }
.experts-tab:not(.active):hover { background: #e2e8f0; }

/* Cards Container */
.experts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.expert-card {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.expert-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.expert-avatar {
    border-radius: 10px;
    margin: 0 auto 10px;
    display: block;
}
.expert-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    padding: 0 !important;
}
.expert-field {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
}.expert-phone { font-size: 0.85rem; color: #374151; direction: ltr; margin-bottom: 16px;font-weight: 600; }

.expert-socials { display: flex; justify-content: center; gap: 10px; }
.expert-socials a {
    width: -webkit-fill-available;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 10px;
    gap: 5px;
    font-weight: 600;
}
.expert-socials a:hover { opacity: 0.8;color: #fff !important;
 }
.expert-socials .telegram { background: #0088cc; }
.expert-socials .whatsapp { background: #25d366; }
.expert-socials svg { width: 18px; height: 18px; fill: white; }

@media (max-width: 1024px) { .experts-container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .expert-socials {
    flex-direction: column !important;
}
	.expert-socials a {
    height: 30px;
    font-size: 9px;
    gap: 45px;
}
	.expert-socials {
    gap: 5px;
}
	.expert-card {
    padding: 10px 20px;
}
	.expert-avatar {
    margin: 0 auto 5px;
}
	.expert-name , .expert-field , .expert-phone {
		margin:0 !important;
	}
	    .experts-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    } }
@media (max-width: 480px) { .experts-container { grid-template-columns: 1fr; } }

.atomdev-experts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tabs */
.atomdev-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.atomdev-tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.atomdev-tab-btn:hover {
    color: #495057;
    background: rgba(255,255,255,0.5);
}

.atomdev-tab-btn.active {
    background: #fff;
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

/* Grid */
.atomdev-experts-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.atomdev-experts-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.atomdev-experts-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Modern Expert Card */
.atomdev-expert-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.atomdev-expert-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.atomdev-expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6610f2, #e83e8c);
    border-radius: 20px 20px 0 0;
}

.expert-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.atomdev-expert-card:hover .expert-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.expert-info {
    padding: 24px;
    position: relative;
}

.expert-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.expert-info .title {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #007bff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expert-info .department {
    margin: 0 0 16px 0;
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.expert-info .bio {
    margin: 16px 0 20px 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modern Contact Buttons */
.expert-contact {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Contact Button Colors */
.contact-btn:nth-child(1) { background: linear-gradient(135deg, #28a745, #20c997); } /* Phone */
.contact-btn:nth-child(2) { background: linear-gradient(135deg, #0088cc, #229ED9); } /* Telegram */
.contact-btn:nth-child(3) { background: linear-gradient(135deg, #25D366, #128C7E); } /* WhatsApp */
.contact-btn:nth-child(4) { background: linear-gradient(135deg, #dc3545, #fd7e14); } /* Email */

/* Status Badge */
.expert-status {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #28a745;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expert-status.offline {
    background: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .atomdev-experts-container {
        padding: 16px;
    }

    .atomdev-tabs {
        gap: 6px;
        margin-bottom: 24px;
        padding: 6px;
    }

    .atomdev-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .atomdev-experts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .atomdev-experts-grid[data-columns="2"],
    .atomdev-experts-grid[data-columns="3"],
    .atomdev-experts-grid[data-columns="4"] {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .expert-image {
        height: 180px;
    }

    .expert-info {
        padding: 20px;
    }

    .expert-info h3 {
        font-size: 18px;
    }

    .expert-info .title {
        font-size: 13px;
    }

    .expert-info .bio {
        font-size: 13px;
    }

    .expert-contact {
        gap: 6px;
    }

    .contact-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .atomdev-experts-container {
        padding: 12px;
    }

    .atomdev-experts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .atomdev-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .atomdev-tabs::-webkit-scrollbar {
        display: none;
    }

    .atomdev-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .expert-image {
        height: 160px;
    }

    .expert-info {
        padding: 16px;
    }

    .expert-info h3 {
        font-size: 16px;
    }

    .contact-btn {
        width: 36px;
        height: 36px;
    }
}

/* Animation for card entrance */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.atomdev-expert-card {
    animation: cardFadeIn 0.6s ease-out;
}

/* Loading state */
.atomdev-experts-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: #6c757d;
}

.atomdev-experts-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ===== صفحه اختصاصی کارشناس ===== */

.atomdev-expert-card-link {
    text-decoration: none;
    color: inherit;
}

.atomdev-expert-single {
    background: #f9f9f9;
    padding: 40px 20px;
    min-height: 100vh;
}

.expert-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ردیف اول: 3 ستون */
.expert-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expert-col {
    display: flex;
    flex-direction: column;
}

/* ستون 1: ویدیو/تصویر */
.expert-video {
    justify-content: flex-start;
}

.expert-image-large {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.expert-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.no-image-large {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #999;
    border-radius: 8px;
    font-size: 16px;
}

/* ستون 2: اطلاعات */
.expert-details h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.expert-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.expert-department {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #999;
}

.expert-bio {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.expert-bio p {
    margin: 0 0 15px 0;
}

.expert-bio p:last-child {
    margin-bottom: 0;
}

/* ستون 3: فرم تماس */
.expert-form {
    justify-content: flex-start;
}

.contact-form-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.contact-form-wrapper h3 {
    margin: 0 0 25px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #555;
}

/* ردیف دوم: 3 ستون اطلاعات تماس */
.expert-contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
}

.contact-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.contact-link {
    display: inline-block;
    font-size: 16px;
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .expert-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 30px;
    }

    .expert-video {
        grid-column: 1 / -1;
    }

    .expert-contact-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .atomdev-expert-single {
        padding: 20px 15px;
    }

    .expert-row {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .expert-video {
        grid-column: auto;
    }

    .expert-details h1 {
        font-size: 24px;
    }

    .expert-title {
        font-size: 16px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .contact-form-wrapper h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .expert-contact-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .contact-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .expert-row {
        gap: 20px;
        padding: 15px;
    }

    .expert-details h1 {
        font-size: 20px;
    }

    .expert-bio {
        font-size: 14px;
    }

    .contact-form-wrapper {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 13px;
    }

    .contact-item {
        padding: 12px;
    }

    .contact-label {
        font-size: 12px;
    }

    .contact-link {
        font-size: 14px;
    }
}
