body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 35%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #111827;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.content-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 0 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img.logo {
    width: 56px;
    min-width: 56px;
}

.brand .brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand .brand-text .eyebrow {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.82;
}

.brand .brand-text h1 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    min-width: 110px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-login {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.18);
}

.button-logout {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.18);
}

.button-link:hover {
    transform: translateY(-2px);
}

.user-label {
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    padding: 44px 0;
}

.hero-copy {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.07);
}

.hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 42rem;
    margin: 24px 0;
    font-size: 1.05rem;
    color: #475569;
}

.youtube-live-panel {
    display: grid;
    gap: 22px;
    margin: 32px 0;
}

.youtube-live-panel .hero-copy {
    background: rgba(255, 255, 255, 0.94);
}

.youtube-live-panel iframe {
    width: 100%;
    min-height: 380px;
    border: none;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.youtube-fallback {
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.youtube-fallback p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.youtube-fallback .btn-primary {
    width: fit-content;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #4338ca;
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(67, 56, 202, 0.2);
}

.btn-secondary {
    background: #eef2ff;
    color: #3730a3;
}

.btn:hover {
    transform: translateY(-1px);
}

.hero-visual {
    display: grid;
    gap: 20px;
}

.hero-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.hero-preview {
    padding: 22px;
    display: grid;
    gap: 18px;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
    border-radius: 28px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.feature-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    color: #475569;
}

.swiper-container {
    width: 100%;
    min-height: 420px;
}

.swiper-slide {
    border-radius: 22px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    padding: 0;
}

.swiper-slide .photo {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.swiper-slide .photo-info {
    padding: 22px;
    text-align: left;
}

.swiper-slide .photo-info h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.swiper-slide .photo-info p {
    margin: 0;
    color: #475569;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #4338ca;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(67, 56, 202, 0.08);
}

.social-links a:hover {
    transform: translateY(-1px);
}

#footer {
    margin-top: 20px;
    padding: 28px 0;
    background: #111827;
    color: #d1d5db;
    text-align: center;
}

#footer .wrapper {
    display: flex;
    justify-content: center;
}

#footer .fleft {
    margin: 0;
    font-size: 0.95rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.event-card,
.gallery-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.event-card h2,
.gallery-card h3 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.event-card p,
.gallery-card p {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.7;
}

.event-meta {
    display: grid;
    gap: 10px;
    color: #64748b;
}

.event-meta small {
    display: block;
    font-size: 0.95rem;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-card-body {
    padding: 18px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.event-item {
    background: #eef2ff;
    border: 1px solid rgba(67, 56, 202, 0.12);
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.event-item:hover {
    transform: translateY(-2px);
    background: #dbeafe;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 24px;
    background: #eef2ff;
    border-radius: 20px;
    color: #334155;
    text-align: center;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        width: calc(100% - 32px);
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .site-nav.open {
        max-height: 420px;
        padding-top: 12px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-links li,
    .header-actions {
        width: 100%;
    }

    .nav-links a,
    .button-link {
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-copy,
    .hero-visual,
    .youtube-live-panel {
        padding: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .hero-copy h2 {
        font-size: 2rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    inset: 0;
    padding: 24px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.64);
}

.modal-content {
    background: #ffffff;
    margin: auto;
    padding: 24px;
    border-radius: 26px;
    width: min(940px, 100%);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.close {
    color: #334155;
    float: right;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #111827;
}

.form-left,
.form-right {
    width: 100%;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
    gap: 24px;
    margin-top: 8px;
}

.event-card,
.gallery-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.event-card h2,
.gallery-card h3 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.event-card p,
.gallery-card p {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.7;
}

.event-meta {
    display: grid;
    gap: 10px;
    color: #64748b;
}

.event-meta small {
    display: block;
    font-size: 0.95rem;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-card-body {
    padding: 18px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.event-item {
    background: #eef2ff;
    border: 1px solid rgba(67, 56, 202, 0.12);
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.event-item:hover {
    transform: translateY(-2px);
    background: #dbeafe;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 24px;
    background: #eef2ff;
    border-radius: 20px;
    color: #334155;
    text-align: center;
}
