/* =========================================================
   SIDEBAR LAYOUT
========================================================= */

.lajudemy-product-sidebar {
    width: 300px;
    margin-left: auto;
    margin-bottom: 30px;
}

.lajudemy-sidebar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.lajudemy-sidebar-card h3 {
    margin-top: 0;
    font-size: 20px;
}

/* =========================================================
   PREMIUM ACCESS CARD
========================================================= */

.lajudemy-sidebar-card:first-child{
    border:1px solid rgba(202,138,4,.28) !important;
    border-radius:12px !important;

    background:
        radial-gradient(circle at top right, rgba(251,191,36,.18), transparent 35%),
        linear-gradient(180deg,#ffffff 0%,#fffaf0 100%) !important;

    box-shadow:0 18px 45px rgba(120,53,15,.10) !important;
}

.lajudemy-sidebar-card:first-child .lajudemy-badge{

    display:flex !important;
    align-items:center;
    justify-content:center;

    width:100% !important;
    box-sizing:border-box;

    padding:13px 16px !important;

    border-radius:10px !important;

    background:
        linear-gradient(
            135deg,
            #fff2b8 0%,
            #facc15 45%,
            #b7791f 100%
        ) !important;

    color:#3f2a06 !important;

    font-size:17px !important;
    font-weight:900 !important;

    border:1px solid rgba(180,83,9,.35);

    box-shadow:
        0 10px 24px rgba(202,138,4,.18);

    margin-bottom:22px !important;
}

.lajudemy-sidebar-card:first-child p{
    color:#6b5b3e !important;
    font-size:14px !important;
    line-height:1.7 !important;
    margin-bottom:18px !important;
}

.lajudemy-sidebar-button {
    display: block;
    text-align: center;
    background: #6b35d5;
    color: #ffffff !important;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
}

.lajudemy-sidebar-button:hover {
    background: #5829b7;
    color: #ffffff !important;
}

.lajudemy-sidebar-card:first-child .lajudemy-sidebar-button{

    width:100% !important;
    box-sizing:border-box;

    border-radius:10px !important;

    padding:15px 18px !important;

    background:
        linear-gradient(
            135deg,
            #5b21b6 0%,
            #7c3aed 55%,
            #a855f7 100%
        ) !important;

    color:#ffffff !important;

    font-size:17px !important;
    font-weight:900 !important;

    box-shadow:
        0 14px 30px rgba(124,58,237,.28);
}

.lajudemy-sidebar-card:first-child .lajudemy-sidebar-button:hover{
    transform:translateY(-2px);

    box-shadow:
        0 18px 36px rgba(124,58,237,.34);
}

/* =========================================================
   SIDEBAR LIST
========================================================= */

.lajudemy-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.lajudemy-sidebar-card li {
    margin-bottom: 10px;
}

/* =========================================================
   PROGRESS BAR
========================================================= */

.lajudemy-progress-bar {
    background: #e5e7eb;
    height: 9px;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.lajudemy-progress-bar span {
    display: block;
    height: 100%;
    background: #6b35d5;
}

/* =========================================================
   PRODUCT LAYOUT
========================================================= */

.lajudemy-product-layout,
.lajudemy-product-sidebar,
.lajudemy-sidebar-card{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
}

@media (min-width: 992px) {

    .woocommerce div.product .woocommerce-tabs {
        width: calc(100% - 390px) !important;
        float: left !important;
        clear: none !important;
    }

    .lajudemy-product-layout {
        width: 340px !important;
        float: right !important;
        clear: none !important;
        margin-top: 34px !important;
    }

    .lajudemy-product-sidebar {
        width: 100% !important;
        margin: 0 !important;
        position: sticky !important;
        top: 100px !important;
    }

    .related.products {
        clear: both !important;
    }
}

@media (min-width: 1025px) {

    .single-product div.product {
        position: relative !important;
    }

    .single-product div.product div.images,
    .single-product .woocommerce-product-gallery {
        width: 32% !important;
        max-width: 32% !important;
        float: left !important;
        margin-right: 32px !important;
        margin-bottom: 32px !important;
    }

    .single-product div.product div.summary,
    .single-product .summary.entry-summary {
        width: 34% !important;
        max-width: 34% !important;
        float: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 0 !important;
    }

    .single-product .lajudemy-product-layout {
        width: 30% !important;
        max-width: 30% !important;
        float: right !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .single-product .woocommerce-tabs,
    .single-product .wc-tabs-wrapper {
        clear: both !important;
        padding-top: 25px !important;
    }

    .single-product .woocommerce-product-gallery img {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
    }
}

/* =========================================================
   CREATOR CARD — gaya Kelas Pilihan (lajunet.id)
========================================================= */

.lajudemy-sidebar-card:last-child {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 30px 22px 26px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(139, 92, 246, 0.18) !important;
    background:
        radial-gradient(circle at top center, rgba(167, 139, 250, 0.18), transparent 46%),
        linear-gradient(180deg, #ffffff 0%, #faf5ff 52%, #fdf4ff 100%) !important;
    box-shadow:
        0 10px 28px rgba(109, 40, 217, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.lajudemy-sidebar-card:last-child::before {
    content: "";
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background-image: url("https://lajunet.id/wp-content/uploads/2026/05/cropped-LajunetLogoBlack-1.jpg");
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    border: 3px solid #ffffff;
    box-shadow:
        0 12px 28px rgba(124, 58, 237, 0.2),
        0 0 0 5px rgba(167, 139, 250, 0.14);
}

.lajudemy-sidebar-card:last-child h3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    margin: 0 auto 14px !important;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b21b6 !important;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(244, 114, 182, 0.14));
    border: 1px solid rgba(139, 92, 246, 0.22);
    box-shadow:
        0 4px 16px rgba(109, 40, 217, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.lajudemy-sidebar-card:last-child h3::before {
    content: "✦";
    font-size: 10px;
    line-height: 1;
    color: #a78bfa;
}

.lajudemy-sidebar-card:last-child p:first-of-type {
    margin: 0 0 12px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #64748b !important;
}

.lajudemy-sidebar-card:last-child p strong {
    display: block;
    margin: 0 0 0 !important;
    font-size: clamp(1.35rem, 4vw, 1.65rem) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, #1e1b4b 0%, #4c1d95 35%, #111827 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.lajudemy-sidebar-card:last-child p strong::after {
    content: "";
    display: block;
    width: min(72px, 22vw);
    height: 3px;
    margin: 12px auto 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #a78bfa 0%, #c084fc 45%, #f472b6 100%);
    box-shadow: 0 2px 14px rgba(167, 139, 250, 0.45);
}

.lajudemy-sidebar-card:last-child p:last-of-type {
    max-width: 280px;
    margin: 0 auto !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #64748b !important;
}

.lajudemy-member-dashboard-btn,
.lajudemy-member-dashboard-btn:visited,
.lajudemy-member-dashboard-btn:hover,
.lajudemy-member-dashboard-btn:focus {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #16c45b, #0b9f45);
    color: #ffffff !important;
    padding: 15px 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(22, 196, 91, 0.25);
    transition: all 0.25s ease;
}

.lajudemy-member-dashboard-btn * {
    color: #ffffff !important;
}

.lajudemy-member-dashboard-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0b9f45, #087c37);
}