/* ============================================
   Block Editor Overrides
   Maps Gutenberg block output to existing theme styles
   ============================================ */

/* ---- HERO (Cover Block with .section-hero) ---- */
.section-hero.wp-block-cover {
    min-height: 100vh !important;
    margin-top: 0;
}

.section-hero .wp-block-cover__inner-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-hero .hero-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
    margin-bottom: 16px;
}

.section-hero .hero-heading {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 1.63px;
    text-transform: uppercase;
    line-height: 1.33;
    color: #ffffff;
    margin-bottom: 32px;
}

/* ---- ABOUT (Group Block with .section-about) ---- */
.section-about.wp-block-group {
    background-color: var(--color-dark);
    padding: 120px 0;
    color: #ffffff;
}

.section-about .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    gap: 60px;
    align-items: center;
}

.section-about .about-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-about .about-subtitle::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background-color: rgb(136, 111, 83);
    flex-shrink: 0;
}

.section-about h2 {
    color: #ffffff;
    margin-bottom: 8px;
}

.section-about .about-subheading {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.57;
    color: #ffffff;
    margin-bottom: 32px;
}

.section-about .about-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* ---- TRAINING (Group Block with .section-training) ---- */
.section-training.wp-block-group {
    background-color: var(--color-dark-alt);
    padding: 120px 0;
    color: #ffffff;
}

.section-training .training-inner {
    max-width: 770px;
    margin: 0 auto;
}

.section-training .training-inner h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 0;
}

.section-training .training-inner .wp-block-image {
    margin-top: 48px;
}

.section-training .training-inner .wp-block-image img {
    border-radius: 4px;
}

.section-training .training-intro {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.78;
    color: #ffffff;
    margin-top: 48px;
}

.section-training .training-text {
    color: rgba(255, 255, 255, 0.48);
    margin-top: 20px;
    line-height: 1.75;
}

/* ---- CTA (Cover Block with .section-cta) ---- */
.section-cta.wp-block-cover {
    padding: 120px 0;
}

.section-cta .wp-block-cover__inner-container {
    text-align: center;
}

.section-cta h2 {
    color: #ffffff;
    margin-bottom: 30px;
}

/* ---- BUTTONS (within sections) ---- */
.section-hero .wp-block-button__link,
.section-about .wp-block-button__link,
.section-training .wp-block-button__link,
.section-cta .wp-block-button__link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Primary button */
.wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: var(--color-gold);
    color: #ffffff;
    border: 2px solid var(--color-gold);
}

.wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

/* Outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--color-gold);
    color: #ffffff;
}

/* ---- SECTION HEADER with decorative lines ---- */
.section-header-block {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-block .section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
    margin-bottom: 8px;
}

.section-header-block .section-subtitle::before,
.section-header-block .section-subtitle::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background-color: rgb(136, 111, 83);
    flex-shrink: 0;
}

/* ---- RESPONSIVE OVERRIDES ---- */
@media (max-width: 992px) {
    .section-hero.wp-block-cover {
        min-height: 80vh !important;
    }

    .section-hero .hero-heading {
        font-size: 36px;
    }

    .section-about .wp-block-columns {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section-hero .hero-heading {
        font-size: 28px;
    }

    .section-about.wp-block-group,
    .section-training.wp-block-group {
        padding: 80px 0;
    }

    .section-cta.wp-block-cover {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .section-hero .hero-heading {
        font-size: 24px;
        letter-spacing: 1px;
    }
}
