﻿/* ==========================================================
   فایل استایل صفحه اصلی بالندینگ
   ========================================================== */

/* ==========================================================
   1. انیمیشن‌ها
   ========================================================== */

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================
   2. بخش Hero
   ========================================================== */

.bal-intro {
    padding: 40px 0 20px;
    background: #ffffff;
}

    .bal-intro .row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .bal-intro .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 15px;
    }

.bal-badge {
    display: inline-block;
    background: #E8F2FF;
    color: #2A6CF0;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bal-intro h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 15px;
}

    .bal-intro h2 .highlight-blue {
        color: #2563eb;
    }

.bal-intro p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.bal-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bal-btn-primary {
    display: inline-block;
    background: #2A6CF0;
    color: #fff;
    padding: 11px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

    .bal-btn-primary:hover {
        background: #1a56d6;
        color: #fff;
        transform: translateY(-2px);
    }

.bal-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #0F172A;
    padding: 11px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid #2A6CF0;
    cursor: pointer;
}

    .bal-btn-secondary:hover {
        background: #2A6CF0;
        color: #fff;
        transform: translateY(-2px);
    }

.bal-intro-image {
    max-width: 200px;
    width: 100%;
}

/* ==========================================================
   3. کارت‌های ویژگی‌ها
   ========================================================== */

.bal-features {
    padding: 20px 0 30px;
    background: #ffffff;
}

.feature-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 18px;
    text-align: center;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(42, 108, 240, 0.10);
        border-color: #c7dff0;
    }

.feature-icon {
    width: 55px;
    height: 55px;
    background: #E8F2FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.6rem;
    color: #2A6CF0;
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.feature-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================
   4. بخش نقشه راه
   ========================================================== */

.roadmap-section {
    padding: 20px 0 20px;
    background: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

    .section-title span {
        display: inline-block;
        background: #E8F2FF;
        color: #2A6CF0;
        padding: 5px 20px;
        border-radius: 30px;
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .section-title h2 {
        font-size: 2.2rem;
        font-weight: 900;
        color: #0F172A;
        margin: 0;
    }

        .section-title h2 span {
            background: none;
            color: #2A6CF0;
            padding: 0;
        }

    .section-title p {
        color: #64748b;
        font-size: 0.95rem;
        max-width: 600px;
        margin: 6px auto 0;
    }

/* نقشه راه دایره‌ای */
.roadmap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

    .roadmap::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 3px;
        background: #e2e8f0;
        transform: translateY(-50%);
        z-index: 0;
        border-radius: 10px;
    }

.road-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 70px;
}

.road-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 3px solid #e2e8f0;
    transition: 0.3s;
    margin-bottom: 6px;
}

.road-item.active .road-circle {
    background: #2A6CF0;
    border-color: #2A6CF0;
    box-shadow: 0 8px 25px rgba(42, 108, 240, 0.3);
}

.road-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F172A;
    margin: 4px 0 2px;
}

.road-item span {
    font-size: 0.7rem;
    color: #94a3b8;
}

.road-item.active h4 {
    color: #2A6CF0;
}

/* ==========================================================
   5. جدول نقشه راه
   ========================================================== */

.roadmap-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
}

    .roadmap-table-wrap table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.85rem;
        min-width: 550px;
    }

    .roadmap-table-wrap thead {
        background: #0d4cb5;
    }

        .roadmap-table-wrap thead th {
            padding: 12px 16px;
            text-align: right;
            font-weight: 700;
            color: #ffffff;
            font-size: 0.85rem;
        }

    .roadmap-table-wrap tbody td {
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
        vertical-align: top;
        line-height: 1.7;
    }

    .roadmap-table-wrap tbody tr:last-child td {
        border-bottom: none;
    }

    .roadmap-table-wrap tbody tr:hover {
        background: #f8fbff;
    }

    .roadmap-table-wrap .chapter-name {
        font-weight: 700;
        color: #0F172A;
    }

/* ==========================================================
   6. بخش کارت‌های محتوایی (اسلایدی)
   ========================================================== */

.content-slider-section {
    padding: 20px 0 50px;
    background: #ffffff;
}

.content-slider-wrapper {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px 35px 35px;
    border: 1px solid #eef2f6;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.content-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f8fafc;
    min-height: 480px;
}

.content-slider-track {
    display: flex;
    transition: transform 0.6s ease;
}

/* کارت محتوایی */
.content-card {
    min-width: 100%;
    padding: 28px 30px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-sizing: border-box;
}

    .content-card .card-header {
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding-bottom: 10px;
        border-bottom: 2px solid #E8F2FF;
        margin-bottom: 10px;
    }

        .content-card .card-header .day-number {
            font-size: 1.8rem;
            font-weight: 900;
            color: #2A6CF0;
            line-height: 1;
        }

        .content-card .card-header .day-total {
            font-size: 0.85rem;
            color: #94a3b8;
        }

    .content-card .card-title-area h3 {
        font-size: 1.4rem;
        font-weight: 800;
        color: #0F172A;
        margin: 6px 0 16px;
    }

    .content-card .card-body .section-label {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 700;
        color: #2A6CF0;
        background: #E8F2FF;
        padding: 2px 14px;
        border-radius: 30px;
        margin-bottom: 4px;
    }

    .content-card .card-body p {
        color: #334155;
        font-size: 0.9rem;
        line-height: 1.8;
        margin: 0 0 10px 0;
    }

    .content-card .card-body .quote-text {
        font-size: 1rem;
        font-weight: 500;
        color: #0F172A;
        background: #f1f5f9;
        padding: 12px 16px;
        border-radius: 12px;
        border-right: 4px solid #2A6CF0;
        margin-bottom: 12px;
    }

    .content-card .card-body .author-name {
        font-size: 1rem;
        font-weight: 700;
        color: #2A6CF0;
    }

/* کنترل‌های اسلاید */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

    .slider-controls button {
        padding: 8px 20px;
        border-radius: 50px;
        border: 2px solid #e2e8f0;
        background: #fff;
        color: #0F172A;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: 0.3s;
    }

        .slider-controls button:hover {
            background: #2A6CF0;
            border-color: #2A6CF0;
            color: #fff;
        }

    .slider-controls .dot-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .slider-controls .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #d1d5db;
        border: none;
        cursor: pointer;
        transition: 0.3s;
        padding: 0;
    }

        .slider-controls .dot.active {
            background: #2A6CF0;
            width: 28px;
            border-radius: 10px;
        }

/* ==========================================================
   7. ریسپانسیو
   ========================================================== */

@media (max-width: 992px) {
    .bal-intro .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

        .bal-intro .col-lg-6:last-child {
            margin-top: 20px;
        }

    .bal-buttons {
        justify-content: center;
    }

    .bal-intro h2 {
        font-size: 2rem;
    }

    .roadmap::before {
        display: none;
    }

    .road-item {
        flex: 0 0 calc(50% - 10px);
    }

    .content-card {
        padding: 20px;
    }

    .content-slider-container {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .bal-intro {
        padding: 30px 0 15px;
    }

        .bal-intro h2 {
            font-size: 1.6rem;
        }

    .bal-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .bal-btn-primary,
    .bal-btn-secondary {
        text-align: center;
        width: 100%;
    }

    .bal-intro-image {
        max-width: 150px;
    }

    .bal-features {
        padding: 10px 0 20px;
    }

    .roadmap-section {
        padding: 10px 0 15px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .road-item {
        flex: 0 0 100%;
    }

        .road-item .road-circle {
            width: 48px;
            height: 48px;
            font-size: 1.2rem;
        }

    .roadmap-table-wrap table {
        font-size: 0.75rem;
        min-width: 400px;
    }

    .roadmap-table-wrap thead th,
    .roadmap-table-wrap tbody td {
        padding: 8px 10px;
    }

    .content-slider-section {
        padding: 10px 0 30px;
    }

    .content-slider-wrapper {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .content-slider-container {
        min-height: 380px;
    }

    .content-card {
        padding: 16px;
    }

        .content-card .card-header .day-number {
            font-size: 1.4rem;
        }

        .content-card .card-title-area h3 {
            font-size: 1.1rem;
        }

        .content-card .card-body p {
            font-size: 0.8rem;
        }

        .content-card .card-body .quote-text {
            font-size: 0.85rem;
            padding: 8px 12px;
        }

    .slider-controls button {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .bal-intro h2 {
        font-size: 1.3rem;
    }

    .bal-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .bal-btn-primary,
    .bal-btn-secondary {
        padding: 9px 18px;
        font-size: 0.8rem;
    }

    .bal-intro-image {
        max-width: 120px;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .roadmap-table-wrap table {
        font-size: 0.7rem;
        min-width: 320px;
    }

    .roadmap-table-wrap thead th,
    .roadmap-table-wrap tbody td {
        padding: 6px 8px;
    }

    .content-slider-container {
        min-height: 340px;
    }

    .content-card .card-body .section-label {
        font-size: 0.6rem;
        padding: 2px 10px;
    }

    .slider-controls {
        gap: 10px;
        flex-wrap: wrap;
    }
}
/* ==========================================================
   کادر اصلی (برای همه بخش‌ها)
   ========================================================== */

.main-card-wrapper {
    padding: 15px 0;
    background: #ffffff;
}

    .main-card-wrapper .bal-intro,
    .main-card-wrapper .bal-features,
    .main-card-wrapper .roadmap-section,
    .main-card-wrapper .content-slider-section {
        background: #ffffff;
        border-radius: 28px;
        padding: 35px 40px 30px;
        border: 1px solid #eef2f6;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    }

    /* برای بخش‌هایی که padding اضافی دارن */
    .main-card-wrapper .bal-features {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .main-card-wrapper .roadmap-section {
        padding: 30px 40px 30px;
    }

    .main-card-wrapper .content-slider-section {
        padding: 30px 40px 35px;
    }

/* ==========================================================
   ریسپانسیو کادرها
   ========================================================== */

@media (max-width: 992px) {
    .main-card-wrapper .bal-intro,
    .main-card-wrapper .bal-features,
    .main-card-wrapper .roadmap-section,
    .main-card-wrapper .content-slider-section {
        padding: 25px 18px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .main-card-wrapper .bal-intro,
    .main-card-wrapper .bal-features,
    .main-card-wrapper .roadmap-section,
    .main-card-wrapper .content-slider-section {
        padding: 18px 14px;
        border-radius: 16px;
    }
}

.content-card {
    outline: 2px solid red;
}