/* ═══════════════════════════════════════════════════════
   CodeTodo Journey Timeline — Frontend CSS
   ═══════════════════════════════════════════════════════ */

.ctjt-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ── Scrollable container ── */
.ctjt-scroll {
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}
.ctjt-scroll::-webkit-scrollbar { height: 4px; }
.ctjt-scroll::-webkit-scrollbar-track { background: #E2E8F0; border-radius: 99px; }
.ctjt-scroll::-webkit-scrollbar-thumb { background: #1A7FE8; border-radius: 99px; }

.ctjt-inner {
    /* min-width set inline via PHP */
    padding: 0 20px;
    box-sizing: border-box;
}

/* ── Shared grid ── */
.ctjt-grid {
    display: grid;
    grid-template-columns: repeat(var(--ctjt-cols, 7), 1fr);
    align-items: start;
}

/* ─────────────────────────────────────────
   ICON BADGES
───────────────────────────────────────── */
.ctjt-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ctjt-badge {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
.ctjt-badge svg { display: block; }

.ctjt-badge:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* ─────────────────────────────────────────
   TIMELINE LINE + DOTS
───────────────────────────────────────── */
.ctjt-timeline-row {
    position: relative;
    height: 20px;
}

.ctjt-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.ctjt-dots {
    height: 100%;
}

.ctjt-dot-col {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.ctjt-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.25s ease;
}
.ctjt-dot:hover {
    transform: scale(1.6);
}
.ctjt-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}
.ctjt-dot:hover::after {
    opacity: 1;
    animation: ctjt-dot-pulse 1.2s ease-out infinite;
}

@keyframes ctjt-dot-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(2.8); opacity: 0; }
}

/* ─────────────────────────────────────────
   MILESTONE CARDS
───────────────────────────────────────── */
.ctjt-card {
    border: 1.5px solid #E2E8F0;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: default;
    box-sizing: border-box;
    /* transition for border/shadow handled by JS */
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Top color bar */
.ctjt-card-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.ctjt-card:hover .ctjt-card-bar {
    transform: scaleX(1);
}

/* 3D shine layer */
.ctjt-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s;
}

/* Year */
.ctjt-year {
    font-weight: 700;
    line-height: 1.1;
    display: inline-block;
    transition: transform 0.3s ease;
}
.ctjt-card:hover .ctjt-year {
    transform: scale(1.05);
}

/* Title */
.ctjt-title {
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
    margin-bottom: 7px;
    transition: color 0.3s ease;
    line-height: 1.3;
}
.ctjt-card:hover .ctjt-title {
    color: #0F172A;
}

/* Description */
.ctjt-desc {
    font-weight: 400;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Bottom accent bar */
.ctjt-bottom-bar {
    height: 3px;
    border-radius: 99px;
    width: 24px;
    transition: width 0.35s ease;
}
.ctjt-card:hover .ctjt-bottom-bar {
    width: 48px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
    .ctjt-inner { padding: 0 16px; }
}
@media (max-width: 768px) {
    .ctjt-inner { padding: 0 12px; }
}
