/* ===================== Workshop Detail ===================== */

/* Banner Section */
.workshop-detail-banner {
    background: linear-gradient(90deg, #6f35ff 0%, #8a2cff 35%, #6f58f7 70%, #4c63ff 100%);
    border-radius: 24px;
    color: #fff;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(90, 50, 180, 0.35);
}

.workshop-detail-banner h2 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.workshop-detail-banner .subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Main Section */
.workshop-detail-section {
    border-radius: 24px;
    padding: 2rem;
    margin-top: -60px;
}

/* Info blocks */
.workshop-detail-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    border-left: 5px solid #7a42ff;
    transition: all 0.3s ease;
}

.workshop-detail-block:hover {
    box-shadow: 0 6px 14px rgba(122, 66, 255, 0.15);
}

.workshop-detail-block h6 {
    font-weight: 600;
    color: #3b2f6d;
    margin-bottom: 0.5rem;
}

.workshop-detail-block p,
.workshop-detail-block li {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Lecturer Section */
.workshop-lecturer {
    border-radius: 16px;
    background: #f2efff;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(122, 66, 255, 0.15);
}

.workshop-lecturer img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #bfa7ff;
}

.workshop-lecturer h6 {
    color: #3b2f6d;
    font-weight: 600;
}

/* Button styles */
.btn-register-pp-le {
    background: linear-gradient(45deg, #7a42ff, #5a6dfb);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    text-align: center;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-register-pp-le:hover {
    background: #fff !important;
    color: #5a45e8 !important;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(90, 60, 240, 0.35);
    border: 2px solid #7a42ff;
}

/* Date + Time Block */
.workshop-date-block {
    border-top: 1px solid #e9e2ff;
    padding-top: 1rem;
    margin-top: 1rem;
}

.workshop-date-block span.fw-semibold {
    color: #3b2f6d;
}

/* Dropdown Content (แบบเก่า) */
.btn-drop-show {
    background: transparent;
    border: none;
    color: #3b2f6d;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: 0.3s;
}

.btn-drop-show:hover {
    color: #7a42ff;
}

.drop-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f8ff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.drop-content .content {
    padding: 0.5rem 0;
}

/* ===================== Workshop Accordion (Final Polished) ===================== */

.workshop-accordion .accordion-item {
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    transition: all 0.3s ease;
    border: none;
}

.workshop-accordion .accordion-item+.accordion-item {
    margin-top: 1rem;
}

/* ปุ่ม header (เปิดอยู่) */
.workshop-accordion-btn:not(.collapsed) {
    background: linear-gradient(90deg, #7a4dff 0%, #5c2deb 100%);
    color: #fff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(92, 45, 235, 0.3);
    transition: all 0.3s ease;
}

/* ลูกศรตอนเปิดอยู่ (พื้นหลังม่วง → สีขาวชัดเจน) */
.workshop-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(1) brightness(2);
    opacity: 1;
}

/* ลูกศรตอนปิด (พื้นหลังอ่อน → สีม่วงเข้มพอดี) */
.workshop-accordion .accordion-button.collapsed::after {
    filter: brightness(0) saturate(100%) invert(16%) sepia(54%) saturate(2300%) hue-rotate(240deg) brightness(85%) contrast(95%);
    opacity: 0.9;
}

.workshop-accordion-btn:not(.collapsed) i {
    color: #ffffffd0;
}

/* ปุ่ม header (หุบอยู่) */
.workshop-accordion-btn.collapsed {
    background: linear-gradient(90deg, #e7ddff 0%, #d3c0ff 100%);
    color: #3b2f6d;
    border: 1px solid #c4afff;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.workshop-accordion-btn.collapsed:hover {
    background: linear-gradient(90deg, #dccbff 0%, #c4aaff 100%);
    color: #2f225b;
    box-shadow: 0 3px 8px rgba(110, 60, 255, 0.25);
}

/* Body ของ accordion */
.workshop-accordion .accordion-body {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eee;
    line-height: 1.6;
    color: #444;
    transition: all 0.3s ease;
}

/* ลูกศร icon หมุน */
.workshop-accordion .accordion-button::after {
    transition: transform 0.3s ease;
}

.workshop-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* Effect ตอนเปิด/ปิด */
.accordion-collapse {
    transition: all 0.35s ease;
}

/* เว้นระยะบนสุด */
.workshop-accordion {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .workshop-detail-banner {
        text-align: center;
        padding: 2rem 1rem;
    }

    .workshop-detail-section {
        margin-top: -30px;
    }

    .workshop-accordion-btn {
        font-size: 0.95rem;
    }
}

/* ===================== Gradient Purple Button (WORKSHOP badge) ===================== */
.btn-gradient-purple {
    background: linear-gradient(90deg, #7a42ff 0%, #a66bff 50%, #5a6dfb 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(122, 66, 255, 0.35);
    transition: all 0.25s ease;
}

.btn-gradient-purple:hover,
.btn-gradient-purple:focus {
    background: linear-gradient(90deg, #5a32e8 0%, #8f54ff 50%, #4c63ff 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(122, 66, 255, 0.45);
    transform: translateY(-2px);
}

/* แบบขอบนุ่ม (ใช้คู่กับโทน workshop) */
.btn-gradient-purple::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, #c3a8ff, #7b9ffb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-gradient-purple:hover::before {
    opacity: 1;
}

/* ===================== Workshop Files Section ===================== */
.workshop-files-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workshop-file-card {
    background: #fff;
    border: 1px solid rgba(122, 66, 255, 0.15);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.workshop-file-card:hover {
    background: linear-gradient(90deg, #7a42ff10 0%, #9c3bff10 100%);
    border-color: rgba(122, 66, 255, 0.4);
    box-shadow: 0 4px 12px rgba(122, 66, 255, 0.15);
    transform: translateY(-2px);
}

.workshop-file-card .file-icon i {
    font-size: 1.6rem;
    color: #7a42ff;
}

.workshop-file-card .file-info .file-title {
    font-size: 0.95rem;
}

.workshop-file-card .file-open i {
    font-size: 1rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.workshop-file-card:hover .file-open i {
    transform: translateX(3px);
    opacity: 1;
}

@media (max-width: 768px) {
    .workshop-file-card {
        padding: 0.8rem 0.9rem;
    }

    .workshop-file-card .file-icon i {
        font-size: 1.3rem;
    }
}

/* ===================== Workshop Consider Badge ===================== */
.badge.bg-success-subtle {
    background: rgba(67, 201, 131, 0.15);
    border: 1px solid rgba(67, 201, 131, 0.25);
}

.badge.bg-secondary-subtle {
    background: rgba(180, 180, 180, 0.15);
    border: 1px solid rgba(160, 160, 160, 0.25);
}

.badge i {
    font-size: 0.9rem;
}

/* Free Badge */
.badge-free {
    background: linear-gradient(90deg, #9f82ff, #b991ff);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(160, 120, 255, 0.3);
}

/* Price Badge */
.badge-price {
    background: linear-gradient(90deg, #ff9ac6, #ffb8e3);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(255, 150, 200, 0.3);
}

/* Green Pastel Badge */
.badge-fade-green {
    background: linear-gradient(90deg, #7ed9b6, #9be7c8);
    color: white;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(120, 220, 180, 0.3);
}


.choice-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    background: #fafafa;
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
}

.choice-card:hover {
    border-color: #cfcfcf;
    background: #fff;
}

.choice-radio {
    margin-top: 3px;
    transform: scale(1.05);
}

.choice-card__title {
    font-weight: 600;
    line-height: 1.25;
}

.choice-card__sub {
    font-size: .92rem;
    line-height: 1.25;
    margin-top: 2px;
}

/* สถานะเลือก */
.choice-card.is-selected {
    border-color: rgba(86, 105, 248, .55);
    background: rgba(86, 105, 248, .06);
    box-shadow: 0 8px 26px rgba(86, 105, 248, .10);
}

.choice-card--invalid {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.12);
    border-radius: 12px;
}

/* ==============================
   Registration Choice Card
   Prefix: le-reg-choice-
   Theme: Blue
================================= */

.le-reg-choice-card {
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: relative;
}

.le-reg-choice-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #0ea5e9 0%, #38bdf8 100%);
    border-radius: 22px 0 0 22px;
}

.le-reg-choice-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.10);
    border: 1px solid rgba(14, 165, 233, 0.14);
}

.le-reg-choice-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    color: #0284c7;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.10);
}

.le-reg-choice-title {
    font-size: 1.2rem;
    line-height: 1.45;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0;
}

.le-reg-choice-detail {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.7;
}

.le-reg-choice-status {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.93rem;
    font-weight: 600;
    border: 1px solid #dbeafe;
}

@media (max-width: 576px) {
    .le-reg-choice-card {
        border-radius: 18px;
    }

    .le-reg-choice-card::before {
        border-radius: 18px 0 0 18px;
    }

    .le-reg-choice-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .le-reg-choice-title {
        font-size: 1.05rem;
    }

    .le-reg-choice-detail {
        font-size: 0.93rem;
        line-height: 1.6;
    }
}