* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Sliding Container */
.slides {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slide 16s ease-in-out infinite;
}

/* Fullscreen Image */
.slides img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    flex-shrink: 0;
}

/* Step Slide Animation */
@keyframes slide {
    0%, 20% {
        transform: translateX(0);
    }
    25%, 45% {
        transform: translateX(-100vw);
    }
    50%, 70% {
        transform: translateX(-200vw);
    }
    75%, 95% {
        transform: translateX(-300vw);
    }
    100% {
        transform: translateX(0);
    }
}

/* Hero Content Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    z-index: 2;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    max-width: 720px;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Hero Action Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--button-bg);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    box-shadow: 0 8px 20px var(--shadow-color);
}

/* Event Category Section */
.event-categories {
    width: 100%;
    background: var(--bg-color);
    position: relative;
    padding-bottom: 60px;
}

.event-categories > div {
    min-height: auto;
    padding: 60px 20px;
    background: transparent;
    position: relative;
}

/* Category Divider Line */
.event-categories > div:not(:last-child)::after {
    content: "";
    display: block;
    width: 80%;
    max-width: 900px;
    height: 1px;
    background: var(--shadow-color);
    margin: 60px auto 0;
    opacity: 0.4;
}

#technical,
#non-technical,
#workshops,
#counsiling,
#social {
    scroll-margin-top: 85px;
}

/* Category Section Headings */
.event-categories h2 {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--heading-color);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.event-categories h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-color);
}

/* Events Grid Container */
.events-grid {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Event Card Component */
.event-card {
    background: var(--card-bg);
    border: 1px solid var(--shadow-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.lightmode .event-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 16px 36px var(--shadow-color);
}

/* Event Card Image */
.event-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--card-bg);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.06);
}

/* Event Card Content */
.event-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-content h3 {
    font-size: 1.28rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading-color);
    line-height: 1.4;
}

.event-description {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--paragraph-color);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Event Meta Details */
.event-details {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--shadow-color);
}

.event-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--paragraph-color);
    margin: 0;
}

.event-details i {
    width: 18px;
    color: var(--primary-color);
    text-align: center;
    font-size: 0.95rem;
}

/* Event Details Button */
.event-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: var(--button-bg);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.event-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-color);
}

/* Empty Event State */
.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 25px;
    background: var(--card-bg);
    border: 1px dashed var(--shadow-color);
    border-radius: 14px;
    color: var(--paragraph-color);
    max-width: 650px;
    margin: 10px auto;
    width: 100%;
}

.no-events i {
    font-size: 2.2rem;
    color: var(--primary-color);
    opacity: 0.8;
    margin-bottom: 12px;
    display: block;
}

.no-events p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--paragraph-color);
    margin: 0;
}

/* Event Details Modal */
.event-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.event-modal.active {
    visibility: visible;
    opacity: 1;
}

.event-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.event-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 36px;
    border-radius: 20px;
    background: var(--bg-color);
    border: 1px solid var(--shadow-color);
    color: var(--text-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px var(--shadow-color);
    transform: scale(0.96) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.lightmode .event-modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.event-modal.active .event-modal-content {
    transform: scale(1) translateY(0);
}

.event-modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--shadow-color);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.event-modal-close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.08) rotate(90deg);
}

.modal-event-header {
    padding-right: 50px;
    margin-bottom: 24px;
}

.modal-event-header h2 {
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 14px;
}

.modal-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-event-details span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 30px;
    background: var(--card-bg);
    border: 1px solid var(--shadow-color);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--paragraph-color);
}

.modal-event-details span i {
    color: var(--primary-color);
}

/* Modal Gallery Grid */
.event-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 24px 0 28px;
}

.modal-gallery-image {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--shadow-color);
    background: var(--card-bg);
}

.modal-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    cursor: pointer;
}

.modal-gallery-image:hover img {
    transform: scale(1.06);
}

/* Modal Detail Sections */
.modal-event-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--shadow-color);
}

.modal-event-section h3 {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-event-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--paragraph-color);
    text-align: justify;
}

body.modal-open {
    overflow: hidden;
}

/* Responsive Event Layout */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .event-categories h2 {
        font-size: 1.9rem;
    }

    .event-modal {
        padding: 16px;
    }

    .event-modal-content {
        padding: 24px;
        border-radius: 16px;
    }

    .modal-event-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 90%;
        max-width: 320px;
        text-align: center;
    }

    .event-modal-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .modal-gallery-image {
        height: 130px;
    }
}

/* ================= MAIN SCREEN IMAGE VIEWER ================= */
.main-screen-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    background: rgba(4, 8, 16, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.main-screen-viewer.active {
    opacity: 1;
    visibility: visible;
}

.main-screen-viewer .lightbox-overlay {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.lightbox-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #ffffff;
}

.lightbox-info {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 65%;
}

.lightbox-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-counter {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lightbox-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.08);
}

.lightbox-btn.close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.lightbox-body {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 80px 40px;
    z-index: 5;
    user-select: none;
    overflow: hidden;
}

.main-screen-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 191, 255, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    cursor: zoom-in;
}

.main-screen-img.zoomed {
    transform: scale(1.55);
    cursor: zoom-out;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev-btn {
    left: 20px;
}

.lightbox-nav-btn.next-btn {
    right: 20px;
}

/* Event Image Hover Overlay - Indicates click to expand */
.event-image {
    cursor: zoom-in;
    position: relative;
}

.event-image .image-expand-hint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.event-card:hover .event-image .image-expand-hint {
    opacity: 1;
}

.modal-gallery-image {
    position: relative;
    cursor: zoom-in;
}

.modal-gallery-image .gallery-expand-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.modal-gallery-image:hover .gallery-expand-hint {
    opacity: 1;
}

.hero-slider .slides img {
    cursor: zoom-in;
}

body.lightbox-active {
    overflow: hidden;
}

@media (max-width: 768px) {
    .lightbox-body {
        padding: 60px 20px 30px;
    }

    .main-screen-img {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .lightbox-nav-btn.prev-btn {
        left: 10px;
    }

    .lightbox-nav-btn.next-btn {
        right: 10px;
    }

    .lightbox-topbar {
        padding: 12px 16px;
    }

    .lightbox-title {
        font-size: 0.95rem;
    }

    .lightbox-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}
