/* ============================================================
   LearnPress FAQ Videos – Frontend Styles
   ============================================================ */

.lp-faq-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}
.lp-faq-cols-1 { grid-template-columns: 1fr; }
.lp-faq-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lp-faq-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-faq-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .lp-faq-cols-3,
    .lp-faq-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .lp-faq-grid { grid-template-columns: 1fr !important; }
}

.lp-faq-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: box-shadow .25s, transform .25s;
    cursor: pointer;
}
.lp-faq-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    transform: translateY(-3px);
}

/* Thumbnail */
.lp-faq-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
}
.lp-faq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.lp-faq-card:hover .lp-faq-thumb img { transform: scale(1.05); }

.lp-faq-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e1e;
}
.lp-faq-no-thumb svg {
    width: 48px;
    height: 48px;
    stroke: #555;
    fill: none;
    stroke-width: 2;
}

/* Play button */
.lp-faq-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
    opacity: .85;
}
.lp-faq-play-btn svg {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.lp-faq-card:hover .lp-faq-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* Card body */
.lp-faq-card-body { padding: 14px 16px 18px; }
.lp-faq-card-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.lp-faq-question {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ---- Modal ---- */
.lp-faq-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lp-faq-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    cursor: pointer;
}
.lp-faq-modal-content {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    border-radius: 12px;
    width: 100%;
    max-width: 860px;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
    overflow: hidden;
    animation: lpFaqIn .22s ease;
}
@keyframes lpFaqIn {
    from { opacity: 0; transform: scale(.93); }
    to   { opacity: 1; transform: scale(1); }
}
.lp-faq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #111;
}
.lp-faq-modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #f0f0f0;
}
.lp-faq-modal-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color .2s;
}
.lp-faq-modal-close:hover { color: #fff; }

#lp-faq-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}
#lp-faq-player-container iframe,
#lp-faq-player-container video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}
