/* CSS Variables - Matching warranty page exactly */
:root {
    --primary: #0054a6;
    --primary-dark: #003d7a;
    --primary-light: #1e73be;
    --secondary: #2c3e50;
    --accent: #10b981;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gold: #d4af37;
    --bronze: #b87333;
    --dark: #0f172a;
    --gray: #475569;
    --light-gray: #f1f5f9;
    --lighter-gray: #f8fafc;
    --cream: #faf7f2;
    --border: #e2e8f0;
    --white: #ffffff;
}

/* Warranty Timeline Section */
.warranty-timeline-section {
    padding: 80px 30px 60px; /* More padding on top for separation */
    background: var(--white); /* Changed to white for better separation */
    position: relative;
    margin-top: 0; /* Remove margin to avoid double spacing */
    box-shadow: 0 -1px 0 var(--border); /* Subtle top shadow for separation */
}

.warranty-timeline-section .warranty-container {
    max-width: 1200px;
    margin: 0 auto;
}

.warranty-timeline-section .warranty-title {
    font-size: clamp(32px, 4vw, 42px); /* Slightly smaller than warranty page */
    color: var(--dark);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.warranty-timeline-section .warranty-subtitle {
    font-size: 18px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 40px; /* Reduced from 60px */
}

/* Timeline Visual */
.timeline-visual {
    max-width: 1000px; /* Slightly smaller container */
    margin: 40px auto; /* Reduced margin */
    position: relative;
    padding: 0 20px;
}

.timeline-track {
    position: absolute;
    top: 50px; /* Adjusted for smaller markers */
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--success) 33%, var(--warning) 33%, var(--warning) 66%, var(--primary) 66%, var(--primary) 100%);
}

.timeline-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-marker {
    width: 100px; /* Reduced from 120px */
    height: 100px; /* Reduced from 120px */
    background: var(--white);
    border: 4px solid var(--border);
    border-radius: 50%;
    margin: 0 auto 25px; /* Reduced margin */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.timeline-item:nth-child(1) .timeline-marker {
    border-color: var(--success);
}

.timeline-item:nth-child(2) .timeline-marker {
    border-color: var(--warning);
}

.timeline-item:nth-child(3) .timeline-marker {
    border-color: var(--primary);
}

.timeline-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.timeline-icon {
    font-size: 40px; /* Reduced from 48px */
}

.timeline-item:nth-child(1) .timeline-icon {
    color: var(--success);
}

.timeline-item:nth-child(2) .timeline-icon {
    color: var(--warning);
}

.timeline-item:nth-child(3) .timeline-icon {
    color: var(--primary);
}

.timeline-content {
    background: var(--white);
    padding: 25px; /* Reduced from 30px */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 15px; /* Reduced from 20px */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 280px; /* Reduced from 300px */
    z-index: 10;
    display: none;
}

.timeline-item:hover .timeline-content {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    display: block;
}

.timeline-year {
    font-size: 22px; /* Reduced from 24px */
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px; /* Reduced from 20px */
}

.timeline-description {
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px; /* Reduced from 15px */
    text-align: left;
}

/* CTA Button */
.timeline-cta {
    text-align: center;
    margin-top: 50px; /* Reduced from 60px */
}

.timeline-cta .btn {
    display: inline-block;
    padding: 14px 35px; /* Slightly smaller */
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 84, 166, 0.2);
}

.timeline-cta .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 84, 166, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .warranty-timeline-section {
        padding: 50px 20px; /* Reduced */
    }
    
    .warranty-timeline-section .warranty-title {
        font-size: 28px; /* Reduced */
    }
    
    .warranty-timeline-section .warranty-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .timeline-visual {
        margin: 30px auto; /* Reduced */
        max-width: 100%;
    }

    .timeline-container {
        flex-direction: column;
        gap: 35px; /* Reduced from 40px */
    }

    .timeline-track {
        display: none;
    }
    
    .timeline-marker {
        width: 85px; /* Reduced from 100px */
        height: 85px; /* Reduced from 100px */
        margin-bottom: 20px;
    }
    
    .timeline-icon {
        font-size: 36px; /* Reduced from 40px */
    }
    
    .timeline-year {
        font-size: 20px;
    }
    
    .timeline-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .timeline-content {
        position: static;
        display: block;
        opacity: 1;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 15px; /* Reduced from 20px */
        padding: 20px;
    }
    
    .timeline-cta {
        margin-top: 40px; /* Reduced */
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .warranty-timeline-section {
        padding: 40px 15px; /* Reduced */
    }
    
    .warranty-timeline-section .warranty-title {
        font-size: 26px; /* Reduced */
    }
    
    .warranty-timeline-section .warranty-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .timeline-marker {
        width: 75px; /* Reduced from 80px */
        height: 75px; /* Reduced from 80px */
    }
    
    .timeline-icon {
        font-size: 32px;
    }
    
    .timeline-cta .btn {
        padding: 12px 30px; /* Smaller on mobile */
        font-size: 15px;
    }
}