/* Modern Events Page Styles */

/* ==================== Hero Section ==================== */
.modern-hero-events {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.modern-hero-events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.4;
}

.events-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title-events {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero-subtitle-events {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.modern-hero-events .bread-list {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 30px;
    list-style: none;
    margin: 0;
}

/* ==================== Events Section ==================== */
.events-section-modern {
    padding: 100px 0;
    background: #f8f9fa;
}

.modern-section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2f5597 0%, #1e3a6d 100%);
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-heading-modern {
    font-size: 2.75rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2f5597 0%, #1e3a6d 100%);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-description-modern {
    font-size: 1.125rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==================== Modern Event Card ==================== */
.modern-event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 340px; /* shorter baseline height */
    display: flex;
    flex-direction: column;
    position: relative;
}

.modern-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2f5597 0%, #1e3a6d 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    z-index: 10;
}

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

.modern-event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(47, 85, 151, 0.25);
}

/* ==================== Event Card Header (Countdown) ==================== */
.event-card-header {
    padding: 1rem 1.25rem;
    position: relative;
    background: linear-gradient(135deg, #2f5597 0%, #1e3a6d 100%) !important;
}

.countdown-wrapper {
    text-align: center;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    min-width: 64px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.time-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.time-separator {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.7;
}

/* ==================== Event Card Body ==================== */
.event-card-body {
    padding: 1.25rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(47, 85, 151, 0.1) 0%, rgba(30, 58, 109, 0.1) 100%);
    color: #2f5597;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    align-self: flex-start;
    border: 2px solid rgba(47, 85, 151, 0.2);
}

.event-date-badge i {
    font-size: 1.1rem;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* clamp title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-event-card:hover .event-title {
    color: #2f5597;
}

.event-description {
    font-size: 0.93rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* clamp description to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Event Card Footer (Button) ==================== */
.event-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.btn-event-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-event-action:hover .btn-icon {
    transform: scale(1.2);
}

/* Register Button (Upcoming Events) */
.btn-register {
    background: linear-gradient(135deg, #2f5597 0%, #1e3a6d 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(47, 85, 151, 0.3);
}

.btn-register:hover {
    background: linear-gradient(135deg, #1e3a6d 0%, #2f5597 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 85, 151, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Recording Button (Past Events) */
.btn-recording {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-recording:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    color: #fff;
    text-decoration: none;
}

/* No Recording Button */
.btn-no-recording {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    color: #fff;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-no-recording:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    color: #fff;
    text-decoration: none;
    transform: none;
}

/* ==================== Grid Spacing ==================== */
.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
    .hero-title-events {
        font-size: 2.5rem;
    }

    .section-heading-modern {
        font-size: 2.25rem;
    }

    .time-block {
        min-width: 60px;
        padding: 0.6rem 0.8rem;
    }

    .time-value {
        font-size: 1.5rem;
    }

    .countdown-timer {
        gap: 0.35rem;
    }
}

@media (max-width: 768px) {
    .hero-title-events {
        font-size: 2rem;
    }

    .hero-subtitle-events {
        font-size: 1.1rem;
    }

    .section-heading-modern {
        font-size: 1.875rem;
    }

    .modern-hero-events {
        padding: 80px 0 60px;
    }

    .events-section-modern {
        padding: 60px 0;
    }

    .time-block {
        min-width: 55px;
        padding: 0.5rem 0.6rem;
    }

    .time-value {
        font-size: 1.35rem;
    }

    .time-label {
        font-size: 0.6rem;
    }

    .time-separator {
        font-size: 1.2rem;
    }

    .event-title {
        font-size: 1.2rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    .btn-event-action {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .time-block {
        min-width: 50px;
        padding: 0.4rem 0.5rem;
    }

    .time-value {
        font-size: 1.2rem;
    }

    .time-label {
        font-size: 0.55rem;
    }

    .time-separator {
        font-size: 1rem;
        margin: 0 0.1rem;
    }

    .countdown-timer {
        gap: 0.25rem;
    }

    .event-card-body {
        padding: 1.25rem 1rem;
    }

    .event-card-footer {
        padding: 1rem;
    }
}

/* ==================== Animation Delays ==================== */
.animate__animated {
    animation-duration: 1s;
}

.animate__fadeInDown {
    animation-delay: 0.2s;
}

.animate__fadeInUp {
    animation-delay: 0.4s;
}

.animate__fadeIn {
    animation-delay: 0.6s;
}

/* ==================== Loading State ==================== */
.countdown-timer .time-block {
    animation: fadeInUp 0.5s ease-in-out;
}

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

/* ==================== Pulse Animation for Active Events ==================== */
.btn-register {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(47, 85, 151, 0.3);
    }
    50% {
        box-shadow: 0 5px 25px rgba(47, 85, 151, 0.5);
    }
}
