/* Scoped to /it-training only */
html:has(.training-page),
body:has(.training-page) {
    overflow-x: hidden;
}

.training-page {
    overflow-x: hidden;
    color: #0a0933;
}

.training-page .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: clamp(12px, 3vw, 48px);
    padding-right: clamp(12px, 3vw, 48px);
}

.training-page [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.training-page img {
    max-width: 100%;
    height: auto;
}

.training-page a:focus-visible,
.training-page button:focus-visible {
    outline: 3px solid #00B4D8;
    outline-offset: 2px;
}

.training-page .tr-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0933 0%, #023e8a 55%, #00B4D8 100%);
    color: #fff;
    padding: 3rem 0 4rem;
}

.training-page .tr-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    pointer-events: none;
}

.training-page .tr-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.training-page .tr-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.training-page .tr-breadcrumb a {
    color: #d4af37;
}

.training-page .tr-breadcrumb .active {
    color: #fff;
}

.training-page .tr-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff !important;
}

.training-page .tr-hero p.lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 40rem;
}

.training-page .tr-hero-visual {
    max-width: 320px;
    width: 100%;
    display: block;
    margin: 1.5rem auto 0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.training-page .tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: #d4af37;
    color: #0a0933;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    border: 0;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.training-page .tr-btn:hover,
.training-page .tr-btn:focus {
    background-color: #00B4D8;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.training-page .tr-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.training-page .tr-btn-ghost:hover,
.training-page .tr-btn-ghost:focus {
    background: #fff;
    color: #023e8a;
    border-color: #fff;
}

.training-page .tr-btn-outline {
    background: transparent;
    color: #023e8a;
    border: 2px solid #00B4D8;
}

.training-page .tr-btn-outline:hover,
.training-page .tr-btn-outline:focus {
    background: #00B4D8;
    color: #fff;
    border-color: #00B4D8;
}

.training-page .tr-section {
    padding: 3rem 0;
}

.training-page .tr-section--muted {
    background: #f4f7fb;
}

.training-page #courses,
.training-page #enroll {
    scroll-margin-top: 96px;
}

.training-page .tr-section h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #0a0933;
    margin-bottom: 0.75rem;
}

.training-page .tr-card {
    background: #fff;
    border: 1px solid rgba(10, 9, 51, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    height: 100%;
    margin-bottom: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.training-page .tr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 180, 216, 0.15);
}

.training-page .tr-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.training-page .tr-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFD700;
    color: #0d1b2a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.training-page .tr-topic {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 1.1rem 0.75rem;
}

.training-page .tr-topic:hover,
.training-page .tr-topic:focus {
    text-decoration: none;
    color: inherit;
}

.training-page .tr-topic p {
    margin: 0;
    font-weight: 600;
}

.training-page .tr-photo {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.training-page .tr-photo-plain {
    max-height: 280px;
    object-fit: contain;
    box-shadow: none;
}

.training-page .tr-actions,
.training-page .tr-cta-actions {
    gap: 0.75rem;
}

.training-page .tr-lead-narrow {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.training-page .tr-cta-copy {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.training-page .tr-course img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.training-page .tr-course {
    padding: 0;
    overflow: hidden;
}

.training-page .tr-course .tr-course-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.training-page .tr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.training-page .tr-prose {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.training-page .tr-prose h3 {
    font-size: 1.15rem;
    margin-top: 1.25rem;
}

.training-page .tr-quote {
    margin: 0;
}

.training-page .tr-cta {
    background: linear-gradient(135deg, #0a0933, #023e8a);
    color: #fff;
}

.training-page .tr-cta h2 {
    color: #fff;
}

.training-page .tr-fade {
    animation: tr-fade-up 0.7s ease both;
}

.training-page .tr-delay-1 { animation-delay: 0.1s; }
.training-page .tr-delay-2 { animation-delay: 0.2s; }

@keyframes tr-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
    .training-page .tr-hero {
        padding: 2rem 0 2.5rem;
        text-align: center;
    }

    .training-page .tr-hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }

    .training-page .tr-hero .tr-actions {
        justify-content: center !important;
    }

    .training-page .tr-section {
        padding: 2rem 0;
    }

    .training-page .tr-photo {
        margin-bottom: 1.25rem;
        max-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .training-page .tr-fade,
    .training-page .tr-card,
    .training-page .tr-btn {
        animation: none !important;
        transition: none !important;
    }
}
