
/* ===== SUCCESS MODAL ===== */
.booking-success-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.booking-success-modal {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 420px; width: 100%;
    text-align: center;
    animation: slideUp 0.35s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.bsm-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.booking-success-modal h4 {
    font-family: var(--font-display);
    color: var(--p4e-navy);
    margin-bottom: 0.5rem;
}
.booking-success-modal p { color: var(--p4e-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.bsm-checklist {
    list-style: none; padding: 0;
    text-align: left;
    background: var(--p4e-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.bsm-checklist li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--p4e-text);
    padding: 0.35rem 0;
}

/* ===== COURSE HERO ===== */
.course-hero {
    background: linear-gradient(135deg, var(--p4e-navy-dark) 0%, var(--p4e-navy) 60%, #0d3d6e 100%);
    padding: 7rem 0 4rem;
    position: relative; overflow: hidden;
}
.course-hero-bg {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.course-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; }
.course-breadcrumb .breadcrumb-item a:hover { color: white; }
.course-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.9); font-size: 0.85rem; }
.course-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.course-category-badge {
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px; font-size: 0.78rem; font-weight: 600; padding: 5px 14px; letter-spacing: 0.04em;
}
.urgency-badge {
    background: var(--p4e-red); color: white;
    border-radius: 50px; font-size: 0.75rem; font-weight: 700; padding: 5px 14px;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.8} }
.course-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: white; line-height: 1.2; margin: 0.75rem 0;
}
.course-hero-desc { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.course-trust-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trust-item {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px; padding: 5px 14px; font-size: 0.8rem; color: rgba(255,255,255,0.85); font-weight: 500;
}
.trust-item i { color: var(--p4e-gold); font-size: 0.85rem; }
.hero-social-proof { display: flex; align-items: center; gap: 0.75rem; }
.proof-avatars { display: flex; }
.proof-avatar {
    width: 32px; height: 32px; background: var(--p4e-red); border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: white; margin-left: -8px;
}
.proof-avatar:first-child { margin-left: 0; }
.hero-social-proof p { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 0; }
.hero-social-proof strong { color: white; }
.btn-whatsapp { background: #25D366; color: white; border: none; font-weight: 600; transition: all 0.2s; }
.btn-whatsapp:hover { background: #1da851; color: white; }

/* ===== HERO BOOKING CARD ===== */
.hero-booking-card {
    background: white; border-radius: 20px; padding: 2rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.hbc-header { margin-bottom: 1.5rem; }
.hbc-free-badge {
    display: inline-block; background: #ecfdf5; color: #059669;
    font-size: 0.78rem; font-weight: 700; padding: 4px 14px;
    border-radius: 50px; margin-bottom: 0.75rem; border: 1px solid #a7f3d0;
}
.hbc-header h4 { font-family: var(--font-display); color: var(--p4e-navy); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.hbc-header p { color: var(--p4e-muted); font-size: 0.82rem; margin: 0; }
.hbc-footer { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--p4e-border); }
.hbc-footer-item { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--p4e-muted); }

/* ===== SCORE STRIP ===== */
.score-strip { background: var(--p4e-navy); padding: 0.85rem 0; border-bottom: 3px solid var(--p4e-red); }
.score-strip-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.score-strip-label { color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.score-chip { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; font-size: 0.8rem; font-weight: 600; padding: 4px 14px; }

/* ===== CONTENT BLOCKS ===== */
.content-block { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--p4e-border); }
.content-block:last-child { border-bottom: none; margin-bottom: 0; }
.content-block-label { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--p4e-red); margin-bottom: 1.25rem; }
.course-overview-text { font-size: 0.95rem; color: var(--p4e-text); line-height: 1.85; }
.module-item { display: flex; gap: 10px; align-items: flex-start; padding: 0.875rem 1rem; background: var(--p4e-light); border-radius: var(--radius-md); border-left: 3px solid var(--p4e-red); height: 100%; }
.module-item i { color: var(--p4e-red); flex-shrink: 0; margin-top: 2px; }
.module-item span { font-size: 0.85rem; font-weight: 600; color: var(--p4e-navy); }
.for-whom-list { display: flex; flex-direction: column; gap: 0.75rem; }
.for-whom-item { display: flex; gap: 12px; align-items: flex-start; padding: 1rem; background: var(--p4e-light); border-radius: var(--radius-md); transition: all 0.2s; }
.for-whom-item:hover { background: #e8edf8; }
.for-whom-icon { width: 32px; height: 32px; background: var(--p4e-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; font-size: 0.75rem; }
.for-whom-item span { font-size: 0.875rem; color: var(--p4e-text); padding-top: 4px; }
.how-steps { display: flex; flex-direction: column; }
.how-step { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px dashed var(--p4e-border); }
.how-step:last-child { border-bottom: none; }
.how-step-num { width: 44px; height: 44px; background: linear-gradient(135deg, var(--p4e-navy), var(--p4e-navy-dark)); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.how-step-content h6 { font-weight: 700; color: var(--p4e-navy); margin-bottom: 0.25rem; font-size: 0.9rem; }
.how-step-content p { font-size: 0.83rem; color: var(--p4e-muted); margin: 0; line-height: 1.6; }
.approach-block { background: linear-gradient(135deg, var(--p4e-navy-dark), var(--p4e-navy)); border-radius: var(--radius-lg); padding: 2rem; border-bottom: none; }
.approach-item { display: flex; gap: 10px; align-items: flex-start; padding: 0.625rem 0; }
.approach-item i { color: var(--p4e-gold); flex-shrink: 0; margin-top: 2px; }
.approach-item span { font-size: 0.83rem; color: rgba(255,255,255,0.8); }
.mini-testimonial { background: var(--p4e-light); border-radius: var(--radius-md); padding: 1.25rem; height: 100%; border-left: 3px solid var(--p4e-gold); }
.mini-testimonial p { font-size: 0.83rem; color: var(--p4e-text); font-style: italic; margin: 0; }
.stars-sm { color: #f5a623; font-size: 0.85rem; }
.score-badge-sm { background: var(--p4e-red); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 10px; border-radius: 50px; }
.mini-avatar { width: 28px; height: 28px; background: var(--p4e-navy); border-radius: 50%; color: white; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p4e-accordion .accordion-item { border: 1px solid var(--p4e-border); border-radius: var(--radius-md) !important; margin-bottom: 0.5rem; overflow: hidden; }
.p4e-accordion .accordion-button { font-weight: 600; font-size: 0.9rem; color: var(--p4e-navy); background: var(--p4e-light); }
.p4e-accordion .accordion-button:not(.collapsed) { background: var(--p4e-navy); color: white; box-shadow: none; }
.p4e-accordion .accordion-body { font-size: 0.875rem; color: var(--p4e-muted); line-height: 1.75; }
.mobile-booking-card { background: var(--p4e-light); border-radius: var(--radius-lg); padding: 1.75rem; }
.free-badge-lg { display: inline-block; background: #ecfdf5; color: #059669; font-size: 0.85rem; font-weight: 700; padding: 6px 18px; border-radius: 50px; border: 1px solid #a7f3d0; }

/* ===== SIDEBAR ===== */
.course-sidebar { position: sticky; top: 90px; }
.sidebar-booking-card { background: white; border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 32px rgba(26,46,90,0.12); border: 1px solid var(--p4e-border); }
.sbc-header { margin-bottom: 1.25rem; }
.sbc-free-tag { display: inline-block; background: #ecfdf5; color: #059669; font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; margin-bottom: 0.625rem; border: 1px solid #a7f3d0; }
.sbc-header h5 { font-family: var(--font-display); color: var(--p4e-navy); font-weight: 700; margin-bottom: 0.25rem; font-size: 1rem; }
.sbc-header p { color: var(--p4e-muted); font-size: 0.8rem; margin: 0; }
.sidebar-highlights { background: var(--p4e-light); border-radius: 12px; padding: 1.25rem; }
.sidebar-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--p4e-navy); margin-bottom: 0.875rem; }
.highlights-list { list-style: none; padding: 0; margin: 0; }
.highlights-list li { display: flex; gap: 8px; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--p4e-border); font-size: 0.82rem; font-weight: 500; color: var(--p4e-navy); }
.highlights-list li:last-child { border-bottom: none; }
.highlights-list li i { color: var(--p4e-red); font-size: 0.85rem; flex-shrink: 0; }
.sidebar-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.sidebar-stat { background: var(--p4e-navy); border-radius: 10px; padding: 0.75rem 0.5rem; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.sidebar-stat-num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--p4e-gold); }
.sidebar-stat-label { font-size: 0.65rem; color: rgba(255,255,255,0.6); font-weight: 600; line-height: 1.3; }
.p4e-input { border: 1.5px solid var(--p4e-border); border-radius: 8px; padding: 0.6rem 0.875rem; font-size: 0.875rem; transition: border-color 0.2s; }
.p4e-input:focus { border-color: var(--p4e-navy); box-shadow: 0 0 0 3px rgba(26,46,90,0.08); }
.p4e-input.is-invalid { border-color: #dc3545; }

/* ===== BOTTOM CTA ===== */
.course-bottom-cta { background: linear-gradient(135deg, var(--p4e-red) 0%, #9b1924 100%); padding: 3rem 0; }
.bottom-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.bottom-cta-text h3 { font-family: var(--font-display); color: white; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.375rem; }
.bottom-cta-text p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; }
.bottom-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.other-course-btn { display: inline-flex; align-items: center; padding: 0.6rem 1.25rem; background: white; border: 1.5px solid var(--p4e-border); border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--p4e-navy); text-decoration: none; transition: all 0.2s; }
.other-course-btn:hover { background: var(--p4e-navy); color: white; border-color: var(--p4e-navy); }
.other-course-btn i { color: var(--p4e-red); }
.other-course-btn:hover i { color: white; }

/* ===== MOBILE STICKY BAR ===== */
.mobile-sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 2px solid var(--p4e-border); padding: 0.75rem 1rem; display: flex; gap: 0.75rem; z-index: 1000; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); }
.mobile-sticky-bar .flex-1 { flex: 1; text-align: center; }
@media (max-width: 991px) { body { padding-bottom: 80px; } }

/* ===== YOUTUBE VIDEO SECTION ===== */

/* Single video full-width embed */
.yt-single-wrap { width: 100%; }
.yt-embed-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    background: #000;
}
.yt-embed-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 16px;
}
.yt-caption {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--p4e-muted);
    font-style: italic;
    text-align: center;
}

/* Multi-video grid */
.yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Individual video card */
.yt-card {
    border-radius: 14px;
    overflow: hidden;
    background: white;
    border: 1.5px solid var(--p4e-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.yt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26,46,90,0.12);
}

/* Thumbnail wrapper */
.yt-thumb-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}
.yt-thumb-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.yt-thumb-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
}
.yt-card:hover .yt-thumb-img {
    transform: scale(1.04);
    opacity: 0.85;
}

/* Play button overlay */
.yt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.15);
    transition: background 0.2s;
}
.yt-card:hover .yt-play-overlay {
    background: rgba(0,0,0,0.3);
}
.yt-play-btn {
    width: 56px; height: 56px;
    background: #FF0000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(255,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    padding-left: 4px; /* optical center for play icon */
}
.yt-card:hover .yt-play-btn {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(255,0,0,0.5);
}

/* YouTube badge on thumbnail */
.yt-duration-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Card body */
.yt-card-body {
    padding: 0.875rem 1rem;
}
.yt-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--p4e-navy);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yt-card-caption {
    font-size: 0.75rem;
    color: var(--p4e-muted);
    margin: 0;
    line-height: 1.5;
}

/* Channel CTA bar */
.yt-channel-cta {
    background: #fff5f5;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.yt-channel-icon {
    width: 42px; height: 42px;
    background: #FF0000;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.btn-yt {
    background: #FF0000;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.btn-yt:hover {
    background: #cc0000;
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 575px) {
    .yt-grid { grid-template-columns: 1fr; }
    .yt-channel-cta .ms-auto { margin-left: 0 !important; width: 100%; }
    .btn-yt { width: 100%; text-align: center; }
}
