:root {
    --rotary-blue: #17458f;
    --rotary-gold: #f7a81b;
    --rotary-blue-dark: #12376f;
    --page-bg: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #667085;
    --shadow-soft: 0 4px 18px rgba(23, 69, 143, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page-bg);
    font-family: Arial, sans-serif;
    color: var(--text-main);
}

/*
|--------------------------------------------------------------------------
| Hero / top
|--------------------------------------------------------------------------
*/

.hero {
    background: linear-gradient(135deg, var(--rotary-blue), var(--rotary-blue-dark));
    color: white;
    border-bottom: 5px solid var(--rotary-gold);
    padding: 34px 24px;
}

.hero-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    width: 76px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 38px;
    line-height: 1.1;
}

.hero p {
    margin: 0;
    opacity: 0.92;
    font-size: 16px;
}

/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.container {
    max-width: 1300px;
    margin: 34px auto;
    padding: 0 20px;
}

.info-card,
.calendar-wrapper,
.empty-card,
.page-header,
.detail-event-card {
    background: white;
    border-radius: 16px;
    border-top: 4px solid var(--rotary-gold);
    box-shadow: var(--shadow-soft);
}

/*
|--------------------------------------------------------------------------
| Info card
|--------------------------------------------------------------------------
*/

.info-card {
    padding: 28px;
    margin-bottom: 30px;
}

.info-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--rotary-blue);
}

.info-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Quick links
|--------------------------------------------------------------------------
*/

.quick-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.quick-links a,
.action-button,
.actions a,
.back-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--rotary-blue);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.15s ease;
}

.quick-links a:hover,
.action-button:hover,
.actions a:hover,
.back-link-button:hover {
    background: var(--rotary-gold);
    color: #1f2937;
}

/*
|--------------------------------------------------------------------------
| Calendar
|--------------------------------------------------------------------------
*/

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.calendar-title {
    font-size: 34px;
    font-weight: bold;
    color: var(--rotary-blue);
}

.calendar-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-nav a {
    text-decoration: none;
    background: var(--rotary-blue);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
}

.calendar-nav a:hover {
    background: var(--rotary-gold);
    color: #1f2937;
}

.calendar-wrapper {
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekday {
    background: #eef4ff;
    padding: 16px;
    font-weight: bold;
    color: var(--rotary-blue);
    border-bottom: 1px solid #dce6f8;
    border-right: 1px solid #dce6f8;
}

.day-cell,
.empty-cell {
    min-height: 160px;
    background: white;
    border-right: 1px solid #dce6f8;
    border-bottom: 1px solid #dce6f8;
    padding: 12px;
}

.day-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--rotary-blue);
    margin-bottom: 10px;
}

/*
|--------------------------------------------------------------------------
| Events
|--------------------------------------------------------------------------
*/

.calendar-event {
    display: block;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}



.event-public {
    background: var(--rotary-blue);
}

.event-club_visit {
    background: #005daa;
}

.event-district_meeting {
    background: #5b2c83;
}

.event-committee_meeting {
    background: #0f766e;
}

.event-travel {
    background: #d97706;
}

.event-other {
    background: #555;
}

.event-time {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.event-meta {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rotary-blue);
    font-weight: 600;
}
/*
|--------------------------------------------------------------------------
| Public event pages
|--------------------------------------------------------------------------
*/

.page-header {
    padding: 28px;
    margin-bottom: 24px;
}

.page-header h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--rotary-blue);
}

.page-header p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.actions,
.back-link-wrapper {
    margin-bottom: 24px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.event-card {
    padding: 24px;
}

.event-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--rotary-blue);
    margin-bottom: 14px;
}

.event-section {
    margin-top: 14px;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.system-footer {
    margin-top: 56px;
    padding: 30px 28px;
    background: linear-gradient(135deg, #102c59, #17458f);
    border-top: 5px solid var(--rotary-gold);
    color: white;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand strong {
    font-size: 18px;
}

.footer-brand span {
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
}

.footer-meta {
    text-align: right;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.84);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1000px) {

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .weekday {
        display: none;
    }

    .day-cell {
        min-height: auto;
    }

    .empty-cell {
        display: none;
    }

    .hero-inner {
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 700px) {

    .hero {
        padding: 26px 20px;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 62px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .calendar-title {
        font-size: 28px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        text-align: left;
    }
}

.calendar-event,
.calendar-event *,
.calendar-event .event-time,
.calendar-event .event-meta {
    color: #ffffff !important;
}

.detail-event-card {
    background: white;
    border-radius: 16px;
    border-top: 4px solid var(--rotary-gold);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.event-list {
    max-width: 900px;
}

.detail-event-card {
    padding: 22px 24px;
}

.event-meta {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rotary-blue);
    font-weight: 600;
}

.detail-event-card {
    background: white;
    border-radius: 16px;
    border-top: 4px solid var(--rotary-gold);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.event-list {
    max-width: 900px;
    margin: 0 auto;
}

.event-datetime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef4ff;
    color: var(--rotary-blue);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.public-card-padding {
    padding: 24px;
}

.calendar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--rotary-blue);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.15s ease;
}

.calendar-button:hover {
    background: var(--rotary-gold);
    color: #1f2937;
}

/*
|--------------------------------------------------------------------------
| Public calendar wide layout
|--------------------------------------------------------------------------
| Bruges på den offentlige kalenderforside, så introduktionskortet bevarer
| normal læsebredde, mens selve kalenderen får mere arbejdsplads.
*/

.public-calendar-wide {
    width: min(calc(100% - 48px), 1700px);
    margin: 30px auto 0;
}

@media (max-width: 700px) {
    .public-calendar-wide {
        width: calc(100% - 24px);
        margin-top: 24px;
    }
}
