/* Staff training page (aesthetic finding 9).
   Loaded after css/style.css. Before this file the page's own classes had no
   rules at all. Everything here is built from the existing .service-card
   pattern (css/style.css 958 to 1114): radius, shadow, border, centred h3,
   tick lists made with li::before, button pinned to the card bottom.
   No new orange text: figures and headings are ink, ticks and icons use the
   existing darker brand orange as graphics, badges are ink on light orange. */

/* ---------- Hero ---------- */
.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

/* style.css fixes the hero h1 at 3.5rem; scale it so "Programmes" fits at 375. */
.hero-content h1 {
    font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ---------- Section rhythm ---------- */
.why-training,
.training-programs,
.methodology,
.training-formats,
.group-discounts,
.cta-section {
    padding: 3rem 0;
}

.why-training h2,
.training-programs h2,
.methodology h2,
.training-formats h2,
.group-discounts h2,
.success-stories h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.success-stories h2 {
    color: #ffffff;
}

.training-programs,
.group-discounts {
    background: var(--bg-secondary);
}

.training-programs h2,
.group-discounts h2 {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    max-width: 60ch;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-secondary);
}

/* ---------- Shared card (the .service-card pattern) ---------- */
.benefit-card,
.program-card,
.methodology-step,
.story-card,
.format-card,
.discount-tier {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* Cards that sit on the grey sections are white. */
.program-card,
.discount-tier {
    background: #ffffff;
}

.benefit-card h3,
.program-header h3,
.methodology-step h3,
.format-card h3,
.discount-tier h3 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    text-align: center;
    color: var(--text-primary);
}

.benefit-card p,
.methodology-step p,
.format-card p,
.discount-tier p,
.program-description,
.program-audience p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Round icon badge shared by benefits and delivery formats. */
.benefit-icon,
.format-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(248, 149, 33, 0.14);
    color: var(--color-primary-dark);
    font-size: 1.5rem;
}

/* ---------- Why invest ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-card p {
    margin-bottom: 0;
}

/* ---------- Programmes ---------- */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.program-header {
    text-align: center;
    margin-bottom: 1rem;
}

.program-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
}

.program-duration i {
    color: var(--color-primary-dark);
}

.program-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-details h4,
.program-audience h4 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.program-audience {
    margin-bottom: 1.5rem;
}

.program-audience p {
    margin-bottom: 0;
}

/* Tick lists (the li::before pattern from .service-features). */
.program-details ul,
.format-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.program-details li,
.format-card li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.6rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.program-details li::before,
.format-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary-dark);
    font-weight: var(--font-weight-bold);
}

.format-card ul {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Price: a large ink figure with a muted note, pinned above the button. */
.program-pricing {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--neutral-200);
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    color: var(--text-primary);
}

.price-note {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.program-footer {
    margin-top: 1.5rem;
}

.program-footer .btn-primary {
    display: flex;
    width: 100%;
}

/* Featured card and its badge (ink text on light orange, never white on orange). */
.program-card.featured,
.discount-tier.featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.program-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

/* ---------- Methodology ---------- */
.methodology-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.methodology-step {
    flex: 1 1 100%;
    text-align: center;
}

.methodology-step p {
    margin-bottom: 0;
}

/* style.css gives .step-number white text on a brand orange gradient (too faint). */
.step-number {
    background: var(--neutral-800);
    color: #ffffff;
}

/* ---------- Success stories (dark band in style.css 4895) ---------- */
.success-stories {
    padding: 3rem 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.story-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
}

/* The quote text carries its own quotation marks, so drop the decorative glyph. */
.story-card::before {
    content: none;
}

.story-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.story-card blockquote {
    flex: 1;
    margin: 0 0 1.5rem;
}

.story-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.story-author strong {
    color: var(--text-primary);
    font-size: 1rem;
}

/* ---------- Delivery formats ---------- */
.formats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Group discounts ---------- */
.discount-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.discount-tier {
    align-items: center;
    text-align: center;
}

.discount-tier h3 {
    font-size: 1.25rem;
}

.discount-amount {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    color: var(--text-primary);
}

.discount-tier p {
    margin-bottom: 0;
}

.additional-benefits {
    max-width: 900px;
    margin: 3.5rem auto 0;
}

.additional-benefits h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}

.benefit-item i {
    flex: 0 0 auto;
    color: var(--color-primary-dark);
}

/* ---------- Final call to action ---------- */
/* The container becomes the dark panel; width matches the other sections' content. */
.cta-section .container {
    width: calc(100% - 2rem);
    max-width: calc(var(--container-max-width) - 2rem);
    padding: 3rem 1.5rem;
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.cta-section p {
    max-width: 60ch;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* The shared secondary button is orange text on white; on the dark panel make it a ghost. */
.cta-section .btn-secondary {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: #ffffff !important;
}

/* style.css 1567 makes .contact-info a white form card; here it is a quiet line under the buttons. */
.cta-section .contact-info {
    margin-top: 2rem;
    padding: 1.5rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    box-shadow: none;
    height: auto;
}

.cta-section .contact-info p {
    max-width: none;
    color: rgba(255, 255, 255, 0.85);
}

.cta-section .contact-info strong {
    color: #ffffff;
}

/* ---------- Phones ---------- */
@media (max-width: 479px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }

    .cta-section .container {
        padding: 2.25rem 1.25rem;
    }
}

/* ---------- Tablet: benefits two across ---------- */
@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .methodology-step {
        flex: 0 1 calc((100% - 1.5rem) / 2);
    }

    .why-training,
    .training-programs,
    .methodology,
    .training-formats,
    .group-discounts,
    .cta-section,
    .success-stories {
        padding: 4rem 0;
    }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }

    .stories-grid,
    .formats-grid,
    .discount-table {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
    }

    .methodology-step {
        flex: 0 1 calc((100% - 3rem) / 3);
    }

    .program-card,
    .format-card,
    .benefit-card {
        padding: 2.25rem 2rem;
    }
}

@media (min-width: 1100px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .benefit-card {
        padding: 2rem 1.5rem;
    }

    /* Two-line room so the four paragraphs start on the same line. */
    .benefit-card h3 {
        min-height: 2.6em;
    }
}
