:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text-dark: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 150px;
    max-height: 48px;
    object-fit: contain;
}

.home-hero {
    position: relative;
    overflow: hidden;
}

.hero-event-gallery {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-event-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    opacity: 0;
    animation: event-image-sweep 45s linear infinite;
}

@keyframes event-image-sweep {
    0% { opacity: 0; transform: translateX(-100%); }
    4% { opacity: 0.48; transform: translateX(-92%); }
    45% { opacity: 0.48; transform: translateX(92%); }
    50%, 100% { opacity: 0; transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-event-image {
        animation: none;
    }
    .hero-event-image:first-child {
        opacity: 0.35;
        transform: none;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.about-story {
    position: relative;
    max-width: 800px;
    min-height: 280px;
    margin: 0 auto;
    padding: 3rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.about-story-image {
    position: absolute;
    top: 50%;
    z-index: 0;
    width: 224px;
    height: 224px;
    object-fit: contain;
    opacity: 0.2;
    transform: translateY(-50%);
    pointer-events: none;
}

.about-story-image-left { left: 1rem; }
.about-story-image-right { right: 1rem; }

.about-story-content {
    position: relative;
    z-index: 1;
    max-width: 590px;
    margin: 0 auto;
}

.about-story-lead {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-story-detail {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Card Styling */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card-image {
    display: block;
    overflow: hidden;
}

.article-card-image img {
    transition: transform 0.3s ease;
}

.article-card-image:hover img {
    transform: scale(1.03);
}

.article-card-title {
    color: inherit;
    text-decoration: none;
}

.article-card-title:hover {
    color: var(--accent);
}

.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-detail h1 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 2.25rem;
    line-height: 1.25;
}

.article-detail-meta {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.article-detail-image {
    display: block;
    width: 100%;
    max-height: 520px;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    object-fit: cover;
}

.article-detail-content {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.article-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.article-back-link:hover {
    text-decoration: underline;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Forms */
.form-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-hover);
}

/* Footer */
footer {
    background: var(--primary);
    color: #94a3b8;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo img {
        width: 125px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.5rem 1rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .article-detail h1 {
        font-size: 1.75rem;
    }
    .article-detail-content {
        font-size: 1rem;
    }
    .about-story {
        min-height: 0;
        padding: 2.5rem 1rem;
    }
    .about-story-image {
        width: 176px;
        height: 176px;
        opacity: 0.16;
    }
    .about-story-image-left { left: 0.25rem; }
    .about-story-image-right { right: 0.25rem; }
    .about-story-lead { font-size: 1.1rem; }
    .about-story-detail { font-size: 1.05rem; }
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .logo {
        align-self: flex-start;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}