/* ====== 1. VARIABLES & FOUNDATION ====== */
:root {
    --primary: #bb3e7d;
    --secondary: #2c1c1c;
    --white: #eee4e4;
    --light: #fdfdfd;
    --gray: #6b7280;
    --header-h: 75px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--white);
    color: var(--secondary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ====== 2. FIXED HEADER & HAMBURGER ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: linear-gradient(90deg, var(--secondary) 0%, #3d2626 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    opacity: 0.95;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.btn-outline {
    border: 1px solid var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2100;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* X-Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

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

/* ====== 3. HERO & FILTER BAR ====== */
.hero {
    padding: 140px 0 80px;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.filters {
    margin-top: -40px;
    position: relative;
    z-index: 100;
}

.filter-grid {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.5fr;
    gap: 15px;
    align-items: center;
}

.filter-grid input,
.filter-grid select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
}

/* ====== 4. EVENTS GRID ====== */
.events {
    padding: 80px 0;
}

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

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-body {
    padding: 25px;
}

.tag {
    background: #fdf2f7;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-body h3 {
    margin: 15px 0 8px;
    font-size: 1.3rem;
}

.meta {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
    height: 3.6em;
    overflow: hidden;
}

.btn-secondary {
    display: block;
    text-align: center;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

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

/* ====== 5. FOOTER ====== */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 50px 0;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
}

/* ====== 6. RESPONSIVE ====== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: var(--secondary);
        flex-direction: column;
        padding: 40px 0;
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2rem;
    }
}