/* Experience Section Styles - Vertical Timeline */

/* Container targeting */
.experience-container {
    margin-top: var(--space-medium);
    text-align: center;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.timeline-daisy {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    /* Gaps handled by padding/margin */
    width: 100%;
    max-width: 900px;
    margin: 3rem auto 0;
    font-family: "Poppins", sans-serif;
}

/* The horizontal lines (hr) connecting items - We actally simulate these with borders or pseudo elements in this custom implementation */
/* DaisyUI uses hr, but we can be cleaner with pseudo-elements on the middle part */

/* Middle Column - The Axis */
.timeline-middle {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Align icon to top relative to content */
    position: relative;
    width: 3rem;
    /* Fixed width for the center line area */
    z-index: 10;
}

/* The vertical line running through */
.timeline-middle::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-secondary);
    opacity: 0.2;
    z-index: -1;
}



/* The Icon Circle */
.timeline-circle {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--color-primary);
    color: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 0 0 4px var(--background-color);
    /* Creates spacing from the line */
    margin-top: 0.25rem;
    /* Optical adjustment to align with text title */
}

/* Start Content (Left Side) */
.timeline-start {
    grid-column: 1;
    text-align: right;
    padding-right: 1.5rem;
    padding-bottom: 2.5rem;
    /* Space between rows */
}

/* End Content (Right Side) */
.timeline-end {
    grid-column: 3;
    text-align: left;
    padding-left: 1.5rem;
    padding-bottom: 2.5rem;
}

/* Text Styles */
.timeline-date {
    font-family: monospace;
    /* Matching the "font-mono" look */
    font-style: italic;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    /* font-black */
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--subtitle);
    line-height: 1.5;
}

.timeline-desc ul {
    list-style: none;
    padding: 0;
}

.timeline-desc li {
    margin-bottom: 0.25rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .timeline-daisy {
        display: flex;
        flex-direction: column;
        padding-left: 1rem;
    }

    .timeline-middle {
        display: none;
        /* Hide the complex middle line on very small screens, or adjust */
    }

    /* Alternative Mobile View: Similar to original simple timeline */
    .timeline-daisy {
        display: block;
        border-left: 2px solid rgba(0, 0, 0, 0.1);
        margin-left: 1rem;
        padding-left: 0;
    }

    .timeline-start,
    .timeline-end {
        text-align: left;
        padding: 0 0 2rem 1.5rem;
        position: relative;
    }

    /* Create a dot for mobile */
    .timeline-start::before,
    .timeline-end::before {
        content: '';
        position: absolute;
        left: -5px;
        /* Half of circle width (10px) - line width */
        top: 0.5rem;
        width: 10px;
        height: 10px;
        background-color: var(--color-primary);
        border-radius: 50%;
        border: 2px solid var(--background-color);
    }
}