﻿
/* Timeline */
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, #1a5c37, #f9a825);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

    .timeline-item.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Timeline Items */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        top: 20px;
        width: 24px;
        height: 24px;
        background: #fff;
        border: 4px solid #f9a825;
        border-radius: 50%;
        z-index: 2;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    .timeline-item.left {
        left: 0;
        text-align: right;
    }

        .timeline-item.left::before {
            right: -12px;
        }

    .timeline-item.right {
        left: 50%;
        text-align: left;
    }

        .timeline-item.right::before {
            left: -12px;
        }

/* Timeline Content */
.timeline-content {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 22px 26px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-left: 6px solid #1a5c37;
    transition: all 0.4s ease;
}


    .timeline-content h3 {
        margin-top: 0;
        color: #2c3e50;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .timeline-content p {
        color: #444;
        line-height: 1.7;
        margin-bottom: 0;
        font-size: 16px;
    }

.timeline-year {
    font-weight: 800;
    font-size: 20px;
    color: #1a5c37;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

    .timeline-year i {
        margin-right: 8px;
        color: #f9a825;
    }

/* Year alignment based on side */
.timeline-item.left .timeline-year {
    justify-content: flex-end;
    text-align: right;
}

.timeline-item.right .timeline-year {
    justify-content: flex-start;
    text-align: left;
}

/* Icon spacing fix */
.timeline-item.left .timeline-year i {
    margin-left: 8px;
    margin-right: 0;
}

.timeline-item.right .timeline-year i {
    margin-right: 8px;
    margin-left: 0;
}


.category-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: #eef2f1;
    color: #1a5c37;
}

.timeline-content {
    background: #ededed;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 6px solid #1a5c37; /* <-- same color for all items */
    display: inline-block;
    max-width: 90%;
}

/* Cursor pointer */
.timeline-item {
    cursor: pointer;
}

    /* Hover animation */
    .timeline-item:hover .timeline-content {
        /*background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,250,247,0.9));*/
        transform: translateY(-4px) scale(1.03);
    }


    /* Icon glow on hover */
    .timeline-item:hover .timeline-year i {
        color: #f9a825;
        filter: drop-shadow(0 0 6px rgba(249,168,37,0.8));
        transition: 0.3s;
    }

    /* Dot glow stronger on hover */
    .timeline-item:hover::before {
        box-shadow: 0 0 20px 6px rgba(249,168,37,0.9);
    }



@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
        display: none;
    }

    .timeline-item {
        width: 100%;
        padding-right: 20px;
        margin-bottom: 40px;
    }

        .timeline-item.left,
        .timeline-item.right {
            left: 0;
            text-align: left;
        }

            .timeline-item.left::before,
            .timeline-item.right::before {
                left: 0;
                display: none;
            }

    .timeline-content {
        max-width: 100%;
    }
    /* Force year alignment same on mobile */
    .timeline-year {
        justify-content: flex-start !important;
        text-align: left !important;
    }

        .timeline-year i {
            margin-right: 8px;
            margin-left: 0 !important;
        }
}



/* Glow effect for timeline dots */
.timeline-item.glow::before {
    box-shadow: 0 0 15px 5px rgba(249, 168, 37, 0.7), 0 0 25px 10px rgba(249, 168, 37, 0.5);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px 2px rgba(249, 168, 37, 0.5);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(249, 168, 37, 0.7);
    }

    100% {
        box-shadow: 0 0 5px 2px rgba(249, 168, 37, 0.5);
    }
}


/* Timeline image */

.timeline-image-wrap {
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 14px;
}

.timeline-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 14px;
    transition: all 0.4s ease;
    cursor: pointer;
}

    .timeline-image:hover {
        transform: scale(1.04);
    }


/* Modal header */

.gradient-modal-header {
    background: #fff;
    color: #fff;
}

    .gradient-modal-header .btn-close {
        filter: none;
        opacity: 1;
    }
