/* ============================================
   Training Page - Dark Version
   Extends new-top-style.css with dark overrides
   ============================================ */

/* ===== Dark Theme Overrides ===== */
.training-hero,
.training-hero ~ .section,
.training-hero ~ .footer,
.training-hero ~ #faq {
    --bg-color: #0a0a0f;
    --bg-gray: #12121a;
    --white: #1a1a26;
    --text-color: #e8e8f0;
    --text-light: #8888a0;
    --primary-color: #4a9eff;
    --primary-gradient: linear-gradient(135deg, #4a9eff 0%, #7b5cff 100%);
    --secondary-color: #7bb8ff;
    --accent-color: #7b5cff;
}

/* Body & Global overrides for training page */
body:has(.training-hero) {
    background-color: #0a0a0f;
    color: #e8e8f0;
}

/* Header dark override */
body:has(.training-hero) .header {
    background: transparent;
}

body:has(.training-hero) .logo {
    color: #e8e8f0;
}

body:has(.training-hero) .logo::before {
    background: #4a9eff;
}

body:has(.training-hero) .nav__item a:not(.btn) {
    color: #8888a0;
}

body:has(.training-hero) .nav__item a:not(.btn):hover {
    color: #4a9eff;
}

body:has(.training-hero) .nav__item .btn--primary {
    color: #ffffff !important;
}

body:has(.training-hero) .btn--primary {
    background: linear-gradient(135deg, #4a9eff 0%, #7b5cff 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.25);
}

body:has(.training-hero) .btn--primary:hover {
    color: #ffffff !important;
    box-shadow: 0 6px 30px rgba(74, 158, 255, 0.4);
}

/* Hero */
.training-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: #0a0a0f !important;
    position: relative;
}

.training-hero__label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4a9eff !important;
    margin-bottom: 15px;
}

.training-hero__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff !important;
    margin-bottom: 20px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.training-hero__title br + * {
    color: #ffffff !important;
}

.training-hero h1 {
    color: #ffffff !important;
}

.training-hero__highlight {
    color: #4a9eff;
}

.training-hero__description {
    color: #8888a0;
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Active nav item */
.nav__active {
    color: #4a9eff !important;
    font-weight: 600 !important;
}

/* Section description */
.section__description {
    text-align: center;
    color: #8888a0;
    max-width: 600px;
    margin: -40px auto 50px;
    font-size: 0.95rem;
}

/* ===== Section Backgrounds ===== */
.training-hero ~ .section {
    background-color: #0a0a0f;
}

.training-hero ~ .section--gray {
    background-color: #08080d;
}

.training-hero ~ .section .section__title {
    color: #e8e8f0;
}

.training-hero ~ .section .section__subtitle {
    color: #8888a0;
}

/* ===== Problem Cards ===== */
.training-hero ~ .section .problem__card {
    background: #12121a;
    border: 1px solid #222235;
    box-shadow: none;
}

.training-hero ~ .section .problem__card:hover {
    border-color: rgba(74, 158, 255, 0.3);
}

.training-hero ~ .section .problem__heading {
    color: #e8e8f0;
}

.training-hero ~ .section .problem__text {
    color: #8888a0;
}

/* ===== Difference Section ===== */
.diff__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.diff__col {
    border-radius: 20px;
    overflow: hidden;
}

.diff__header {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.diff__col--ours {
    border: 1px solid rgba(74, 158, 255, 0.3);
    background: #12121a;
}

.diff__col--ours .diff__header {
    background: rgba(74, 158, 255, 0.06);
    color: #4a9eff;
}

.diff__col--ours .diff__value {
    color: #7bb8ff;
    font-weight: 500;
}

.diff__col--others {
    background: #12121a;
    border: 1px solid #222235;
}

.diff__col--others .diff__header {
    background: #0e0e16;
    color: #555570;
}

.diff__col--others .diff__value {
    color: #555570;
}

.diff__body {
    padding: 24px;
}

.diff__item {
    margin-bottom: 20px;
}

.diff__item:last-child {
    margin-bottom: 0;
}

.diff__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555570;
    margin-bottom: 4px;
}

.diff__value {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Curriculum Section ===== */
.curriculum__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.curriculum__card {
    background: #12121a;
    border: 1px solid #222235;
    padding: 30px;
    border-radius: 20px;
    box-shadow: none;
    transition: transform 0.3s, border-color 0.3s;
}

.curriculum__card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 158, 255, 0.3);
}

.curriculum__icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
}

.curriculum__title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #e8e8f0;
}

.curriculum__text {
    font-size: 0.9rem;
    color: #8888a0;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Badge overrides for dark */
.training-hero ~ .section .badge--blue {
    background: rgba(74, 158, 255, 0.12);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.15);
}

.training-hero ~ .section .badge--purple {
    background: rgba(123, 92, 255, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(123, 92, 255, 0.15);
}

/* ===== Pricing ===== */
.training-hero ~ .section .pricing__card {
    background: #12121a;
    border: 1px solid #222235;
    box-shadow: none;
}

.training-hero ~ .section .pricing__card:hover {
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 10px 40px rgba(74, 158, 255, 0.05);
}

.training-hero ~ .section .pricing__card--featured {
    border: 2px solid #4a9eff;
    background: linear-gradient(180deg, #12121a 0%, #0f1020 100%);
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.08);
}

.training-hero ~ .section .pricing__badge {
    background: linear-gradient(135deg, #4a9eff 0%, #7b5cff 100%);
}

.training-hero ~ .section .pricing__name {
    color: #e8e8f0;
}

.training-hero ~ .section .pricing__price {
    color: #e8e8f0;
}

.pricing__duration {
    font-size: 0.9rem;
    color: #8888a0;
    margin-bottom: 20px;
}

.training-hero ~ .section .pricing__card .check-list {
    text-align: left;
    margin-bottom: 10px;
}

.training-hero ~ .section .pricing__card .check-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #8888a0;
}

.training-hero ~ .section .pricing__card .check-list li::before {
    color: #4a9eff;
}

.training-hero ~ .section .pricing__note {
    color: #555570;
    font-size: 0.8rem;
}

/* ===== Workflow ===== */
.training-hero ~ .section .step__circle {
    background: linear-gradient(135deg, #4a9eff 0%, #7b5cff 100%);
    box-shadow: 0 8px 15px rgba(74, 158, 255, 0.2);
}

.training-hero ~ .section .step__title {
    color: #e8e8f0;
}

.training-hero ~ .section .step__text {
    color: #8888a0;
}

.training-hero ~ .section .step__line {
    background: #222235;
}

/* ===== Instructor Section ===== */
.instructor {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    background: #12121a;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #222235;
    box-shadow: none;
    margin-bottom: 40px;
}

.instructor__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(123, 92, 255, 0.08) 100%);
}

.instructor__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor__name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e8e8f0;
    margin-bottom: 4px;
}

.instructor__title {
    font-size: 0.9rem;
    color: #4a9eff;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.instructor__bio {
    font-size: 0.95rem;
    color: #8888a0;
    line-height: 1.9;
    margin-bottom: 20px;
}

.instructor__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.instructor__badges .badge {
    font-size: 0.75rem;
    padding: 5px 12px;
}

/* ===== Credentials Grid ===== */
.credentials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.credential__card {
    background: #12121a;
    border: 1px solid #222235;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.credential__card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 158, 255, 0.2);
}

.credential__number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a9eff 0%, #7b5cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    line-height: 1.2;
}

.credential__number--sm {
    font-size: 1rem;
    line-height: 1.5;
}

.credential__unit {
    font-size: 0.85rem;
    color: #8888a0;
    margin-bottom: 6px;
}

.credential__desc {
    font-size: 0.8rem;
    color: #555570;
    line-height: 1.4;
}

/* ===== FAQ Dark ===== */
.training-hero ~ .section .faq__item {
    background: #12121a;
    border: 1px solid #222235;
}

.training-hero ~ .section .faq__question {
    color: #e8e8f0;
}

.training-hero ~ .section .faq__icon {
    color: #4a9eff;
}

.training-hero ~ .section .faq__answer p {
    color: #8888a0;
}

/* ===== Footer Dark ===== */
.training-hero ~ .footer {
    background: #08080d;
}

.training-hero ~ .footer h3 {
    color: #e8e8f0 !important;
}

.training-hero ~ .footer p {
    color: #8888a0;
}

.training-hero ~ .footer .btn--white {
    background: #ffffff;
    color: #0a0a0f;
}

.training-hero ~ .footer .btn--white:hover {
    background: #4a9eff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.3);
}

.training-hero ~ .footer .copyright {
    color: #555570;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    /* Dark mobile nav overlay */
    body:has(.training-hero) .nav {
        background: rgba(10, 10, 15, 0.98);
    }

    body:has(.training-hero) .nav__item a:not(.btn) {
        border-bottom-color: #222235;
    }

    body:has(.training-hero) .nav-toggle span {
        background: #8888a0;
    }

    .diff__grid {
        grid-template-columns: 1fr;
    }

    .instructor {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .instructor__photo {
        max-width: 240px;
        margin: 0 auto;
    }

    .credentials__grid {
        grid-template-columns: 1fr 1fr;
    }

    .curriculum__grid {
        grid-template-columns: 1fr;
    }

    .training-hero__title {
        font-size: 1.8rem !important;
    }
}
