/* Base timeline layout */
.timeline {
    list-style: none;
    padding: 20px 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb;
    transform: translateX(-50%);
}

.timeline > li {
    position: relative;
    margin-bottom: 40px;
}

.timeline > li.timeline-inverted .timeline-panel {
    float: right;
}

.timeline > li .timeline-panel {
    position: relative;
    width: 45%;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px; /* more padding for readability */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    font-size: 1.05rem; /* slightly bigger than default */
}

/* Badge */
.timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.6rem; /* larger icon */
    text-align: center;
    position: absolute;
    top: 15px;
    left: 50%;
    margin-left: -25px;
    background: #6c63ff;
    border-radius: 50%;
    z-index: 100;
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Hover effect */
.timeline > li:hover .timeline-panel {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: #f9fbff;
}

.timeline > li:hover .timeline-badge {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Title style */
.timeline-title {
    font-weight: 700;
    font-size: 1.35rem; /* bigger title */
    margin-bottom: 10px;
    color: #222;
}

/* Body */
.timeline-body p {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 1.05rem; /* bigger body text */
}

/* Alternate background colors */
.timeline > li:nth-child(odd) .timeline-panel {
    background: #ffffff;
}
.timeline > li:nth-child(even) .timeline-panel {
    background: #f7f9fc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline:before {
        left: 8px;
    }
    .timeline > li .timeline-panel {
        width: calc(100% - 70px);
        float: none !important;
        margin-left: 60px;
    }
    .timeline-badge {
        left: 0;
        margin-left: 0;
    }
}


/* Apply clean modern font */
.timeline,
.timeline-title,
.timeline-body p {
    font-family: 'Poppins', 'Inter', 'Nunito', 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
}

/* Title */
.timeline-title {
    font-weight: 700;
    font-size: 1.5rem; /* close to your intro title size */
    margin-bottom: 12px;
    color: #111;
    letter-spacing: 0.3px;
}

/* Body text */
.timeline-body p {
    font-size: 1.2rem;   /* bigger like your intro text */
    line-height: 1.8;    /* relaxed line height */
    color: #333;
}

/* Highlighting for important bits (optional) */
.timeline-body p strong {
    color: #000;
    font-weight: 600;
}



/* Responsive adjustments (phones + tablets up to iPad Mini landscape) */
@media (max-width: 1024px) {
    .timeline:before {
        left: 8px;
        transform: none;
    }
    .timeline > li .timeline-panel,
    .timeline > li.timeline-inverted .timeline-panel {
        width: calc(100% - 70px) !important;
        float: none !important;
        margin-left: 60px !important;
    }
    .timeline-badge {
        left: 0 !important;
        margin-left: 0 !important;
    }
}

