/* --- CÁC ĐỊNH DẠNG TRANH SỰ KIỆN CHI TIẾT --- */
.event-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.countdown-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(86, 171, 47, 0.3);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    margin-top: 30px;
    max-width: 600px;
    width: 100%;
}

.countdown-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1;
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    margin-top: 5px;
    font-weight: bold;
}

/* Danh sách lưới sự kiện */
.events-section {
    padding: 60px 5% 80px 5%;
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(86, 171, 47, 0.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(86, 171, 47, 0.12);
}

.event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-green);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.event-badge.urgent {
    background: #ff9800;
}

.event-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-content h3 {
    color: var(--dark-green);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-details {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 20px;
    flex-grow: 1;
}

.event-details p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Biểu mẫu đăng ký sự kiện */
.quick-reg-section {
    padding: 80px 5%;
    background: var(--bg-light);
    text-align: center;
    border-top: 1px solid rgba(86, 171, 47, 0.1);
}

.reg-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(86, 171, 47, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.reg-box h2 {
    color: var(--dark-green);
    margin-bottom: 10px;
}

.reg-box p {
    color: #666;
    margin-bottom: 30px;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reg-form input, .reg-form select {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    background: var(--bg-light);
    transition: 0.3s;
}

.reg-form input:focus, .reg-form select:focus {
    border-color: var(--primary-green);
    background: white;
}

/* Responsive cho thiết bị di động */
@media (max-width: 600px) {
    .countdown-timer { gap: 5px; }
    .time-block { min-width: 60px; }
    .time-number { font-size: 1.8rem; }
    .reg-box { padding: 25px; }
}

/* --- LỊCH TRÌNH SỰ KIỆN (TIMELINE) --- */
.timeline-section {
    padding: 60px 5% 20px 5%; /* Căn chỉnh khoảng cách trên dưới cho hài hòa */
    background: var(--bg-light);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(86, 171, 47, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.timeline-container h2 {
    color: var(--dark-green);
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
}

/* Đường kẻ dọc chính của Timeline */
.timeline {
    position: relative;
    border-left: 3px solid var(--primary-green);
    margin-left: 20px; /* Thụt vào một chút để có chỗ cho các dấu chấm tròn */
    padding-left: 30px;
    margin-top: 20px;
}

/* Mỗi cụm mốc thời gian */
.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Dấu chấm tròn trên đường kẻ dọc */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #CCFF00; /* Màu vàng chanh điểm nhấn */
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    left: -41px; /* Căn chỉnh dấu chấm nằm chính giữa đường kẻ */
    top: 5px;
    box-shadow: 0 0 10px rgba(86, 171, 47, 0.5);
}

/* Nhãn thời gian (Badge) */
.time-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(86, 171, 47, 0.2);
}

/* Nội dung của mốc thời gian */
.timeline-content {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: rgba(86, 171, 47, 0.3);
}

.timeline-content h4 {
    color: var(--dark-green);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.timeline-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tinh chỉnh cho màn hình điện thoại nhỏ */
@media (max-width: 600px) {
    .timeline-container {
        padding: 30px 20px;
    }
    .timeline {
        margin-left: 10px;
        padding-left: 20px;
    }
    .timeline-item::before {
        left: -31px;
    }
}