/*
 Theme Name:   HPSeminars Child
 Theme URI:    https://www.247wordpressed.com
 Description:  Kadence Child Theme
 Author:       Bubba
 Author URI:   https://www.247wordpressed.com
 Template:     kadence
 Version:      1.0.22
 Tags:         customizable, modern, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  kadencechild
*/

/* Theme customization starts here
-------------------------------------------------------------- */
/*
 * HPDS design system â append to the child theme's style.css
 * Matches the approved homepage mockup: fonts, colors, cards, badges,
 * hero widget, package pricing cards, and testimonial styling.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    --hpds-navy: #132C46;
    --hpds-navy-deep: #0C1F33;
    --hpds-teal: #1C6E8C;
    --hpds-gold: #C08A28;
    --hpds-orange: #D9762E;
    --hpds-bg: #F4F6F8;
    --hpds-card: #FFFFFF;
    --hpds-ink: #1B2430;
    --hpds-ink-soft: #52586B;
    --hpds-line: #E1E5EA;
    --hpds-radius: 14px;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--hpds-ink);
}

h1, h2, h3, h4,
.wp-block-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

/* ---------- Primary buttons: gold, not WordPress's default amber ---------- */
.hpds-btn-primary .wp-block-button__link {
    background: var(--hpds-gold) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(192, 138, 40, .35);
}

/* ---------- Hero ---------- */
.hpds-hero {
    position: relative;
    overflow: hidden;
}
.hpds-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -160px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(217, 118, 46, .55), rgba(217, 118, 46, 0) 68%);
    pointer-events: none;
}
.hpds-hero::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -220px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%, rgba(28, 110, 140, .45), rgba(28, 110, 140, 0) 70%);
    pointer-events: none;
}
.hpds-hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 46%;
    clip-path: polygon(38% 0, 100% 0, 100% 100%, 0% 100%);
    background: linear-gradient(160deg, var(--hpds-orange), #b8501e 120%);
    opacity: .9;
    pointer-events: none;
    z-index: 1;
}
.hpds-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F3C878 !important;
    font-weight: 600;
    font-size: 13px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hpds-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: #F3C878;
    display: inline-block;
}
.hpds-hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.hpds-hero-stats .hpds-stat-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #fff;
    display: block;
}
.hpds-hero-stats .hpds-stat-lbl {
    font-size: 12.5px;
    color: #B9C6D4;
}
/* Kadence applies margin-bottom: var(--global-md-spacing) to block paragraphs/groups
   by default, which throws off vertical alignment inside this flex row. Zero it out
   for everything inside the stats row specifically, rather than globally. */
.hpds-hero-stats,
.hpds-hero-stats * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ---------- Hero card: "Upcoming Classes" widget ---------- */
.hpds-hero-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
    position: relative;
    z-index: 3;
}
.hpds-hero-card h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--hpds-ink-soft);
    font-weight: 700;
    margin-bottom: 14px;
}
.hpds-mini-class {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hpds-line);
}
.hpds-mini-class:last-of-type { border-bottom: none; }
.hpds-mini-class {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}
.hpds-mini-class:hover {
    background-color: rgba(28, 110, 140, 0.06);
}
.hpds-mini-date {
    background: var(--hpds-navy);
    color: #fff;
    border-radius: 10px;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
}
.hpds-mini-date .hpds-d { font-size: 17px; font-weight: 600; line-height: 1; }
.hpds-mini-date .hpds-m { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; }
/* The actual markup renders these as <p><strong>Name</strong></p><p>Location</p>,
   not <b>/<span> â matching selectors to the real tags actually output. */
.hpds-mini-class .hpds-info p { font-size: 12.5px; color: var(--hpds-ink-soft); }
.hpds-mini-class .hpds-info p strong { display: block; font-size: 14px; color: var(--hpds-navy); font-weight: 700; }
.hpds-mini-class,
.hpds-mini-class * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.hpds-hero-card .hpds-view-all {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-weight: 700;
    color: var(--hpds-teal);
    font-size: 14px;
}

/* ---------- Trust badges ---------- */
.hpds-badge {
    display: inline-block;
    border: 1.5px solid var(--hpds-line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hpds-navy);
    font-family: 'IBM Plex Mono', monospace;
    background: var(--hpds-bg);
    margin: 3px;
}

/* ---------- Affiliation logos ---------- */
.hpds-affiliation-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}
.hpds-affiliation-logo {
    height: 42px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}
@media (max-width: 782px) {
    .hpds-affiliation-logos { justify-content: center; }
}

/* ---------- Approvals disclosure list ---------- */
.hpds-approvals-list {
    margin-top: 14px;
    font-size: 14px;
}
.hpds-approvals-list summary {
    cursor: pointer;
    color: var(--hpds-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hpds-approvals-list ul {
    margin: 14px 0 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 24px;
}
.hpds-approvals-list li {
    margin-bottom: 8px;
    break-inside: avoid;
    color: var(--hpds-navy);
}
@media (max-width: 600px) {
    .hpds-approvals-list ul { columns: 1; }
}

/* ---------- Educator professional roles ---------- */
.hpds-educator-roles {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 13.5px;
    color: var(--hpds-navy);
    line-height: 1.5;
}
.hpds-educator-roles li {
    margin-bottom: 4px;
}

/* ---------- Role approved-states caption ---------- */
.hpds-role-approved-states {
    margin: -6px 0 14px;
    font-size: 12.5px;
    color: #6B7A8A;
    font-style: italic;
}

/* ---------- Event page course image ---------- */
.hpds-event-course-image {
    margin: 0 0 28px;
}
.hpds-event-course-image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* ---------- Calendar list/day/month event images ---------- */
.tribe-events-calendar-list__event-featured-image-wrapper img,
.tribe-events-calendar-day__event-featured-image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* ---------- Course cards ---------- */
.hpds-course-card {
    background: var(--hpds-card);
    border-radius: var(--hpds-radius);
    padding: 28px 26px;
    border: 1px solid var(--hpds-line);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hpds-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(19, 44, 70, .1);
}
.hpds-course-card::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--hpds-corner, var(--hpds-orange));
    opacity: .13;
}
.hpds-course-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hpds-navy);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 17px;
    margin: 0 0 18px !important;
}

/* ---------- History section ---------- */
.hpds-history {
    position: relative;
    overflow: hidden;
}
.hpds-history::before {
    content: "";
    position: absolute;
    bottom: -140px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 118, 46, .35), transparent 70%);
    pointer-events: none;
}
.hpds-history-photo {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    margin: 0;
}
.hpds-history-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.hpds-history blockquote,
.hpds-history .wp-block-quote {
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.4;
    border-left: 3px solid var(--hpds-orange);
    padding-left: 20px;
}

/* ---------- Package cards ---------- */
.hpds-pkg-card {
    background: #fff;
    border-radius: var(--hpds-radius);
    border: 1px solid var(--hpds-line);
    padding: 30px 26px;
    text-align: center;
    position: relative;
}
.hpds-pkg-featured {
    border: 2px solid var(--hpds-gold);
}
.hpds-pkg-featured .hpds-flag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hpds-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hpds-pkg-card h3 {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--hpds-ink-soft);
    font-weight: 700;
}
.hpds-pkg-price {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--hpds-navy);
    margin: 12px 0 6px !important;
}
.hpds-pkg-list {
    list-style: none;
    text-align: left;
    font-size: 13.5px;
    color: var(--hpds-ink-soft);
    padding: 0;
    margin: 16px 0;
}
.hpds-pkg-list li {
    padding: 6px 0;
    border-top: 1px solid var(--hpds-line);
}
.hpds-pkg-card .wp-block-button__link {
    background: var(--hpds-navy) !important;
    border-radius: 10px !important;
    width: 100%;
}

/* ---------- Testimonials ---------- */
.hpds-testi-card {
    background: #fff;
    border-radius: var(--hpds-radius);
    border: 1px solid var(--hpds-line);
    padding: 26px;
    position: relative;
}
.hpds-testi-quote-mark {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    color: var(--hpds-orange);
    line-height: 1;
    font-weight: 800;
    display: block;
    margin: 0 0 6px !important;
}
.hpds-testi-name {
    font-weight: 700;
    color: var(--hpds-navy);
    font-size: 13.5px;
    display: block;
    margin: 10px 0 0 !important;
}
.hpds-testi-role {
    font-size: 12px;
    color: var(--hpds-ink-soft);
    margin: 0 !important;
}

/* ---------- About page: educator cards ---------- */
/* flex:0 1 (not flex:1) keeps cards from stretching to fill a wide row;
   justify-content:center on the row keeps a short last row from sitting lopsided. */
.wp-block-columns:has(.hpds-educator-card) {
    justify-content: center;
}
.hpds-educator-card {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid var(--hpds-line);
    border-radius: var(--hpds-radius);
    flex: 0 1 240px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hpds-educator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(19, 44, 70, .1);
}
.hpds-educator-card.hpds-educator-featured {
    background: var(--hpds-bg);
    padding: 28px;
    margin-bottom: 40px;
}
.hpds-educator-featured .wp-block-column {
    text-align: left;
}
.hpds-educator-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px !important;
    background: var(--hpds-bg);
}
.hpds-educator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.hpds-educator-featured .hpds-educator-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
}
.hpds-educator-name {
    color: var(--hpds-navy);
    font-size: 14.5px;
    margin: 0 0 2px !important;
}
.hpds-educator-role {
    color: var(--hpds-ink-soft);
    font-size: 12.5px;
    margin: 0 !important;
}
.hpds-educator-creds {
    color: var(--hpds-ink-soft);
    font-size: 12.5px;
    margin-top: 6px !important;
}

/* ---------- About page: accreditation context ---------- */
.wp-block-columns:has(.hpds-accred-item) {
    justify-content: center;
}
.hpds-accred-item {
    text-align: center;
    margin-bottom: 20px;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid var(--hpds-line);
    border-radius: var(--hpds-radius);
    flex: 0 1 260px;
}
.hpds-accred-desc {
    color: var(--hpds-ink-soft);
    font-size: 13.5px;
    margin-top: 8px !important;
}

/* ---------- Category landing pages ---------- */
.hpds-cat-hero {
    position: relative;
    overflow: hidden;
}
.hpds-cat-hero::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(217, 118, 46, .4), rgba(217, 118, 46, 0) 68%);
    pointer-events: none;
}
.hpds-cat-crumb {
    font-size: 13px;
    color: #B9C6D4 !important;
}
.hpds-cat-crumb a {
    color: #B9C6D4;
    text-decoration: underline;
}
.hpds-cat-count {
    display: block;
    margin-top: 10px !important;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    color: #F3C878 !important;
    letter-spacing: .04em;
}

.hpds-role-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--hpds-teal);
    border-bottom: 1px solid var(--hpds-line);
    padding-bottom: 10px;
    margin: 44px 0 18px !important;
}
.hpds-role-group:first-of-type .hpds-role-heading {
    margin-top: 0 !important;
}

.hpds-course-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: var(--hpds-card);
    border: 1px solid var(--hpds-line);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hpds-course-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(19, 44, 70, .08);
}
.hpds-course-row,
.hpds-course-row * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.hpds-course-row-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--hpds-navy);
    flex: 1 1 260px;
}
.hpds-course-row-price {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--hpds-ink-soft);
    white-space: nowrap;
}
.hpds-course-row-btn {
    white-space: nowrap;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--hpds-teal) !important;
    text-decoration: none !important;
}
.hpds-course-row-btn:hover {
    color: var(--hpds-orange) !important;
}

.hpds-course-row-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
}
.hpds-course-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}
.hpds-course-row-dates-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hpds-course-row-dates-hint {
    font-size: 12px;
    color: var(--hpds-ink-soft);
    white-space: nowrap;
}
.hpds-course-row-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hpds-date-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hpds-navy) !important;
    border: 1px solid var(--hpds-line);
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.hpds-date-pill:hover {
    background: var(--hpds-teal);
    border-color: var(--hpds-teal);
    color: #fff !important;
}

/* ---------- Role filter pills (category pages, JS-driven) ---------- */
.hpds-role-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px !important;
}
.hpds-role-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--hpds-line);
    background: #fff;
    color: var(--hpds-ink-soft);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.hpds-role-pill:hover {
    border-color: var(--hpds-teal);
    color: var(--hpds-teal);
}
.hpds-role-pill.is-active {
    background: var(--hpds-navy);
    border-color: var(--hpds-navy);
    color: #fff;
}

/* ---------- Sticky header ---------- */
#masthead.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #fff;
    box-shadow: 0 2px 10px rgba(19, 44, 70, .08);
}

/* ---------- My Account + PMPro pages: match site content width ---------- */
body.woocommerce-account .entry-content,
body.woocommerce-account .wrap.kt-clear,
body[class*="pmpro-"] .entry-content,
body[class*="pmpro-"] .wrap.kt-clear {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

/* ---------- Responsive: match mockup breakpoint ---------- */
@media (max-width: 920px) {
    .hpds-hero-shape { display: none; }
}
