.klcc-frontend {
    --klcc-orange: #ff681f;
    --klcc-orange-dark: #e94c00;
    --klcc-orange-light: #ff955f;
    --klcc-orange-soft: #fff4ed;
    --klcc-navy: #171b45;
    --klcc-text: #45495b;
    --klcc-muted: #73778a;
    --klcc-white: #fff;
    --klcc-border: rgba(24, 29, 69, .09);
    --klcc-shadow: 0 22px 60px rgba(34, 38, 75, .09);

    width: min(100%, 1480px);
    margin: 60px auto 20px;
    clear: both;
    color: var(--klcc-text);
    font-family: inherit;
    line-height: 1.9;
}

.klcc-frontend *,
.klcc-frontend *::before,
.klcc-frontend *::after {
    box-sizing: border-box;
}

.klcc-section {
    position: relative;
    padding: clamp(25px, 4vw, 58px);
    margin-bottom: clamp(28px, 4vw, 52px);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--klcc-border);
    border-radius: clamp(20px, 3vw, 36px);
    box-shadow: var(--klcc-shadow);
    isolation: isolate;
}

.klcc-grid {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: stretch;
    gap: clamp(20px, 3vw, 38px);
}

.klcc-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.klcc-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.klcc-grid--single > * {
    width: min(100%, 900px);
    margin-inline: auto;
}

.klcc-title {
    margin: 0 0 20px;
    color: var(--klcc-navy);
    font-size: clamp(22px, 2.2vw, 35px);
    font-weight: 900;
    line-height: 1.45;
}

.klcc-text-content,
.klcc-text-content p,
.klcc-faq-answer,
.klcc-faq-answer p {
    text-align: justify;
    text-justify: inter-word;
}

.klcc-text-content p:last-child,
.klcc-faq-answer p:last-child {
    margin-bottom: 0;
}

/* معرفی */

.klcc-intro-section {
    color: #fff;
    background:
        radial-gradient(circle at 0 0, rgba(255,255,255,.18), transparent 30%),
        linear-gradient(135deg, #ff7c2c 0%, #ff5b0c 48%, #e74600 100%);
    border: 0;
    box-shadow: 0 28px 70px rgba(232, 71, 0, .23);
}

.klcc-intro-section .klcc-title {
    color: #fff;
}

.klcc-decor {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
}

.klcc-decor--one {
    top: -130px;
    left: -80px;
    width: 330px;
    height: 330px;
}

.klcc-decor--two {
    right: -60px;
    bottom: -180px;
    width: 420px;
    height: 420px;
}

.klcc-media-card {
    position: relative;
    padding: clamp(20px, 3vw, 34px);
    overflow: hidden;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 26px;
    box-shadow: 0 20px 45px rgba(114, 37, 0, .17);
}

.klcc-intro-section .klcc-media-card {
    color: var(--klcc-text);
    backdrop-filter: blur(18px);
}

.klcc-intro-section .klcc-media-card .klcc-title {
    color: var(--klcc-navy);
}

.klcc-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111325;
    border-radius: 19px;
    box-shadow: 0 14px 30px rgba(20, 24, 57, .2);
    aspect-ratio: 16 / 9;
}

.klcc-video-frame video,
.klcc-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.klcc-video-link {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #fff;
    background: #171b45;
    text-decoration: none;
    font-weight: 800;
}

.klcc-audio-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.klcc-audio-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--klcc-orange-light), var(--klcc-orange-dark));
    border-radius: 23px;
    box-shadow: 0 14px 28px rgba(255, 104, 31, .28);
}

.klcc-audio-icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.klcc-card-description {
    margin: -6px 0 25px;
    color: var(--klcc-muted);
}

.klcc-audio-card audio {
    width: 100%;
    min-height: 54px;
}

/* دانش‌لند */

.klcc-danesh-section {
    padding-top: clamp(65px, 7vw, 90px);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 104, 31, .11), transparent 34%),
        linear-gradient(145deg, #fff, #fffaf7);
}

.klcc-danesh-badge {
    position: absolute;
    top: 0;
    right: clamp(25px, 4vw, 58px);
    padding: 12px 28px 14px;
    color: #fff;
    background: linear-gradient(135deg, #ff7b2b, #ee4d00);
    border-radius: 0 0 18px 18px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 11px 24px rgba(238, 77, 0, .24);
}

.klcc-danesh-video {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.klcc-danesh-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(5px, 2vw, 25px);
}

.klcc-primary-button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 25px;
    margin-top: 25px;
    color: #fff !important;
    background: linear-gradient(135deg, #ff7828, #e94b00);
    border-radius: 14px;
    box-shadow: 0 13px 26px rgba(233, 75, 0, .22);
    text-decoration: none !important;
    font-weight: 800;
    transition: transform .25s ease, box-shadow .25s ease;
}

.klcc-primary-button:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 17px 32px rgba(233, 75, 0, .29);
}

.klcc-primary-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
}

/* عنوان سکشن */

.klcc-section-heading {
    position: relative;
    margin-bottom: 30px;
}

.klcc-heading-label {
    display: inline-flex;
    padding: 6px 13px;
    margin-bottom: 10px;
    color: var(--klcc-orange-dark);
    background: var(--klcc-orange-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.klcc-section-heading .klcc-title {
    margin-bottom: 0;
}

/* منابع */

.klcc-resources-section {
    background:
        linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
        radial-gradient(circle at 20% 20%, #ffb58e, transparent 30%);
}

.klcc-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.klcc-resource-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--klcc-border);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(31, 36, 73, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.klcc-resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(31, 36, 73, .13);
}

.klcc-resource-image,
.klcc-resource-placeholder {
    width: 100%;
    overflow: hidden;
    background: #fff4ed;
    aspect-ratio: 16 / 10;
}

.klcc-resource-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.klcc-resource-card:hover .klcc-resource-image img {
    transform: scale(1.045);
}

.klcc-resource-placeholder {
    display: grid;
    place-items: center;
    color: var(--klcc-orange);
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.8), transparent 28%),
        linear-gradient(135deg, #fff0e7, #ffd4bc);
}

.klcc-resource-placeholder svg {
    width: 68px;
    height: 68px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.klcc-resource-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 21px;
}

.klcc-resource-body h3 {
    margin: 0 0 18px;
    color: var(--klcc-navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.65;
}

.klcc-resource-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.klcc-resource-actions > :only-child {
    grid-column: 1 / -1;
}

.klcc-file-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 47px;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none !important;
    font-size: 13px;
     font-weight: 800;
    line-height: 1.4;
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.klcc-file-button:hover {
    transform: translateY(-2px);
}

.klcc-pdf-button {
    color: #fff !important;
    background: linear-gradient(135deg, #ff7828, #e94b00);
    border: 1px solid transparent;
    box-shadow: 0 9px 20px rgba(233, 75, 0, .18);
}

.klcc-pdf-button:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #ff8a45, #df4600);
    box-shadow: 0 13px 26px rgba(233, 75, 0, .26);
}

.klcc-audio-button {
    color: var(--klcc-orange-dark) !important;
    background: var(--klcc-orange-soft);
    border: 1px solid rgba(255, 104, 31, .18);
}

.klcc-audio-button:hover {
    color: #fff !important;
    background: var(--klcc-orange);
    border-color: var(--klcc-orange);
    box-shadow: 0 12px 24px rgba(255, 104, 31, .2);
}

.klcc-button-icon {
    display: inline-grid;
    width: 31px;
    height: 25px;
    place-items: center;
    color: var(--klcc-orange-dark);
    background: #fff;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.klcc-play-icon {
    display: inline-grid;
    width: 26px;
    height: 26px;
    padding-right: 2px;
    place-items: center;
    color: #fff;
    background: var(--klcc-orange);
    border-radius: 50%;
    font-size: 9px;
    line-height: 1;
}

.klcc-audio-button:hover .klcc-play-icon {
    color: var(--klcc-orange);
    background: #fff;
}

/* سؤالات متداول */

.klcc-faq-section {
    background:
        radial-gradient(
            circle at 100% 100%,
            rgba(255, 104, 31, .12),
            transparent 34%
        ),
        linear-gradient(145deg, #fff, #fffaf7);
}

.klcc-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
}

.klcc-faq-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.klcc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.klcc-faq-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--klcc-border);
    border-radius: 17px;
    box-shadow: 0 9px 25px rgba(31, 36, 73, .055);
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.klcc-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 31px rgba(31, 36, 73, .09);
}

.klcc-faq-item.is-open {
    border-color: rgba(255, 104, 31, .34);
    box-shadow: 0 15px 35px rgba(255, 104, 31, .11);
}

.klcc-faq-question {
    display: flex;
    width: 100%;
    min-height: 65px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    margin: 0;
    color: var(--klcc-navy);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: right;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.75;
    cursor: pointer;
    appearance: none;
}

.klcc-faq-question:hover,
.klcc-faq-question:focus,
.klcc-faq-question:active {
    color: var(--klcc-navy);
    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
}

.klcc-faq-question:focus-visible {
    outline: 3px solid rgba(255, 104, 31, .24);
    outline-offset: -3px;
}

.klcc-faq-question i {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    min-width: 34px;
    place-items: center;
    background: var(--klcc-orange-soft);
    border-radius: 10px;
    transition:
        background .25s ease,
        transform .25s ease;
}

.klcc-faq-question i::before,
.klcc-faq-question i::after {
    position: absolute;
    width: 13px;
    height: 2px;
    content: "";
    background: var(--klcc-orange-dark);
    border-radius: 99px;
    transition:
        background .25s ease,
        transform .25s ease;
}

.klcc-faq-question i::after {
    transform: rotate(90deg);
}

.klcc-faq-item.is-open .klcc-faq-question i {
    background: var(--klcc-orange);
    transform: rotate(180deg);
}

.klcc-faq-item.is-open .klcc-faq-question i::before,
.klcc-faq-item.is-open .klcc-faq-question i::after {
    background: #fff;
}

.klcc-faq-item.is-open .klcc-faq-question i::after {
    transform: rotate(0);
}

.klcc-faq-answer {
    color: var(--klcc-text);
}

.klcc-faq-answer[hidden] {
    display: none !important;
}

.klcc-faq-answer > div {
    padding: 0 20px 20px;
    border-top: 1px dashed rgba(24, 29, 69, .1);
}

.klcc-faq-answer p {
    margin: 15px 0 0;
    color: var(--klcc-text);
    font-size: 15px;
    line-height: 2;
}

.klcc-faq-answer ul,
.klcc-faq-answer ol {
    margin: 14px 20px 0 0;
}

.klcc-faq-answer a {
    color: var(--klcc-orange-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.klcc-faq-image {
    position: relative;
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.klcc-faq-image::before,
.klcc-faq-image::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.klcc-faq-image::before {
    top: 7%;
    right: 4%;
    width: 92px;
    height: 92px;
    background: rgba(255, 104, 31, .12);
}

.klcc-faq-image::after {
    bottom: 6%;
    left: 4%;
    width: 68px;
    height: 68px;
    border: 12px solid rgba(255, 104, 31, .13);
}

.klcc-faq-shape {
    position: absolute;
    inset: 8% 4%;
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255, 255, 255, .8),
            transparent 27%
        ),
        linear-gradient(135deg, #fff0e7, #ffd2b8);
    border-radius: 46% 54% 62% 38% / 44% 42% 58% 56%;
    transform: rotate(-4deg);
}

.klcc-faq-image img {
    position: relative;
    z-index: 2;
    display: block;
    width: min(100%, 520px);
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 22px 30px rgba(33, 38, 74, .12));
}

/* جلوگیری از تداخل استایل قالب */

.klcc-frontend button,
.klcc-frontend input,
.klcc-frontend audio,
.klcc-frontend video {
    font-family: inherit;
}

.klcc-frontend img {
    max-width: 100%;
}

.klcc-frontend figure {
    margin-inline: 0;
}

.klcc-frontend audio::-webkit-media-controls-panel {
    background: #fff4ed;
}

.klcc-frontend a {
    -webkit-tap-highlight-color: transparent;
}

/* انیمیشن ورود */

@keyframes klccFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.klcc-section {
    animation: klccFadeUp .55s ease both;
}

.klcc-section:nth-child(2) {
    animation-delay: .06s;
}

.klcc-section:nth-child(3) {
    animation-delay: .12s;
}

.klcc-section:nth-child(4) {
    animation-delay: .18s;
}

/* نمایشگرهای متوسط */

@media (max-width: 1100px) {
    .klcc-frontend {
        width: calc(100% - 30px);
        margin-top: 45px;
    }

    .klcc-resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .klcc-faq-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
        gap: 30px;
    }

    .klcc-faq-image {
        min-height: 300px;
    }
}

/* تبلت */

@media (max-width: 820px) {
    .klcc-grid--two,
    .klcc-faq-grid {
        grid-template-columns: 1fr;
    }

    .klcc-intro-section .klcc-grid {
        align-items: stretch;
    }

    .klcc-faq-image {
        grid-row: 1;
        width: min(100%, 550px);
        min-height: 280px;
        margin-inline: auto;
    }

    .klcc-faq-content {
        grid-row: 2;
    }

    .klcc-danesh-content {
        padding-inline: 0;
    }

    .klcc-primary-button {
        align-self: stretch;
    }
}

/* موبایل */

@media (max-width: 600px) {
    .klcc-frontend {
        width: calc(100% - 20px);
        margin-top: 30px;
    }

    .klcc-section {
        padding: 22px 16px;
        margin-bottom: 24px;
        border-radius: 20px;
    }

    .klcc-intro-section {
        padding: 16px;
    }

    .klcc-title {
        margin-bottom: 15px;
        font-size: clamp(20px, 6vw, 25px);
    }

    .klcc-media-card {
        padding: 17px;
        border-radius: 18px;
    }

    .klcc-video-frame {
        border-radius: 13px;
    }

    .klcc-audio-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 17px;
        border-radius: 17px;
    }

    .klcc-audio-icon svg {
        width: 28px;
        height: 28px;
    }

    .klcc-danesh-section {
        padding-top: 66px;
    }

    .klcc-danesh-badge {
        right: 18px;
        padding: 10px 20px 12px;
        border-radius: 0 0 14px 14px;
    }

    .klcc-resources-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .klcc-resource-card {
        border-radius: 17px;
    }

    .klcc-resource-body {
        padding: 17px;
    }

    .klcc-resource-actions {
        grid-template-columns: 1fr;
    }

    .klcc-resource-actions > :only-child {
        grid-column: auto;
    }

    .klcc-file-button {
        min-height: 50px;
    }

    .klcc-faq-grid {
        gap: 18px;
    }

    .klcc-faq-image {
        min-height: 220px;
        padding: 5px;
    }

    .klcc-faq-image::before {
        width: 65px;
        height: 65px;
    }

    .klcc-faq-image::after {
        width: 48px;
        height: 48px;
        border-width: 8px;
    }

    .klcc-faq-question {
        min-height: 60px;
        gap: 12px;
        padding: 14px;
        font-size: 14px;
    }

    .klcc-faq-question i {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 8px;
    }

    .klcc-faq-answer > div {
        padding: 0 14px 16px;
    }

    .klcc-faq-answer p {
        font-size: 14px;
        line-height: 1.95;
    }
}

/* موبایل کوچک */

@media (max-width: 380px) {
    .klcc-frontend {
        width: calc(100% - 14px);
    }

    .klcc-section {
        padding-inline: 12px;
    }

    .klcc-intro-section {
        padding-inline: 12px;
    }

    .klcc-media-card {
        padding: 14px;
    }

    .klcc-resource-body {
        padding: 14px;
    }

    .klcc-file-button {
        font-size: 12px;
    }
}

/* دسترس‌پذیری و حذف انیمیشن در صورت درخواست کاربر */

@media (prefers-reduced-motion: reduce) {
    .klcc-section,
    .klcc-resource-card,
    .klcc-resource-image img,
    .klcc-primary-button,
    .klcc-file-button,
    .klcc-faq-item,
    .klcc-faq-question i,
    .klcc-faq-question i::before,
    .klcc-faq-question i::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
