/*
 * Homepage (skillselearning.blade.php) sections added in the Skill Spark
 * redesign. Everything is scoped under .main-page and prefixed hp- so the
 * shared marketing-styles.css and the page builder stay untouched.
 */
.main-page {
    --hp-red: #f50000;
    --hp-red-dark: #d60000;
    --hp-red-soft: #ff5a5a;
    --hp-navy: #002d51;
    --hp-navy-deep: #002341;
    --hp-grey: #5e6c7a;
    --hp-muted: #94a3b8;
    --hp-line: #e2e8f0;
    --hp-bg-soft: #f8fafc;
}

/* ---------- shared ---------- */
.main-page .hp-section {
    padding: 100px 0;
    font-family: 'Inter', sans-serif;
}

.main-page .hp-section.hp-soft { background: var(--hp-bg-soft); }
.main-page .hp-section.hp-white { background: #ffffff; }
.main-page .hp-section.hp-dark { background: var(--hp-navy-deep); color: #ffffff; }

.main-page .hp-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hp-red);
}

.main-page .hp-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700;
    font-size: clamp(2.1rem, 4.2vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--hp-navy);
    margin: 0;
}

.main-page .hp-title .italic-red { font-style: italic; color: var(--hp-red); }
.main-page .hp-title .italic-white { font-style: italic; font-weight: 400; color: #ffffff; }
.main-page .hp-dark .hp-title { color: #ffffff; }

.main-page .hp-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--hp-grey);
    margin: 0;
}

.main-page .hp-dark .hp-lead { color: rgba(255, 255, 255, .7); font-size: 18px; }
.main-page .hp-lead strong { color: var(--hp-navy); }

/* buttons */
.main-page .hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--hp-red);
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 45px;
    border-radius: 14px;
    border: none;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(245, 0, 0, .15);
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.main-page .hp-btn:hover {
    background: var(--hp-red-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(245, 0, 0, .35);
}

.main-page .hp-btn.hp-btn-sm { font-size: 16px; padding: 14px 32px; }
.main-page .hp-btn i { font-size: 15px; transition: transform .3s ease; }
.main-page .hp-btn:hover i { transform: translateX(6px); }

/* ---------- hero people collage ---------- */
.main-page .hp-people {
    list-style: none;
    margin: 48px auto 0;
    padding: 0;
    max-width: 1040px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.main-page .hp-person {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #e2e8f0;
    box-shadow: 0 18px 40px rgba(0, 45, 81, .14);
    border: 4px solid #ffffff;
    transition: transform .35s ease;
}

/* staggered collage */
.main-page .hp-person:nth-child(even) { transform: translateY(28px); }
.main-page .hp-person:hover { transform: translateY(-6px); }
.main-page .hp-person:nth-child(even):hover { transform: translateY(20px); }

.main-page .hp-person img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-page .hp-person span {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(255, 255, 255, .94);
    color: var(--hp-navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    padding: 6px 8px;
    border-radius: 10px;
    text-align: center;
}

/* keep the video clear of the staggered cards */
.main-page .hero-container .video-mockup-wrapper { margin-top: 72px; }

@media (max-width: 991px) {
    .main-page .hp-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .main-page .hp-person:nth-child(even) { transform: none; }
    .main-page .hp-person:nth-child(even):hover { transform: translateY(-6px); }
    .main-page .hero-container .video-mockup-wrapper { margin-top: 40px; }
}

@media (max-width: 480px) {
    .main-page .hp-people { gap: 10px; margin-top: 32px; }
    .main-page .hp-person { border-width: 3px; border-radius: 14px; }
    .main-page .hp-person span { font-size: 10px; padding: 4px 5px; left: 5px; right: 5px; bottom: 5px; }
}

/* ---------- three ways to start ---------- */
.main-page .hp-path-card {
    height: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-page .hp-path-head { display: flex; align-items: center; gap: 14px; }

.main-page .hp-path-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-red);
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(245, 0, 0, .3);
}

.main-page .hp-path-tag {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hp-red-soft);
}

.main-page .hp-path-card h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; color: #ffffff; }
.main-page .hp-path-card p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .7); }

.main-page .hp-path-footer {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.main-page .hp-path-footer p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .8); }

/* ---------- gong ---------- */
.main-page .hp-gong-badge {
    display: inline-flex;
    align-items: center;
    background: #f3eeff;
    border-radius: 8px;
    padding: 6px 14px;
}

.main-page .hp-gong-badge img { height: 20px; width: auto; }

.main-page .hp-step-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, .5);
    border-radius: 35px;
    padding: 45px 30px;
    box-shadow: 0 10px 40px rgba(0, 45, 81, .04);
    transition: all .3s ease;
}

.main-page .hp-step-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0, 45, 81, .08); }

.main-page .hp-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.main-page .hp-step-icon.blue { background: #dbeafe; color: #2563eb; }
.main-page .hp-step-icon.green { background: #dcf9ea; color: #16a34a; }
.main-page .hp-step-icon.purple { background: #f3e8ff; color: #9333ea; }
.main-page .hp-step-icon.orange { background: #ffedd5; color: #ea580c; }

.main-page .hp-step-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--hp-navy); }
.main-page .hp-step-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hp-grey); }

/* ---------- skill library ---------- */
.main-page .hp-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.main-page .hp-chip {
    background: #ffffff;
    border: 1px solid var(--hp-line);
    color: var(--hp-navy);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
}

.main-page .hp-library-preview {
    background: #ffffff;
    border: 1px solid var(--hp-line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0, 45, 81, .12);
}

.main-page .hp-library-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--hp-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.main-page .hp-library-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.main-page .hp-library-item:last-child { border-bottom: 0; }

.main-page .hp-library-item .hp-li-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(245, 0, 0, .06);
    color: var(--hp-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-page .hp-library-item strong { display: block; font-size: 15px; color: var(--hp-navy); }
.main-page .hp-library-item span { font-size: 13px; color: var(--hp-muted); }

.main-page .hp-library-item .hp-li-add {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-red);
    white-space: nowrap;
}

/* ---------- proof ---------- */
.main-page .hp-quote {
    margin: 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-page .hp-quote .hp-stars { color: #f5a800; font-size: 18px; display: flex; gap: 4px; }

.main-page .hp-quote blockquote {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
}

.main-page .hp-quote figcaption { display: flex; align-items: center; gap: 14px; }

.main-page .hp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #002f52;
    border: 2px solid var(--hp-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.main-page .hp-quote figcaption p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .65); }
.main-page .hp-quote figcaption p.hp-name { font-size: 17px; font-weight: 700; color: #ffffff; }

/* ---------- data security ---------- */
.main-page .hp-security { border-top: 1px solid #f1f5f9; padding: 88px 0; }
.main-page .hp-security .hp-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.14; }
.main-page .hp-security .hp-lead { font-size: 19px; }

/* ---------- image break (container width) ---------- */
.main-page .hp-image-break { background: #ffffff; padding: 0 0 88px; }
.main-page .hp-image-break img { display: block; width: 100%; height: clamp(240px, 32vw, 440px); object-fit: cover; object-position: center 45%; border-radius: 12px; box-shadow: 0 20px 40px -24px rgba(0, 35, 65, .3); }
@media (max-width: 768px) { .main-page .hp-image-break { padding-bottom: 70px; } }

.main-page .hp-check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }

.main-page .hp-check-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
    font-weight: 500;
    color: var(--hp-navy);
}

.main-page .hp-check-list li i {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e2ebf8;
    border: 1px solid var(--hp-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ---------- design partner ---------- */
.main-page .hp-num-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }

.main-page .hp-num-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--hp-grey);
}

.main-page .hp-num-list li span {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--hp-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-page .hp-note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hp-muted); }

.main-page .hp-partner-card {
    background: #ffffff;
    border: 1px solid var(--hp-line);
    border-radius: 30px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 45, 81, .08);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-page .hp-partner-card h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hp-navy);
}

.main-page .hp-partner-card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--hp-grey); }
.main-page .hp-partner-card p.hp-note { font-size: 14px; text-align: center; }
.main-page .hp-partner-card p.hp-note a { font-weight: 700; color: var(--hp-navy); text-decoration: underline; }

/* ---------- stats (why choose) tweaks: longer labels from the redesign ---------- */
.main-page .why-choose-section .stat-card .stat-label { line-height: 1.45; }

/* ---------- final CTA on navy ---------- */
.main-page .cta-final-section.hp-cta-dark { background: var(--hp-navy-deep); border-top: 0; padding: 100px 0; }
.main-page .cta-final-section.hp-cta-dark .cta-title { color: #ffffff; }
.main-page .cta-final-section.hp-cta-dark .cta-title .italic-red { color: #ffffff; font-weight: 400; }
.main-page .cta-final-section.hp-cta-dark .cta-subtitle { color: rgba(255, 255, 255, .75); }
.main-page .cta-final-section.hp-cta-dark .cta-footer-note { color: rgba(255, 255, 255, .45); }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
    .main-page .hp-section { padding: 70px 0; }
    .main-page .hp-lead { font-size: 18px; }
    .main-page .hp-path-card,
    .main-page .hp-partner-card { padding: 28px; }
    .main-page .hp-step-card { padding: 32px 24px; border-radius: 24px; }
    .main-page .hp-btn { width: 100%; padding: 16px 24px; }
    .main-page .hp-path-footer { padding: 20px; }
}
