/*
 * Homepage sections — hero, trust, goals, courses, videos, experts,
 * partner, challenges, community, experience, testimonials, blog, membership.
 * Based on reference styles.css.
 */

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section { padding: 46px 0 24px; }
.hero-grid { min-height: 430px; height: 430px; overflow: hidden; }
.hero-copy { padding-right: 22px; }
.eyebrow { color: #ff6a98; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.hero-copy h1 { max-width: 470px; margin: 0 0 18px; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -2.2px; font-weight: 800; }
.hero-copy h1 span { background: linear-gradient(90deg, #ff1d70, #ff7a2e); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-lead { max-width: 500px; margin: 0 0 26px; color: #c0c7d2; font-size: 19px; line-height: 1.58; }
.hero-actions { margin-bottom: 0; }
.rating-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.mini-avatars { display: flex; }
.mini-avatars img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #07101c; margin-left: -7px; }
.mini-avatars img:first-child { margin-left: 0; }
.stars { font-size: 15px; color: var(--yellow); letter-spacing: 1px; }
.rating-text { font-size: 14px; color: var(--muted); }
.hero-media { height: 430px; border-radius: 18px; background: linear-gradient(90deg, rgba(2,7,18,0.2), rgba(2,7,18,0)), url('/images/home/hero.jpg') center/cover no-repeat; box-shadow: 0 0 90px rgba(255,28,102,0.16); position: relative; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,7,18,0.4), transparent 30%, transparent 76%, rgba(2,7,18,0.28)); }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(10,20,35,0.86), rgba(6,13,24,0.92)); overflow: hidden; }
.trust-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 18px 16px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 40px; height: 40px; border: 1px solid rgba(255,35,111,0.35); border-radius: 50%; display: grid; place-items: center; color: #ff4e89; background: rgba(255,31,109,0.08); font-size: 15px; font-weight: 800; }
.trust-item strong { display: block; font-size: 15px; line-height: 1.25; }
.trust-item span { display: block; margin-top: 4px; color: #aeb7c4; font-size: 13px; line-height: 1.35; }

/* ── Goals ─────────────────────────────────────────────────── */
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.goal-grid a { display: grid; grid-template-columns: 46px 1fr; gap: 13px; align-items: center; min-height: 96px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(11,21,36,0.92), rgba(7,14,26,0.94)); transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.goal-grid a:hover { transform: translateY(-2px); border-color: #4e2640; background: linear-gradient(180deg, #101d31, #091323); }
.goal-grid a > span { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,31,109,0.1); color: #ff4d8a; font-size: 22px; }
.goal-grid strong { display: block; font-size: 17px; }
.goal-grid small { display: block; color: #aeb6c3; font-size: 14px; line-height: 1.45; margin-top: 3px; }

/* ── Homepage course/video card overrides ─────────────────── */
.course-row-3 .catalog-card { height: 100%; }
.course-row-3 .catalog-card .learn-more { display: none; }

/* ── Expert cards ─────────────────────────────────────────── */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.expert-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.expert-card img { width: 100%; height: 215px; object-fit: cover; }
.expert-card > div { padding: 16px; }
.expert-card h3 { font-size: 19px; margin: 0 0 6px; }
.expert-card p { color: #b7c0cc; font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.expert-card span { color: #ff5a91; font-size: 13px; font-weight: 650; }

/* ── Manifesto ────────────────────────────────────────────── */
.manifesto-block { padding: 24px 0; }
.manifesto-text { max-width: 640px; margin: 0 auto; text-align: center; font-size: 1.05rem; line-height: 1.8; color: var(--muted, #999); font-style: italic; }

/* ── Partner feature ──────────────────────────────────────── */
.partner-feature { display: grid; grid-template-columns: 1.03fr 0.97fr; min-height: 390px; border: 1px solid #382039; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 20% 20%, rgba(255,22,102,0.13), transparent 40%), var(--panel); }
.partner-feature img { width: 100%; height: 100%; object-fit: cover; }
.partner-ui-preview { display: flex; align-items: center; justify-content: center; padding: 32px; }
.partner-ui-card { background: rgba(0,0,0,0.4); border-radius: 16px; padding: 24px; width: 100%; max-width: 320px; }
.partner-ui-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: #999; margin-bottom: 12px; }
.partner-ui-checkin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.partner-ui-person { text-align: center; padding: 12px; background: rgba(255,255,255,0.05); border-radius: 10px; }
.partner-ui-emoji { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.partner-ui-person strong { font-size: 0.7rem; letter-spacing: 0.5px; display: block; margin-bottom: 2px; }
.partner-ui-person span { font-size: 0.85rem; display: block; }
.partner-ui-person small { font-size: 0.75rem; color: #999; }
.partner-ui-match { text-align: center; font-size: 0.8rem; font-weight: 600; padding: 10px; background: rgba(255,22,102,0.1); border-radius: 8px; margin-bottom: 12px; }
.partner-ui-match span { display: block; font-size: 0.9rem; margin-top: 2px; }
.partner-ui-cta { text-align: center; color: var(--accent, #ff1666); font-size: 0.85rem; font-weight: 600; }
.partner-copy { padding: 46px 48px; }
.partner-copy > p { max-width: 550px; }
.partner-copy ul { margin: 20px 0 26px; padding: 0; list-style: none; }
.partner-copy li { position: relative; padding-left: 25px; margin: 9px 0; color: #c4cbd5; font-size: 15px; }
.partner-copy li::before { content: "✓"; position: absolute; left: 0; color: #ff4e88; font-weight: 800; }

/* ── Challenge cards ──────────────────────────────────────── */
.challenge-card { height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(180deg, #0b1524, #08101c); display: flex; flex-direction: column; }
.challenge-days { display: inline-block; color: #ff5c91; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.challenge-card h3 { font-size: 21px; margin: 8px 0; }
.challenge-card > p { color: #b7c0cb; font-size: 15px; line-height: 1.55; flex: 1; margin: 0 0 18px; }
.challenge-track, .progress-line { height: 7px; border-radius: 999px; background: #182337; overflow: hidden; }
.challenge-track i, .progress-line i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff1268, #ff7b2d); }
.challenge-card footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: auto; padding-top: 16px; }
.challenge-card footer span { color: #8f9aab; font-size: 13px; }
.challenge-card footer a { color: #ff5a91; font-size: 14px; font-weight: 700; }

/* ── Community Q&A ────────────────────────────────────────── */
.community-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: start; padding: 30px; border: 1px solid #2a1c35; border-radius: 20px; background: radial-gradient(circle at 8% 15%, rgba(255,30,105,0.12), transparent 34%), var(--panel); }
.community-lead { max-width: 550px; }
.qa-cards { display: grid; gap: 14px; }
.qa-cards article { position: relative; padding: 18px 145px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: #0a1422; }
.qa-author { display: flex; align-items: center; gap: 9px; color: #9ea8b6; font-size: 13px; }
.anon-dot { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #261026; color: #ff5f98; font-weight: 800; }
.qa-cards h3 { font-size: 18px; line-height: 1.35; margin: 10px 0 6px; }
.qa-cards p { color: #ff6198; font-size: 13px; margin: 0; }
.qa-count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #95a0af; font-size: 13px; }

/* ── Experience / Dashboard preview ───────────────────────── */
.experience-panel { display: grid; grid-template-columns: 0.42fr 0.58fr; gap: 30px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #08121f, #07101c); }
.experience-copy { align-self: center; }
.dashboard-preview { border: 1px solid #1d2a3d; border-radius: 15px; padding: 20px; background: #060e19; box-shadow: inset 0 0 40px rgba(46,26,72,0.13); }
.dashboard-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 15px; border-bottom: 1px solid #172236; }
.dashboard-top small { display: block; color: #aeb7c3; font-size: 13px; }
.dashboard-top strong { display: block; margin-top: 4px; font-size: 18px; }
.dashboard-top > span { font-size: 13px; color: #ffb03c; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 17px 0; }
.metric-row div { padding: 12px; border: 1px solid #162236; border-radius: 10px; background: #081321; }
.metric-row strong { display: block; font-size: 20px; }
.metric-row span { display: block; color: #9ea9b8; font-size: 12px; margin-top: 3px; }
.dashboard-course { display: grid; grid-template-columns: 105px 1fr auto; gap: 14px; align-items: center; padding-top: 4px; }
.dashboard-course img { width: 105px; height: 68px; object-fit: cover; border-radius: 9px; }
.dashboard-course small { font-size: 11px; color: #ff5c92; }
.dashboard-course h3 { font-size: 15px; margin: 4px 0 8px; }
.dashboard-course button { border: 1px solid #80304f; background: #17111c; color: #fff; border-radius: 8px; padding: 9px 14px; font-size: 13px; cursor: pointer; }

/* ── Testimonials ─────────────────────────────────────────── */
.review-score { text-align: right; }
.review-score strong { display: block; font-size: 24px; }
.review-score span { color: #ffc34c; font-size: 13px; }
.testimonial-card { height: 100%; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.testimonial-card p { font-size: 17px; line-height: 1.65; margin: 0; color: #e8ebef; }
.testimonial-card footer { margin-top: 18px; color: #9da8b7; font-size: 13px; }

/* ── Blog grid ────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-grid article { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.blog-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-tag { position: absolute; top: 165px; left: 12px; padding: 5px 8px; border-radius: 999px; background: #b01859; color: #fff; font-size: 12px; font-weight: 800; }
.blog-grid h3 { font-size: 18px; line-height: 1.4; margin: 16px 16px 8px; }
.blog-grid p { color: #96a1b0; font-size: 13px; margin: 0 16px 16px; }

/* ── Membership CTA ───────────────────────────────────────── */
.membership-cta { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 34px 38px; border: 1px solid #56203e; border-radius: 20px; background: radial-gradient(circle at 20% 50%, rgba(255,22,103,0.18), transparent 34%), linear-gradient(90deg, #140b1f, #2a0c28 62%, #441126); }
.membership-actions { display: grid; grid-template-columns: auto auto; gap: 12px; align-items: center; }
.membership-actions small { grid-column: 1 / -1; text-align: center; color: #aeb7c2; font-size: 12px; }

/* ── Section-head spacious variant ────────────────────────── */
.section-head-spacious { margin-bottom: 24px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: 0; }
    .trust-item:nth-child(3), .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
    .trust-item:nth-child(3) { border-right: 1px solid var(--line); }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-copy { padding: 36px; }
    .community-layout { grid-template-columns: 1fr; }
    .experience-panel { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .hero-media { height: 360px; }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-item { border-top: 1px solid var(--line); }
    .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
    .trust-item:nth-child(even) { border-right: 0; }
    .trust-item:first-child, .trust-item:nth-child(2) { border-top: 0; }
    .goal-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-feature { grid-template-columns: 1fr; }
    .partner-ui-preview { padding: 24px 16px; }
    .partner-ui-card { max-width: 100%; }
    .membership-cta { grid-template-columns: 1fr; }
    .membership-actions { justify-content: start; }
}

@media (max-width: 767.98px) {
    .hero-section { padding-top: 28px; }
    .hero-media { height: 300px; }
    .trust-strip { grid-template-columns: 1fr; }
    .trust-item, .trust-item:nth-child(odd) { border-right: 0; }
    .trust-item:not(:first-child) { border-top: 1px solid var(--line); }
    .goal-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr 1fr; }
    .expert-card img { aspect-ratio: 1/1; }
    .community-layout, .experience-panel { padding: 22px; }
    .qa-cards article { padding-right: 18px; }
    .qa-count { position: static; display: block; transform: none; margin-top: 10px; }
    .dashboard-course { grid-template-columns: 90px 1fr; }
    .dashboard-course button { grid-column: 2; }
    .membership-actions { grid-template-columns: 1fr; }
    .membership-actions small { text-align: left; }
}

@media (max-width: 575.98px) {
    .hero-copy h1 { letter-spacing: -1.4px; }
    .hero-lead { font-size: 17px; }
    .hero-media { height: 270px; }
    .course-image, .video-feature-media { aspect-ratio: 16/9; }
    .expert-grid { grid-template-columns: 1fr; }
    .partner-copy { padding: 26px 22px; }
    .partner-ui-checkin { gap: 8px; }
    .partner-ui-person { padding: 8px; }
    .metric-row { grid-template-columns: 1fr; }
    .dashboard-top { flex-direction: column; }
    .review-score { text-align: left; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-grid img { aspect-ratio: 16/9; }
    .article-tag { top: 195px; }
    .membership-cta { padding: 26px 22px; }
}
