/* استایل‌های کلی */
:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --text-color: #333;
    --bg-light: #f9f9f9;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* بخش قهرمان */
.hero-section {
    height: 70vh;
    background: url('./images/competency/1 (1).jpeg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(142, 68, 173, 0.8), rgba(195, 155, 211, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* بخش معرفی */
.intro-section {
    padding: 4rem 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.intro-text {
    text-align: justify;
}

.intro-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
    
}

/* انواع مدل‌های شایستگی */
.competency-types-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.competency-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.type-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

/* تحقیقات و آمار */
.research-stats-section {
    padding: 4rem 0;
}

.research-table {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 1rem;
    text-align: right;
    border: 1px solid #ddd;
}

th {
    background: var(--primary-color);
    color: white;
}

/* آمار جهانی */
.global-stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-info h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* باکس تماس */
.contact-box {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 4rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-box p {
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.phone-number {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.phone-number:hover {
    background: white;
    color: var(--primary-color);
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .competency-types-grid,
    .stats-dashboard {
        grid-template-columns: 1fr;
    }
    
    .research-table {
        font-size: 0.9rem;
    }
    
    .stat-card {
        margin: 1rem 0;
    }
}

/* بخش تحقیقات */
.research-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.research-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* انیمیشن‌های جدید */
.advantage-card:hover img {
    transform: scale(1.1);
}

.stat-card img {
    transition: transform 0.3s ease;
}

.stat-card:hover img {
    transform: scale(1.05);
}

/* بهینه‌سازی برای موبایل */
@media (max-width: 768px) {
    .advantage-card img,
    .stat-card img,
    .methodology-steps .step img {
        height: 200px;
    }
}

/* کارت‌های تعریف */
.definition-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.definition-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.definition-card:hover {
    transform: translateY(-5px);
}

/* نقشه راه */
.roadmap {
    position: relative;
    padding: 4rem 0;
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.roadmap-step {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.roadmap-step:nth-child(odd) {
    flex-direction: row-reverse;
}

/* آمار و ارقام */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

/* تحقیقات */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.custom-box {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.text-center {
    text-align: center;
}

.competency-main-types {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.type-box {
    flex: 1;
    padding: 2rem;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-dashboard .stat-card {
    background: rgba(255,255,255,0.9);
    color: #333;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    
}

.advantage-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin: 0  auto;
}

.advantage-card:hover {
    transform: translateY(-5px);
}



