body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f6f8;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #e8ebf0;
}

.logo img {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: #0059ff;
    background-color: white;
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #0059ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover,
nav a.active {
    background: linear-gradient(90deg, #8dadec, #0059ff);
    color: white;
    border-color: #0059ff;
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
}

/* Main Container */
.mainbox {
    margin: 30px 80px;
    padding: 40px;
    background: linear-gradient(135deg, #e8eef5 0%, #dde5f0 100%);
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(90deg, #dce9ff, #c4daff);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-title h1 {
    color: #1a2a5a;
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.page-title p {
    color: #0059ff;
    margin: 0;
    font-size: 1.2rem;
    font-style: italic;
}

/* Timeline Container */
.timeline {
    position: relative;
    padding: 20px 0;
}

/* Timeline Event Row */
.timeline-event {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    transition: transform 0.3s ease;
}

/* Event Dot (Bullet) - smaller */
.event-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: linear-gradient(135deg, #0059ff, #1a2a5a);
    border-radius: 50%;
    border: 3px solid #f4f6f8;
    box-shadow: 0 0 0 2px #0059ff;
    z-index: 10;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: center;
}

.timeline-event:hover .event-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 3px #0059ff, 0 4px 15px rgba(0,89,255,0.4);
}

/* Line segment below dot */
.event-dot::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, #0059ff, #c4daff);
    border-radius: 2px;
    margin-top: 3px;
}

/* Hide line on last event */
.timeline-event:last-child .event-dot::after {
    display: none;
}

/* Left and Right Sides */
.event-content,
.event-images {
    width: 400px;
    min-width: 400px;
    text-align: left;
}

/* Event Content Box */
.event-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,89,255,0.15);
}

/* Event Date - at top */
.event-date {
    display: inline-block;
    background: linear-gradient(90deg, #0059ff, #1a2a5a);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
    width: fit-content;
}

.event-content h2 {
    color: #1a2a5a;
    margin: 0 0 12px 0;
    font-size: 1.5rem;
}

.event-content:hover h2 {
    color: #0059ff;
}

.event-content p {
    color: #555;
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}

/* Alternating row offset */
.timeline-event.offset-right {
    margin-right: 60px;
}

.timeline-event.offset-left {
    margin-left: 60px;
}

.timeline-event.offset-right:hover {
    transform: translateY(-3px);
}

.timeline-event.offset-left:hover {
    transform: translateY(-3px);
}

/* Event Images Box */
.event-images {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.event-images:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,89,255,0.15);
}

/* Image Slider */
.image-slider {
    display: flex;
    flex-direction: column;
}

.slider-images {
    width: 370px;
    height: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #e8f0ff;
}

.slider-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1.05);
}

.slider-images img.active {
    opacity: 1;
    transform: scale(1);
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.img-prev,
.img-next {
    width: 35px;
    height: 35px;
    border: none;
    background: linear-gradient(135deg, #0059ff, #1a2a5a);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-prev:hover,
.img-next:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0,89,255,0.4);
}

.img-counter {
    color: #1a2a5a;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1100px) {
    .mainbox {
        margin: 20px 30px;
        padding: 25px;
    }
    
    .event-content,
    .event-images {
        width: 320px;
        min-width: 320px;
    }
    
    .slider-images {
        width: 290px;
        height: 250px;
    }
    
    .timeline-event.offset-right,
    .timeline-event.offset-left {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    .timeline-event {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .timeline-event.offset-right,
    .timeline-event.offset-left {
        margin-left: 0;
        margin-right: 0;
    }
    
    .event-dot {
        order: -1;
    }
    
    .event-dot::after {
        display: none;
    }
    
    .event-content,
    .event-images {
        width: 100%;
        min-width: unset;
        max-width: 400px;
    }
    
    .slider-images {
        width: 100%;
        height: 280px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .mainbox {
        margin: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .slider-images {
        height: 220px;
    }
}