/* MAIN CONTENT */
.main-content {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: auto;
    animation: fadeIn 0.5s ease-in-out;
    /* Ensure it grows/shrinks with the container */
    box-sizing: border-box;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.section {
    /* Remove position: absolute to allow natural flow and height */
    width: 100%;
    min-height: 100%;
    padding: 2rem 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.4s ease-in-out;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
    box-sizing: border-box;
}

.section::-webkit-scrollbar {
    width: 6px;
}

.section::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.section-title {
    position: relative;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* RESUME SECTION */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: 28px;
}

.timeline-item {
    padding-left: 70px;
    position: relative;
    margin-bottom: 2rem;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    z-index: 1;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-period {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-place {
    font-style: italic;
    margin-bottom: 1rem;
    color: #777;
}

.timeline-description {
    line-height: 1.6;
}