/* History Page Styles */

/* History Header Section */
.history-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.history-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.history-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Timeline Section */
.timeline-section {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical Timeline Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Timeline Marker (Year + Dot) */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #dc3545;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-dot-special {
    width: 24px;
    height: 24px;
    background: #dc3545;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.2), 0 6px 20px rgba(0, 0, 0, 0.2);
}

.timeline-year {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    min-width: 80px;
    text-align: center;
}

.timeline-year-special {
    font-size: 1.5rem;
    padding: 8px 15px;
    min-width: 50px;
}

/* Timeline Content */
.timeline-content {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: calc(50% - 60px);
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content-special {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(200, 35, 51, 0.05) 100%);
    border: 2px solid #dc3545;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -24px;
    border-left-color: #fff;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -24px;
    border-right-color: #fff;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content-special::before {
    border-left-color: rgba(220, 53, 69, 0.05);
}

.timeline-item:nth-child(even) .timeline-content-special::before {
    border-right-color: rgba(220, 53, 69, 0.05);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.timeline-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 10px;
    line-height: 1.3;
}

.timeline-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.timeline-description strong {
    color: #dc3545;
    font-weight: 600;
}

.timeline-description em {
    color: #dc3545;
    font-style: normal;
    font-weight: 600;
}

.location-address {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    margin-top: 15px;
}

.location-address strong {
    color: #dc3545;
    font-weight: 600;
}

/* Call to Action Section */
.history-cta {
    padding: 50px 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #fff;
    color: #dc3545;
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
    
    .timeline-content::before {
        left: -24px !important;
        right: auto !important;
        border-right-color: #fff !important;
        border-left-color: transparent !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content-special::before {
        border-right-color: rgba(220, 53, 69, 0.05) !important;
        border-left-color: transparent !important;
    }
    
    .timeline-title {
        font-size: 1.5rem;
    }
    
    .timeline-description {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .history-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .timeline-section {
        padding: 30px 0;
    }
    
    .timeline-item {
        margin-bottom: 25px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}
