/* ============================================================
   TRAKANALYTICA DATA LAB - TRAINING PAGE
   css/training.css
   ============================================================ */

/* ===== HERO ===== */
.tr-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* fallback colour while image loads */
    background-color: #0f1024;
}
.tr-hero > .container { width: 100%; }
.tr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/heroimage.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}
.tr-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10,15,36,0.60) 0%,
        rgba(10,15,36,0.50) 50%,
        rgba(10,15,36,0.60) 100%
    );
}
.tr-hero-blob,
.tr-hero-blob-1,
.tr-hero-blob-2 {
    display: none;
}
@keyframes trBlobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(24px, -18px) scale(1.08); }
}
.tr-hero-grid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.tr-hero-inner {
    max-width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.tr-hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(167,139,250,0.16);
    border: 1px solid rgba(167,139,250,0.4);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 24px;
}
.tr-hero-tag .fa { font-size: 0.7rem; }
.tr-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.tr-hero p {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.45);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.tr-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
}

/* Hero visual: "Learning Path" strip under the button */
.tr-hero-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 44px;
}
.tr-hv-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 20px 24px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 32px;
}
.tr-hv-card-label {
    flex: 0 0 100%;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c4b5fd;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}
.tr-hv-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}
.tr-hv-stage-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(167,139,250,0.16);
    color: #c4b5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.tr-hv-stage-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
}

/* Hero responsive */
@media (max-width: 768px) {
    .tr-hero { min-height: 380px; padding: 80px 0; }
    .tr-hero-grid { padding: 0 20px; }
    .tr-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
    .tr-hero p { font-size: 0.95rem; }
}

@media (max-width: 640px) {
    .tr-hero { min-height: 340px; padding: 60px 0; }
    .tr-hero-grid { padding: 0 16px; }
    .tr-hero h1 { font-size: 1.6rem; }
    .tr-hv-card { padding: 18px; gap: 12px 20px; }
    .tr-hv-stage { flex: 1 1 42%; }
}

/* ══════════════════════════════════════════
   INTRO
══════════════════════════════════════════ */
.tr-intro-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.tr-intro-inner p {
    font-size: 1.06rem;
    line-height: 1.8;
    margin-bottom: 18px;
}
.tr-intro-inner p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════
   EXPLORE TRAINING IN
══════════════════════════════════════════ */
.tr-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.tr-area-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}
.tr-area-chip:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 28px var(--accent-glow);
    transform: translateY(-3px);
}
.tr-area-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-glow-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   EXPLORE THE ACADEMY CTA
══════════════════════════════════════════ */
.tr-cta {
    position: relative;
    background: linear-gradient(135deg, #1a1330 0%, #2b1a4a 55%, #1a1330 100%);
    overflow: hidden;
    text-align: center;
}
.tr-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(124,58,237,0.28), transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(217,119,6,0.18), transparent 55%);
    pointer-events: none;
}
.tr-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}
.tr-cta-tag {
    color: #e9d5ff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.24);
}
.tr-cta-title {
    color: #ffffff;
    margin-bottom: 28px;
}
.tr-cta-note {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    margin-top: 20px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .tr-areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tr-areas-grid { grid-template-columns: 1fr; }
    .tr-area-chip { padding: 18px; }
}