/* Landing Page v2 — Component-based sections */
/* All classes prefixed with lp- to avoid conflicts */

/* ═══ HERO ═══ */
.lp-hero { background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%); color: #fff !important; padding: 56px 0 48px; text-align: center; position: relative; overflow: hidden; }
.lp-hero::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 40px; background: var(--white); border-radius: 40px 40px 0 0; }
.lp-hero h1 { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; color: #fff !important; }
.lp-hero h1 span { color: #60A5FA !important; }
.lp-hero > .container > p { font-size: 15px; color: #94A3B8 !important; max-width: 560px; margin: 0 auto 24px; line-height: 1.7; }
.lp-hero-stat-num { font-size: 28px; font-weight: 800; color: #fff !important; }
.lp-hero-stat-label { font-size: 11px; color: #94A3B8 !important; margin-top: 2px; }
.lp-hero-cta { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; }
.lp-hero-cta .btn { padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-family); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-hero-primary { background: var(--primary) !important; color: #fff !important; }
.btn-hero-primary:hover { background: #1D4ED8 !important; }
.btn-hero-secondary { background: rgba(255,255,255,0.1) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.15) !important; }
.lp-hero-stats { display: flex; justify-content: center; gap: 40px; }
.lp-hero-stat { text-align: center; }

.lp-hero-visual {
    min-height: 520px;
    text-align: left;
    display: flex;
    align-items: center;
    background: #0F172A;
}

.lp-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.78) 44%, rgba(15,23,42,0.18) 100%);
}

.lp-hero-visual::after {
    z-index: 2;
}

.lp-hero-image {
    position: absolute;
    inset: 0;
}

.lp-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.lp-hero-visual .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.lp-hero-content {
    max-width: 640px;
}

.lp-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #BFDBFE;
    font-size: 12px;
    font-weight: 700;
}

/* Sized so the headline holds its intended two lines. The markup breaks after
   "cho", and the second line — "Product Management tại Việt Nam" — needed 711px
   at 44px against a 620px box, so it wrapped to a third line. At 38px it needs
   616px, which fits the 640px .lp-hero-content cap with room to spare for font
   fallback differences. Anything above 39px cannot fit, whatever the max-width:
   the parent caps at 640px. */
.lp-hero-visual h1 {
    font-size: 38px;
    letter-spacing: 0;
    max-width: 640px;
}

.lp-hero-visual > .container .lp-hero-content > p {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
    max-width: 540px;
    color: #CBD5E1 !important;
    font-size: 16px;
    line-height: 1.7;
}

.lp-hero-visual .lp-hero-cta,
.lp-hero-visual .lp-hero-stats {
    justify-content: flex-start;
}

.lp-hero-visual .lp-hero-stats {
    gap: 18px;
    flex-wrap: wrap;
}

.lp-hero-visual .lp-hero-stat {
    min-width: 112px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(15,23,42,0.42);
    text-align: left;
}

/* ═══ QUICK ACCESS ═══ */
.lp-quick-access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -20px; position: relative; z-index: 10; margin-bottom: 8px; }
.lp-qa-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: all 0.2s; text-decoration: none; color: inherit; }
.lp-qa-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.12); }
.lp-qa-top { display: flex; align-items: center; gap: 10px; }
.lp-qa-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.lp-qa-title { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.lp-qa-badge { font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.lp-qa-desc { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

/* ═══ SHARED SECTION ═══ */
.lp-section { padding: 48px 0; }
.lp-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.lp-section-header h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0; }
.lp-section-header h2 i { color: var(--primary); font-size: 18px; }
.lp-section-link { font-size: 12px; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; text-decoration: none; flex-shrink: 0; }
.lp-section-link:hover { text-decoration: underline; }
.lp-section-subtitle { font-size: 13px; color: var(--gray-500); margin-top: -12px; margin-bottom: 20px; }
.lp-community-bg { background: var(--gray-100); }
.lp-tools-bg { background: var(--gray-100); }
.lp-stats-bg { background: var(--gray-100); padding: 24px 0; }

/* ═══ COMMUNITY FEED ═══ */
.lp-community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-cm-compose { grid-column: 1 / -1; background: var(--white); border: 1px dashed var(--primary); border-radius: 12px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; text-decoration: none; transition: all 0.15s; }
.lp-cm-compose:hover { background: #EFF6FF; border-style: solid; }
.lp-cm-compose-icon { width: 36px; height: 36px; border-radius: 50%; background: #EFF6FF; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 14px; flex-shrink: 0; }
.lp-cm-compose span { font-size: 13px; color: var(--gray-400); flex: 1; }
.lp-cm-compose-btn { padding: 6px 14px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.lp-cm-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: border-color 0.15s; text-decoration: none; color: inherit; }
.lp-cm-card:hover { border-color: var(--primary); }
.lp-cm-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lp-cm-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--gray-500); flex-shrink: 0; }
.lp-cm-author { font-size: 12px; font-weight: 600; }
.lp-cm-time { font-size: 10px; color: var(--gray-400); }
.lp-cm-tag { font-size: 9px; padding: 1px 6px; border-radius: 3px; margin-left: auto; flex-shrink: 0; }
.lp-cm-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.lp-cm-text { font-size: 12px; color: var(--gray-500); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-cm-footer { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--gray-400); }

/* ═══ INTERVIEW QUESTIONS ═══ */
.lp-iq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-iq-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: border-color 0.15s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.lp-iq-card:hover { border-color: var(--primary); }
.lp-iq-role { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.lp-iq-role-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.lp-iq-role-name { font-size: 11px; font-weight: 600; color: var(--gray-600); }
.lp-iq-cat { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-left: auto; }
.lp-iq-text { font-size: 13px; font-weight: 500; line-height: 1.5; flex: 1; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-iq-stats { display: flex; gap: 10px; font-size: 10px; color: var(--gray-400); }

/* ═══ TOOLS ═══ */
.lp-tools-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lp-tool-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; transition: all 0.15s; text-decoration: none; color: inherit; }
.lp-tool-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.lp-tool-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 16px; }
.lp-tool-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.lp-tool-desc { font-size: 10px; color: var(--gray-400); line-height: 1.4; }

/* ═══ COURSES ═══ */
.lp-courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-course-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.15s; text-decoration: none; color: inherit; }
.lp-course-card:hover { border-color: var(--primary); }
.lp-course-thumb { height: 120px; display: flex; align-items: center; justify-content: center; position: relative; background: linear-gradient(135deg, #DBEAFE, #EFF6FF); }
.lp-course-duration { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 600; background: rgba(0,0,0,0.6); color: #fff; padding: 2px 6px; border-radius: 4px; }
.lp-course-body { padding: 12px; }
.lp-course-cat { font-size: 10px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.lp-course-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-course-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--gray-400); }

/* ═══ CTA BANNER ═══ */
.lp-cta-banner { background: linear-gradient(135deg, #1E3A5F, #0F172A); border-radius: 16px; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; }
.lp-cta-banner h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: #fff !important; }
.lp-cta-banner p { font-size: 13px; color: #94A3B8 !important; margin: 0; }
.lp-cta-btn { padding: 10px 24px; background: #D97706; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-family); white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lp-cta-btn:hover { background: #B45309; }

/* ═══ TOP LEARNERS — public profile showcase ═══ */
.lp-learners .lp-section-subtitle { max-width: 720px; }
.lp-learners-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.lp-learner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--white, #fff);
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-learner-card:hover {
    border-color: var(--primary, #2563EB);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.lp-learner-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 10px;
}
.lp-learner-avatar-ph {
    background: var(--primary-light, #DBEAFE);
    color: var(--primary, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}
.lp-learner-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900, #111827);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.6em;
    width: 100%;
    word-break: break-word;
}
.lp-learner-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-500, #6B7280);
    margin-top: auto;
    flex-wrap: wrap;
}
.lp-learner-lv {
    background: var(--gray-100, #F3F4F6);
    color: var(--gray-700, #374151);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.lp-learner-time { display: inline-flex; align-items: center; gap: 4px; }
.lp-learner-time i { font-size: 10px; }

/* ═══ PUBLIC PROFILE CTA — fallback when leaderboard has < 3 entries ═══ */
.lp-public-cta-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 60%);
    border: 1px solid var(--primary, #2563EB);
    border-radius: 16px;
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 28px;
    align-items: center;
}
.lp-public-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary, #2563EB);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.lp-public-cta-body h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--gray-900, #111827);
    line-height: 1.3;
}
.lp-public-cta-body p {
    font-size: 14px;
    color: var(--gray-700, #374151);
    line-height: 1.6;
    margin: 0 0 12px;
}
.lp-public-cta-body p strong { color: var(--primary, #2563EB); }
.lp-public-cta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}
.lp-public-cta-list li {
    font-size: 12px;
    color: var(--gray-700, #374151);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lp-public-cta-list li i { color: var(--primary, #2563EB); font-size: 12px; }
.lp-public-cta-list code {
    background: var(--gray-100, #F3F4F6);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--gray-700, #374151);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lp-public-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.lp-public-cta-note {
    font-size: 11px;
    color: var(--gray-500, #6B7280);
    max-width: 200px;
    text-align: right;
    line-height: 1.4;
}

/* ═══ STATS BAR ═══ */
.lp-stats-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lp-stat-item { text-align: center; }
.lp-stat-num { font-size: 20px; font-weight: 800; color: var(--primary); }
.lp-stat-label { font-size: 10px; color: var(--gray-400); margin-top: 2px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .lp-hero h1 { font-size: 24px; }
    .lp-hero-visual { min-height: 560px; padding-top: 44px; }
    .lp-hero-visual h1 { font-size: 32px; }
    .lp-hero-visual::before { background: linear-gradient(180deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.78) 62%, rgba(15,23,42,0.5) 100%); }
    .lp-hero-image img { object-position: center; }
    .lp-hero-stats { gap: 24px; }
    .lp-hero-stat-num { font-size: 22px; }
    .lp-quick-access { grid-template-columns: 1fr; margin-top: -24px; }
    .lp-community-grid { grid-template-columns: 1fr; }
    .lp-iq-grid { grid-template-columns: 1fr 1fr; }
    .lp-tools-grid { grid-template-columns: repeat(3, 1fr); }
    .lp-courses-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-cta-banner { flex-direction: column; text-align: center; padding: 24px; }
    .lp-stats-bar { grid-template-columns: repeat(3, 1fr); }
    .lp-learners-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lp-public-cta-card { grid-template-columns: 1fr; text-align: center; padding: 24px; gap: 16px; }
    .lp-public-cta-icon { margin: 0 auto; }
    .lp-public-cta-list { justify-content: center; }
    .lp-public-cta-actions { align-items: center; }
    .lp-public-cta-note { text-align: center; }
}
@media (max-width: 480px) {
    .lp-hero h1 { font-size: 20px; }
    .lp-hero-cta { flex-direction: column; align-items: center; }
    .lp-hero-stats { flex-wrap: wrap; gap: 16px; }
    .lp-iq-grid { grid-template-columns: 1fr; }
    .lp-tools-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-courses-grid { grid-template-columns: 1fr; }
    .lp-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .lp-learners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .lp-learner-card { padding: 12px 8px; }
    .lp-learner-avatar { width: 48px; height: 48px; }
    .lp-learner-name { font-size: 12px; margin-bottom: 6px; }
    .lp-learner-meta { font-size: 10px; gap: 6px; }
    .lp-section { padding: 32px 0; }
    .lp-section-header h2 { font-size: 17px; }
}

/* ============================================================
   Homepage Mentor Promo — below "Khóa học nổi bật"
   ============================================================ */
.hp-mentors-promo {
    padding: 48px 0;
    background: var(--white, #FFFFFF);
    border-top: 1px solid var(--border, #E5E7EB);
    border-bottom: 1px solid var(--border, #E5E7EB);
}

.hp-mentors-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.hp-mentors-head h2 {
    font-size: 22px; font-weight: 700; color: var(--gray-900, #1F2937);
    letter-spacing: -0.01em; margin: 0 0 4px;
}
.hp-mentors-head p {
    font-size: 14px; color: var(--gray-600, #6B7280);
    max-width: 620px; line-height: 1.55; margin: 0;
}

.hp-mentors-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 24px;
}

.hp-mini-mentor {
    background: var(--white, #FFF);
    border: 1px solid var(--border, #E5E7EB); border-radius: var(--radius-lg, 12px);
    padding: 20px 18px; text-decoration: none; color: inherit;
    transition: all 0.2s ease; text-align: center; display: block;
}
.hp-mini-mentor:hover {
    border-color: var(--primary, #2563EB);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.07));
    transform: translateY(-2px);
}

.hp-mini-avatar-wrap { position: relative; width: 72px; height: 72px; margin: 0 auto 12px; }
.hp-mini-avatar {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary-light, #DBEAFE);
}
.hp-mini-avail {
    position: absolute; bottom: 0; right: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--success, #059669); color: var(--white, #FFF);
    border: 2px solid var(--white, #FFF);
    display: inline-flex; align-items: center; justify-content: center; font-size: 9px;
}

.hp-mini-name {
    font-size: 14px; font-weight: 700; color: var(--gray-900, #1F2937);
    line-height: 1.3; margin-bottom: 2px;
}
.hp-mini-title {
    font-size: 12px; color: var(--gray-600, #6B7280); line-height: 1.4; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-mini-trust {
    font-size: 11px; color: var(--gray-700, #4B5563); font-weight: 500;
    display: flex; justify-content: center; gap: 6px; align-items: center; margin-bottom: 10px;
}
.hp-mini-trust .star { color: var(--accent, #D97706); }
.hp-mini-trust strong { color: var(--gray-900, #1F2937); font-weight: 700; }
.hp-mini-trust .muted { color: var(--gray-500, #9CA3AF); font-weight: 400; }
.hp-mini-trust .sep { color: var(--gray-300, #E5E7EB); }

.hp-mini-spec {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    color: var(--primary, #2563EB);
    background: var(--primary-lighter, #EFF6FF);
    padding: 3px 10px; border-radius: var(--radius-full, 9999px);
    margin-bottom: 10px;
}

.hp-mini-price {
    font-size: 12px; color: var(--gray-900, #1F2937); font-weight: 600;
    padding-top: 10px; border-top: 1px solid var(--gray-200, #F3F4F6);
}
.hp-mini-price.hp-mini-pending {
    color: var(--warning, #D97706); font-style: italic; font-weight: 500;
}

/* Become-a-mentor CTA banner */
.hp-become-mentor {
    display: flex; gap: 20px; align-items: center; justify-content: space-between;
    background: var(--gray-900, #1F2937);
    color: var(--white, #FFF);
    border-radius: var(--radius-lg, 12px);
    padding: 28px 32px;
}
.hp-become-left { display: flex; gap: 20px; align-items: flex-start; flex: 1; }
.hp-become-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(217, 119, 6, 0.18); color: var(--accent, #D97706);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.hp-become-copy h3 {
    font-size: 18px; font-weight: 700; color: var(--white, #FFF);
    margin: 0 0 6px; letter-spacing: -0.01em;
}
.hp-become-copy p {
    font-size: 14px; color: rgba(255,255,255,0.82);
    line-height: 1.55; margin: 0 0 10px; max-width: 560px;
}
.hp-become-copy p strong { color: var(--white, #FFF); }

.hp-become-benefits {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 12px; color: rgba(255,255,255,0.9); font-weight: 500;
}
.hp-become-benefits span { display: inline-flex; align-items: center; gap: 6px; }
.hp-become-benefits i { color: var(--accent, #D97706); font-size: 11px; }

.hp-become-mentor .btn-primary {
    background: var(--white, #FFF); color: var(--gray-900, #1F2937);
    border-color: var(--white, #FFF); flex-shrink: 0;
}
.hp-become-mentor .btn-primary:hover {
    background: var(--accent-light, #FEF3C7); color: var(--accent, #D97706);
    border-color: var(--accent-light, #FEF3C7);
}

/* Responsive */
@media (max-width: 1024px) {
    .hp-mentors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hp-mentors-promo { padding: 36px 0; }
    .hp-mentors-head { flex-direction: column; align-items: flex-start; }
    .hp-become-mentor { flex-direction: column; align-items: flex-start; padding: 24px; }
    .hp-become-left { gap: 14px; }
    .hp-become-icon { width: 40px; height: 40px; font-size: 18px; }
}
@media (max-width: 480px) {
    .hp-mentors-grid { grid-template-columns: 1fr; }
    .hp-become-left { flex-direction: column; }
}

/* ═══ HERO PRESENCE PANEL ═══ */
/* The "what's next" panel under the member count.

   It opens UPWARD. .lp-hero has overflow:hidden, so a panel dropping below the
   stat would be cut off at the hero's edge — anchoring to bottom:100% keeps it
   inside the box. */
.lp-hero-stat-live { position: relative; }

.lp-presence-btn {
    display: block; width: 100%; padding: 0; margin: 0;
    background: none; border: 0; text-align: inherit; font: inherit;
    color: inherit; cursor: pointer;
}
.lp-presence-btn[disabled] { cursor: default; }
.lp-presence-caret {
    font-size: 8px; margin-left: 5px; opacity: .75;
    transition: transform .18s ease;
}
.lp-presence-btn[aria-expanded="true"] .lp-presence-caret { transform: rotate(180deg); }
.lp-presence-btn:hover .lp-hero-stat-label,
.lp-presence-btn:focus-visible .lp-hero-stat-label { color: #CBD5E1 !important; }
.lp-presence-btn:focus-visible { outline: 2px solid #60A5FA; outline-offset: 4px; border-radius: 8px; }

/* Base case is the phone: the panel sits INLINE under the stat and pushes the
   page down. Overlaying it there covered both hero CTAs and the other two
   stats — on a 390px-wide hero there is nowhere for a 292px card to float that
   is not on top of something. Wide screens get the floating panel instead. */
.lp-presence-pop {
    position: static;
    z-index: 30;
    width: 100%;
    margin-top: 10px;
    padding: 15px 16px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 18px 44px rgba(2,6,23,0.34);
    text-align: left;
    cursor: default;
}
/* Author display beats the UA stylesheet's [hidden] { display: none }. */
.lp-presence-pop[hidden] { display: none; }

.lp-presence-pop.is-open { animation: lpPresenceIn .22s cubic-bezier(.2,.8,.3,1); }
@keyframes lpPresenceIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .lp-presence-pop.is-open { animation: none; }
    .lp-presence-caret { transition: none; }
}

/* Give the stat its own row on narrow screens so the inline panel gets the
   full width rather than the ~112px a stat box would otherwise hand it. */
@media (max-width: 899px) {
    .lp-hero-visual .lp-hero-stat-live { flex: 1 1 100%; }
}

/* Wide: float it beside the stat, arrow pointing left at it.

   Bottom-aligned with the stat rather than centred on it — the stats sit near
   the foot of the hero, and .lp-hero has overflow:hidden, so a centred panel
   hangs past the hero's bottom edge and loses its last rows. */
@media (min-width: 900px) {
    .lp-presence-pop {
        position: absolute;
        bottom: 0;
        left: calc(100% + 14px);
        width: 292px;
        max-width: calc(100vw - 32px);
        margin-top: 0;
    }
    .lp-presence-pop::after {
        content: '';
        position: absolute;
        bottom: 22px; right: 100%;
        border: 8px solid transparent;
        border-right-color: #fff;
    }
    .lp-presence-pop.is-open { animation-name: lpPresenceInSide; }
    @keyframes lpPresenceInSide {
        from { opacity: 0; transform: translateX(-6px); }
        to   { opacity: 1; transform: translateX(0); }
    }
}

/* Inner elements.

   Every one of these sets an explicit colour. .lp-hero declares
   `color: #fff !important`, which every descendant inherits — on this white
   card that renders the whole panel invisible unless each piece overrides it. */
.lp-presence-x {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px; padding: 0;
    border: 0; border-radius: 7px; background: none;
    color: #94A3B8; font-size: 12px; cursor: pointer; line-height: 1;
}
.lp-presence-x:hover { background: #F1F5F9; color: #475569; }

.lp-presence-kicker {
    display: flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: #64748B !important; margin-bottom: 7px;
}
.lp-presence-live {
    width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.18); flex-shrink: 0;
}

.lp-presence-when {
    font-size: 21px; font-weight: 800; color: #0F172A !important;
    line-height: 1.2; font-variant-numeric: tabular-nums;
}
.lp-presence-empty { font-size: 17px; }
.lp-presence-rel {
    display: inline-block; vertical-align: middle; margin-left: 7px;
    padding: 2px 8px; border-radius: 999px;
    background: #EFF6FF; color: #1D4ED8 !important;
    font-size: 10.5px; font-weight: 800; letter-spacing: .01em;
}

.lp-presence-where {
    margin-top: 7px; font-size: 13px; font-weight: 700; color: #334155 !important;
    line-height: 1.45; overflow-wrap: anywhere;
}
.lp-presence-where i { color: #EF4444 !important; margin-right: 4px; font-size: 11px; }
.lp-presence-city {
    display: inline-block; margin-left: 6px; padding: 1px 7px;
    border-radius: 999px; background: #F1F5F9; color: #475569 !important;
    font-size: 10.5px; font-weight: 700;
}
.lp-presence-going { margin-top: 5px; font-size: 12px; font-weight: 700; color: #059669 !important; }

.lp-presence-facts {
    margin-top: 12px; padding-top: 11px;
    border-top: 1px solid #E2E8F0;
    display: grid; gap: 5px;
}
.lp-presence-fact { font-size: 12.5px; color: #475569 !important; line-height: 1.5; }
.lp-presence-fact b { color: #0F172A !important; font-weight: 800; font-variant-numeric: tabular-nums; }

.lp-presence-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; font-size: 12.5px; font-weight: 800;
    color: #2563EB !important; text-decoration: none;
}
.lp-presence-cta:hover { color: #1D4ED8 !important; gap: 9px; }
.lp-presence-cta i { font-size: 10px; }

@media (max-width: 480px) {
    .lp-presence-when { font-size: 19px; }
}

/* Members/guests breakdown under the city line. This sits inside the WHITE
   popover, not on the dark hero, so it needs a grey that reads on white. */
.lp-presence-split {
    display: block; margin-top: 2px;
    font-size: 11.5px; color: #64748B !important;
    font-variant-numeric: tabular-nums;
}

/* ── Hero on phones ────────────────────────────────────────────────────────
   The hero measured 832px — 0.99 of a 844px screen — so nothing else was
   visible without scrolling. Three causes, all fixed here. */
.lp-presence-teaser { display: none; }

@media (max-width: 899px) {
    /* The panel no longer opens itself here (see hero-presence.php); this line
       carries the same information for one line instead of 203px. */
    .lp-presence-teaser {
        display: flex; align-items: center; gap: 7px; width: 100%;
        margin-top: 10px; padding: 9px 12px;
        background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
        border-radius: 10px; color: #CBD5E1;
        font-family: inherit; font-size: 12.5px; font-weight: 600;
        text-align: left; cursor: pointer;
    }
    .lp-presence-teaser .lp-presence-live { flex: 0 0 auto; }
    .lp-presence-teaser i { margin-left: auto; font-size: 10px; opacity: .7; }

    /* Two buttons at 166px and 199px read as a mistake. Equal full-width also
       clears the 44px minimum touch target comfortably. */
    .lp-hero-visual .lp-hero-cta { display: grid; grid-template-columns: 1fr; gap: 9px; margin-bottom: 22px; }
    .lp-hero-visual .lp-hero-cta .btn { width: 100%; justify-content: center; }

    /* Three stats share one row; the teaser is a SIBLING of them inside
       .lp-hero-stats, so it needs a full-width basis or it joins their row and
       squeezes all three into a corner. */
    .lp-hero-visual .lp-hero-stats { gap: 8px; flex-wrap: wrap; }
    .lp-hero-visual .lp-hero-stat { flex: 1 1 0; min-width: 0; padding: 10px; }
    .lp-presence-teaser { flex: 0 0 100%; }

    /* When the panel opens, its stat takes the whole row so the panel has room.
       The panel is laid out INLINE here (absolute would be clipped by
       .lp-hero's overflow:hidden), so it can never be wider than the flex item
       containing it — and that item is 109px once three stats share a row.
       Without this the panel rendered 87px wide and 582px tall, with
       "Ha Noi Cafe" broken across nine lines. */
    .lp-hero-visual .lp-hero-stats.is-expanded .lp-hero-stat-live { flex: 0 0 100%; }
    .lp-hero-stat-num { font-size: 20px; }
    .lp-hero-stat-label { font-size: 10px; }

    .lp-hero-visual { min-height: 0; }
    .lp-hero { padding: 32px 0 40px; }
    .lp-hero-visual h1 { font-size: 27px; }
    .lp-hero-visual > .container .lp-hero-content > p { font-size: 14.5px; margin-bottom: 18px; }
}
