/* Page Header Styles */
.about-header {
    position: relative;
    padding-bottom: 1rem;
}

.header-line {
    width: 140px;
    height: 4px;
    background: var(--secondary-color, #c96d3a);
    border-radius: 2px;
    margin-top: 1rem;
}

/* Timeline Container */
.custom-timeline {
    list-style: none;
    padding: 0;
    position: relative;
    margin: 0;
}

.custom-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background: #e2e8f0;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
}

/* Timeline Meta (Year & Version) */
.timeline-meta {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 40px;
    padding-top: 10px;
}

.version-badge {
    display: flex;
    flex-direction: column;
}

.version-badge .year {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color, #c96d3a);
    line-height: 1;
}

.version-badge .version {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

/* Timeline Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 121px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--secondary-color, #c96d3a);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(201, 109, 58, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    background: var(--secondary-color, #c96d3a);
    box-shadow: 0 0 0 6px rgba(201, 109, 58, 0.2);
}

/* Timeline Card */
.timeline-card-wrapper {
    flex-grow: 1;
    padding-left: 40px;
}

.timeline-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px !important;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.card-content p {
    color: #475569;
    font-size: 0.95rem;
}

/* Side Cards */
.side-info-card {
    border-radius: 16px !important;
    overflow: hidden;
}

.side-info-card .card-header {
    border-bottom: none;
}

.avatar-placeholder {
    transition: all 0.3s ease;
}

.side-info-card:hover .avatar-placeholder {
    transform: scale(1.05);
    background-color: #e2e8f0 !important;
}

.contact-list .btn {
    border-radius: 10px;
    padding: 0.6rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Helper classes for Secondary Theme */
.text-primary-theme {
    color: var(--primary-color, #0f4c81) !important;
}
.text-secondary-theme {
    color: var(--secondary-color, #c96d3a) !important;
}

.bg-primary-theme {
    background-color: var(--primary-color, #0f4c81) !important;
}
.bg-secondary-theme {
    background-color: var(--secondary-color, #c96d3a) !important;
}

.btn-outline-primary-theme {
    color: var(--primary-color, #0f4c81) !important;
    border-color: var(--primary-color, #0f4c81) !important;
}

.btn-outline-primary-theme:hover {
    background-color: var(--primary-hover, #0c3e6b) !important;
    color: white !important;
}

.btn-outline-secondary-theme {
    color: var(--secondary-color, #c96d3a) !important;
    border-color: var(--secondary-color, #c96d3a) !important;
}

.btn-outline-secondary-theme:hover {
    background-color: var(--secondary-color, #c96d3a) !important;
    color: white !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .custom-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-meta {
        width: auto;
        text-align: left;
        padding-left: 45px;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .timeline-item::after {
        left: 21px;
        top: 8px;
    }
    
    .timeline-card-wrapper {
        padding-left: 45px;
        width: 100%;
    }
    
    .version-badge {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
}
