/* ===================================================================
   JDEtips Website — Design System
   Inspired by hugeinc.com: bold typography, generous whitespace,
   scroll-triggered animations, modern minimalism
   =================================================================== */

:root {
    --jt-purple: #5f3bb3;
    --jt-purple-dark: #4c2f90;
    --jt-purple-light: #f5f2ff;
    --jt-purple-muted: #e9ddff;
    --jt-text: #1a1a2e;
    --jt-text-muted: #6b7280;
    --jt-bg: #ffffff;
    --jt-bg-muted: #fafafa;
    --jt-radius: 1rem;
    --jt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base --- */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--jt-text);
    background: var(--jt-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */

.jt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* --- Header / Navigation --- */

.jt-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.jt-logo-img {
    height: 36px;
    width: auto;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--jt-text) !important;
    padding: 0.5rem 1rem !important;
    transition: color var(--jt-transition);
}

.nav-link:hover {
    color: var(--jt-purple) !important;
}

/* --- Buttons --- */

.jt-primary-btn {
    background: var(--jt-purple);
    border-color: var(--jt-purple);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all var(--jt-transition);
}

.jt-primary-btn:hover {
    background: var(--jt-purple-dark);
    border-color: var(--jt-purple-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 59, 179, 0.3);
}

.jt-outline-btn {
    border: 2px solid var(--jt-purple);
    color: var(--jt-purple);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    background: transparent;
    transition: all var(--jt-transition);
}

.jt-outline-btn:hover {
    background: var(--jt-purple);
    color: #fff;
    transform: translateY(-1px);
}

.jt-cta-btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    color: var(--jt-purple);
}

.jt-cta-btn:hover {
    color: var(--jt-purple-dark);
    transform: translateY(-1px);
}

/* --- Hero Section --- */

.jt-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(160deg, var(--jt-purple-light) 0%, var(--jt-bg) 50%, var(--jt-bg-muted) 100%);
    overflow: hidden;
}

.jt-hero-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--jt-purple);
    margin-bottom: 1.5rem;
}

.jt-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--jt-text);
}

.jt-hero-accent {
    color: var(--jt-purple);
}

.jt-hero-subtitle {
    font-size: 1.2rem;
    max-width: 32rem;
    margin-top: 1.5rem;
    color: var(--jt-text-muted);
    line-height: 1.8;
}

.jt-hero-card {
    background: var(--jt-bg);
    border-radius: var(--jt-radius);
    padding: 1.75rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- Sections --- */

.jt-section {
    padding: 6rem 0;
}

.jt-section-accent {
    background: linear-gradient(135deg, var(--jt-purple) 0%, var(--jt-purple-dark) 100%);
    padding: 5rem 0;
}

.jt-section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.jt-section-subtitle {
    font-size: 1.15rem;
    color: var(--jt-text-muted);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* --- Search Card (KE Library) --- */

.jt-search-card {
    background: var(--jt-bg);
    border-radius: var(--jt-radius);
    padding: 1.75rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.jt-search-card .form-control:focus,
.jt-search-card .form-select:focus {
    border-color: var(--jt-purple);
    box-shadow: 0 0 0 0.2rem rgba(95, 59, 179, 0.15);
}

/* --- Feature Cards --- */

.jt-feature-card {
    background: var(--jt-bg);
    border-radius: var(--jt-radius);
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all var(--jt-transition);
}

.jt-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.jt-feature-icon {
    margin-bottom: 1.5rem;
}

.jt-feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.jt-feature-text {
    color: var(--jt-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* --- Stats --- */

.jt-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--jt-purple);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.jt-stat-label {
    font-size: 0.9rem;
    color: var(--jt-text-muted);
    margin-top: 0.25rem;
}

/* --- Links --- */

.jt-link {
    color: var(--jt-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--jt-transition);
}

.jt-link:hover {
    color: var(--jt-purple-dark);
}

/* --- Footer --- */

.jt-footer {
    background: var(--jt-bg-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.jt-footer-link {
    color: var(--jt-text-muted);
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
    transition: color var(--jt-transition);
}

.jt-footer-link:hover {
    color: var(--jt-purple);
}

/* --- Scroll Animations --- */

.jt-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: jtFadeIn 0.8s ease forwards;
}

.jt-fade-in-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: jtFadeIn 0.8s ease 0.3s forwards;
}

.jt-scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.jt-scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes jtFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Focus / Accessibility --- */

.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--jt-purple);
    outline-offset: 2px;
    box-shadow: none;
}

/* --- Responsive --- */

@media (max-width: 991px) {
    .jt-hero {
        padding: 5rem 0 4rem;
    }

    .jt-section {
        padding: 4rem 0;
    }

    .jt-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 575px) {
    .jt-hero {
        padding: 3.5rem 0 3rem;
    }

    .jt-hero-title {
        font-size: 2.25rem;
    }

    .jt-section-title {
        font-size: 1.75rem;
    }
}

/* ===== Recommended Training Paths ===== */

/* Category color tokens (shared with the public schedule's track chips). */
.jt-cat-cross-functional    { --jt-cat-color: #5f3bb3; }
.jt-cat-development         { --jt-cat-color: #16a34a; }
.jt-cat-distribution        { --jt-cat-color: #d97706; }
.jt-cat-financials          { --jt-cat-color: #0891b2; }
.jt-cat-manufacturing       { --jt-cat-color: #be185d; }
.jt-cat-technical           { --jt-cat-color: #475569; }
.jt-cat-deep-dive-workshops { --jt-cat-color: #9333ea; }

/* Jump-pill row.
   "-light" variant is for a light-background page (5200's hero is light;
   5100's hero is purple and uses the inverse styling). */

.jt-path-jumpnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.jt-path-jumppill {
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.jt-path-jumppill::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--jt-cat-color, #5f3bb3);
    flex: 0 0 auto;
}

.jt-path-jumppill-light {
    background: #ffffff;
    color: #1f1132;
    border: 1px solid #e0d8f3;
}

.jt-path-jumppill-light:hover {
    background: #f5f2ff;
    border-color: color-mix(in srgb, var(--jt-cat-color, #5f3bb3) 35%, white);
    color: #1f1132;
}

/* Path block */

.jt-path {
    background: #ffffff;
    border: 1px solid #ece7f7;
    border-radius: 1.25rem;
    padding: 1.75rem 1.75rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 18px rgba(31, 14, 64, 0.04);
    scroll-margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.jt-path::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--jt-cat-color, #5f3bb3);
}

.jt-path-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0eaf9;
}

.jt-path-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--jt-cat-color, #5f3bb3) 14%, white);
    color: var(--jt-cat-color, #5f3bb3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.jt-path-titles {
    flex: 1 1 auto;
    min-width: 0;
}

.jt-path-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f1132;
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.jt-path-name .jt-path-arrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--jt-cat-color, #5f3bb3);
    font-weight: 700;
}

.jt-path-sub {
    color: #555;
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
}

.jt-path-cta {
    background: color-mix(in srgb, var(--jt-cat-color, #5f3bb3) 10%, white);
    color: var(--jt-cat-color, #5f3bb3);
    border: 1px solid color-mix(in srgb, var(--jt-cat-color, #5f3bb3) 20%, white);
    font-weight: 600;
    white-space: nowrap;
}

.jt-path-cta:hover {
    background: var(--jt-cat-color, #5f3bb3);
    color: #ffffff;
    border-color: var(--jt-cat-color, #5f3bb3);
}

/* The flow (horizontal on desktop, stacked on mobile) */

.jt-path-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: stretch;
}

.jt-path-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 220px;
    min-width: 220px;
    padding: 0.5rem 0.25rem 0.25rem;
}

.jt-path-step-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jt-cat-color, #5f3bb3);
    background: color-mix(in srgb, var(--jt-cat-color, #5f3bb3) 10%, white);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    align-self: flex-start;
}

.jt-path-step-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.jt-path-step-parallel .jt-path-step-cards {
    background: color-mix(in srgb, var(--jt-cat-color, #5f3bb3) 6%, white);
    border: 1px dashed color-mix(in srgb, var(--jt-cat-color, #5f3bb3) 30%, white);
    border-radius: 0.85rem;
    padding: 0.6rem;
}

.jt-path-card {
    background: #ffffff;
    border: 1px solid #ece7f7;
    border-radius: 0.75rem;
    padding: 0.85rem 0.9rem 0.75rem;
    box-shadow: 0 2px 8px rgba(31, 14, 64, 0.04);
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.jt-path-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31, 14, 64, 0.08);
    border-color: color-mix(in srgb, var(--jt-cat-color, #5f3bb3) 30%, white);
}

.jt-path-card-num {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 26px;
    height: 26px;
    background: var(--jt-cat-color, #5f3bb3);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.jt-path-step-first .jt-path-card-num {
    background: #1f1132;
}

.jt-path-card-title {
    display: block;
    font-weight: 700;
    color: #1f1132;
    text-decoration: none;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

a.jt-path-card-title:hover {
    color: var(--jt-cat-color, #5f3bb3);
    text-decoration: underline;
}

.jt-path-card-meta {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jt-path-card-price {
    color: var(--jt-cat-color, #5f3bb3);
    font-weight: 700;
}

.jt-path-step-note {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Arrow between steps */

.jt-path-arrow-icon {
    position: absolute;
    right: -1.05rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--jt-cat-color, #5f3bb3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #ece7f7;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .jt-path-flow {
        flex-direction: column;
    }
    .jt-path-step {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
    .jt-path-arrow-icon {
        position: static;
        transform: rotate(90deg);
        margin: 0.25rem auto;
    }
}

/* ===== Schedule toolbar + course cards (light-hero variant) ===== */
/* Category color tokens already defined above (jt-cat-*). */

.jt-hidden { display: none !important; }

/* Toolbar */

.jt-schedule-toolbar {
    background: #ffffff;
    border: 1px solid #ece7f7;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(95, 59, 179, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.jt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.jt-chip {
    border: 1px solid #e0d8f3;
    background: #ffffff;
    color: #4c2f90;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jt-chip:hover {
    background: #f5f2ff;
    border-color: #c9b8ff;
}

.jt-chip[aria-pressed="true"] {
    background: #5f3bb3;
    border-color: #5f3bb3;
    color: #ffffff;
}

.jt-sort-group {
    display: inline-flex;
    background: #f3eeff;
    border-radius: 999px;
    padding: 0.2rem;
    gap: 0.15rem;
}

.jt-sort-btn {
    border: 0;
    background: transparent;
    color: #4c2f90;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.jt-sort-btn[aria-pressed="true"] {
    background: #ffffff;
    color: #2c1b4f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Category section header */

.jt-cat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ece7f7;
}

.jt-cat-bar {
    width: 4px;
    height: 1.5rem;
    border-radius: 4px;
    background: var(--jt-cat-color, #5f3bb3);
}

.jt-cat-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.jt-cat-count {
    color: #888;
    font-size: 0.85rem;
    margin-left: auto;
}

/* Course card */

.jt-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.jt-course-card {
    background: #ffffff;
    border: 1px solid #ece7f7;
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 4px 12px rgba(31, 14, 64, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

.jt-course-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--jt-cat-color, #5f3bb3);
}

.jt-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 14, 64, 0.10);
    border-color: #d8ccf3;
}

.jt-course-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jt-cat-color, #5f3bb3);
    margin-bottom: 0.4rem;
}

.jt-course-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f1132;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
}

.jt-course-title:hover {
    color: #5f3bb3;
    text-decoration: underline;
}

.jt-course-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    color: #555;
    font-size: 0.9rem;
    display: grid;
    gap: 0.35rem;
}

.jt-course-meta li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.jt-course-meta svg {
    flex: 0 0 auto;
    color: #8a76c4;
    margin-top: 2px;
}

.jt-course-foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed #ece7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.jt-course-price {
    font-weight: 700;
    color: #1f1132;
}

.jt-course-price-strike {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.35rem;
}

.jt-course-cta {
    color: #5f3bb3;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.jt-course-cta:hover {
    text-decoration: underline;
}
