/* =========================
   Register Section Cards - Refined UI
========================= */

.rs-register-wrap{
    direction: rtl;
}

.rs-register-grid{
    direction: rtl;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

/* ===== Card ===== */
.rs-card{
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rs-card:hover{
    border-color: #c9d8e8;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

/* ===== Header ===== */
.rs-toggle{
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px;
    text-align: right;
    cursor: pointer;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    background: linear-gradient(180deg, #f6f9fd 0%, #f2f6fb 100%) !important;
    border-bottom: 1px solid #e5edf5 !important;

    position: relative;
    transition: background .2s ease;
}

.rs-toggle:before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #72a8ff);
    opacity: .85;
}

.rs-toggle:hover{
    background: linear-gradient(180deg, #f3f7fc 0%, #eef4fa 100%) !important;
}

.rs-toggle:focus,
.rs-toggle:focus-visible{
    outline: none !important;
    box-shadow: none !important;
}

.rs-toggle-main{
    min-width: 0;
    flex: 1 1 auto;
}

.rs-title-line{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.7;
}

.rs-title{
    color: #111827;
    font-size: .98rem;
    font-weight: 900;
}

.rs-title-sep{
    color: #94a3b8;
    font-size: .92rem;
    font-weight: 700;
}

.rs-mode{
    color: #111827;
    font-size: .9rem;
    font-weight: 700;
}

.rs-chevron{
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(13,110,253,.10);
    color: #5f6f82;
}

.rs-chevron i{
    font-size: .78rem;
    transition: transform .2s ease, color .2s ease;
}

.rs-toggle:hover .rs-chevron{
    color: #0d6efd;
}

.rs-toggle[aria-expanded="true"] .rs-chevron i{
    transform: rotate(180deg);
}

/* ===== Body ===== */
.rs-body{
    padding: 14px 16px 16px;
}

/* ===== List ===== */
.rs-list{
    display: grid;
    gap: 0;
}

.rs-item{
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 18px;
    padding: 10px 0;
    border-bottom: 1px dashed #e8eef5;
    border-radius: 10px;
    transition: background .18s ease, padding-right .18s ease, padding-left .18s ease;
}

.rs-item:hover{
    background: #f7faff;
    padding-right: 10px;
    padding-left: 10px;
}

.rs-item:last-child{
    border-bottom: 0;
}

.rs-label{
    color: #6b7280;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.6;
    justify-self: start;
}

.rs-value{
    color: #111827;
    font-size: .93rem;
    font-weight: 900;
    line-height: 1.6;
    justify-self: end;
    text-align: left;
    white-space: nowrap;
}

/* ===== Capacity ===== */
.rs-capacity{
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.rs-capacity.is-open{
    color: #179861;
    font-weight: 1000;
}

.rs-capacity.is-full{
    color: #dc3545 !important;
    font-weight: 1000;
}

/* ===== Price ===== */
.rs-price-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 13px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
    border: 1px solid #dceafe;
    transition: background .18s ease, border-color .18s ease;
}

.rs-price-row:hover{
    background: linear-gradient(180deg, #f4f9ff 0%, #eef6ff 100%);
    border-color: #c8ddfb;
}

.rs-price-label{
    color: #111827;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.6;
}

.rs-price-main{
    color: #0d6efd;
    font-size: .98rem;
    font-weight: 1000;
    line-height: 1.5;
    white-space: nowrap;
    letter-spacing: -.2px;
}

.rs-price-stack{
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.rs-price-old{
    color: #8b98a9;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: line-through;
    white-space: nowrap;
}

.rs-price-new{
    color: #0d6efd;
    font-size: .96rem;
    font-weight: 1000;
    line-height: 1.25;
    white-space: nowrap;
}

/* ===== Action ===== */
.rs-action{
    margin-top: 14px;
}

.rs-register-btn{
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 900;
    padding: .68rem .9rem;
    box-shadow: none !important;
}

.rs-cta-muted{
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e4ebf3;
    background: #f8fafc;
    color: #5f6f82;
    font-size: .84rem;
    font-weight: 900;
    padding: .7rem .8rem;
}

.rs-cta-muted.is-danger{
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

/* ===== In-progress loading stripes ===== */
.rs-cta-muted.is-progress{
    background-color: #f8fafc;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(13,110,253,.08) 0,
        rgba(13,110,253,.08) 10px,
        transparent 10px,
        transparent 20px
    );
    background-size: 28px 28px;
    animation: rs-progress-stripes 1s linear infinite;
}

@keyframes rs-progress-stripes{
    from{ background-position: 0 0; }
    to{ background-position: 28px 0; }
}

@media (prefers-reduced-motion: reduce){
    .rs-cta-muted.is-progress{
        animation: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px){
    .rs-toggle{
        min-height: 72px;
        padding: 15px 14px;
    }

    .rs-title{
        font-size: .95rem;
    }

    .rs-mode{
        font-size: .88rem;
    }

    .rs-body{
        padding: 13px 14px 14px;
    }

    .rs-item{
        padding: 9px 0;
        gap: 8px 14px;
    }

    .rs-item:hover{
        padding-right: 9px;
        padding-left: 9px;
    }

    .rs-label{
        font-size: .86rem;
    }

    .rs-value{
        font-size: .91rem;
    }
}

@media (max-width: 575.98px){
    .rs-toggle{
        min-height: 68px;
    }

    .rs-chevron{
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}

/* =========================
   Dark Mode
========================= */

[data-bs-theme="dark"] .rs-card{
    background: #1f2329;
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
}

[data-bs-theme="dark"] .rs-card:hover{
    border-color: rgba(118,167,255,.24);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

[data-bs-theme="dark"] .rs-toggle{
    background: linear-gradient(180deg, #252b33 0%, #222931 100%) !important;
    border-bottom-color: rgba(255,255,255,.08) !important;
}

[data-bs-theme="dark"] .rs-toggle:hover{
    background: linear-gradient(180deg, #29303a 0%, #252d36 100%) !important;
}

[data-bs-theme="dark"] .rs-toggle:before{
    background: linear-gradient(90deg, #5f9dff, #8ec2ff);
}

[data-bs-theme="dark"] .rs-title,
[data-bs-theme="dark"] .rs-mode{
    color: rgba(255,255,255,.93);
}

[data-bs-theme="dark"] .rs-title-sep{
    color: rgba(255,255,255,.28);
}

[data-bs-theme="dark"] .rs-chevron{
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.62);
}

[data-bs-theme="dark"] .rs-toggle:hover .rs-chevron{
    color: #b9d3ff;
}

[data-bs-theme="dark"] .rs-item{
    border-bottom-color: rgba(255,255,255,.07);
}

[data-bs-theme="dark"] .rs-item:hover{
    background: rgba(255,255,255,.035);
}

[data-bs-theme="dark"] .rs-label{
    color: rgba(255,255,255,.72);
}

[data-bs-theme="dark"] .rs-value{
    color: rgba(255,255,255,.93);
}

[data-bs-theme="dark"] .rs-capacity.is-open{
    color: #6fd0a0;
}

[data-bs-theme="dark"] .rs-capacity.is-full{
    color: #ff8d98 !important;
}

[data-bs-theme="dark"] .rs-price-row{
    background: linear-gradient(180deg, rgba(84,154,255,.075), rgba(84,154,255,.04));
    border-color: rgba(118,167,255,.16);
}

[data-bs-theme="dark"] .rs-price-row:hover{
    background: linear-gradient(180deg, rgba(84,154,255,.10), rgba(84,154,255,.055));
    border-color: rgba(118,167,255,.24);
}

[data-bs-theme="dark"] .rs-price-label{
    color: rgba(255,255,255,.92);
}

[data-bs-theme="dark"] .rs-price-main,
[data-bs-theme="dark"] .rs-price-new{
    color: #84b6ff;
}

[data-bs-theme="dark"] .rs-price-old{
    color: rgba(255,255,255,.44);
}

[data-bs-theme="dark"] .rs-cta-muted{
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.68);
}

[data-bs-theme="dark"] .rs-cta-muted.is-danger{
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

[data-bs-theme="dark"] .rs-cta-muted.is-progress{
    background-color: rgba(255,255,255,.035);
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(132,182,255,.09) 0,
        rgba(132,182,255,.09) 10px,
        transparent 10px,
        transparent 20px
    );
}




















/* ===== Floating Register Button - Responsive Premium ===== */

.floating-register-btn{
    position: fixed;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 20px;
    cursor: pointer;

    color: #fff;
    font-weight: 900;

    background: linear-gradient(135deg, #0d6efd, #3d8bfd);
    box-shadow: 0 18px 45px rgba(13,110,253,.35);

    transform: translateY(120%);
    opacity: 0;

    transition:
            transform .45s cubic-bezier(.22,1,.36,1),
            opacity .35s ease,
            box-shadow .25s ease;
}

/* ظاهر در موبایل */
@media (max-width: 991.98px){
    .floating-register-btn{
        left: 16px;
        right: 16px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        padding: 15px 18px;
        font-size: 1rem;
    }
}

/* ===== Desktop: Premium Look ===== */
@media (min-width: 992px){
    .floating-register-btn{
        left: auto;
        right: 30px;
        bottom: 90px;          /* برای اینکه روی back-to-top نیفته */

        min-width: 180px;
        padding: 12px 18px;
        font-size: .95rem;

        /* گردی کمتر */
        border-radius: 14px;

        background: linear-gradient(135deg, rgba(13,110,253,.95), rgba(61,139,253,.78));
        color: #fff;
        border: 1px solid rgba(255,255,255,.22);

        box-shadow:
                0 18px 45px rgba(13,110,253,.28),
                0 2px 0 rgba(255,255,255,.16) inset;

        transition:
                transform .45s cubic-bezier(.22,1,.36,1),
                opacity .35s ease,
                box-shadow .25s ease,
                filter .25s ease;
    }

    .floating-register-btn:hover{
        transform: translateY(-4px);
        filter: brightness(1.03);
        box-shadow:
                0 24px 60px rgba(13,110,253,.40),
                0 2px 0 rgba(255,255,255,.16) inset;
    }

    /* آیکون ساده و بدون بکگراند */
    .floating-register-btn i{
        width: auto;
        height: auto;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: inline-block;
        color: #fff;
    }
}

/* وقتی فعال شد */
.floating-register-btn.is-visible{
    transform: translateY(0);
    opacity: 1;
}

/* hover حرفه‌ای مخصوص دسکتاپ */
@media (min-width: 992px){
    .floating-register-btn{
        bottom: 90px !important;
    }
}

/* موبایل */
#register-section{
    scroll-margin-top: 10px;
}

/* دسکتاپ */
@media (min-width: 992px){
    #register-section{
        scroll-margin-top: 80px;
    }
}

/*suitable*/
.icon-badge {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.card-soft-success {
    background-color: rgba(25,135,84,.08);
}

.card-soft-danger {
    background-color: rgba(220,53,69,.08);
}

.hover-shadow {
    transition: transform .3s cubic-bezier(.4,0,.2,1),
    box-shadow .3s cubic-bezier(.4,0,.2,1),
    background-color .3s ease;
}

@media (hover:hover){
    .hover-shadow:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,.08);
    }

    .card-soft-success.hover-shadow:hover {
        background-color: rgba(25,135,84,.12);
    }

    .card-soft-danger.hover-shadow:hover {
        background-color: rgba(220,53,69,.12);
    }
}
/* فقط متن‌های داخل این دو کارت */
[data-bs-theme="light"] .card-soft-success .text-secondary,
[data-bs-theme="light"] .card-soft-danger  .text-secondary{
    color: #000 !important;   /* مشکی خالص در لایت */
}

[data-bs-theme="dark"] .card-soft-success .text-secondary,
[data-bs-theme="dark"] .card-soft-danger  .text-secondary{
    color: #fff !important;   /* سفید خالص در دارک */
}





/*teacher-card*/
.teacher-card{
    transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover:hover){
    .teacher-card:hover{
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0,0,0,.08);
    }
}

/* باکس مربعی واقعی */
.teacher-img-box{
    width: 180px;       /* اندازه مربع */
    aspect-ratio: 1/1;  /* مربع */
    overflow: hidden;
    border-radius: 1rem;
}

.teacher-img-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;  /* کراپ تمیز */
}

/* نقل قول سمت راست (RTL) */
.teacher-quote{
    border-right: 3px solid var(--bs-border-color);
    padding-right: 12px;
}

/* =========================================================
   Course Notify Form - Minimal Responsive State
   Scoped only to .cn-notify-*
========================================================= */

.cn-notify-card,
.cn-notify-card *{
    box-sizing: border-box;
}

.cn-notify-card{
    direction: rtl;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "content form"
        "message message";
    align-items: center;
    gap: 18px 28px;
    padding: 22px 24px;
    border: 1px solid #e3e8ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.cn-notify-content{
    grid-area: content;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cn-notify-icon{
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(245, 158, 11, .11);
    color: #b86b00;
    font-size: 17px;
}

.cn-notify-copy{
    min-width: 0;
    flex: 1 1 auto;
}

.cn-notify-title{
    margin: 0 0 5px;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.8;
}

.cn-notify-text{
    max-width: 720px;
    margin: 0;
    color: #667085;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.9;
}

.cn-notify-form{
    grid-area: form;
    display: grid;
    grid-template-columns: 250px auto;
    align-items: end;
    justify-content: end;
    gap: 10px;
    margin: 0;
}

.cn-notify-field{
    width: 250px;
    min-width: 0;
}

.cn-notify-label{
    display: block;
    margin: 0 0 7px;
    color: #374151;
    font-size: .82rem;
    font-weight: 800;
}

.cn-notify-input-wrap{
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #d8e1ec;
    border-radius: 11px;
    background: #ffffff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cn-notify-input-wrap:focus-within{
    border-color: rgba(13, 110, 253, .58);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .09);
}

.cn-notify-input-wrap > i{
    flex: 0 0 auto;
    color: #98a2b3;
    font-size: 14px;
}

.cn-notify-input{
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    text-align: left;
    box-shadow: none !important;
}

.cn-notify-input::placeholder{
    color: #a4afbd;
    opacity: 1;
}

.cn-notify-submit{
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    border: 1px solid #0d6efd;
    border-radius: 11px;
    background: #0d6efd;
    color: #ffffff;
    font: inherit;
    font-size: .86rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(13, 110, 253, .14);
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cn-notify-submit:hover{
    background: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(13, 110, 253, .19);
}

.cn-notify-submit:focus,
.cn-notify-submit:focus-visible{
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .16);
}

.cn-notify-message{
    grid-area: message;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -2px 0 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.8;
}

.cn-notify-message > i{
    flex: 0 0 auto;
    margin-top: 5px;
}

.cn-notify-message.is-success{
    color: #147a4b;
    background: rgba(25, 135, 84, .07);
    border-color: rgba(25, 135, 84, .14);
}

.cn-notify-message.is-info{
    color: #245fae;
    background: rgba(13, 110, 253, .06);
    border-color: rgba(13, 110, 253, .13);
}

.cn-notify-message.is-error{
    color: #b42318;
    background: rgba(220, 53, 69, .06);
    border-color: rgba(220, 53, 69, .13);
}

/* Medium screens: stack the action below the message copy before it gets cramped. */
@media (max-width: 1199.98px){
    .cn-notify-card{
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "form"
            "message";
        align-items: stretch;
        gap: 16px;
    }

    .cn-notify-form{
        justify-content: start;
    }
}

@media (max-width: 767.98px){
    .cn-notify-card{
        padding: 17px;
        border-radius: 16px;
        gap: 15px;
    }

    .cn-notify-content{
        align-items: flex-start;
        gap: 11px;
    }

    .cn-notify-icon{
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 11px;
        font-size: 15px;
    }

    .cn-notify-title{
        font-size: .95rem;
        line-height: 1.75;
    }

    .cn-notify-text{
        max-width: none;
        font-size: .84rem;
        line-height: 1.85;
    }

    .cn-notify-form{
        width: 100%;
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 10px;
    }

    .cn-notify-field{
        width: 100%;
    }

    .cn-notify-submit{
        width: 100%;
        min-height: 46px;
    }
}

[data-bs-theme="dark"] .cn-notify-card{
    border-color: rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, #22272e 0%, #1f242b 100%);
    box-shadow: none;
}

[data-bs-theme="dark"] .cn-notify-icon{
    background: rgba(245, 158, 11, .14);
    color: #f6bd5b;
}

[data-bs-theme="dark"] .cn-notify-title{
    color: rgba(255, 255, 255, .94);
}

[data-bs-theme="dark"] .cn-notify-text{
    color: rgba(255, 255, 255, .64);
}

[data-bs-theme="dark"] .cn-notify-label{
    color: rgba(255, 255, 255, .78);
}

[data-bs-theme="dark"] .cn-notify-input-wrap{
    border-color: rgba(255, 255, 255, .10);
    background: #292f36;
}

[data-bs-theme="dark"] .cn-notify-input-wrap:focus-within{
    border-color: rgba(132, 182, 255, .58);
    box-shadow: 0 0 0 3px rgba(84, 154, 255, .10);
}

[data-bs-theme="dark"] .cn-notify-input-wrap > i{
    color: rgba(255, 255, 255, .42);
}

[data-bs-theme="dark"] .cn-notify-input{
    color: rgba(255, 255, 255, .92);
}

[data-bs-theme="dark"] .cn-notify-input::placeholder{
    color: rgba(255, 255, 255, .34);
}

[data-bs-theme="dark"] .cn-notify-message.is-success{
    color: #7dd9a2;
    background: rgba(25, 135, 84, .11);
    border-color: rgba(125, 217, 162, .14);
}

[data-bs-theme="dark"] .cn-notify-message.is-info{
    color: #9cc6ff;
    background: rgba(84, 154, 255, .10);
    border-color: rgba(132, 182, 255, .14);
}

[data-bs-theme="dark"] .cn-notify-message.is-error{
    color: #ff9aa4;
    background: rgba(220, 53, 69, .10);
    border-color: rgba(255, 154, 164, .14);
}

@media (prefers-reduced-motion: reduce){
    .cn-notify-input-wrap,
    .cn-notify-submit{
        transition: none;
    }
}



/* =========================================================
   TAB: COURSE RESOURCES
   Scoped to #course-pills-5
========================================================= */

#course-pills-5 .resources-tab{
    display: grid;
    gap: 16px;
}

/* ---------- top shortcut ---------- */
#course-pills-5 .resources-shortcut{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(13,110,253,.12);
    background: linear-gradient(135deg, rgba(13,110,253,.09), rgba(13,110,253,.03));
}

#course-pills-5 .resources-shortcut-main{
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

#course-pills-5 .resources-shortcut-icon{
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    font-size: 18px;
    color: #0d6efd;
    background: rgba(13,110,253,.10);
}

#course-pills-5 .resources-shortcut-content{
    min-width: 0;
}

#course-pills-5 .resources-shortcut-title{
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 900;
    color: #111827;
}

#course-pills-5 .resources-shortcut-text{
    margin: 0;
    font-size: .88rem;
    line-height: 1.9;
    color: rgba(17,24,39,.72);
}

#course-pills-5 .resources-shortcut .btn{
    white-space: nowrap;
    border-radius: 12px;
    font-weight: 800;
    padding: 10px 16px;
}

/* ---------- accordion wrapper ---------- */
#course-pills-5 .resources-accordion .accordion-item{
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px !important;
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}

#course-pills-5 .resources-accordion .accordion-button{
    background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(13,110,253,.02));
    box-shadow: none !important;
    border: 0;
    padding: 16px 18px;
}

#course-pills-5 .resources-accordion .accordion-button:not(.collapsed){
    background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(13,110,253,.03));
    color: inherit;
}

#course-pills-5 .resources-accordion .accordion-button:focus{
    box-shadow: none !important;
}

#course-pills-5 .resources-accordion .accordion-button::after{
    display: none !important;
}

#course-pills-5 .resources-accordion .accordion-body{
    padding: 12px;
    background: #fff;
}

/* ---------- accordion head ---------- */
#course-pills-5 .resources-head{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

#course-pills-5 .resources-head-main{
    min-width: 0;
}

#course-pills-5 .resources-head-title{
    margin: 0;
    font-size: .98rem;
    font-weight: 900;
    color: #111827;
}

#course-pills-5 .resources-head-sub{
    margin: 4px 0 0;
    font-size: .84rem;
    line-height: 1.8;
    color: rgba(17,24,39,.62);
}

#course-pills-5 .resources-head-side{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-right: 6px;
}

#course-pills-5 .resources-head-count{
    font-size: .80rem;
    font-weight: 800;
    color: rgba(17,24,39,.56);
    white-space: nowrap;
}

#course-pills-5 .resources-head-chevron{
    font-size: 13px;
    color: rgba(17,24,39,.58);
    transition: transform .25s ease, color .25s ease;
}

#course-pills-5 .resources-accordion .accordion-button:not(.collapsed) .resources-head-chevron{
    transform: rotate(180deg);
    color: #0d6efd;
}

/* ---------- list ---------- */
#course-pills-5 .resources-list{
    display: grid;
    gap: 8px;
}

#course-pills-5 .resources-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    background: #fff;
    transition: .22s ease;
}

#course-pills-5 .resources-item:hover{
    background: #f8fbff;
    border-color: rgba(13,110,253,.18);
}

#course-pills-5 .resources-item-main{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

#course-pills-5 .resources-item-icon{
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 15px;
}

#course-pills-5 .resources-item-icon.is-official{
    background: rgba(13,110,253,.10);
    color: #0d6efd;
}
#course-pills-5 .resources-item-icon.is-support{
    background: rgba(25,135,84,.10);
    color: #198754;
}
#course-pills-5 .resources-item-icon.is-experience{
    background: rgba(111,66,193,.10);
    color: #6f42c1;
}

#course-pills-5 .resources-item-content{
    min-width: 0;
}

#course-pills-5 .resources-item-title{
    margin: 0 0 6px;
    font-size: .93rem;
    font-weight: 900;
    line-height: 1.8;
    color: #111827;
}

#course-pills-5 .resources-item-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: .80rem;
    color: rgba(17,24,39,.68);
}

#course-pills-5 .resources-item-meta span{
    position: relative;
}

#course-pills-5 .resources-item-meta span:not(:last-child)::after{
    content: "•";
    margin-right: 10px;
    color: rgba(17,24,39,.24);
}

#course-pills-5 .resources-item-action{
    flex: 0 0 auto;
}

#course-pills-5 .resources-item-action .btn{
    white-space: nowrap;
    border-radius: 12px;
    font-weight: 800;
    padding: 9px 14px;
}

#course-pills-5 .resources-item-action .btn-light{
    border: 1px solid rgba(0,0,0,.06);
}

/* ---------- note ---------- */
#course-pills-5 .resources-note{
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255,193,7,.10);
    border: 1px solid rgba(255,193,7,.18);
    color: #6b5200;
    font-size: .88rem;
    line-height: 1.95;
    font-weight: 700;
}

/* ---------- mobile ---------- */
@media (max-width: 767.98px){
    #course-pills-5 .resources-shortcut{
        flex-direction: column;
        align-items: stretch;
    }

    #course-pills-5 .resources-item{
        flex-direction: column;
        align-items: stretch;
    }

    #course-pills-5 .resources-item-action .btn{
        width: 100%;
    }

    #course-pills-5 .resources-head{
        align-items: flex-start;
    }

    #course-pills-5 .resources-head-side{
        padding-right: 0;
        gap: 8px;
        padding-top: 2px;
    }
}

/* ---------- dark mode ---------- */
[data-bs-theme="dark"] #course-pills-5 .resources-shortcut{
    background: linear-gradient(135deg, rgba(13,110,253,.18), rgba(13,110,253,.05));
    border-color: rgba(255,255,255,.08);
}

[data-bs-theme="dark"] #course-pills-5 .resources-shortcut-icon{
    background: rgba(13,110,253,.18);
    color: #8dc0ff;
}

[data-bs-theme="dark"] #course-pills-5 .resources-shortcut-title{
    color: rgba(255,255,255,.95);
}

[data-bs-theme="dark"] #course-pills-5 .resources-shortcut-text{
    color: rgba(255,255,255,.72);
}

[data-bs-theme="dark"] #course-pills-5 .resources-accordion .accordion-item{
    background: #1f2329;
    border-color: rgba(255,255,255,.08);
}

[data-bs-theme="dark"] #course-pills-5 .resources-accordion .accordion-button{
    background: linear-gradient(135deg, rgba(13,110,253,.20), rgba(13,110,253,.05));
    color: rgba(255,255,255,.95);
}

[data-bs-theme="dark"] #course-pills-5 .resources-accordion .accordion-button:not(.collapsed){
    background: linear-gradient(135deg, rgba(13,110,253,.24), rgba(13,110,253,.06));
}

[data-bs-theme="dark"] #course-pills-5 .resources-accordion .accordion-body{
    background: #1f2329;
}

[data-bs-theme="dark"] #course-pills-5 .resources-head-title{
    color: rgba(255,255,255,.95);
}

[data-bs-theme="dark"] #course-pills-5 .resources-head-sub{
    color: rgba(255,255,255,.62);
}

[data-bs-theme="dark"] #course-pills-5 .resources-head-count{
    color: rgba(255,255,255,.58);
}

[data-bs-theme="dark"] #course-pills-5 .resources-head-chevron{
    color: rgba(255,255,255,.76);
}

[data-bs-theme="dark"] #course-pills-5 .resources-accordion .accordion-button:not(.collapsed) .resources-head-chevron{
    color: #8dc0ff;
}

[data-bs-theme="dark"] #course-pills-5 .resources-item{
    background: #262b31;
    border-color: rgba(255,255,255,.08);
}

[data-bs-theme="dark"] #course-pills-5 .resources-item:hover{
    background: #2b3138;
    border-color: rgba(13,110,253,.24);
}

[data-bs-theme="dark"] #course-pills-5 .resources-item-title{
    color: rgba(255,255,255,.95);
}

[data-bs-theme="dark"] #course-pills-5 .resources-item-meta{
    color: rgba(255,255,255,.68);
}

[data-bs-theme="dark"] #course-pills-5 .resources-item-meta span:not(:last-child)::after{
    color: rgba(255,255,255,.22);
}

[data-bs-theme="dark"] #course-pills-5 .resources-item-icon.is-official{
    background: rgba(13,110,253,.18);
    color: #8dc0ff;
}

[data-bs-theme="dark"] #course-pills-5 .resources-item-icon.is-support{
    background: rgba(25,135,84,.18);
    color: #7dd9a2;
}

[data-bs-theme="dark"] #course-pills-5 .resources-item-icon.is-experience{
    background: rgba(111,66,193,.18);
    color: #c7b3ff;
}

[data-bs-theme="dark"] #course-pills-5 .resources-item-action .btn-light{
    background: #2b3138;
    color: rgba(255,255,255,.88);
    border-color: rgba(255,255,255,.08);
}

[data-bs-theme="dark"] #course-pills-5 .resources-note{
    background: rgba(255,193,7,.12);
    border-color: rgba(255,193,7,.20);
    color: #ffe08a;
}

#course-pills-5 .resources-shortcut .btn{
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1 !important;
    padding: 11px 15px !important;
    min-height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

#course-pills-5 .resources-shortcut .btn i{
    font-size: 13px !important;
    line-height: 1;
}