/* ==========================================================================
   Course Sales Page Styles
   ========================================================================== */

/* ── Hero ── */
.hw-cs-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hw-cs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--hw-green-pale, #e8f0e6);
}

.hw-cs-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hw-cs-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(20, 30, 18, 0.85) 0%,
        rgba(20, 30, 18, 0.4) 50%,
        rgba(20, 30, 18, 0.15) 100%
    );
}

.hw-cs-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--hw-max-width, 1100px);
    margin: 0 auto;
    padding: 3rem 2rem 2.5rem;
}

.hw-cs-hero__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    color: #fff;
    margin-bottom: 1rem;
}

.hw-cs-hero__badge--pro {
    background: rgba(45, 90, 39, 0.7);
}

.hw-cs-hero__title {
    font-family: var(--hw-font-heading, 'Playfair Display', Georgia, serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    max-width: 640px;
}

.hw-cs-hero__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hw-cs-hero__meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}


/* ── Layout ── */
.hw-cs-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
    align-items: start;
}


/* ── Content Column ── */
.hw-cs-content {
    min-width: 0;
}

.hw-cs-content h2 {
    font-family: var(--hw-font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.6rem;
    color: var(--hw-brown, #3d2b1f);
    margin: 2rem 0 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.hw-cs-content h2:first-child {
    margin-top: 0;
}

.hw-cs-content h3 {
    font-family: var(--hw-font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.25rem;
    color: var(--hw-brown, #3d2b1f);
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

.hw-cs-content p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--hw-text, #2c2c2c);
    margin-bottom: 1rem;
}

.hw-cs-content ul,
.hw-cs-content ol {
    margin: 0.75rem 0 1.25rem 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hw-text, #2c2c2c);
}

.hw-cs-content li {
    margin-bottom: 0.4rem;
}

.hw-cs-content strong {
    color: var(--hw-text, #2c2c2c);
}

.hw-cs-content blockquote {
    border-left: 3px solid var(--hw-green, #2d5a27);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--hw-green-pale, #e8f0e6);
    font-style: italic;
    color: var(--hw-text-light, #5a5a5a);
    border-radius: 0 6px 6px 0;
}

.hw-cs-content hr {
    border: none;
    border-top: 1px solid var(--hw-border-light, #ece7df);
    margin: 2rem 0;
}


/* ── Sidebar ── */
.hw-cs-sidebar {
    position: sticky;
    top: 8rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.hw-cs-sidebar__card {
    background: #fff;
    border: 1px solid var(--hw-border-light, #ece7df);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hw-cs-sidebar__thumb {
    width: 100%;
    height: clamp(60px, 12vh, 120px);
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

.hw-cs-sidebar__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.hw-cs-sidebar__price {
    font-family: var(--hw-font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(1rem, 1.8vh, 1.4rem);
    font-weight: 700;
    color: var(--hw-text, #2c2c2c);
    text-align: center;
    padding: clamp(0.25rem, 0.8vh, 0.6rem) 0.75rem clamp(0.1rem, 0.3vh, 0.2rem);
}

.hw-cs-sidebar__btn {
    display: block;
    margin: clamp(0.2rem, 0.5vh, 0.4rem) 0.75rem;
    padding: clamp(0.3rem, 0.7vh, 0.55rem) 0.75rem;
    text-align: center;
    font-family: var(--hw-font-body, 'Source Sans 3', sans-serif);
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vh, 0.9rem);
    color: #fff;
    background: var(--hw-green, #2d5a27);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.hw-cs-sidebar__btn:hover {
    background: var(--hw-green-light, #3e7a35);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.25);
}

.hw-cs-sidebar__btn--enrolled {
    background: var(--hw-earth, #8b6914);
}

.hw-cs-sidebar__btn--enrolled:hover {
    background: var(--hw-earth-light, #c49a1a);
}

.hw-cs-sidebar__enrolled-note {
    text-align: center;
    font-size: clamp(0.55rem, 0.9vh, 0.7rem);
    color: var(--hw-green, #2d5a27);
    font-weight: 600;
    padding: 0 0.75rem clamp(0.1rem, 0.3vh, 0.2rem);
    margin: 0;
}

.hw-cs-sidebar__details {
    padding: clamp(0.2rem, 0.5vh, 0.4rem) 0.75rem clamp(0.3rem, 0.8vh, 0.75rem);
    border-top: 1px solid var(--hw-border-light, #ece7df);
    margin-top: clamp(0.15rem, 0.4vh, 0.35rem);
}

.hw-cs-sidebar__detail {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: clamp(0.15rem, 0.35vh, 0.25rem) 0;
    font-size: clamp(0.65rem, 1vh, 0.8rem);
    color: var(--hw-text-light, #5a5a5a);
    line-height: 1.35;
}

.hw-cs-sidebar__detail-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    width: 1.1rem;
    text-align: center;
    margin-top: 0.05rem;
}


/* ── Bottom CTA ── */
.hw-cs-bottom-cta {
    background: var(--hw-bg-cream, #f8f5ef);
    padding: var(--hw-space-2xl, 3rem) var(--hw-space-lg, 1.5rem);
    text-align: center;
}

.hw-cs-bottom-cta h2 {
    font-family: var(--hw-font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.75rem;
    color: var(--hw-brown, #3d2b1f);
    margin-bottom: var(--hw-space-sm, 0.5rem);
}

.hw-cs-bottom-cta p {
    font-size: 1.05rem;
    color: var(--hw-text-light, #5a5a5a);
    margin-bottom: var(--hw-space-lg, 1.5rem);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hw-cs-bottom-cta .hw-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ── Buttons (shared) ── */
.hw-course-sales .hw-btn {
    display: inline-block;
    font-family: var(--hw-font-body, 'Source Sans 3', sans-serif);
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}

.hw-course-sales .hw-btn-primary {
    background: var(--hw-green, #2d5a27);
    color: #fff;
}

.hw-course-sales .hw-btn-primary:hover {
    background: var(--hw-green-light, #3e7a35);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.25);
    transform: translateY(-1px);
    color: #fff;
}

.hw-course-sales .hw-btn-outline {
    background: transparent;
    color: var(--hw-green, #2d5a27);
    border: 2px solid var(--hw-green, #2d5a27);
}

.hw-course-sales .hw-btn-outline:hover {
    background: var(--hw-green-pale, #e8f0e6);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .hw-cs-layout {
        grid-template-columns: 1fr;
    }

    .hw-cs-sidebar {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }

    .hw-cs-hero__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hw-cs-hero {
        min-height: 260px;
    }

    .hw-cs-hero__title {
        font-size: 1.6rem;
    }

    .hw-cs-hero__content {
        padding: 2rem 1.25rem 1.75rem;
    }

    .hw-cs-content h2 {
        font-size: 1.35rem;
    }

    .hw-cs-sidebar__card {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .hw-cs-hero__title {
        font-size: 1.4rem;
    }

    .hw-cs-sidebar__btn {
        margin: 0.75rem 1rem;
    }
}
