/* ================================================================
   Block Course Info – styles.css
   ================================================================ */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================================================================
   WRAPPER / LAYOUT
   ================================================================ */
.ci-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    padding: 0;
    width: 100%;
    max-width: none !important;
}

/* Course title header */
.ci-course-header {
    margin-bottom: 28px;
}

.ci-course-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Main two-column row */
.ci-main-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* Left column – content sections */
.ci-left {
    flex: 1 1 0;
    min-width: 0;
}

/* Right column – sidebar */
.ci-right {
    flex: 0 0 320px;
    width: 320px;
}

/* Bottom row – enrolment forms */
.ci-bottom-row {
    margin-top: 32px;
}

/* ================================================================
   CONTENT SECTIONS (Clean Layout — No Numbers, No Icons)
   ================================================================ */
.ci-sections-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ci-section-card {
    padding-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
}

.ci-section-card.ci-section-last {
    border-bottom: none;
    padding-bottom: 0;
}

.ci-section-heading {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.ci-section-body {
    font-size: 15px;
    color: #475569;
    line-height: 1.85;
}

.ci-section-body p:first-child { margin-top: 0; }
.ci-section-body p:last-child  { margin-bottom: 0; }

.ci-section-body ul,
.ci-section-body ol {
    padding-left: 20px;
    margin: 8px 0;
}

.ci-section-body li {
    margin-bottom: 8px;
}

.ci-section-body li::marker {
    color: #94a3b8;
}

/* Kandungan Kursus - Plain Listing (No Icons, No Numbers) */
.ci-course-content-list {
    padding-left: 20px;
    margin: 10px 0;
    list-style-type: disc;
}

.ci-content-section-item {
    margin-bottom: 14px;
}

.ci-section-title-text {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.ci-video-title-list {
    padding-left: 20px;
    margin: 6px 0 10px;
    list-style-type: disc;
}

.ci-video-title-list .ci-activity-item {
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.6;
}

.ci-no-content {
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
}

/* ================================================================
   VIDEO embed
   ================================================================ */
.ci-video-wrap,
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.ci-video-wrap iframe,
.ci-video-wrap video,
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 10px;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.ci-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

/* Course image */
.ci-sidebar-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #e2e8f0;
}

.ci-sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ci-sidebar-image:hover img {
    transform: scale(1.03);
}

/* Price block */
.ci-sidebar-price-block {
    padding: 18px 20px 4px;
}

.ci-price-free-tag {
    font-size: 24px;
    font-weight: 800;
    color: #059669;
}

.ci-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ci-price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ci-price-currency {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.ci-price-amount {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

/* HRDF badge */
.ci-hrdf-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.ci-hrdf-badge img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.ci-hrdf-badge span {
    font-size: 9px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Enrol button */
.ci-enrol-btn {
    display: block;
    margin: 14px 16px 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff !important;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(79,70,229,0.35);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.ci-enrol-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79,70,229,0.45);
}

.ci-enrol-btn .fa {
    margin-right: 6px;
}

.ci-enrol-disabled {
    background: #e5e7eb;
    color: #9ca3af !important;
    box-shadow: none;
    cursor: not-allowed;
}

.ci-enrol-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Sidebar meta grid */
.ci-sidebar-meta-grid {
    padding: 4px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ci-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
}

.ci-meta-item .fa {
    width: 18px;
    text-align: center;
    color: #6366f1;
    font-size: 14px;
    flex-shrink: 0;
}

.ci-meta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ci-meta-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ci-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

/* ================================================================
   USMPAY / ENROLMENT SECTION (bottom)
   ================================================================ */
.ci-enrolment-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ci-enrolment-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.ci-enrol-section-header { margin-bottom: 16px; }

.ci-enrol-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.12);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.ci-enrol-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.ci-enrol-forms-grid { display: flex; flex-direction: column; gap: 16px; }

.ci-enrol-form-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px 24px;
}

.ci-enrol-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #c7d2fe;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ci-enrol-form-body { color: #e0e7ff; }

/* ================================================================
   USMPAY specific overrides
   ================================================================ */
.ci-usmpay-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ci-usmpay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(99,102,241,0.5);
    transition: transform .2s, box-shadow .2s;
}

.ci-usmpay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.65);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .ci-main-row {
        flex-direction: column;
    }

    .ci-right {
        width: 100% !important;
        flex: unset !important;
        position: static;
    }

    .ci-course-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .ci-content-section {
        padding: 20px 18px;
    }

    .ci-usmpay-section {
        padding: 20px;
    }
}