/* Reset و فونت */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@font-face {
  font-family: 'titr';
  src: url('fonts/B Titr Bold_0.ttf') format('ttf');
}
@font-face {
  font-family: 'iran';
  src: url('fonts/fa-Iran-sans-web-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'vazir';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
}

body {
    font-family: 'vazir', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f7fa;
    direction: rtl;
}

/* تایپوگرافی */
h1, h2, h3, h4, h5, h6 {
    font-family: 'titr', 'Segoe UI', sans-serif;
    margin-bottom: 1rem;
    color: #1a365d;
}

p {
    margin-bottom: 1.5rem;
    font-family: 'iran', 'Segoe UI', sans-serif;
}

/* بخش هدر و عنوان */
.site-title {
    font-family: 'titr', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #e9b949;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.site-description {
    font-size: 1.2rem;
    color: white;
    font-family: 'iran', sans-serif;
}

.segment-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.page-title {
    color: #1a365d;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1a365d 0%, #2a4a7f 100%);
    border-radius: 4px;
}

.page-subtitle {
    color: #2a4a7f;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'iran', sans-serif;
    line-height: 1.8;
}

/* کارت‌های سگمنت */
.segment-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.segment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.segment-header {
    background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #e9b949;
}

.segment-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.segment-title {
    color: #e9b949;
    font-size: 1.6rem;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.segment-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50px;
    height: 3px;
    background: #e9b949;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.segment-card:hover .segment-title::after {
    width: 100%;
}

.segment-badge {
    background: linear-gradient(135deg, #e9b949 0%, #d4a63a 100%);
    color: #1a365d;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: 'iran', sans-serif;
    position: relative;
    z-index: 2;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.segment-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}   font-family: 'iran', sans-serif;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .segment-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .segment-title {
        font-size: 1.3rem;
    }
    
    .segment-title::after {
        width: 30px;
    }
    
    .segment-badge {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
}

.segment-content {
    padding: 2rem;
}

.segment-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.segment-image {
    width: auto;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.segment-card:hover .segment-image {
    transform: scale(1.02);
}

.segment-description {
    color: #444;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-family: 'iran', sans-serif;
    font-size: 1.05rem;
}

.segment-features {
    margin-bottom: 1.8rem;
}

.feature-list {
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    font-family: 'iran', sans-serif;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: #28a745;
    margin-left: 0.8rem;
    font-size: 1.1rem;
}

.examples-title {
    color: #1a365d;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-right: 0.8rem;
    border-right: 3px solid #e9b949;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.example-item {
    background: #f8f9fa;
    padding: 0.9rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'iran', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.example-item:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* بخش خلاصه */
.summary-section {
    background: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 3.5rem;
}

.summary-title {
    color: #1a365d;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.summary-table th, .summary-table td {
    padding: 1rem;
    text-align: right;
    border: 1px solid #dee2e6;
    font-family: 'iran', sans-serif;
}

.summary-table th {
    background-color: #1a365d;
    color: white;
    font-weight: bold;
    font-size: 1.05rem;
}

.summary-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.summary-table tr:hover {
    background-color: rgba(41, 74, 127, 0.05);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
    }
    
    .segment-title {
        font-size: 1.4rem;
    }
    
    .segment-content {
        padding: 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    
    .summary-section {
        padding: 1.5rem;
    }
    
    .summary-title {
        font-size: 1.7rem;
    }
    
    .summary-table th, .summary-table td {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .segment-image {
    width: auto;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}
    .segment-container {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-table th, .summary-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* انیمیشن‌های ظریف */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.segment-card {
    animation: fadeIn 0.5s ease forwards;
}

/* اسکرول نرم */
html {
    scroll-behavior: smooth;
}

/* بهبود فوکوس برای دسترسی بهتر */
a:focus, button:focus, .example-item:focus {
    outline: 2px solid #e9b949;
    outline-offset: 2px;
}