/* ==========================================================================
   KMSEC v2.1 — Continuous Grey Diffusion + Stage Banner & Side-Slide Blocks
   ========================================================================== */

/* 1. Transparent Hero Banner & Bold Gold Subheadline */
.banner {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.35) 0%, rgba(25, 25, 25, 0.45) 100%) !important;
    backdrop-filter: blur(1.5px);
    border-bottom: none !important;
}

.banner.banner-min {
    background: linear-gradient(90deg, rgba(16, 16, 18, 0.72) 0%, rgba(26, 26, 31, 0.78) 100%) !important;
    backdrop-filter: blur(6px);
}

.impact-subheadline {
    font-weight: 700 !important;
    color: #e6c26e !important;
    border-left: 5px solid #e6c26e !important;
    opacity: 1 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6) !important;
}

/* 2. Continuous Full-Bleed Grey Diffusion Band (excludes header & footer) */
.v21-diffusion-band {
    width: 100%;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.45) 0%, rgba(16, 16, 20, 0.48) 50%, rgba(15, 15, 18, 0.45) 100%);
    backdrop-filter: blur(1.5px);
    --heading-color: #ffffff;
    --text-color: #e4e6eb;
    --text-gray: #c9cfd8;
    --border-color: rgba(230, 194, 110, 0.22);
    --panel-bg: rgba(16, 16, 20, 0.62);
    --hover-bg-color: rgba(24, 24, 30, 0.82);
    --methodology-step-bg: rgba(255, 255, 255, 0.04);
    --methodology-step-border: rgba(230, 194, 110, 0.22);
    --methodology-step-hover-bg: rgba(230, 194, 110, 0.1);
    --sub-section-border: rgba(230, 194, 110, 0.28);
}

/* 3. Container & Stage Rhythm */
.container,
.page-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 24px 90px 24px;
    overflow-x: clip;
}

.v21-stage {
    position: relative;
    padding: 76px 0;
    border-bottom: 1px solid rgba(230, 194, 110, 0.14);
}

.v21-stage:last-of-type {
    border-bottom: none;
}

/* 4. Managed-Down Big-Word Intro Style Stage Banner */
.section-title,
.v21-stage > h1 {
    display: block;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    text-align: left !important;
    margin: 0 0 42px 0 !important;
    padding: 4px 0 4px 22px !important;
    border: none !important;
    border-left: 4px solid #e6c26e !important;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.5px !important;
    text-transform: uppercase;
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
    position: relative;
}

.section-title::after,
.v21-stage > h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-top: 14px;
    background: linear-gradient(90deg, #e6c26e, transparent);
}

.v21-diffusion-band .dir-section-title {
    color: #ffffff !important;
}

.v21-diffusion-band .dir-section-subtitle {
    color: #d6dae0 !important;
}

.v21-diffusion-band .dir-indexed-count {
    color: #e6c26e !important;
}

/* 5. Seamless Slide-In Blocks over the Grey Diffusion */
.competency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 0 !important;
}

.panel,
.service-block {
    position: relative;
    background: rgba(16, 16, 20, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(230, 194, 110, 0.38);
    border-radius: 0;
    padding: 30px 28px 32px 28px;
    box-shadow: none;
    color: #e4e6eb;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                background 0.35s ease;
    will-change: transform, opacity;
}

/* Service accordions manage their own internal header/content padding */
.service-block {
    padding: 0;
    margin-bottom: 24px;
}

.service-block .tagline,
.service-block .dropdown-icon {
    color: #e6c26e;
}

.service-block .header-desc,
.service-block .subtype-details,
.service-block .step-desc {
    color: #d6dae0;
}

.service-block .assessment-badge,
.service-block .sub-badge {
    color: #e6c26e;
    border-color: rgba(230, 194, 110, 0.35);
    background: rgba(230, 194, 110, 0.08);
}

.service-block .subtype-header {
    color: #ffffff;
}

.competency-grid > a {
    display: flex;
    flex-direction: column;
}

.competency-grid > a > .panel {
    flex: 1;
}

.panel:hover,
.service-block:hover {
    border-top-color: #e6c26e;
    border-color: rgba(230, 194, 110, 0.35);
    background: rgba(20, 20, 26, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Standalone Editorial Lead Block (e.g. Our Approach) */
.v21-stage > .panel {
    padding: 36px 38px;
    background: linear-gradient(90deg, rgba(16, 16, 22, 0.76) 0%, rgba(18, 18, 24, 0.44) 100%);
    border: none;
    border-left: 4px solid #e6c26e;
    margin-bottom: 0 !important;
}

.panel-tag {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: #e6c26e !important;
    opacity: 0.95;
    margin-bottom: 12px;
}

.panel h3,
.service-block h3 {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 14px 0;
    color: #ffffff !important;
}

.panel p,
.service-block p,
.panel li,
.service-block li {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #d6dae0 !important;
}

.panel p {
    margin: 0;
}

.panel .btn-subtle {
    margin-top: 22px;
    background: transparent;
    color: #e6c26e;
    border: none;
    border-bottom: 1px solid #e6c26e;
    padding: 6px 0;
    letter-spacing: 2px;
    font-weight: 700;
}

.panel .btn-subtle:hover {
    background: transparent;
    color: #ffffff;
    padding-left: 6px;
}

/* 6. Alternating Stage-by-Stage Side Slide-In */
.v21-slide-item {
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.section-title.v21-slide-item {
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.v21-stage-left .v21-slide-item {
    transform: translateX(-90px);
}

.v21-stage-right .v21-slide-item {
    transform: translateX(90px);
}

.v21-slide-item.v21-visible,
.panel.v21-slide-item.v21-visible,
.panel.visible.v21-slide-item {
    opacity: 1;
    transform: translateX(0);
}

.panel.v21-slide-item.v21-visible:hover,
.service-block.v21-slide-item.v21-visible:hover {
    transform: translateY(-3px);
}

/* 7. Responsive */
@media (max-width: 768px) {
    .v21-stage {
        padding: 50px 0;
    }
    .section-title {
        font-size: clamp(1.45rem, 6vw, 2rem) !important;
        padding-left: 16px !important;
    }
    .panel,
    .service-block,
    .v21-stage > .panel {
        padding: 24px 20px;
    }
    .v21-stage-left .v21-slide-item {
        transform: translateX(-45px);
    }
    .v21-stage-right .v21-slide-item {
        transform: translateX(45px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v21-slide-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
