/* ================================================================
   UNIFIED TGT TIMELINE STYLES (HIGH-SPECIFICITY)
   This file styles all timelines on the website.
   ================================================================ */

/*
 * ----------------------------------------------------------------
 * THEME & CONFIGURATION
 * ----------------------------------------------------------------
 */
:root {
    /* Colours */
    --tgt-colour-primary: #102842;
    --tgt-colour-secondary: #0f1f35;
    --tgt-colour-accent: #7a2448;
    --tgt-colour-white: #ffffff;
    --tgt-colour-gold: #d4a574;
    --tgt-colour-gold-light: #e8c196;
    --tgt-colour-text-light: rgba(255, 255, 255, 0.85);
    --tgt-colour-glass-border: rgba(255, 255, 255, 0.15);
    --tgt-colour-glass-bg: rgba(255, 255, 255, 0.05);

    /* Gradients & Shadows */
    --tgt-gradient-hero: linear-gradient(135deg, var(--tgt-colour-primary) 0%, var(--tgt-colour-secondary) 50%, var(--tgt-colour-accent) 100%);
    --tgt-glow-gold: 0 0 20px rgba(212, 165, 116, 0.5);
    --tgt-shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);

    /* Typography */
    --tgt-font-heading: 'Montserrat', sans-serif;
    --tgt-font-body: 'Montserrat', sans-serif;

    /* Sizing & Spacing */
    --tgt-section-spacing: clamp(5rem, 12vw, 8rem);
    --tgt-container-padding: clamp(1.5rem, 5vw, 4rem);

    /* Borders & Transitions */
    --tgt-radius-xl: 20px;
    --tgt-transition-normal: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================================================================
   TIMELINE SECTION STYLES
   ================================================================ */

/* Section Base & Background */
body .tgt-timeline-section {
    position: relative;
    overflow: hidden;
    padding: var(--tgt-section-spacing) var(--tgt-container-padding);
    background: var(--tgt-gradient-hero);
    color: var(--tgt-colour-white);
    font-family: var(--tgt-font-body);
}

/* Header & Title */
body .tgt-timeline-header {
    text-align: center;
    max-width: 900px; /* Increased width for larger screens */
    margin: 0 auto clamp(3rem, 8vw, 4rem);
}

body .tgt-timeline-section-title {
    margin-bottom: 1rem;
    font-family: var(--tgt-font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Adjusted responsive size */
    font-weight: 600;
    color: var(--tgt-colour-white);
    white-space: nowrap; /* UPDATED: Prevents the title from wrapping */
}

body .tgt-timeline-section-title .highlight {
    color: var(--tgt-colour-gold);
}

body .tgt-timeline-section-subtitle {
    color: var(--tgt-colour-text-light);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.7;
}

/* Timeline Wrapper & Central Axis */
body .tgt-timeline-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

/* The static, grey line underneath */
body .tgt-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--tgt-colour-glass-border);
}

/* The golden progress bar */
.timeline-progress-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 0;
    background: var(--tgt-colour-gold);
    box-shadow: var(--tgt-glow-gold);
    z-index: 5;
    transition: height 0.1s linear;
}

/* Timeline Items & Dots */
body .tgt-timeline-item {
    position: relative;
    width: 50%;
    align-self: flex-start;
    padding-right: 4rem;
    text-align: right;
}

body .tgt-timeline-item:nth-child(even) {
    align-self: flex-end;
    padding-right: 0;
    padding-left: 4rem;
    text-align: left;
}

body .tgt-timeline-dot {
    position: absolute;
    z-index: 10;
    top: 0;
    right: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(16, 40, 66, 0.5), var(--tgt-shadow-xl);
    color: var(--tgt-colour-primary);
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(45deg, var(--tgt-colour-gold), var(--tgt-colour-gold-light));
    transition: transform var(--tgt-transition-normal);
}

body .tgt-timeline-item:nth-child(even) .tgt-timeline-dot {
    right: auto;
    left: -25px;
}

body .tgt-timeline-dot:hover {
    transform: scale(1.1);
}

/* Styles for SVG icons inside the dots */
body .tgt-timeline-dot svg {
    width: 24px;
    height: 24px;
    stroke: var(--tgt-colour-primary);
    stroke-width: 1.5;
    fill: none;
}

/* Timeline Content Card */
body .tgt-timeline-content {
    padding: 2rem;
    border: 1px solid var(--tgt-colour-glass-border);
    border-radius: var(--tgt-radius-xl);
    background: var(--tgt-colour-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--tgt-transition-normal);
}

body .tgt-timeline-item:hover .tgt-timeline-content {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: var(--tgt-shadow-xl);
}

body .tgt-timeline-time {
    display: block;
    margin-bottom: 1rem;
    color: var(--tgt-colour-gold);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body .tgt-timeline-title {
    margin: 0 0 1rem 0;
    color: var(--tgt-colour-white);
    font-family: var(--tgt-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

body .tgt-timeline-desc {
    margin: 0;
    color: var(--tgt-colour-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body .tgt-timeline-section-title {
        white-space: normal; /* Allow title to wrap on mobile */
    }

    body .tgt-timeline-wrapper::before,
    .timeline-progress-bar {
        left: 25px;
        transform: none;
    }
    
    body .tgt-timeline-item,
    body .tgt-timeline-item:nth-child(even) {
        width: 100%;
        text-align: left;
        padding-left: 70px;
        padding-right: 0;
    }
    
    body .tgt-timeline-dot,
    body .tgt-timeline-item:nth-child(even) .tgt-timeline-dot {
        left: 0;
    }
}