:root {
    --primary-color: #0040ff;
    --secondary-color: #00d974;
    --primary-blue: #007bff;
    --dark-blue: #0056b3;
}

.events-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 0;
}

.events-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.events-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.filter-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: -2rem auto 3rem;
    padding: 2rem;
    position: relative;
    z-index: 10;
    max-width: 1000px;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.filter-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.results-info {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-blue);
}

.results-text {
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-time {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: var(--primary-blue);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.pagination .page-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .events-title {
        font-size: 2.5rem;
    }

    .filter-section {
        margin: -1.5rem 1rem 2rem;
        padding: 1.5rem;
    }

    .event-card:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .events-title {
        font-size: 2rem;
    }
}


/* EVENT DETAIL PAGE STYLES */
/* Events Details Page Styles - Enhanced Design */

:root {
    --primary-color: #0040ff;
    --secondary-color: #00d974;
    --primary-blue: #007bff;
    --dark-blue: #0056b3;
    --light-gray: #f8f9fa;
    --border-color: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
}

/* Header Section */
.events-details-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0 4rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.events-details-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,64,255,0.9) 0%, rgba(0,217,116,0.8) 100%);
    z-index: 1;
}

.events-details-header .container {
    position: relative;
    z-index: 2;
}

.events-details-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Main Event Card */
.event-details-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    margin: -3rem auto 4rem;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.event-details-image {
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.event-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-placeholder-image {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.event-details-content {
    padding-left: 2.5rem;
}

.event-category {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.event-meta-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.register-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--primary-blue);
    display: inline-block;
    letter-spacing: -1px;
}

.event-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.content-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 16px;

}

/* Event Features */
.event-features {
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(0, 217, 116, 0.02) 100%);
    border-color: rgba(0, 123, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-item h4 {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0;
}

/* Schedule Section */
.schedule-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.day-tab {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-tab.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.day-tab:hover:not(.active) {
    background: rgba(0, 123, 255, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.day-schedule {
    display: none;
}

.day-schedule.active {
    display: block;
}

.schedule-timeline {
    position: relative;
    padding-left: 3rem;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background: white;
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent white transparent transparent;
}

.session-time {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.session-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.session-instructors {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.event-speakers {
    background: var(--light-gray);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Instructors Section */
.instructors-grid {
    margin-top: 2rem;
}

.instructor-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 123, 255, 0.1);
}

.instructor-avatar {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    font-size: 4rem;
}

.instructor-info {
    padding: 2rem 1.5rem;
    text-align: center;
}

.instructor-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.instructor-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .events-details-title {
        font-size: 3rem;
    }

    .event-details-card {
        margin: -2rem 1rem 3rem;
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .events-details-title {
        font-size: 2.5rem;
    }

    .event-details-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .event-title {
        font-size: 2rem;
    }

    .section-card {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .events-details-header {
        padding: 4rem 0 3rem;
    }

    .events-details-title {
        font-size: 2rem;
    }

    .event-details-card {
        padding: 1.5rem;
        margin: -1.5rem 1rem 2rem;
    }

    .event-title {
        font-size: 1.75rem;
    }

    .section-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .schedule-nav {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .day-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .instructor-avatar {
        height: 200px;
    }

    .instructor-info {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .events-details-title {
        font-size: 1.75rem;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-category {
        font-size: 0.9rem;
    }

    .meta-value {
        font-size: 1.1rem;
    }

    .register-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .instructor-card {
        margin-bottom: 1.5rem;
    }

    .schedule-timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}
/* ===========================
   Gallery Carousel
   =========================== */

.gallery-carousel {
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    position: relative;
}

.gallery-slide-img {
    height: 320px;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
    display: block;
}

.gallery-slide-tall {
    height: 440px;
}

/* Bottom gradient for contrast over nav controls / counter */
.gallery-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Counter badge (X / Y) */
.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 3px 11px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

/* Glassmorphism prev/next buttons */
.gallery-btn-glass {
    width: 44px !important;
    height: 44px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 1 !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

.gallery-btn-glass:hover,
.gallery-btn-glass:focus-visible {
    background: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    opacity: 1 !important;
    outline: 2px solid rgba(255, 255, 255, 0.80);
    outline-offset: 2px;
}

.carousel-control-prev.gallery-btn-glass { left: 10px !important; }
.carousel-control-next.gallery-btn-glass { right: 10px !important; }

.gallery-btn-glass .carousel-control-prev-icon,
.gallery-btn-glass .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* Thumbnail filmstrip */
.gallery-thumb-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 2px 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.20) transparent;
}

.gallery-thumb-strip::-webkit-scrollbar { height: 4px; }
.gallery-thumb-strip::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.20);
    border-radius: 2px;
}

.gallery-thumb {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    opacity: 0.50;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.gallery-thumb:hover { opacity: 0.82; transform: scale(1.06); }

.gallery-thumb.active {
    border-color: var(--primary-blue, #0d6efd);
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 1px var(--primary-blue, #0d6efd);
}

.gallery-thumb:focus-visible {
    outline: 2px solid var(--primary-blue, #0d6efd);
    outline-offset: 2px;
}

/* Single image (no carousel needed) */
.gallery-single-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    display: block;
}

@media (max-width: 768px) {
    .gallery-slide-img,
    .gallery-single-img { height: 220px; }
    .gallery-slide-tall { height: 260px; }
    .gallery-thumb { flex: 0 0 46px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-item { transition: none !important; }
    .gallery-thumb { transition: none !important; }
    .gallery-btn-glass { transition: none !important; }
}
