/* Modern Interactive Timeline Styles */

/* Header Title */
.page-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    color: #E63946;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .header-title {
        font-size: 16px;
        letter-spacing: 1px;
        padding-right: 20px;
    }
}

/* Timeline Content Wrapper - Split Layout */
.timeline-content-wrapper {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    padding: 0 40px !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* Timeline Area (Left Side - 78%) */
.timeline-area {
    flex: 0 0 78% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 20px 40px 0 !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #E63946 #eee !important;
}

.timeline-area::-webkit-scrollbar {
    width: 8px !important;
}

.timeline-area::-webkit-scrollbar-track {
    background: #eee !important;
    border-radius: 4px !important;
}

.timeline-area::-webkit-scrollbar-thumb {
    background-color: #E63946 !important;
    border-radius: 4px !important;
}

/* Month Selector Section - Timeline with Circles */
.month-selector-wrapper {
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 60px;
}

.month-selector-title {
    display: none; /* Moved to header */
}

.month-selector {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 30px 0;
}

/* Timeline Line */
.month-selector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(230, 57, 70, 0.2) 0%,
        rgba(230, 57, 70, 0.8) 50%,
        rgba(230, 57, 70, 0.2) 100%
    );
    transform: translateY(-50%);
    z-index: 1;
}

/* Month Button - Circle Point */
.month-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Circle Point */
.month-btn::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #E63946;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

/* Month Label */
.month-btn::after {
    content: attr(data-month-label);
    position: absolute;
    top: 100%;
    margin-top: 15px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.month-btn:hover::before {
    width: 26px;
    height: 26px;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.month-btn:hover::after {
    color: #E63946;
    transform: scale(1.1);
}

.month-btn.active::before {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
    border-color: #E63946;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
    animation: pulseCircle 2s infinite;
}

.month-btn.active::after {
    color: #E63946;
    font-weight: 700;
    transform: scale(1.15);
}

@keyframes pulseCircle {
    0%, 100% {
        box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(230, 57, 70, 0.8);
        transform: scale(1.1);
    }
}

/* Events Display Section */
.events-display-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
}

.events-display {
    width: 100%;
    max-width: 1400px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.events-display.hidden {
    display: none;
}

.month-title {
    font-size: 32px;
    font-weight: 700;
    color: #E63946;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.month-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #E63946, transparent);
    border-radius: 2px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 249px);
    gap: 25px;
    padding: 20px;
    justify-content: center;
}

.event-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #E63946, #FF6B6B);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-item:hover::before {
    transform: scaleX(1);
}

.event-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
}

.event-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.event-item:hover .event-image-wrapper img {
    transform: scale(1.1);
}

/* Event info removed - images now fill 100% height */

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.no-events-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 249px);
        gap: 20px;
    }

    .month-selector-wrapper {
        padding: 0 30px;
    }

    .month-btn::after {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .timeline-content-wrapper {
        padding: 20px !important;
    }

    .month-selector-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .month-selector-wrapper {
        padding: 0 20px;
    }

    .events-grid {
        grid-template-columns: repeat(3, 249px);
        gap: 15px;
        padding: 10px;
    }

    .month-btn::before {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .month-btn.active::before {
        width: 20px;
        height: 20px;
    }

    .month-btn::after {
        font-size: 10px;
        margin-top: 10px;
    }

    .month-title {
        font-size: 24px;
    }
}

/* Loading Animation */
.loading-events {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E63946;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Right Side: QR Area (22%) --- */
.qr-area {
    flex: 0 0 22%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

.qr-box {
    background: #ffe3c9;
    border: 2px solid #f5841f;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.qr-image img {
    width: 100%;
    max-width: 140px;
    border: 3px solid #fff;
    border-radius: 10px;
}

.qr-text {
    margin: 15px 0;
}

.qr-title {
    font-size: 14px;
    font-weight: 700;
    color: #ce2e26;
    margin: 0;
}

.qr-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #ce2e26;
    margin: 5px 0 0;
}
