/* 1. CORE ARCHITECTURE */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #046bd2;
    --primary-dark: #ef5b0c;
    --secondary: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --sidebar-w: 380px;
}

.course-lp-main {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #334155;
    background: #f1f5f9;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 80px;
}

.lp-wrap {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 40px 24px;
}

/* UNIFIED HERO CARD (LIGHT THEME) */
.lp-hero-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.lp-hero-info {
    padding-top: 10px;
}

.lp-hero-purchase {
    background: #f8fafc;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.lp-badge {
    background: #eff6ff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dbeafe;
}

.lp-badge-icon {
    animation: pulseIcon 2s infinite;
    font-size: 14px;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.lp-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #1e293b;
}

.lp-tagline {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.6;
}

/* META INFO ROW */
.lp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.lp-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.lp-meta-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Purchase Side */
.lp-video-box {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
    cursor: pointer;
    background: #000;
    margin-bottom: 0;
}

.lp-video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.lp-play-btn span {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lp-purchase-body {
    padding: 24px;
}

/* 7. SHARED UI COMPONENTS (Unified) */

.lmspro-variation-description {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 8. PRODUCT ADD-ONS */
.lmspro-addons-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.lmspro-addon-field-wrap {
    margin-bottom: 16px;
}

.lmspro-addon-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.lmspro-addon-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
    transition: 0.2s;
}

.lmspro-addon-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
}

/* Price Selection Dropdowns */
.lmspro-price-select {
    width: 100%;
    height: 46px;
    padding: 0 35px 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    line-height: 44px;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.lmspro-price-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Price Value Display */
.lmspro-price-value {
    margin-top: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
}

.lmspro-price-hidden {
    display: none;
}

/* Validation & Effects */
.lmspro-highlight-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: lmspro-shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes lmspro-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.lp-btn-cta {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff !important;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    border: none;
}

.lp-btn-cta:hover {
    background: #ef5b0c;
    filter: none;
    transform: translateY(-1px);
}

.lp-btn-cta.disabled {
    background: #e2e8f0;
    color: #94a3b8 !important;
    pointer-events: none;
}

/* Secondary Button (Book Free Class) */
.lp-btn-secondary {
    display: block;
    width: 100%;
    background: #fff;
    color: #1e293b !important;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    margin-top: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lp-btn-secondary:hover {
    background: #f8fafc;
    color: var(--primary) !important;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* BODY LAYOUT */
.lp-body-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.lp-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.lp-section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e293b;
}

.lp-outcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 12px;
}

.lp-outcome-card {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.lp-main-prose {
    font-size: 17px;
    color: #334155;
}

.lp-main-prose p {
    margin-bottom: 24px;
}

/* Curriculum */
.lp-curriculum-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.lp-module-item {
    border-bottom: 1px solid var(--border);
}

.lp-module-item:last-child {
    border-bottom: none;
}

.lp-module-title {
    padding: 15px 20px;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FAQs */
.lp-faq-item {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.lp-faq-item summary {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.lp-faq-content {
    padding: 0 25px 25px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

/* Inputs */
.lp-select {
    width: 100%;
    padding: 14px 18px !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    appearance: none;
    height: auto !important;
    line-height: 1.5 !important;
    background-color: #fff !important;
    border: 1px solid var(--border) !important;
    color: #334155 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}



/* Mobile Bar */
.lp-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px 24px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transform: translateY(110%);
    transition: 0.4s;
}

.lp-mobile-bar.active {
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
    .lp-wrap {
        padding: 28px 20px;
    }

    .lp-hero-card {
        padding: 30px;
    }

    .lp-hero-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 36px;
    }

    .lp-section {
        padding: 30px;
    }

    .lp-outcome-grid {
        column-gap: 24px;
    }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    .lp-wrap {
        padding: 16px 14px;
        padding-bottom: 100px;
        /* space for sticky bar */
    }

    /* Hero card: single column, thumbnail on TOP */
    .lp-hero-card {
        padding: 20px 18px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Move the purchase/thumbnail column to top */
    .lp-hero-purchase {
        order: -1;
        background: transparent;
        padding: 0;
        border: none;
        border-radius: 0;
    }

    /* On mobile, video box is full-width with no extra margin */
    .lp-video-box {
        border-radius: 14px;
        margin-bottom: 0;
    }

    /* Purchase body gets its own card-like style */
    .lp-purchase-body {
        padding: 16px 0 0 0;
    }

    .lp-hero-info {
        padding-top: 0;
    }

    .lp-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 14px;
    }

    .lp-tagline {
        font-size: 15px;
        margin-bottom: 16px;
    }

    /* Meta row: tighten gap on mobile */
    .lp-meta-row {
        gap: 10px 20px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .lp-meta-item {
        font-size: 13px;
        gap: 8px;
    }

    /* Sections */
    .lp-section {
        padding: 22px 18px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .lp-section-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    /* Outcomes: 1 column on mobile */
    .lp-outcome-grid {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    /* FAQ tweaks */
    .lp-faq-item summary {
        padding: 16px 18px;
        font-size: 15px;
    }

    .lp-faq-content {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    /* Curriculum */
    .lp-module-title {
        padding: 13px 16px;
    }

    /* Buttons */
    .lp-btn-cta {
        padding: 14px;
        font-size: 15px;
    }

    .lp-btn-secondary {
        padding: 12px;
        font-size: 14px;
    }

    /* Mobile sticky bar — always visible hint */
    .lp-mobile-bar {
        padding: 12px 16px;
    }
}

/* --- Small Mobile (≤ 480px) --- */
@media (max-width: 480px) {
    .lp-wrap {
        padding: 12px 10px;
        padding-bottom: 90px;
    }

    .lp-hero-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .lp-title {
        font-size: clamp(22px, 7vw, 28px);
    }

    .lp-tagline {
        font-size: 14px;
    }

    /* Meta row: tighter on very small screens */
    .lp-meta-row {
        gap: 8px 16px;
    }

    .lp-section {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .lp-section-title {
        font-size: 18px;
    }

    .lp-outcome-card {
        font-size: 14px;
    }

    .lp-purchase-body {
        padding: 12px 0 0 0;
    }
}