/* ===================================================================
   HISTORY PAGE — Premium Redesign (Red/White Soft UI)
   =================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────── */
.history-hero {
    overflow: hidden;
}

.history-hero .history-hero-overlay {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(100,32,39,0.92) 50%, rgba(184,74,90,0.85) 100%);
}

.history-breadcrumb-link {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.history-breadcrumb-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ── Timeline Track ───────────────────────────────────────────────── */
.history-timeline-section {
    background: #fdfdfd; /* Ultra light red-tinted white */
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.timeline-wrapper {
    padding-bottom: 2rem;
    position: relative;
    min-height: 120px;
    margin-bottom: 3rem;
}

.timeline-line {
    position: absolute;
    top: 38px;
    left: 0; right: 0;
    height: 6px;
    background: rgba(184, 74, 90, 0.15); /* Soft, subtle track */
    z-index: 1;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(100,32,39,0.05);
}

/* ── Timeline Nodes ───────────────────────────────────────────────── */
.timeline-point {
    z-index: 2;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    min-width: 80px;
}

.timeline-point::before {
    content: "";
    position: absolute;
    top: 56px;
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(184, 74, 90, 0.4), rgba(184, 74, 90, 0));
}

.year-label {
    font-size: 0.95rem;
    color: #8a3b45; /* Muted red */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    border: 1px solid rgba(184, 74, 90, 0.08);
    box-shadow: 0 4px 12px rgba(100,32,39,0.06);
    border-radius: 1rem;
    padding: 0.25rem 1rem;
    font-weight: 600;
}

.timeline-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 5px solid rgba(184, 74, 90, 0.3);
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3;
    position: relative;
}

/* Glowing Pulse Animation for Active Dot */
.timeline-dot.active {
    background-color: #b84a5a;
    border-color: #ffffff;
    box-shadow: 0 0 0 5px rgba(184, 74, 90, 0.3), 0 10px 20px rgba(100,32,39,0.3);
    transform: scale(1.2);
}

.timeline-dot.active::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    border: 2px solid #b84a5a;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.timeline-point:hover .timeline-dot:not(.active) {
    border-color: rgba(184, 74, 90, 0.6);
    transform: scale(1.1);
}

.timeline-point:hover .year-label {
    color: #642027; /* Deep maroon */
    box-shadow: 0 8px 24px rgba(100,32,39,0.12);
    transform: translateY(-2px);
    border-color: rgba(184, 74, 90, 0.2);
}

.timeline-dot.active + .year-label,
.timeline-point.active .year-label {
    color: #ffffff !important;
    background: #b84a5a;
    border-color: #b84a5a;
    box-shadow: 0 10px 25px rgba(184, 74, 90, 0.3);
    transform: translateY(-4px);
}

/* ── Content Display ──────────────────────────────────────────────── */
.timeline-content {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animated-timeline-card {
    animation: fadeInUpSoft 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeInUpSoft {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.premium-history-image {
    border-radius: 2rem;
    box-shadow: 0 25px 50px rgba(100, 32, 39, 0.15);
    border: 1px solid rgba(184, 74, 90, 0.08);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-history-image:hover {
    transform: translateY(-8px) scale(1.02);
}

.timeline-content h4 {
    color: #642027;
    letter-spacing: -1px;
}

.timeline-content p.lead {
    color: #8a3b45;
    line-height: 1.8;
}
