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

body {
    font-family: "Poppins", sans-serif;
    background: #f0f4f8;
    color: #1a1a2e;
    min-height: 100vh;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.brand span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.menu-toggle {
    display: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1a1a2e;
    padding: 10px 14px;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a,
.dark-btn {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: 8px;
    transition: background-color 0.18s, color 0.18s;
    cursor: pointer;
    display: block;
    white-space: nowrap;
    border: none;
    background: transparent;
    font-family: "Poppins", sans-serif;
}

.nav-links a:hover,
.dark-btn:hover {
    background-color: #f0f4f8;
    color: #1565c0;
}

.nav-links a.active {
    background-color: #1565c0;
    color: #ffffff;
}

body.dark {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark nav,
body.dark .menu-toggle {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark .menu-toggle {
    color: #ffffff;
}

body.dark .brand span {
    color: #e2e8f0;
}

body.dark .nav-links a,
body.dark .dark-btn {
    color: #94a3b8;
}

body.dark .nav-links a:hover,
body.dark .dark-btn:hover {
    background: #334155;
    color: #93c5fd;
}

body.dark .nav-links a.active {
    background: #1d4ed8;
    color: #ffffff;
}

body.dark .hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

body.dark .hero h1,
body.dark .section-title {
    color: #f1f5f9;
}

body.dark .hero p,
body.dark .section-copy,
body.dark #status-msg,
body.dark .events-status,
body.dark .event-meta {
    color: #94a3b8;
}

body.dark select,
body.dark input,
body.dark .mess-section,
body.dark .event-card {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark label {
    color: #94a3b8;
}

body.dark .event-card:hover {
    background: #263348;
    border-color: #4a6fa5;
    box-shadow: 0 8px 32px rgba(29, 78, 216, 0.15);
}

body.dark .event-card h3,
body.dark .event-loc {
    color: #93c5fd;
}

body.dark .event-desc {
    color: #cbd5e1;
}

body.dark .dir-btn {
    background: #1d4ed8;
}

body.dark .dir-btn:hover {
    background: #1e40af;
}

body.dark .mess-tab {
    border-color: #334155;
    color: #94a3b8;
}

body.dark .mess-tab:hover {
    border-color: #2dd4bf;
    color: #2dd4bf;
}

body.dark .mess-tab.active {
    background: #0891b2;
    border-color: #0891b2;
    color: #ffffff;
}

body.dark .mess-food-chip {
    background: #0f172a;
    border-color: #334155;
    color: #2dd4bf;
}

body.dark footer {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.section-anchor {
    scroll-margin-top: 96px;
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(21, 101, 192, 0.08);
}

.hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.hero p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
}

.nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: "Poppins", sans-serif;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #1a1a2e;
    outline: none;
    cursor: pointer;
}

select:focus {
    border-color: #1565c0;
}

input {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: "Poppins", sans-serif;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #1a1a2e;
    outline: none;
}

input:focus {
    border-color: #1565c0;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn {
    flex: 1;
    padding: 12px;
    font-size: 0.92rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.btn-primary {
    background: #1565c0;
    color: #ffffff;
}

.btn-secondary {
    background: #0891b2;
    color: #ffffff;
}

#status-msg,
.events-status {
    font-size: 0.88rem;
    margin-top: 12px;
    min-height: 20px;
    color: #64748b;
}

.map-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    margin-top: 20px;
}

.map-wrapper iframe {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-copy {
    color: #64748b;
    font-size: 0.92rem;
}

.toolbar {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.empty-state {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.95rem;
}

.hidden {
    display: none;
}

.event-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(21, 101, 192, 0.13);
    border-color: #bfdbfe;
}

.event-type {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.event-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1565c0;
}

.event-desc {
    font-size: 0.84rem;
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
}

.event-meta {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.event-loc {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1565c0;
}

.dir-btn {
    margin-top: 6px;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    background: #1565c0;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.dir-btn:hover {
    background: #0d47a1;
}

.mess-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.mess-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.mess-tab {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: #4a5568;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: all 0.18s;
}

.mess-tab:hover {
    border-color: #1565c0;
    color: #1565c0;
}

.mess-tab.active {
    background: #1565c0;
    color: #ffffff;
    border-color: #1565c0;
}

.mess-content {
    display: none;
}

.mess-content.active {
    display: block;
}

.mess-food-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mess-food-chip {
    background: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.84rem;
    color: #1565c0;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 18px;
    font-size: 0.82rem;
    color: #64748b;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

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

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

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .brand {
        flex: 1;
    }

    .brand span {
        font-size: 0.88rem;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a,
    .dark-btn {
        width: 100%;
        text-align: left;
    }

    .page {
        padding: 24px 14px 48px;
        gap: 32px;
    }

    .hero,
    .mess-section {
        padding: 20px;
    }

    .hero h1,
    .section-title {
        font-size: 1.35rem;
    }

    .nav-row,
    .toolbar,
    .btn-row,
    .events-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .map-wrapper iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .brand img {
        height: 38px;
        width: 38px;
    }

    .brand span {
        font-size: 0.8rem;
    }

    .hero,
    .mess-section {
        border-radius: 16px;
        padding: 16px;
    }

    .btn,
    select {
        font-size: 0.9rem;
    }

    .mess-tab,
    .mess-food-chip {
        width: 100%;
        text-align: center;
    }
}
