/* humanpotential.css
 * Single stylesheet for all public landing pages on humanpotential.app.
 * Used by Pages/Courses, Pages/Lectures, Pages/Series.
 * Branding palette:
 *   #151f53 deep navy   #1f34a2 mid navy
 *   #a07029 deep gold   #c19451 mid gold   #dbc099 light gold   #eadecd cream
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Nunito, sans-serif; font-size: 18px; line-height: 1.667em; color: #333;
       background: #f7f5f2; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* --- Top gold band (Home / Contact) ---
 * Full-width strip; inner content constrained to the 730px container,
 * left-aligned. Mirrors humanpotential.school's top utility nav.
 */
.hp-topbar {
    width: 100%;
    background-color: #c19451; /* --accent */
}
.hp-topbar-inner {
    max-width: 730px;
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    justify-content: flex-start;
    gap: 24px;
}
.hp-topbar-inner a {
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 16px;
    line-height: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.hp-topbar-inner a:hover { color: #151f53; }

/* --- Hero (logo on background image) ---
 * Background image spans the full page width.
 * Inner container is 730px, holds the left-aligned logo.
 */
.hp-hero {
    width: 100%;
    background-image: url('https://cdn.prod.website-files.com/624d158e3290c2c0627ff5c6/676a86dfb8b823f7aa47c4cc_CreationOfAdamLight.jpg');
    background-size: cover;
    background-position: center 35%;
}
.hp-hero-inner {
    max-width: 730px;
    margin: 0 auto;
    padding: 28px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.hp-hero-logo-link { display: inline-block; line-height: 0; max-width: 100%; }
.hp-hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    /* Soft glow so the logo stays legible against any part of the painting. */
    filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.55))
            drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

/* --- Nav bar (blue bar that sits BELOW the hero) ---
 * Full-width band, content constrained to 730px container, left-aligned.
 */
.hp-header { background-image: linear-gradient(135deg, #151f53, #151f53 54%, #1f34a2);
             padding: 14px 0; }
.hp-header-inner { max-width: 730px; margin: 0 auto; padding: 0 20px; display: flex;
                   align-items: center; justify-content: flex-start; }
.hp-nav { display: flex; gap: 32px; flex-wrap: wrap; justify-content: flex-start; }
.hp-nav a { color: #fff; font-family: Nunito, sans-serif; font-size: 16px; line-height: 1em;
            font-weight: 600; margin: 0; transition: color 0.2s; }
.hp-nav a:hover { color: #c19451; }
.hp-nav a.active { color: #c19451; font-weight: 700; }

/* --- Page chrome ---
 * Matches the primary humanpotential.school container shape:
 * 730px max width, 20px L/R padding, 10px T/B padding. All content panels
 * (cards, lists, hero blocks) fit inside this column.
 */
.hp-page { max-width: 730px; margin: 0 auto; padding: 10px 20px; }
.hp-page--wide { max-width: 730px; } /* same — kept for backwards-compat with existing pages that use this modifier */
.hp-page-title { font-family: Lora, sans-serif; font-size: 32px; font-weight: 700;
                 color: #151f53; text-align: center;
                 margin-top: 32px; margin-bottom: 8px; }
.hp-page-subtitle { text-align: center; color: #686868; font-size: 18px; margin-bottom: 32px; }

/* --- Back link --- */
.hp-back { display: inline-flex; align-items: center; gap: 6px; font-family: Nunito, sans-serif;
           font-size: 15px; font-weight: 600; color: #a07029; text-decoration: none;
           margin-bottom: 20px; transition: color 0.2s; text-align: left; }
.hp-back:hover { color: #151f53; }
.hp-back svg { width: 16px; height: 16px; }

/* --- Tabs (used by index pages) --- */
.hp-tabs { display: flex; gap: 8px; margin-bottom: 30px; justify-content: center; }
.hp-tab { padding: 8px 24px; border: 2px solid #c19451; border-radius: 10px; background: transparent;
          cursor: pointer; font-family: Nunito, sans-serif; font-size: 15px; font-weight: 600;
          color: #a07029; transition: all 0.25s; text-decoration: none; }
.hp-tab:hover { background: linear-gradient(135deg, #a07029, #c19451 80%, #c19451); color: #fff; }
.hp-tab.active { background: linear-gradient(135deg, #a07029, #c19451 80%, #c19451); color: #fff; border-color: #a07029; }

/* --- Card list (index pages) --- */
.hp-list { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.hp-card { text-decoration: none; color: inherit; display: flex; flex-direction: column;
           align-items: center; align-self: stretch; width: 100%; }
.hp-card:hover .hp-card-inner { transform: translateY(-2px); box-shadow: 3px 3px 10px 3px rgba(0,0,0,0.3); }

.hp-card-inner { background: #fff; box-shadow: 2px 2px 6px 2px rgba(0,0,0,0.41);
                 border-radius: 10px; display: flex; flex-direction: column; align-items: center;
                 overflow: hidden; width: 100%; transition: transform 0.25s, box-shadow 0.25s; }

.hp-card-header { background-image: linear-gradient(135deg, #151f53, #151f53 54%, #1f34a2);
                  width: 100%; display: flex; align-items: center; padding: 0;
                  border-top-left-radius: 10px; border-top-right-radius: 10px; }
.hp-card-heading { color: #fff; margin: 0; padding: 8px 20px; font-family: Nunito, sans-serif;
                   font-size: 16px; font-weight: 700; }

/* Vertical flow: image on top, content below. */
.hp-card-body { display: flex; flex-direction: column; width: 100%; }
.hp-card-imgwrap { display: block; width: 100%; aspect-ratio: 4 / 3;
                   position: relative; overflow: hidden; }
.hp-card-img { background-color: #dbc099; object-fit: cover; width: 100%; height: 100%;
               display: block; }
.hp-card-img-placeholder { background: linear-gradient(135deg, #dbc099, #eadecd);
                           width: 100%; height: 100%;
                           display: flex; align-items: center; justify-content: center;
                           color: #a07029; font-size: 48px; font-weight: 600; font-family: Lora, sans-serif; }

.hp-card-content { background: #fff; display: flex; flex-direction: column; justify-content: flex-start;
                   align-items: flex-start; width: 100%; padding: 18px 20px 16px; }

.hp-card-title { color: #a07029; text-align: left; margin: 0 0 8px 0;
                 font-family: Lora, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; }
.hp-card-summary { text-align: left; flex: 1; margin-bottom: auto; font-family: Nunito, sans-serif;
                   font-size: 18px; line-height: 1.667em; color: #333; }
.hp-card-summary p { margin: 0 0 10px 0; }

.hp-card-meta { display: flex; gap: 16px; flex-wrap: wrap; font-family: Nunito, sans-serif;
                font-size: 15px; color: #686868; margin: 8px 0; align-items: center; }
.hp-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; vertical-align: middle; margin-right: 3px; }
.hp-card-meta-item { display: inline-flex; align-items: center; gap: 3px; }

.hp-card-btnwrap { display: flex; flex-direction: column; justify-content: center; align-items: center;
                   width: 100%; margin-top: auto; padding-top: 8px; }
.hp-card-btn { display: inline-block; background: linear-gradient(135deg, #a07029, #c19451 80%, #c19451);
               color: #fff; text-align: left; border-radius: 10px; padding: 3px 20px;
               font-family: Nunito, sans-serif; font-size: 16px; font-weight: 700;
               text-decoration: none; transition: transform 0.35s; }
.hp-card-btn:hover { transform: scale(0.95); color: #fff; }

.hp-empty { text-align: center; padding: 40px 20px; color: #686868; font-family: Nunito, sans-serif; }
.hp-empty-text { font-size: 18px; }

/* --- Detail page (single-card layout) --- */
.hp-card-outer { background: #fff; box-shadow: 2px 2px 6px 2px rgba(0,0,0,0.41);
                 border-radius: 10px; overflow: hidden; width: 100%;
                 margin-top: 32px; /* matches .hp-page-title top spacing */ }

/* 4:3 image inside detail card (matches the index card aspect). */
.hp-card-imgwrap--detail { width: 100%; aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.hp-card-imgwrap--detail .hp-card-img { width: 100%; height: 100%; object-fit: cover;
                                         display: block; min-height: 0; }
.hp-card-imgwrap--detail .hp-card-img-placeholder { width: 100%; height: 100%; min-height: 0;
                                                     font-size: 64px; }

.hp-card-content--detail { padding: 24px 24px 28px; }
.hp-card-title--detail { font-size: 24px; }
.hp-card-category { font-family: Nunito, sans-serif; font-size: 13px; font-weight: 500;
                    color: #686868; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.hp-card-description { font-family: Nunito, sans-serif; font-size: 18px; line-height: 1.667em;
                       color: #333; margin-bottom: 20px; }
.hp-card-description p { margin: 0 0 14px; }
.hp-card-description ul, .hp-card-description ol { margin: 0 0 14px; padding-left: 24px; }
.hp-card-description li { margin-bottom: 6px; }
.hp-card-description strong { font-weight: 700; }
.hp-card-description em { font-style: italic; }
.hp-card-description h3 { font-family: Lora, sans-serif; font-size: 18px; color: #a07029; margin: 20px 0 10px; }
.hp-card-description h4 { font-family: Nunito, sans-serif; font-size: 16px; font-weight: 700; margin: 16px 0 8px; }

/* Detail list */
.hp-details-list { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid #eadecd; }
.hp-details-item { display: flex; align-items: center; gap: 12px; padding: 12px 0;
                   border-bottom: 1px solid #f0f0f0; font-family: Nunito, sans-serif; font-size: 16px; }
.hp-details-item svg { width: 18px; height: 18px; color: #a07029; flex-shrink: 0; }
.hp-details-label { color: #686868; min-width: 80px; font-size: 14px; font-weight: 600;
                    text-transform: uppercase; letter-spacing: 0.3px; }
.hp-details-value { color: #333; font-weight: 500; }

/* Series → lecture chapter list */
.hp-chapter-list { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: chapter; }
.hp-chapter-item { counter-increment: chapter; border-top: 1px solid #eadecd; padding: 14px 0 14px 40px;
                   position: relative; font-family: Nunito, sans-serif; }
.hp-chapter-item:last-child { border-bottom: 1px solid #eadecd; }
.hp-chapter-item::before { content: counter(chapter); position: absolute; left: 0; top: 14px;
                           width: 28px; text-align: right; color: #a07029; font-weight: 700;
                           font-variant-numeric: tabular-nums; font-size: 15px; }
.hp-chapter-title { color: #151f53; font-weight: 700; font-size: 16px; text-decoration: none;
                    transition: color 0.2s; }
.hp-chapter-title:hover { color: #a07029; }
.hp-chapter-intro { font-size: 14px; color: #686868; margin-top: 4px; line-height: 1.5; }
.hp-chapter-badge { display: inline-block; font-size: 10px; font-weight: 700;
                    text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px;
                    border-radius: 4px; margin-left: 8px; vertical-align: middle;
                    background: #eadecd; color: #a07029; }

/* CTA / Get-the-app */
.hp-rsvp-btn { display: block; width: 100%; padding: 12px; border: none; border-radius: 10px;
               background: linear-gradient(135deg, #a07029, #c19451 80%, #c19451);
               color: #fff; font-family: Nunito, sans-serif; font-size: 18px; font-weight: 700;
               cursor: pointer; transition: transform 0.35s; text-align: center; text-decoration: none;
               margin-top: 8px; }
.hp-rsvp-btn:hover { transform: scale(0.97); color: #fff; }
.hp-rsvp-btn.disabled { background: #dbc099; cursor: not-allowed; opacity: 0.7; pointer-events: none; }

/* App-CTA card — used by every public landing/index page via _HpAppCta partial. */
.hp-landing-cta { background: #fff; border-radius: 10px; padding: 32px 24px 28px;
                  box-shadow: 2px 2px 6px 2px rgba(0,0,0,0.18);
                  margin-top: 32px; text-align: center; }
.hp-landing-cta h2 { font-family: Nunito, sans-serif; font-weight: 700; font-size: 22px;
                     color: #151f53; margin: 0 0 6px; text-align: center; }
.hp-landing-cta p  { font-family: Nunito, sans-serif; font-size: 15px; color: #4c4c4e;
                     margin: 0 0 16px; text-align: center; }

/* App icon — square with iOS-style rounded corners (continuous radius). */
.hp-app-icon { display: block; width: 84px; height: 84px;
               border-radius: 22%; /* iOS app-icon mask ratio */
               margin: 16px auto 20px;
               box-shadow: 0 4px 12px rgba(21, 31, 83, 0.2),
                           0 1px 3px rgba(0, 0, 0, 0.15);
               background: #f0eee9; }

/* Apple "Download on the App Store" badge — centered horizontally. */
.hp-appstore-link { display: block; width: fit-content; margin: 12px auto 0;
                    transition: transform 0.2s; }
.hp-appstore-link:hover { transform: scale(0.97); }
.hp-appstore-badge { display: block; height: 48px; width: auto; }

.hp-rsvp-alt { text-align: center; margin-top: 10px; font-family: Nunito, sans-serif;
               font-size: 14px; color: #686868; }
.hp-rsvp-alt a { color: #a07029; font-weight: 600; text-decoration: none; }
.hp-rsvp-alt a:hover { color: #151f53; text-decoration: underline; }

/* Not found */
.hp-not-found { text-align: center; padding: 60px 20px; font-family: Nunito, sans-serif; }
.hp-not-found-text { font-size: 20px; color: #686868; margin-bottom: 16px; }
.hp-not-found a { color: #a07029; font-weight: 600; }
.hp-not-found a:hover { color: #151f53; }

/* Footer */
.hp-footer { background: #151f53; color: #a0a0b0; text-align: center; padding: 24px;
             font-size: 14px; }
.hp-footer a { color: #c19451; }

@media (max-width: 767px) {
    .hp-header-inner { flex-direction: column; gap: 12px; }
    .hp-tabs { flex-wrap: wrap; justify-content: center; }
}
