/* ==============================================
   COMPLETE EVENTS PAGE STYLES - RESPONSIVE
   ============================================== */


/* CSS Variables - Matching about-style.css */

:root {
    --primary-color: #4a6fff;
    --secondary-color: #ff6b6b;
    --accent-color: #00d4aa;
    --accent-color2: #044d85;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --text-secondary: #94a3b8;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-light: 0 5px 20px rgba(38, 136, 255, 0.445);
    --shadow-medium: 0 10px 30px rgba(255, 23, 147, 0.492);
    --border-radius: 12px;
    --dark-bg: #0f172a;
}


/* Reset and Base Styles */

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}


/* Preloader Styles - Matching about-style.css */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* "Blueprint" Grid Pattern */
    transition: opacity 0.6s ease-out, visibility 0.6s;
    overflow: hidden;
    /* Prevent scrollbars during load */
}


/* 1. LOGO STYLES */

.logo-container2 {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
}

.logo-icon {
    width: 300px;
    height: 300px;
    background: #ffffff;
    /* Hexagon Shape */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo-icon span {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 32px;
}

.logo-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 2px dashed #6200ea;
    /* Electric Purple */
    border-radius: 50%;
    animation: spin 8s linear infinite;
    z-index: 1;
}


/* 2. TEXT STYLES */

h1.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    position: relative;
    text-align: center;
    line-height: 1;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.2s;
}


/* Glitch Layers */

h1.brand-name::before,
h1.brand-name::after {
    content: "GameLiminals";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0.8;
}

h1.brand-name::before {
    color: #ff0055;
    z-index: -1;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

h1.brand-name::after {
    color: #00f0ff;
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.tagline-box {
    background: linear-gradient(255deg, rgba(125, 147, 255, 1) 0%, rgba(252, 70, 107, 1) 100%);
    color: #fff;
    padding: 8px 24px;
    margin-top: 20px;
    font-size: 1.1rem;
    letter-spacing: 4px;
    display: inline-block;
    box-shadow: 6px 6px 0px rgba(98, 0, 234, 0.2);
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.4s;
}

.tagline-text {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    /* Ensure you import this font */
    font-weight: bold;
}


/* 3. LOADING BAR */

.loader-wrapper {
    margin-top: 45px;
    width: 300px;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.6s;
}

.loading-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-bar-fill {
    height: 100%;
    background: #6200ea;
    width: 0%;
    box-shadow: 0 0 10px rgba(98, 0, 234, 0.5);
    animation: fillBar 3s ease-in-out forwards;
}


/* 4. ANIMATIONS */

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

@keyframes fillBar {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes preloaderContent {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    85% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* Glitch Keyframes */

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 0);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(1px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(2px, 0);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-1px, 0);
    }
}


/* Helper Class to Hide */

.hide-preloader {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}


/* =========================================
   RESPONSIVE QUERIES
   ========================================= */


/* Tablet & Small Laptops (Max Width: 992px) */

@media (min-width: 1280px) and (max-width: 1450px) {
    .logo-title {
        display: none;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (max-width: 1280px) {
    .logo-title {
        display: none;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (max-width: 992px) {
    h1.brand-name {
        font-size: 3rem;
    }

    .logo-icon {
        width: 300px;
        height: 300px;
    }

    .logo-ring {
        width: 95px;
        height: 95px;
    }

    .logo-icon span {
        font-size: 28px;
    }
}


/* Mobile Devices (Max Width: 600px) */

@media (max-width: 600px) {
    h1.brand-name {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .tagline-box {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .loader-wrapper {
        width: 220px;
        margin-top: 35px;
    }

    .logo-icon {
        width: 200px;
        height: 200px;
    }

    .logo-ring {
        width: 85px;
        height: 85px;
    }

    .logo-icon span {
        font-size: 24px;
    }
}


/* Mini Mobile / Older Devices (Max Width: 380px) */

@media (max-width: 380px) {
    h1.brand-name {
        font-size: 1.8rem;
    }

    /* Prevent text wrapping */
    .tagline-box {
        font-size: 0.7rem;
        letter-spacing: 1px;
        transform: skewX(-10deg);
        /* Reduce skew to save space */
    }

    .tagline-text {
        transform: skewX(10deg);
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .logo-icon {
        width: 150px;
        height: 150px;
    }

    .logo-ring {
        width: 70px;
        height: 70px;
    }

    .logo-icon span {
        font-size: 20px;
    }

    .loader-wrapper {
        width: 180px;
        margin-top: 25px;
    }
}


/* 6. Animations */

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

@keyframes fillBar {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}


/* Glitch Keyframes */

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 0);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(1px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(2px, 0);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-1px, 0);
    }
}


/* JS Helper Class */

.hide-preloader {
    opacity: 0 !important;
    visibility: hidden !important;
}

.preloader-progress {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

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

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

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* Custom Cursor - Matching about-style.css */

.cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(74, 111, 255, 0.3);
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s, width 0.2s, height 0.2s;
    mix-blend-mode: normal;
    box-shadow: 0 0 10px rgba(74, 111, 255, 0.5);
}

.cursor.hover {
    transform: scale(1.8);
    background: rgba(255, 107, 107, 0.3);
    border-color: var(--secondary-color);
}


/* Header & Navigation - Matching about-style.css */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: 500;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(74, 111, 255, 0.08);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 111, 255, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    left: 50%;
    bottom: -5px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}


/* Hero Section Base */

section {
    padding: 80px 0;
}

.section-light {
    background: var(--background-gray);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'Orbitron', sans-serif;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}


/* Events Hero Section */

.events-hero {
    padding: 140px 5% 80px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.events-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.events-hero-text {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.events-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: rgb(0, 0, 0);
}

.events-subtitle {
    font-size: 1.3rem;
    color: #042048bb;
    margin-bottom: 1.5rem;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.8;
}

/* Hero Register Button */
.hero-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.hero-register-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: white;
}

@media (max-width: 768px) {
    .hero-register-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}


/* Events Stats */

.events-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(74, 111, 255, 0.2);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--accent-color2);
    margin-bottom: 1rem;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color2);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-content p {
    font-size: 0.9rem;
    color: #000000;
    text-align: center;
    font-weight: 500;
}


/* Floating Shapes */

.events-hero-visual {
    position: relative;
    height: 400px;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgb(2, 122, 177);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    backdrop-filter: blur(10px);
    animation: floatGameElement 8s infinite ease-in-out;
    transition: all 0.3s ease;
}

.shape:hover {
    transform: scale(1.2);
    background: rgba(74, 111, 255, 0.3);
    box-shadow: 0 0 30px rgba(74, 111, 255, 0.5);
}

.shape-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.shape-4 {
    top: 40%;
    right: 5%;
    animation-delay: 3s;
}

.shape-5 {
    top: 60%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes floatGameElement {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 111, 255, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


/* Events Filter Section */

.events-filter-section {
    padding: 5rem 5%;
    background: var(--background-light);
    position: relative;
    z-index: 2;
}

.filter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-dark);
}

.filter-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-tab {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.filter-tab:hover {
    background: rgba(74, 111, 255, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

.filter-tab i {
    font-size: 1.1rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    background: white;
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.1);
}

.search-container i {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-right: 1rem;
}

#eventSearch {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
    font-family: 'Poppins', sans-serif;
}

#eventSearch::placeholder {
    color: var(--text-lighter);
}

.clear-search {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

.clear-search:hover {
    color: var(--secondary-color);
}


/* Events Grid Section */

.events-grid-section {
    padding: 3rem 5% 6rem;
    background: linear-gradient(180deg, var(--background-light) 0%, var(--background-gray) 100%);
    min-height: 60vh;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}


/* Event Card Styling */

.event-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    opacity: 0;
    transform: translateY(20px);
    animation: cardAppear 0.6s ease forwards;
}

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

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.event-card.closed {
    opacity: 0.8;
    filter: grayscale(0.3);
}

.event-card.closed:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.event-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

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

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.event-status-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-status-badge.upcoming {
    background: rgba(0, 212, 170, 0.3);
    border-color: var(--accent-color);
}

.event-status-badge.ongoing {
    background: rgba(74, 111, 255, 0.3);
    border-color: var(--primary-color);
}

.event-status-badge.closed {
    background: rgba(255, 107, 107, 0.3);
    border-color: var(--secondary-color);
}

.event-date-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 1px solid var(--border-color);
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.event-content {
    padding: 1.5rem 1.2rem 1.2rem;
}

.event-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(74, 111, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-family: 'Orbitron', sans-serif;
    line-height: 1.4;
}

.event-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Speaker Name Badge on Event Cards */
.event-speaker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(74, 111, 255, 0.08), rgba(255, 107, 107, 0.08));
    border: 1px solid rgba(74, 111, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.event-speaker i {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.event-speaker span {
    color: var(--text-dark);
    font-weight: 500;
}

.event-card:hover .event-speaker {
    background: linear-gradient(135deg, rgba(74, 111, 255, 0.15), rgba(255, 107, 107, 0.12));
    border-color: var(--primary-color);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.event-actions {
    display: flex;
    gap: 1rem;
}

.btn-details {
    flex: 1;
    padding: 0.9rem;
    background: white;
    color: var(--primary-color);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.btn-details:hover {
    background: rgba(74, 111, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-register {
    flex: 1;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-register.disabled {
    background: var(--text-lighter);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-register.disabled:hover {
    transform: none;
    box-shadow: none;
}


/* Loading State */

.loading-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: var(--text-light);
    font-size: 1.1rem;
}


/* No Events Message */

.no-events-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 5rem;
    color: var(--border-color);
    margin-bottom: 2rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.reset-filters {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.reset-filters:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}


/* Load More Button */

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-light);
    font-family: 'Poppins', sans-serif;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.load-more-btn:active {
    transform: translateY(-1px);
}


/* Featured Event Banner */

.featured-event-banner {
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(74, 111, 255, 0.1) 0%, rgba(0, 212, 170, 0.1) 50%, rgba(74, 111, 255, 0.1) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.featured-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.featured-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-light);
}

.featured-info {
    flex: 1;
    min-width: 300px;
}

.featured-info h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.featured-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.featured-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.featured-meta .meta-item i {
    color: var(--primary-color);
}

.featured-register-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.featured-register-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}


/* Registration CTA */

.registration-cta {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: 2.8rem;
    color: rgb(0, 0, 0);
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.cta-text p {
    color: #666666;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(39, 5, 106, 0.9);
    font-weight: 600;
}

.feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-medium);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
}

.cta-button.secondary {
    background: white;
    color: var(--primary-color);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    background: rgba(74, 111, 255, 0.05);
}

.cta-button.large {
    padding: 1.3rem 2.5rem;
    font-size: 1.1rem;
}

.cta-button.outline {
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    color: white;
}

.cta-button.outline:hover {
    background: linear-gradient(90deg, rgba(252, 176, 69, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(131, 58, 180, 1) 100%);
    border-color: rgb(0, 26, 255);
}


/* Event Modal */

.event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.event-modal {
    background: var(--background-light);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.modal-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-event-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.modal-event-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-event-info {
    margin-top: 1.5rem;
}

.modal-event-category {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(74, 111, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.detail-item div {
    flex: 1;
}

.detail-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.detail-item span {
    color: var(--text-light);
    display: block;
}

.modal-event-description,
.modal-event-requirements,
.modal-event-prizes {
    margin-bottom: 2rem;
}

.modal-event-description h4,
.modal-event-requirements h4,
.modal-event-prizes h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.modal-event-description p,
.modal-event-requirements p,
.modal-event-prizes p {
    color: var(--text-light);
    line-height: 1.6;
}

.modal-footer {
    padding: 1.5rem 2.5rem;
    background: var(--background-gray);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.modal-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.modal-btn.secondary {
    background: white;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.modal-btn.secondary:hover {
    background: var(--background-gray);
    border-color: var(--text-light);
}


/* Footer - Matching about-style.css */

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-address {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-address i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.1rem;
    width: 20px;
}

.footer-email {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-email i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
}


/* ========== RESPONSIVE DESIGN ========== */


/* For tablets and small desktops */

@media (max-width: 1200px) {
    .events-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .events-hero-visual {
        height: 300px;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .cta-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.2rem;
    }

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

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


/* For tablets */

@media (max-width: 992px) {
    .events-hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .events-subtitle {
        max-width: 600px;
        margin: 0 auto;
    }

    .filter-tabs {
        gap: 0.8rem;
    }

    .filter-tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .featured-content {
        flex-direction: column;
        text-align: center;
    }

    .featured-meta {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* For mobile devices */


/* For mobile devices */


/* ===============================
   HAMBURGER NAV (<= 992px)
   Matching team-style.css
   =============================== */

@media (max-width: 992px) {

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Hide desktop nav */
    .nav-menu {
        position: fixed;
        top: 80px;
        /* height of header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    /* Active state */
    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 1rem 2rem;
    }

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {

    /* Hide cursor on mobile */
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    /* BIG preloader title for mobile */
    .preloader-title {
        font-size: 3rem;
        /* BIGGER font size */
        gap: 5px;
        letter-spacing: 3px;
        /* More spacing for big text */
    }

    .preloader-tagline {
        font-size: 1.2rem;
        /* Slightly bigger tagline */
        letter-spacing: 1.5px;
        gap: 3px;
    }

    .logo-image-container {
        width: 300px;
        /* Bigger container */
        height: 300px;
    }

    .preloader-logo-img {
        width: 250px;
        /* Bigger logo */
        height: 250px;
    }

    /* Mobile navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Adjust hero section */
    .events-hero {
        padding: 120px 5% 60px;
        margin-top: 70px;
        min-height: auto;
    }

    .events-title {
        font-size: 2.8rem;
        /* Bigger events title */
    }

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

    .events-stats {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 3rem auto 0;
    }

    .stat-item {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .events-hero-visual {
        height: 250px;
    }

    .shape {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Adjust filter tabs */
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tab {
        justify-content: center;
    }

    /* Adjust events grid */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .event-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .event-content {
        padding: 1.2rem 1rem 1rem;
    }

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

    .event-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .event-category {
        font-size: 0.75rem;
        padding: 0.25rem 0.8rem;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    .meta-item i {
        font-size: 0.95rem;
    }

    .event-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn-details,
    .btn-register {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .event-date-badge {
        padding: 0.6rem 1rem;
        border-radius: 10px;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .date-month {
        font-size: 0.75rem;
    }

    /* Adjust CTA section */
    .cta-text h2 {
        font-size: 2.2rem;
    }

    .cta-actions .cta-button {
        width: 100%;
        justify-content: center;
    }

    /* Adjust modal */
    .event-modal {
        max-width: 95%;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.2rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-event-details {
        grid-template-columns: 1fr;
    }

    /* Adjust footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        align-items: left;
    }

    /* Adjust header logo */
    .logo-title {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }
}


/* For even smaller mobile devices */

@media (max-width: 480px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden !important;
        position: relative;
    }

    /* Preloader */
    .preloader-title {
        font-size: 2.5rem;
        gap: 3px;
        letter-spacing: 2px;
    }

    .preloader-tagline {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .logo-image-container {
        width: 200px;
        height: 200px;
    }

    .preloader-logo-img {
        width: 150px;
        height: 150px;
    }

    /* Hero */
    .events-title {
        font-size: 2rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }

    .featured-info h3 {
        font-size: 1.6rem;
    }

    .featured-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    /* Card adjustments */
    .event-card {
        max-width: 100%;
        margin: 0;
    }

    .event-content {
        padding: 1rem 0.8rem 0.8rem;
    }

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

    .event-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.8rem;
    }

    .event-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.7rem;
        margin-bottom: 0.5rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .meta-item {
        font-size: 0.75rem;
    }

    .event-date-badge {
        padding: 0.5rem 0.8rem;
        top: 1rem;
        left: 1rem;
        border-radius: 8px;
    }

    .date-day {
        font-size: 1.3rem;
    }

    .date-month {
        font-size: 0.7rem;
    }

    .btn-details,
    .btn-register {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    /* Modal */
    .event-modal {
        max-width: 98%;
        border-radius: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-event-description h4,
    .modal-event-requirements h4,
    .modal-event-prizes h4 {
        font-size: 1.1rem;
    }

    /* Header */
    .logo-img {
        height: 35px;
        filter: none;
    }

    .logo-title {
        display: none;
    }

    .logo-subtitle {
        display: none;
    }
}


/* For very small mobile devices */

@media (max-width: 360px) {
    .preloader-title {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }

    .preloader-tagline {
        font-size: 0.9rem;
    }

    .logo-image-container {
        width: 180px;
        height: 180px;
    }

    /* Hero */
    .events-title {
        font-size: 1.6rem;
    }

    .events-subtitle {
        font-size: 0.9rem;
    }

    /* Filter */
    .filter-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Cards */
    .event-card {
        margin: 0;
    }

    .event-content {
        padding: 0.8rem 0.7rem 0.7rem;
    }

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

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

    .event-meta {
        gap: 0.5rem;
    }

    .meta-item {
        font-size: 0.7rem;
    }

    .event-date-badge {
        padding: 0.4rem 0.6rem;
    }

    .date-day {
        font-size: 1.1rem;
    }

    .date-month {
        font-size: 0.65rem;
    }

    .btn-details,
    .btn-register {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    /* Modal */
    .modal-header h3 {
        font-size: 1rem;
    }

    .logo-title {
        font-size: 1.3rem;
    }
}