/* Learning Path Specific Styles */

#lp-intro {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 60px;
}

#lp-intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#lp-intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

:is(.dark-mode) #lp-intro p {
    color: #ccc;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* The central line */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

/* Container around content */
.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    animation: topSideAni 1s ease forwards;
    opacity: 0;
}

/* The circles on the timeline */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left-container {
    left: 0;
}

/* Place the container to the right */
.right-container {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left-container::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right-container::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right-container::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    cursor: default;
}

:is(.dark-mode) .content {
    background-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

:is(.dark-mode) .left-container::before {
    border-color: transparent transparent transparent var(--primary-dark);
}

:is(.dark-mode) .right-container::before {
    border-color: transparent var(--primary-dark) transparent transparent;
}

.content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

:is(.dark-mode) .content h3 {
    color: #eee;
}

.content .date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: block;
    font-weight: bold;
}

:is(.dark-mode) .content .date {
    color: #aaa;
}

.content p {
    line-height: 1.6;
}

/* Media queries - Responsive timeline on screens less than 768px */
@media screen and (max-width: 768px) {

    .timeline {
        padding-left: 0;
        padding-right: 0;
    }

    /* Place the timelime to the left */
    .timeline::after {
        left: 30px;
    }

    /* Full-width containers */
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure all circles are at the same spot */
    .timeline-container::after {
        left: 16.5px;
    }

    /* Make all right containers behave like the left ones */
    .right-container {
        left: 0%;
    }

    /* Point all arrows leftwards (actually rightwards relative to the circle) */
    .left-container::before,
    .right-container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    :is(.dark-mode) .left-container::before,
    :is(.dark-mode) .right-container::before {
        border-color: transparent var(--primary-dark) transparent transparent;
    }
}

.btn-download {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #d94422;
}