/*
  Homepage layout shim for sections still using Bootstrap class names.
  Scoped under .cl-legacy and .cl-home-plans — NO global img/a/body rules.
*/

body.index {
    --primary: #8b1874;
    --bs-primary: #8b1874;
    --primary-100: #ffeffc;
    --purple: #8b1874;
    --pink: #d946ef;
    --teal: #20c997;
    --blue: #17a2b8;
    --gray-100: #f6f2f7;
    --gray-800: #17121c;
    --gray-900: #101014;
}

body.index[data-theme-style="dark"],
body.index.c_darkmode {
    --primary-100: rgb(139 24 116 / 0.2);
    --gray-100: #241a30;
    --gray-800: #f4eef7;
    --gray-900: #0e0a12;
    --body-bg: #120e18;
    background: #120e18 !important;
    color: #f4eef7;
}

body.index[data-theme-style="dark"] :is(.cl-legacy, .cl-home-plans),
body.index.c_darkmode :is(.cl-legacy, .cl-home-plans) {
    color: #f4eef7;
}

body.index[data-theme-style="dark"] :is(.cl-legacy, .cl-home-plans) .bg-white,
body.index[data-theme-style="dark"] :is(.cl-legacy, .cl-home-plans) .card,
body.index.c_darkmode :is(.cl-legacy, .cl-home-plans) .bg-white,
body.index.c_darkmode :is(.cl-legacy, .cl-home-plans) .card {
    background-color: #2d2238 !important;
    color: #f4eef7 !important;
}

body.index[data-theme-style="dark"] :is(.cl-legacy, .cl-home-plans) .bg-primary-100,
body.index.c_darkmode :is(.cl-legacy, .cl-home-plans) .bg-primary-100 {
    background-color: rgb(139 24 116 / 0.18) !important;
}

:is(.cl-legacy, .cl-home-plans),
:is(.cl-legacy, .cl-home-plans) *,
:is(.cl-legacy, .cl-home-plans) *::before,
:is(.cl-legacy, .cl-home-plans) *::after {
    box-sizing: border-box;
}

:is(.cl-legacy, .cl-home-plans) {
    font-family: "IRANSansWeb", Tahoma, sans-serif;
    color: #17121c;
    line-height: 1.6;
}

:is(.cl-legacy, .cl-home-plans) .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

:is(.cl-legacy, .cl-home-plans) .container {
    width: 100%;
    max-width: 1140px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

:is(.cl-legacy, .cl-home-plans) .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

:is(.cl-legacy, .cl-home-plans) .row > [class*="col"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

:is(.cl-legacy, .cl-home-plans) .col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

:is(.cl-legacy, .cl-home-plans) .col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

:is(.cl-legacy, .cl-home-plans) .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

:is(.cl-legacy, .cl-home-plans) .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    :is(.cl-legacy, .cl-home-plans) .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    :is(.cl-legacy, .cl-home-plans) .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    :is(.cl-legacy, .cl-home-plans) .justify-content-md-center {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    :is(.cl-legacy, .cl-home-plans) .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    :is(.cl-legacy, .cl-home-plans) .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    :is(.cl-legacy, .cl-home-plans) .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    :is(.cl-legacy, .cl-home-plans) .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    :is(.cl-legacy, .cl-home-plans) .mb-lg-0 {
        margin-bottom: 0 !important;
    }

    :is(.cl-legacy, .cl-home-plans) .py-lg-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

:is(.cl-legacy, .cl-home-plans) .d-flex { display: flex !important; }
:is(.cl-legacy, .cl-home-plans) .d-none { display: none !important; }
:is(.cl-legacy, .cl-home-plans) .d-inline-block { display: inline-block !important; }
:is(.cl-legacy, .cl-home-plans) .flex-column { flex-direction: column !important; }
:is(.cl-legacy, .cl-home-plans) .align-items-center { align-items: center !important; }
:is(.cl-legacy, .cl-home-plans) .justify-content-center { justify-content: center !important; }
:is(.cl-legacy, .cl-home-plans) .justify-content-between { justify-content: space-between !important; }
:is(.cl-legacy, .cl-home-plans) .float-right { float: right; }
:is(.cl-legacy, .cl-home-plans) .w-100 { width: 100% !important; }
:is(.cl-legacy, .cl-home-plans) .text-center { text-align: center !important; }
:is(.cl-legacy, .cl-home-plans) .text-left { text-align: left !important; }
:is(.cl-legacy, .cl-home-plans) .text-justify { text-align: justify !important; }
:is(.cl-legacy, .cl-home-plans) .text-decoration-none { text-decoration: none !important; }
:is(.cl-legacy, .cl-home-plans) .text-muted { color: #6c757d !important; }
:is(.cl-legacy, .cl-home-plans) .text-primary { color: #8b1874 !important; }
:is(.cl-legacy, .cl-home-plans) .text-success { color: #28a745 !important; }
:is(.cl-legacy, .cl-home-plans) .text-warning { color: #ffc107 !important; }
:is(.cl-legacy, .cl-home-plans) .text-gray-100 { color: #f6f2f7 !important; }
:is(.cl-legacy, .cl-home-plans) .text-gray-800 { color: #17121c !important; }
:is(.cl-legacy, .cl-home-plans) .font-weight-bold { font-weight: 700 !important; }
:is(.cl-legacy, .cl-home-plans) .h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
:is(.cl-legacy, .cl-home-plans) .h3 { font-size: 1.75rem; font-weight: 700; line-height: 1.3; }
:is(.cl-legacy, .cl-home-plans) .h5 { font-size: 1.1rem; font-weight: 600; margin: 0; }
:is(.cl-legacy, .cl-home-plans) .border-0 { border: 0 !important; }
:is(.cl-legacy, .cl-home-plans) .rounded { border-radius: 0.35rem !important; }
:is(.cl-legacy, .cl-home-plans) .shadow-sm { box-shadow: 0 2px 8px rgb(23 18 28 / 0.08) !important; }
:is(.cl-legacy, .cl-home-plans) .img-fluid { max-width: 100%; height: auto; display: block; }
:is(.cl-legacy, .cl-home-plans) .bg-primary-100 { background-color: #ffeffc !important; }
:is(.cl-legacy, .cl-home-plans) .bg-white { background-color: #fff !important; }
:is(.cl-legacy, .cl-home-plans) .bg-gray-900 { background-color: #17121c !important; }

:is(.cl-legacy, .cl-home-plans) .mt-2 { margin-top: 0.5rem !important; }
:is(.cl-legacy, .cl-home-plans) .mt-3 { margin-top: 1rem !important; }
:is(.cl-legacy, .cl-home-plans) .mt-4 { margin-top: 1.5rem !important; }
:is(.cl-legacy, .cl-home-plans) .mt-5 { margin-top: 3rem !important; }
:is(.cl-legacy, .cl-home-plans) .mt-8 { margin-top: 4.5rem !important; }
:is(.cl-legacy, .cl-home-plans) .mb-3 { margin-bottom: 1rem !important; }
:is(.cl-legacy, .cl-home-plans) .mb-4 { margin-bottom: 1.5rem !important; }
:is(.cl-legacy, .cl-home-plans) .mb-5 { margin-bottom: 3rem !important; }
:is(.cl-legacy, .cl-home-plans) .mb-6 { margin-bottom: 4rem !important; }
:is(.cl-legacy, .cl-home-plans) .mr-3 { margin-right: 1rem !important; }
:is(.cl-legacy, .cl-home-plans) .pt-3 { padding-top: 1rem !important; }
:is(.cl-legacy, .cl-home-plans) .p-2 { padding: 0.5rem !important; }
:is(.cl-legacy, .cl-home-plans) .p-3 { padding: 1rem !important; }
:is(.cl-legacy, .cl-home-plans) .px-0 { padding-left: 0 !important; padding-right: 0 !important; }
:is(.cl-legacy, .cl-home-plans) .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
:is(.cl-legacy, .cl-home-plans) .py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

:is(.cl-legacy, .cl-home-plans) .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #fff;
    border: 1px solid rgba(23, 18, 28, 0.08);
    border-radius: 0.75rem;
}

:is(.cl-legacy, .cl-home-plans) .card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

:is(.cl-legacy, .cl-home-plans) .card-header {
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid rgb(23 18 28 / 0.06);
}

:is(.cl-legacy, .cl-home-plans) .card-transparent,
:is(.cl-legacy, .cl-home-plans) .card.card-transparent {
    background: transparent;
    border: 0;
    box-shadow: none;
}

:is(.cl-legacy, .cl-home-plans) .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.5rem 0.85rem;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

:is(.cl-legacy, .cl-home-plans) .btn-lg {
    padding: 0.65rem 1.1rem;
    font-size: 1rem;
}

:is(.cl-legacy, .cl-home-plans) .btn-block {
    display: flex;
    width: 100%;
}

:is(.cl-legacy, .cl-home-plans) .btn-primary {
    color: #fff !important;
    background: linear-gradient(120deg, #8b1874, #5c0f4d) !important;
    border-color: #8b1874 !important;
}

:is(.cl-legacy, .cl-home-plans) .btn-link {
    font-weight: 600;
    color: #8b1874;
    text-decoration: none;
    background: transparent;
    border: 0;
    width: 100%;
}

:is(.cl-legacy, .cl-home-plans) .list-style-none {
    list-style: none;
    padding: 0;
    margin: 0;
}

:is(.cl-legacy, .cl-home-plans) .collapse:not(.show) {
    display: none;
}

:is(.cl-legacy, .cl-home-plans) .collapse.show {
    display: block;
}

:is(.cl-legacy, .cl-home-plans) .cl-faq-panel:not(.is-open) {
    display: none;
}

:is(.cl-legacy, .cl-home-plans) .cl-faq-panel.is-open {
    display: block;
}

.cl-home-plans .mb-3.text-center {
    margin-bottom: 1.25rem !important;
}
