/* events.css - No Gradients, Solid #03224d Theme */
/* Primary colors: #03224d (dark blue), #2316da (primary blue), #df7b1d (accent orange) */

:root {
    --primary-color: #2316da;
    --secondary-color: #df7b1d;
    --accent-color: #df7b1d;
    --dark-blue: #03224d;
    --success-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #f5f5f5;
    --gray-color: #95a5a6;
    --white: #ffffff;
    --border: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PAGE HEADER ===== */
.events-header {
    background: var(--dark-blue);
    padding: 200px 0 150px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
}

.events-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.events-header .container,
.page-header-content {
    position: relative;
    z-index: 2;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--dark-blue);
}

.hero-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 34, 77, 0.75);
    pointer-events: none;
}

.hero-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.85rem;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-video-placeholder i {
    font-size: 3rem;
}

.hero-video-container.is-video-ready .hero-video-placeholder {
    opacity: 0;
    visibility: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-video-container.is-video-ready .hero-video {
    opacity: 1;
}

.events-header .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.events-header .breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.events-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== UPCOMING EVENTS SECTION ===== */
.featured-event-section {
    padding: 60px 0;
    background: var(--white);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(35, 22, 218, 0.1);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.featured-event-section .section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Upcoming Event Card */
.upcoming-event-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.upcoming-event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--light-color);
}

.event-image {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.upcoming-event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content-wrapper {
    padding: 24px;
}

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    font-weight: 600;
}

.event-date-badge .date-day {
    font-size: 1.2rem;
    font-weight: 800;
}

.event-date-badge .date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-date-badge .date-year {
    font-size: 0.85rem;
    opacity: 0.9;
}

.event-content-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.event-host {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.event-details-list {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.detail-item i {
    width: 20px;
    color: var(--accent-color);
    font-size: 1rem;
}

.event-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-description p {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.event-registration {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.register-info {
    color: var(--gray-color);
    font-style: italic;
    font-size: 0.85rem;
}

.event-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-hashtags span {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.event-hashtags span:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== PAST EVENTS SECTION ===== */
.past-events-section {
    padding: 60px 0;
    background: var(--light-color);
}

.past-events-section .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-card .event-image {
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card .event-image:hover img {
    transform: scale(1.05);
}

.event-content {
    padding: 25px;
    flex: 1;
}

.event-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.event-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(35, 22, 218, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.event-description {
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.challenge-features {
    margin: 15px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--dark-color);
}

.feature-item i {
    color: var(--success-color);
    width: 20px;
}

.event-meta {
    margin: 15px 0;
    padding: 12px;
    background: var(--light-color);
    border-radius: 12px;
}

.event-meta p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--dark-color);
}

.event-meta i {
    color: var(--dark-blue);
    width: 20px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #1a0fb0;
    transform: translateY(-2px);
}

/* ===== POPUP STYLES ===== */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup.show {
    display: flex;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.popup-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    padding: 8px 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.close-btn:hover {
    background: #cc0000;
}

/* ===== RESPONSIVE DESIGN - FULLY MOBILE COMPATIBLE ===== */
@media (max-width: 992px) {
    .upcoming-events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .event-image-wrapper {
        height: 220px;
    }
    
    .featured-event-section .section-title,
    .past-events-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .events-header {
        padding: 50px 0 40px;
        min-height: 320px;
    }
    
    .events-header h1 {
        font-size: 2rem;
    }
    
    .hero-video-placeholder {
        font-size: 0.7rem;
    }
    
    .hero-video-placeholder i {
        font-size: 2rem;
    }
    
    .featured-event-section {
        padding: 40px 0;
    }
    
    .featured-event-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .past-events-section {
        padding: 40px 0;
    }
    
    .past-events-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .event-content-wrapper {
        padding: 20px;
    }
    
    .event-content-wrapper h3 {
        font-size: 1.3rem;
    }
    
    .event-image-wrapper {
        height: 200px;
    }
    
    .event-card .event-image {
        height: 200px;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-content h3 {
        font-size: 1.2rem;
    }
    
    .event-registration {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .event-date-badge {
        padding: 6px 14px;
    }
    
    .event-date-badge .date-day {
        font-size: 1rem;
    }
    
    .event-date-badge .date-month,
    .event-date-badge .date-year {
        font-size: 0.75rem;
    }
    
    .detail-item {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .events-header {
        padding: 40px 0 30px;
        min-height: 280px;
    }
    
    .events-header h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .section-badge {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    
    .featured-event-section .section-title,
    .past-events-section .section-title {
        font-size: 1.4rem;
    }
    
    .event-image-wrapper {
        height: 180px;
    }
    
    .event-card .event-image {
        height: 180px;
    }
    
    .event-content-wrapper {
        padding: 16px;
    }
    
    .event-content-wrapper h3 {
        font-size: 1.2rem;
    }
    
    .event-content {
        padding: 16px;
    }
    
    .event-content h3 {
        font-size: 1.1rem;
    }
    
    .event-description p {
        font-size: 0.85rem;
    }
    
    .detail-item {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .event-meta p {
        font-size: 0.8rem;
    }
    
    .tag {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    
    .event-hashtags span {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 400px) {
    .event-date-badge {
        padding: 4px 12px;
    }
    
    .event-date-badge .date-day {
        font-size: 0.9rem;
    }
    
    .event-date-badge .date-month,
    .event-date-badge .date-year {
        font-size: 0.7rem;
    }
}
