* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header with language switcher */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 32px;
    background: linear-gradient(135deg, #fafafa, #ffffff);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.company-name {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3b82f6;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    direction: ltr;
}

.language-switcher a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.language-switcher a:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.language-switcher .active-lang {
    background: #3b82f6;
    color: white;
}

.language-switcher span {
    color: #cbd5e1;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-bottom: 0;
}

.rotating-banner {
    text-align: center;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-text-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.rotating-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-align: center;
}

.rotating-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #f1f5f9;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #0f172a;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #0f172a;
}

.card p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.member-avatar {
    font-size: 64px;
    margin-bottom: 16px;
}

.member-title {
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.news-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    border-right: 4px solid #3b82f6;
    transition: all 0.3s;
}

.news-card:hover {
    background: #f1f5f9;
    transform: translateX(-5px);
}

.news-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #0f172a;
}

.news-card p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}

.news-meta {
    font-size: 12px;
    color: #94a3b8;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.read-more:hover {
    color: #1d4ed8;
}

/* Articles list */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-item {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-header h2 {
    margin-bottom: 12px;
}

.article-header h2 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.article-header h2 a:hover {
    color: #3b82f6;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-excerpt p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Article detail */
.full-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-header-detail {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.article-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-header-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0f172a;
}

.article-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #64748b;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 50px;
}

.article-content p {
    margin-bottom: 20px;
}

/* Attachments */
.attachments-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}

.attachments-section h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #0f172a;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.attachment-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    flex-wrap: wrap;
}

.attachment-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.attachment-icon {
    font-size: 32px;
}

.attachment-info {
    flex: 1;
}

.attachment-info strong {
    display: block;
    color: #0f172a;
    margin-bottom: 4px;
}

.file-type {
    display: inline-block;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #475569;
    margin-top: 4px;
}

.attachment-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-view, .btn-download {
    text-decoration: none;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-view {
    background: #3b82f6;
    color: white;
}

.btn-view:hover {
    background: #2563eb;
}

.btn-download {
    background: #10b981;
    color: white;
}

.btn-download:hover {
    background: #059669;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59,130,246,0.3);
}

.attachment-preview {
    margin-top: 12px;
    width: 100%;
}

.thumbnail {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.upload-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #cbd5e1;
}

.upload-section h4 {
    margin-bottom: 16px;
    color: #0f172a;
}

.upload-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.upload-form input[type="file"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
}

.btn-upload {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-upload:hover {
    background: #7c3aed;
}

.upload-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
}

.btn-back {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 32px 0;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 15px;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rotating-text {
        font-size: 18px;
    }
    
    .rotating-banner {
        height: 60px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .cards-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .banner {
        padding: 25px 0;
    }
    
    .article-header-detail h1 {
        font-size: 26px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .upload-form {
        flex-direction: column;
    }
    
    .upload-form input[type="file"] {
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .language-switcher {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .article-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .attachment-actions {
        flex-direction: column;
    }
}

/* Product images */
.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Team member avatar images */
.member-avatar-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback for icon display */
.card-icon, .member-avatar {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-image {
        height: 180px;
    }
    
    .member-avatar-img {
        width: 100px;
        height: 100px;
    }
}

/* استایل لینک‌های کارت‌ها */
.card-link-wrapper,
.news-card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.card-link-wrapper:hover,
.news-card-link:hover {
    transform: translateY(-5px);
}

.card-link-wrapper .card,
.news-card-link .news-card {
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-link-wrapper:hover .card,
.news-card-link:hover .news-card {
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
    border-color: #3b82f6;
}

.card-link {
    display: inline-block;
    color: #3b82f6;
    font-weight: 600;
    margin-top: 15px;
    transition: transform 0.2s;
}

.card-link-wrapper:hover .card-link {
    transform: translateX(5px);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

/* اطمینان از اینکه کل کارت کلیک‌پذیر است */
.product-card, .team-card, .news-card {
    pointer-events: none;
}

.card-link-wrapper, .news-card-link {
    pointer-events: auto;
}

/* دکمه بازگشت */
.btn-back {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 20px;
}

.btn-back:hover {
    background: #cbd5e1;
    color: #0f172a;
    transform: translateX(-5px);
}