/* Events Page - Flowing Design */

body,
html {
    min-height: 100vh;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    background-attachment: fixed;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    margin: 70px auto 40px;
    padding: 50px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    position: relative;
}

.hero-content h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 0.4em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
}

.hero-content h3 {
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
    font-style: normal;
    text-align: center;
    font-family: 'Lato', sans-serif;
    color: #8892b0;
}

/* Events Container */
.events-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Events List - Flowing Layout */
.events-list {
    display: flex;
    flex-direction: column;
}

/* Event Item - Clickable Section */
.event-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Event Image */
.event-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.02);
}

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

.event-image img.logo-fallback {
    object-fit: contain;
    padding: 40px;
    max-height: 200px;
}

.event-item:hover .event-image img {
    transform: scale(1.02);
}

/* Event Info */
.event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Event Name */
.event-name {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* Partner Section */
.event-partner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 12px;
}

.partner-logo-small {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.partner-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Lato', sans-serif;
}

.partner-credentials {
    font-size: 0.85rem;
    color: #8892b0;
    font-family: 'Lato', sans-serif;
    line-height: 1.4;
}

/* Event Meta (Location + Date) */
.event-meta {
    font-size: 0.95rem;
    color: #8892b0;
    margin: 8px 0;
    font-family: 'Lato', sans-serif;
}

/* Event Description */
.event-description {
    font-size: 1.05rem;
    color: #ccd6f6;
    line-height: 1.7;
    margin: 12px 0 0 0;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

/* No Events State */
.no-events {
    text-align: center;
    padding: 80px 20px;
    color: #8892b0;
}

.no-events p {
    font-size: 1.1rem;
    margin: 0;
}

/* About Section - One Sentence */
.about-section {
    text-align: center;
    padding: 60px 20px;
    max-width: 640px;
    margin: 20px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-section p {
    font-size: 1.05rem;
    color: #8892b0;
    line-height: 1.7;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

/* Header/Navigation Overrides for Dark Theme */
.tabs a {
    color: #fff;
}

.tabs .active a,
.tabs a:hover {
    color: rgba(236, 105, 26, .85);
}

.dropbtn {
    background-color: transparent;
    cursor: pointer;
    color: #fff !important;
    align-items: center;
    gap: .5rem;
    border: none;
}

.dropbtn:hover {
    color: #2e5c9dd9 !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0000007a;
    color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 12px 16px;
    color: #fff !important;
    transition: background-color .3s;
}

.dropdown-content a:hover {
    color: #ababab !important;
}

/* Mobile Menu Icon */
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.menu-icon span {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-icon.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .menu-icon,
    nav.active .tabs {
        display: flex;
    }

    nav .tabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #000;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .dropdown-content,
    .dropdown-content a {
        background-color: #000 !important;
    }

    .tabs li {
        margin: 0.5rem 1rem;
        width: 90%;
        text-align: left;
    }

    .dropbtn {
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        width: 100%;
        border-radius: 0;
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-content {
        display: block !important;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropbtn,
    .dropdown {
        width: 100%;
        background-color: transparent !important;
    }
    .hero {
        padding: 40px 16px 32px;
        margin: 60px auto 24px;
    }

    .hero-content h2 {
        font-size: 2.4rem;
    }

    .hero-content h3 {
        font-size: 1rem;
    }

    .events-container {
        padding: 0 16px 40px;
    }

    .event-item {
        padding: 32px 16px;
        margin: 0 -16px;
    }

    .event-image {
        max-height: 220px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .event-name {
        font-size: 1.6rem;
    }

    .event-partner {
        margin: 12px 0 10px;
    }

    .partner-logo-small {
        width: 38px;
        height: 38px;
    }

    .partner-credentials {
        font-size: 0.8rem;
    }

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

    .about-section {
        padding: 40px 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 32px 16px 24px;
    }

    .hero-content h2 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-content h3 {
        font-size: 0.95rem;
    }

    .event-item {
        padding: 24px 12px;
        margin: 0 -12px;
    }

    .event-image {
        max-height: 180px;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .event-name {
        font-size: 1.4rem;
    }

    .event-partner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .partner-logo-small {
        width: 36px;
        height: 36px;
    }

    .partner-name {
        font-size: 0.95rem;
    }

    .partner-credentials {
        font-size: 0.8rem;
    }

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

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

    .about-section p {
        font-size: 0.95rem;
    }
}
