:root {
    --color-primary: #e40038;
    --color-primary-dark: #92011f;
    --color-text: #333;
    --color-text-muted: #60605d;
    --color-text-light: #999;
    --color-background: #fff;
    --color-background-alt: #f9f9f9;
    --color-background-gray: #ececec;
    --color-border: #d8d2ca;
    --font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('/fonts/SourceSans3-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('/fonts/SourceSans3-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('/fonts/SourceSans3-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
}

header {
    text-align: center;
    padding: 2rem 0;
}

.main-nav {
    background: var(--color-primary);
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    top: env(safe-area-inset-top, 0);
    z-index: 100;
}

.main-nav a {
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.5rem;
    font-size: 1.17em;
    transition: background 0.2s;
    flex: 1;
    text-align: center;
}

.main-nav a:hover {
    background: var(--color-primary-dark);
}

.logo {
    max-width: 100%;
    width: 350px;
    height: auto;
}

h1, h2 {
    display: block;
    color: var(--color-text);
}

article h1 {
    margin-bottom: 1.5rem;
}

article p {
    margin-bottom: 0.5rem;
}

article ul,
article ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

article li {
    margin-bottom: 0.25rem;
}

article h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

figure {
    margin: 1.5rem 0;
}

figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
}

figure a {
    display: block;
}

figcaption {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.welcome {
    margin-bottom: 3rem;
}

.welcome h2 {
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.welcome p {
    margin-bottom: 1rem;
}

.events {
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.events h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.event {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-background);
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.event-with-flyer {
    display: block;
}

.event-content {
    flex: 1;
}

.event-flyer {
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: block;
    margin: 0.5rem auto 1rem;
    width: 100%;
}

.event-flyer-desktop {
    display: none;
}

@media (min-width: 600px) {
    .event-with-flyer {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }

    .event-flyer {
        width: 150px;
    }

    .event-flyer-mobile {
        display: none;
    }

    .event-flyer-desktop {
        display: block;
        flex-shrink: 0;
        margin: 0;
    }
}

.event-flyer-single {
    margin: 1.5rem 0;
    text-align: center;
}

.event-flyer-single img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (min-width: 600px) {
    .event-flyer-single {
        float: right;
        margin: 0 0 1rem 1.5rem;
        text-align: right;
        max-width: 300px;
    }
}

.event:hover {
    background: var(--color-background-alt);
    color: inherit;
}

.event:hover h3 {
    text-decoration: underline;
}

.event h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event p {
    margin-bottom: 0.5rem;
}

.event p:last-child {
    margin-bottom: 0;
}

.event-venue {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0;
    margin-bottom: 1rem;
}

.events-table {
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.events-table h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.events-list {
    background: var(--color-background-gray);
}

.events-list-header {
    display: flex;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.17em;
    border-bottom: 1px solid var(--color-primary);
}

.events-list-row {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    color: inherit;
    text-decoration: none;
}

.events-list-row:hover {
    background: var(--color-background-alt);
    color: inherit;
}

.events-list-row:hover .event-col-title {
    text-decoration: underline;
}

.event-col-date {
    flex: 1;
}

.event-col-title {
    flex: 1;
    font-weight: 600;
}

.schedule h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.schedule {
    margin-top: 5rem;
}

.groups-list {
    margin-bottom: 4.65rem;
    background: var(--color-background-gray);
}

.groups-list-header {
    display: flex;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.17em;
    border-bottom: 1px solid var(--color-primary);
}

.groups-list-row {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    color: inherit;
    text-decoration: none;
}

a.groups-list-row:hover {
    background: var(--color-background-alt);
    color: inherit;
}

a.groups-list-row:hover .group-col-name {
    text-decoration: underline;
}

.group-col-time {
    flex: 1;
}

.group-col-name {
    flex: 2;
    font-weight: 600;
}

.group-col-audience {
    flex: 1;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: right;
}

.mehr-link {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.clearfix {
    clear: both;
}


.contact {
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.contact h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.contact-link:hover {
    color: var(--color-primary-dark);
}

.contact-link svg {
    width: 24px;
    height: 24px;
}

.contact-address {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color-text);
}

.contact-map {
    margin-top: 1.5rem;
    text-align: center;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 1px solid var(--color-border);
}

.contact-map small {
    display: block;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.build-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--color-background-alt);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.build-info p {
    margin-bottom: 0.5rem;
}

.build-info p:last-child {
    margin-bottom: 0;
    text-align: center;
}

.build-info strong {
    margin-right: 0.5rem;
}

.build-info a {
    color: var(--color-primary);
}

.build-info svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.social-link {
    color: var(--color-primary);
    text-decoration: none;
}

.social-link:hover {
    color: var(--color-primary-dark);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.jump-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.jump-top:hover {
    background: var(--color-primary-dark);
    color: white;
}

.jump-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    body {
        padding: 10px;
    }

    .event-date-time {
        display: block;
    }

    .groups-list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .group-col-name {
        flex: none;
    }

    .group-col-audience {
        text-align: left;
    }

}
