/* ================================
   WORKSHOP HERO — Safe Classes
   ================================ */

.ws-hero {
    background: linear-gradient(135deg, #7f9cff, #a78bfa, #c084fc);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
}

/* TITLE + DESCRIPTION */
.ws-title {
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.ws-desc {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.20);
}

/* BUTTON */
.ws-btn {
    background: #ffffff;
    color: #5a3ccf;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.ws-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.7);
}

/* FLOATING SHAPES */
.ws-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.45;
    animation: wsFloat 8s ease-in-out infinite;
    z-index: 1;
}

.ws-shape-1 {
    width: 280px;
    height: 280px;
    top: -50px;
    left: -80px;
    background: #c084fc;
}

.ws-shape-2 {
    width: 220px;
    height: 220px;
    bottom: -40px;
    right: -60px;
    background: #93c5fd;
    animation-delay: 1.4s;
}

.ws-shape-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 55%;
    background: #a78bfa;
    animation-delay: 2.1s;
}

@keyframes wsFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-25px) scale(1.15);
    }
}

/* GLASS BLOB */
.ws-graphic {
    width: 260px;
    height: 260px;
    margin: auto;
    border-radius: 28% 72% 65% 35% / 43% 37% 63% 57%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    animation: wsBlob 6s ease-in-out infinite;
}

@keyframes wsBlob {

    0%,
    100% {
        border-radius: 28% 72% 65% 35% / 43% 37% 63% 57%;
    }

    50% {
        border-radius: 45% 55% 35% 65% / 60% 30% 70% 40%;
    }
}

/* FADE-UP ANIMATION */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards ease;
}

.delay-1 {
    animation-delay: .15s;
}

.delay-2 {
    animation-delay: .3s;
}

.delay-3 {
    animation-delay: .45s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   FEATURE CARDS
   ============================ */

.ws-feature-row {
    margin-top: 40px;
}

.ws-feature-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    color: #ffffff;
    transition: all 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.28);
    position: relative;
    overflow: hidden;
}

.ws-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125, 92, 255, 0.25), rgba(91, 178, 255, 0.25));
    opacity: 0;
    transition: .35s;
}

.ws-feature-card:hover::before {
    opacity: 1;
}

.ws-feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 35px rgba(140, 110, 255, 0.4);
}

.ws-feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff33, #ffffff14);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    transition: .35s;
}

.ws-feature-card:hover .ws-feature-icon {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.ws-feature-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ws-feature-card {
        padding: 24px 18px;
    }

    .ws-feature-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}


/* =========================================================
   WORKSHOP — CARD SECTION (ORIGINAL SAFE)
   ========================================================= */

.section-1 {
    background: rgba(249, 248, 253, 0.25); /* โปร่งใส 25% */
    backdrop-filter: blur(2px);          /* เบลอหนักขึ้น เพื่อความอ่านง่าย */
    -webkit-backdrop-filter: blur(18px);  /* รองรับ Safari */
}

/* Card */
.workshop-card {
    border: none;
    background: #fff;
    border-radius: 16px;
    transition: all 0.3s ease-in-out;
}

.workshop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(160, 120, 255, 0.15);
}

/* Card Image */
.workshop-img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
    transition: 0.3s ease;
    border-bottom: 3px solid #e5dcff;
}

.workshop-card:hover .workshop-img {
    transform: scale(1.03);
}

/* Card Hover Overlay */
.workshop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(84, 53, 136, 0.45);
    opacity: 0;
    transition: 0.3s;
}

.workshop-card:hover .workshop-overlay {
    opacity: 1;
}

/* Show All Button */
.btn-show-all-workshop {
    border-color: #7f68f5;
    color: #7f68f5;
    transition: all 0.3s ease;
}

.btn-show-all-workshop:hover {
    background-color: #7f68f5;
    color: #fff;
}


/* =========================================================
   BADGES — PRICE, STATUS
   ========================================================= */

.badge {
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.bg-success {
    background-color: #34d399 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.bg-primary {
    background-color: #9a8cff !important;
    color: #fff !important;
}

.bg-warning {
    background-color: #facc15 !important;
    color: #4a3f00 !important;
}

.bg-danger {
    background-color: #ef4444 !important;
    color: #fff !important;
}

/* 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);
}


/* =========================================================
   WORKSHOP — DATE BLOCK
   ========================================================= */

.workshop-date-block {
    border-top: 1px solid #ece7f9;
}

.workshop-date-block i {
    width: 18px;
}

.workshop-date-block span.fw-semibold {
    color: #5a4c8b;
}

.workshop-date-block .text-primary {
    color: #9a8cff !important;
}

.workshop-date-block .text-success {
    color: #34d399 !important;
}


/* =========================================================
   TEXT UTIL — Line Clamp
   ========================================================= */
/* ============================
   SELLING POINT LIST
============================ */
.wsx-selling-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.wsx-selling-list li {
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    opacity: 0.95;
}

/* ================================
   WHY-US BANNER – SAME TONE AS HERO
================================ */
.wsx-why-banner {
    background: linear-gradient(135deg, #7f9cff, #a78bfa, #c084fc);
    border-radius: 40px 40px 0 0;
    position: relative;
    padding-top: 90px;
    padding-bottom: 90px;
    color: #fff;
}

/* Floating Shapes (match Hero style) */
.why-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.45;
    animation: wsFloat 8s ease-in-out infinite;
    z-index: 1;
}

.why-shape-1 {
    width: 260px;
    height: 260px;
    background: #c084fc;
    top: -60px;
    left: -40px;
}

.why-shape-2 {
    width: 200px;
    height: 200px;
    background: #93c5fd;
    bottom: -40px;
    right: -40px;
    animation-delay: 1.2s;
}

/* Card inside banner */
.wsx-banner-card {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    text-align: center;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
    position: relative;
    z-index: 3;
}

.wsx-banner-card:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

/* Icon */
.wsx-banner-icon {
    font-size: 42px;
    color: #ffffff;
}

/* Text */
.wsx-subtitle {
    color: #ffffffcc;
}

/* Responsive */
@media (max-width: 768px) {
    .wsx-why-banner {
        border-radius: 28px 28px 0 0;
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

.text-lml2,
.text-lml3,
.text-lml4,
.text-lml5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-lml2 {
    -webkit-line-clamp: 2;
}

.text-lml3 {
    -webkit-line-clamp: 3;
}

.text-lml4 {
    -webkit-line-clamp: 4;
}

.text-lml5 {
    -webkit-line-clamp: 5;
}