

/* Homepage styles — dwu-theme.css is linked directly from index.php */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--green);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top bar */
.topbar {
    background: linear-gradient(180deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--gold);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: var(--white);
    border-radius: 50%;
    padding: 2px;
    border: 2px solid var(--gold);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topnav .newsletter-bell {
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease, transform 0.15s ease;
}

.topnav .newsletter-bell:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--gold);
    transform: translateY(-1px);
}

.topnav .back-icon-btn,
.profile-page .back-icon-btn {
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.topnav .back-icon-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.topnav .back-icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--gold);
    transform: translateX(-2px);
}

.profile-page .back-icon-btn {
    color: var(--green-dark);
    background: #eef5f1;
    border: 1px solid #c9dfd3;
}

.profile-page .back-icon-btn:hover {
    background: #fff8eb;
    border-color: var(--gold);
}

.member-page-toolbar {
    background: var(--card);
    border-bottom: 1px solid #e2e8e4;
    padding: 0.65rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.member-page-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.member-page-toolbar .back-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-decoration: none;
    color: var(--green);
    background: #eef5f1;
    border: 1px solid #c9dfd3;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.member-page-toolbar .back-icon-btn:hover {
    background: #fff8eb;
    border-color: var(--gold);
    color: var(--green-dark);
    transform: translateX(-2px);
}

.member-page-toolbar-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.member-page-toolbar-text strong {
    color: var(--green-dark);
    font-size: 0.95rem;
}

.member-page-toolbar-text span {
    color: var(--muted);
    font-size: 0.8rem;
}

.profile-page .newsletter-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    text-decoration: none;
    color: var(--green-dark);
    background: #eef5f1;
    border: 1px solid #c9dfd3;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-page .newsletter-bell:hover {
    background: #fff8eb;
    border-color: var(--gold);
}

.newsletter-bell-icon {
    display: block;
}

.newsletter-bell-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    border: 2px solid #fff;
    z-index: 2;
}

.topnav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
}

.topnav a:hover,
.topnav a.active {
    color: var(--gold);
}

.btn-nav {
    background: var(--gold);
    color: var(--green-dark) !important;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    font-weight: 700;
}

.btn-nav:hover {
    background: var(--gold-dark);
    color: var(--white) !important;
}

.btn-nav-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--white) !important;
}

.btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

/* Homepage Moodle-style rotating banner */
.hero.hero-carousel-banner {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    min-height: clamp(480px, 58vh, 720px);
    overflow: hidden;
    color: var(--white);
}

.hero-carousel-banner .moodle-hero-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.moodle-hero-carousel,
.moodle-hero-carousel .carousel-inner,
.moodle-hero-carousel .carousel-item {
    width: 100%;
    height: 100%;
    min-height: clamp(480px, 58vh, 720px);
}

.moodle-hero-slide-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.hero-carousel-banner img.moodle-hero-slide-image {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: clamp(480px, 58vh, 720px);
    object-fit: cover;
    object-position: var(--hero-focus, center center);
}

.moodle-hero-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    padding: 0.5rem clamp(1rem, 4vw, 2rem) 0.6rem;
    background: linear-gradient(
        180deg,
        rgba(0, 66, 37, 0) 0%,
        rgba(0, 66, 37, 0.78) 28%,
        rgba(0, 66, 37, 0.92) 100%
    );
    border-top: none;
    z-index: 3;
    text-align: center;
}

.moodle-hero-slide-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
}

.moodle-hero-slide-title {
    margin: 0 0 0.15rem;
    font-size: clamp(1rem, 2vw, 1.55rem);
    line-height: 1.15;
    color: var(--white);
}

.moodle-hero-slide-text {
    margin: 0 auto;
    max-width: 960px;
    font-size: clamp(0.78rem, 1.35vw, 0.88rem);
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.94);
}

.moodle-hero-progress-ring {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 5;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.moodle-hero-progress-ring::before {
    content: "";
    position: absolute;
    inset: 0.2rem;
    border-radius: 50%;
    background: conic-gradient(
        rgba(255, 255, 255, 0.92) 0 var(--slide-progress, 16.67%),
        rgba(255, 255, 255, 0.18) var(--slide-progress, 16.67%) 100%
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    transform: rotate(-90deg);
}

.hero-carousel-banner .moodle-hero-indicators {
    position: absolute;
    top: 0.85rem;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.35rem 0.65rem;
    background: rgba(0, 0, 0, 0.38);
    border-radius: 999px;
    width: auto;
    z-index: 5;
}

.moodle-hero-carousel .carousel-item {
    position: relative;
}

.moodle-hero-indicators [data-bs-target] {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background-color: transparent;
    opacity: 1;
    flex: 0 0 auto;
}

.moodle-hero-indicators .active {
    background-color: var(--gold);
    border-color: var(--gold);
}

.moodle-hero-control {
    z-index: 4;
    width: 8%;
    opacity: 0.85;
}

.moodle-hero-control:hover {
    opacity: 1;
}

.hero-carousel-banner .hero-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 0.65rem;
    background: var(--white);
}

.hero-carousel-banner h1 {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    font-size: clamp(1.5rem, 4.5vw, 2.75rem);
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .hero.hero-carousel-banner {
        min-height: 0;
    }

    .hero-carousel-banner .moodle-hero-carousel {
        position: relative;
        inset: auto;
        height: auto;
    }

    .moodle-hero-carousel,
    .moodle-hero-carousel .carousel-inner,
    .moodle-hero-carousel .carousel-item {
        min-height: 0;
        height: auto;
    }

    .moodle-hero-slide-media {
        aspect-ratio: 4 / 3;
        min-height: 0;
        height: auto;
        background: #111;
        overflow: hidden;
    }

    .hero-carousel-banner img.moodle-hero-slide-image {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: contain;
        object-position: var(--hero-focus-mobile, var(--hero-focus, center center));
    }

    .moodle-hero-slide-caption {
        padding: 0.45rem 0.85rem 0.5rem;
    }

    .moodle-hero-slide-text {
        display: none;
    }

    .moodle-hero-slide-title {
        font-size: 0.98rem;
    }

    .moodle-hero-progress-ring {
        top: 0.55rem;
        right: 0.55rem;
        width: 2rem;
        height: 2rem;
    }

    .moodle-hero-control {
        display: none;
    }
}

/* Homepage photo banner — logo & buttons on image; welcome text below */
.hero-photo-banner {
    min-height: clamp(300px, 44vw, 480px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-photo-banner .hero-bg {
    object-position: center 22%;
}

.hero-photo-banner .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 66, 37, 0.5) 0%,
        rgba(0, 66, 37, 0.28) 28%,
        rgba(0, 66, 37, 0.08) 55%,
        rgba(0, 66, 37, 0) 100%
    );
}

.hero-photo-banner .hero-content {
    text-align: center;
    padding: 1rem 1.5rem 0.75rem;
    margin-top: 0;
}

.hero-photo-banner .hero-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 0.65rem;
    background: var(--white);
}

.hero-photo-banner h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero-photo-banner .hero-actions {
    margin-bottom: 0;
    gap: 0.65rem;
}

.hero-photo-banner .hero-actions .btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
}

.welcome-section {
    background: linear-gradient(180deg, var(--panel) 0%, var(--surface) 100%);
    padding: 2rem 0 2.25rem;
    border-bottom: 1px solid var(--dwu-border);
}

.welcome-panel {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, var(--card) 0%, #f3faf6 100%);
    border: 1px solid var(--dwu-border);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.welcome-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(0, 92, 48, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-panel-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 66, 37, 0.2);
}

.welcome-panel-body {
    position: relative;
    z-index: 1;
    text-align: left;
}

.welcome-eyebrow {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.welcome-lead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text);
}

.welcome-lead::first-line {
    font-weight: 600;
    color: var(--green-dark);
}

@media (max-width: 640px) {
    .welcome-panel {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    .welcome-panel-body {
        text-align: center;
    }
}

/* Seasonal greeting banners (holidays & observances) */
.seasonal-greeting-section {
    background: var(--surface);
    padding: 0 0 2rem;
    border-bottom: 1px solid var(--dwu-border);
}

.seasonal-greeting-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.seasonal-greeting-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.seasonal-greeting-accent {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.seasonal-greeting-accent--flag {
    display: flex;
    flex-direction: column;
    width: 0.55rem;
    height: 3.5rem;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.seasonal-flag-stripe {
    flex: 1;
}

.seasonal-flag-black { background: #1a1a1a; }
.seasonal-flag-red { background: #ce1126; }
.seasonal-flag-gold { background: #fcd116; }

.seasonal-greeting-accent--icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.seasonal-greeting-accent-mark {
    font-size: 1.45rem;
    line-height: 1;
}

.seasonal-greeting-accent-mark--new-year::before { content: '✨'; }
.seasonal-greeting-accent-mark--easter::before { content: '✝'; }
.seasonal-greeting-accent-mark--kings-birthday::before { content: '👑'; }
.seasonal-greeting-accent-mark--remembrance::before { content: '🕊'; }
.seasonal-greeting-accent-mark--repentance::before { content: '🙏'; }
.seasonal-greeting-accent-mark--halloween::before { content: '🎃'; }
.seasonal-greeting-accent-mark--christmas::before { content: '🎄'; }

.seasonal-greeting-body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.seasonal-greeting-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.92;
}

.seasonal-greeting-title {
    margin: 0 0 0.45rem;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.seasonal-greeting-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 52rem;
}

.seasonal-greeting-badge {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.seasonal-greeting-badge-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.seasonal-greeting-badge-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.1rem;
    opacity: 0.95;
}

.seasonal-greeting-banner--independence {
    background: linear-gradient(120deg, #1a1a1a 0%, #252525 45%, #004225 100%);
    border-color: rgba(252, 209, 22, 0.35);
}
.seasonal-greeting-banner--independence::before {
    background: radial-gradient(circle at 85% 20%, rgba(206, 17, 38, 0.18) 0%, transparent 55%);
}
.seasonal-greeting-banner--independence .seasonal-greeting-eyebrow { color: #fcd116; }
.seasonal-greeting-banner--independence .seasonal-greeting-badge {
    background: linear-gradient(145deg, #ce1126 0%, #9e0d1c 100%);
    border: 3px solid #fcd116;
}
.seasonal-greeting-banner--independence .seasonal-greeting-badge-label { color: #fcd116; }

.seasonal-greeting-banner--new-year {
    background: linear-gradient(120deg, #0c1a3a 0%, #1a237e 50%, #004225 100%);
    border-color: rgba(252, 209, 22, 0.4);
}
.seasonal-greeting-banner--new-year::before {
    background: radial-gradient(circle at 20% 80%, rgba(252, 209, 22, 0.2) 0%, transparent 50%);
}
.seasonal-greeting-banner--new-year .seasonal-greeting-eyebrow { color: #fcd116; }
.seasonal-greeting-banner--new-year .seasonal-greeting-badge {
    background: linear-gradient(145deg, #1a237e 0%, #0d1642 100%);
    border: 3px solid #fcd116;
}
.seasonal-greeting-banner--new-year .seasonal-greeting-badge-label { color: #fcd116; }

.seasonal-greeting-banner--easter {
    background: linear-gradient(120deg, #4a148c 0%, #6a1b9a 45%, #004225 100%);
    border-color: rgba(255, 241, 118, 0.35);
}
.seasonal-greeting-banner--easter::before {
    background: radial-gradient(circle at 80% 30%, rgba(255, 241, 118, 0.15) 0%, transparent 55%);
}
.seasonal-greeting-banner--easter .seasonal-greeting-eyebrow { color: #fff59d; }
.seasonal-greeting-banner--easter .seasonal-greeting-badge {
    background: linear-gradient(145deg, #7b1fa2 0%, #4a148c 100%);
    border: 3px solid #fff59d;
}
.seasonal-greeting-banner--easter .seasonal-greeting-badge-label { color: #fff59d; }

.seasonal-greeting-banner--kings-birthday {
    background: linear-gradient(120deg, #0d2137 0%, #1565c0 50%, #004225 100%);
    border-color: rgba(252, 209, 22, 0.35);
}
.seasonal-greeting-banner--kings-birthday .seasonal-greeting-eyebrow { color: #fcd116; }
.seasonal-greeting-banner--kings-birthday .seasonal-greeting-badge {
    background: linear-gradient(145deg, #1565c0 0%, #0d47a1 100%);
    border: 3px solid #fcd116;
}
.seasonal-greeting-banner--kings-birthday .seasonal-greeting-badge-label { color: #fcd116; }

.seasonal-greeting-banner--remembrance {
    background: linear-gradient(120deg, #2b2b2b 0%, #4a4a4a 45%, #1b3d2f 100%);
    border-color: rgba(206, 17, 38, 0.4);
}
.seasonal-greeting-banner--remembrance::before {
    background: radial-gradient(circle at 75% 25%, rgba(206, 17, 38, 0.2) 0%, transparent 55%);
}
.seasonal-greeting-banner--remembrance .seasonal-greeting-eyebrow { color: #ef9a9a; }
.seasonal-greeting-banner--remembrance .seasonal-greeting-badge {
    background: linear-gradient(145deg, #616161 0%, #424242 100%);
    border: 3px solid #ce1126;
}
.seasonal-greeting-banner--remembrance .seasonal-greeting-badge-label { color: #ef9a9a; }

.seasonal-greeting-banner--repentance {
    background: linear-gradient(120deg, #311b92 0%, #4527a0 50%, #004225 100%);
    border-color: rgba(255, 255, 255, 0.2);
}
.seasonal-greeting-banner--repentance .seasonal-greeting-eyebrow { color: #d1c4e9; }
.seasonal-greeting-banner--repentance .seasonal-greeting-badge {
    background: linear-gradient(145deg, #512da8 0%, #311b92 100%);
    border: 3px solid #d1c4e9;
}
.seasonal-greeting-banner--repentance .seasonal-greeting-badge-label { color: #d1c4e9; }

.seasonal-greeting-banner--halloween {
    background: linear-gradient(120deg, #1a1a1a 0%, #4a148c 40%, #e65100 100%);
    border-color: rgba(255, 152, 0, 0.45);
}
.seasonal-greeting-banner--halloween::before {
    background: radial-gradient(circle at 15% 85%, rgba(255, 152, 0, 0.25) 0%, transparent 50%);
}
.seasonal-greeting-banner--halloween .seasonal-greeting-eyebrow { color: #ffcc80; }
.seasonal-greeting-banner--halloween .seasonal-greeting-badge {
    background: linear-gradient(145deg, #e65100 0%, #bf360c 100%);
    border: 3px solid #ffcc80;
}
.seasonal-greeting-banner--halloween .seasonal-greeting-badge-label { color: #ffcc80; }

.seasonal-greeting-banner--christmas {
    background: linear-gradient(120deg, #1b5e20 0%, #2e7d32 45%, #b71c1c 100%);
    border-color: rgba(252, 209, 22, 0.4);
}
.seasonal-greeting-banner--christmas::before {
    background: radial-gradient(circle at 90% 15%, rgba(252, 209, 22, 0.2) 0%, transparent 55%);
}
.seasonal-greeting-banner--christmas .seasonal-greeting-eyebrow { color: #fcd116; }
.seasonal-greeting-banner--christmas .seasonal-greeting-badge {
    background: linear-gradient(145deg, #c62828 0%, #1b5e20 100%);
    border: 3px solid #fcd116;
}
.seasonal-greeting-banner--christmas .seasonal-greeting-badge-label { color: #fcd116; }

@media (max-width: 720px) {
    .seasonal-greeting-banner {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .seasonal-greeting-badge {
        grid-column: 1 / -1;
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 0.35rem;
        border-radius: var(--radius);
        padding: 0.55rem 0.85rem;
    }

    .seasonal-greeting-badge-label {
        margin-top: 0;
    }
}

/* Hero (shared + homepage photo banner) */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 66, 37, 0.58) 0%,
        rgba(0, 92, 48, 0.48) 55%,
        rgba(0, 66, 37, 0.42) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

.hero-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    background: var(--white);
    border-radius: 50%;
    padding: 6px;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--gold);
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    color: #ffdd00;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.75),
        0 0 24px rgba(0, 0, 0, 0.35);
}

.hero-lead-panel {
    display: inline-block;
    max-width: 760px;
    margin: 0 auto 1.75rem;
    padding: 1.25rem 1.75rem;
    background: rgba(0, 45, 28, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-lead {
    max-width: none;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s;
}

.btn-gold {
    background: var(--gold);
    color: var(--green-dark);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

.site-url {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.site-url strong {
    color: var(--gold);
}

/* Upcoming event banner */
.event-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    padding: 2rem 0;
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}

.event-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.event-banner-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.event-banner h2 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    color: var(--white);
}

.event-date {
    margin: 0 0 0.75rem;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
}

.event-banner p {
    margin: 0 0 1rem;
    opacity: 0.95;
    max-width: 640px;
}

.event-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.event-banner-fundraising {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    max-width: 640px;
}

.event-banner-fundraising-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 0.55rem;
}

.event-banner-fundraising-head strong {
    font-size: 0.92rem;
}

.event-banner-fundraising-head span {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.05rem;
}

.event-banner-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.event-banner-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, #ffd56b 100%);
    border-radius: 999px;
}

.event-banner-fundraising-meta {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.9;
}

.event-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.event-banner .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.event-banner-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: var(--card);
    border-radius: 50%;
    padding: 6px;
    display: none;
}

@media (min-width: 640px) {
    .event-banner-logo {
        display: block;
    }
}

@media (max-width: 639px) {
    .event-banner-inner {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section h2 {
    margin: 0 0 0.75rem;
    color: var(--green-dark);
    font-size: 1.75rem;
}

.section-sub {
    color: var(--muted);
    margin: 0 0 2rem;
}

.intro-section {
    background: var(--surface);
}

.intro-section > .container > p {
    max-width: 820px;
    color: var(--muted);
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.info-card {
    background: var(--bg);
    border-left: 4px solid var(--green);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.info-card h3 {
    margin: 0 0 0.5rem;
    color: var(--green-dark);
    font-size: 1.05rem;
}

.info-card p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.text-link {
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.explore-section {
    background: var(--bg);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.explore-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--gold);
}

.explore-card h3 {
    margin: 0 0 0.5rem;
    color: var(--green-dark);
}

.explore-card p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Gallery */
.gallery-section {
    background: var(--card);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: var(--bg);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-item-large {
    grid-row: span 2;
}

.gallery-item-large img {
    height: 100%;
    min-height: 540px;
}

.gallery-item-logo img {
    object-fit: contain;
    background: var(--card);
    padding: 1rem;
    height: 260px;
}

.gallery-item figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--muted);
    background: var(--card);
}

/* Footer */
.site-footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2.5rem 1.5rem;
}

.footer-brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--card);
    border-radius: 50%;
    padding: 4px;
}

.footer-brand p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.site-footer h4 {
    margin: 0 0 0.75rem;
    color: var(--gold);
    font-size: 0.95rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 0.35rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--gold);
}

.footer-url {
    font-weight: 700;
    margin: 0;
}

.footer-url a,
.footer-domain a {
    color: var(--gold);
    text-decoration: none;
}

.footer-url a:hover,
.footer-domain a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0;
}

.footer-domain {
    margin-top: 0.35rem !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.explore-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.explore-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: inherit;
}

/* Stats */
.stats-section {
    background: var(--green-dark);
    padding: 2rem 0;
    margin-top: -1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    text-align: center;
}

.stats-section .stat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    color: #fff;
    padding: 0.85rem 0.65rem;
    height: auto;
    min-height: 0;
}

.stat-box {
    color: #fff;
    padding: 1rem;
}

.stat-number {
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1.15;
}

.stat-label {
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }

    .stats-section .stat-box {
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 767px) {
    .stats-section .stat-box-wide {
        grid-column: 1 / -1;
    }
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}

.page-hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.page-hero p {
    margin: 0;
    opacity: 0.9;
}

.content-page {
    max-width: 900px;
    margin: 0 auto;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.president-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--muted);
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.president-card {
    text-align: center;
    background: var(--bg);
    padding: 2rem;
    border-radius: 8px;
}

.president-card img {
    width: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--card);
    padding: 6px;
}

.president-card h3 { margin: 0; color: var(--green-dark); }
.president-card .small { color: var(--muted); font-size: 0.9rem; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--gold);
}

.news-card time {
    font-size: 0.8rem;
    color: var(--muted);
}

.news-card h3 {
    margin: 0.35rem 0;
    font-size: 1.05rem;
    color: var(--green-dark);
}

.news-by {
    font-size: 0.8rem;
    color: var(--muted);
}

.news-full-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-full-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.news-full-meta span { margin-left: 1rem; }

.news-full-body {
    line-height: 1.7;
}

.news-inline-image {
    margin: 1.25rem 0;
}

.news-inline-image img {
    width: 100%;
    max-width: 720px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-inline-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
    max-width: 720px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.value-card {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--green);
}

.leader-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.leader-section img {
    width: 100px;
    border-radius: 50%;
    background: var(--card);
    padding: 4px;
}

.cta-box {
    text-align: center;
    background: var(--green-dark);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.cta-box h3 { margin: 0 0 0.5rem; color: var(--gold); }
.cta-box p { margin: 0 0 1rem; opacity: 0.9; }

.content-image {
    max-width: 100%;
    border-radius: 8px;
    background: var(--card);
    padding: 1rem;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-page-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: var(--card);
}

.gallery-page-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-page-item figcaption {
    padding: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-card img.merchandise-thumb {
    object-fit: contain;
    background: #eef2ef;
    padding: 0.5rem;
    box-sizing: border-box;
}

.project-body { padding: 1rem; }

.project-status {
    display: inline-block;
    background: var(--gold);
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.contact-list li { margin-bottom: 0.5rem; }

.form-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-card label {
    display: block;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
    font-size: 0.9rem;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid var(--dwu-border);
    border-radius: 4px;
    font-family: inherit;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(0, 92, 48, 0.15);
}

.form-card select {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid var(--dwu-border);
    border-radius: 4px;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

.btn-block { width: 100%; margin-top: 1rem; border: none; cursor: pointer; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success { background: #e8f6ef; color: #1e6f4a; }
.alert-error { background: #fdecea; color: #922b21; }

.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-bar input,
.filter-bar select {
    flex: 1;
    min-width: 160px;
    padding: 0.65rem;
    border: 1px solid #c5d0db;
    border-radius: 4px;
}

.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: var(--green-dark);
    color: var(--white);
    font-size: 0.85rem;
}

.empty-cell, .empty-state {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
}

.profile-container { max-width: 640px; }
.profile-container .card { margin-bottom: 1.5rem; }
.profile-container .btn-primary { width: auto; }

.event-card { display: flex; gap: 1.25rem; background: var(--card); padding: 1.25rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.event-card-past { opacity: 0.75; }
.event-date-box { min-width: 70px; text-align: center; background: var(--green-dark); color: #fff; border-radius: 8px; padding: 0.75rem; }
.event-day { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; }
.event-month { display: block; font-size: 0.75rem; text-transform: uppercase; }
.event-meta { margin: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.campaign-card { background: var(--card); padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.progress-bar { height: 10px; background: #e9ecef; border-radius: 999px; overflow: hidden; margin: 0.75rem 0; }
.progress-fill { height: 100%; background: var(--gold); }
.bank-details { background: var(--bg); padding: 1rem; border-radius: 4px; font-size: 0.85rem; white-space: pre-wrap; }
.donate-form { display: grid; gap: 0.5rem; max-width: 360px; margin-top: 1rem; }
.donate-form input { padding: 0.5rem; border: 1px solid #c5d0db; border-radius: 4px; }
.exec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.exec-card { background: var(--bg); padding: 1.25rem; border-radius: 8px; text-align: center; }
.exec-card img { width: 90px; height: 90px; object-fit: contain; margin: 0 auto 0.75rem; border-radius: 50%; background: var(--card); padding: 4px; }
.exec-title { color: var(--green); font-weight: 700; margin: 0 0 0.5rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.video-embed iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; }
.product-placeholder { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--bg); }
.social-links a { margin-right: 1rem; font-weight: 700; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; width: auto; display: inline-block; }
.album-section { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 2rem; }

.quick-links-bar {
    background: var(--green);
    padding: 0.85rem 0;
    border-bottom: 2px solid var(--gold-dark);
}

.quick-links-inner {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quick-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
}

.quick-link:hover {
    background: var(--gold);
    color: var(--green-dark);
    border-color: var(--gold);
}

.news-tag {
    display: inline-block;
    background: var(--green);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.alt-bg {
    background: var(--panel);
}

.events-preview-grid {
    display: grid;
    gap: 1rem;
}

.event-preview-card {
    display: flex;
    gap: 1rem;
    background: var(--card);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.event-preview-date {
    min-width: 56px;
    text-align: center;
    background: var(--green-dark);
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

.event-preview-date span:first-child {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

/* Homepage calendar — DWU Learning Hub / Moodle style */
.moodle-hub-section {
    background: var(--surface);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.moodle-hub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
}

.moodle-block {
    background: var(--card);
    border: 1px solid var(--dwu-border);
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.moodle-block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #1177d1 0%, #0f6cbf 100%);
    color: #fff;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid #0a58a8;
}

.moodle-block-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.moodle-block-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.95;
}

.moodle-block-content {
    padding: 0.85rem;
}

.moodle-block-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.55;
}

.moodle-block-foot {
    margin: 1rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #ececec;
    font-size: 0.88rem;
}

.moodle-block-foot a,
.moodle-cal-foot a {
    color: #d67a00;
    font-weight: 600;
    text-decoration: none;
}

.moodle-block-foot a:hover,
.moodle-cal-foot a:hover {
    text-decoration: underline;
}

.moodle-hub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.moodle-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #333;
}

.moodle-cal-month {
    min-width: 8.5rem;
    text-align: center;
}

.moodle-cal-arrow {
    border: none;
    background: transparent;
    color: #e67e00;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
    font-family: inherit;
}

.moodle-cal-arrow:hover {
    color: #c66a00;
}

.moodle-cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.82rem;
}

.moodle-cal-table th {
    padding: 0.35rem 0.15rem;
    text-align: center;
    font-weight: 700;
    color: #555;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

.moodle-cal-table th.moodle-cal-weekend {
    color: #6b5b8a;
    background: #f3f0f7;
}

.moodle-cal-table td {
    border: 1px solid #ececec;
    padding: 0;
    height: 2rem;
    text-align: center;
    vertical-align: middle;
    background: var(--card);
}

.moodle-cal-day-btn {
    width: 100%;
    height: 100%;
    min-height: 2rem;
    border: none;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.15rem;
}

.moodle-cal-day-other {
    background: #fafafa;
}

.moodle-cal-day-other .moodle-cal-day-btn {
    color: #aaa;
}

.moodle-cal-day-weekend {
    background: #f3f0f7;
}

.moodle-cal-day-weekend .moodle-cal-day-btn {
    color: #5a4d72;
}

.moodle-cal-day-today .moodle-cal-day-btn {
    font-weight: 800;
    color: #0f6cbf;
}

.moodle-cal-day-event {
    background: #fde6d2;
}

.moodle-cal-day-event .moodle-cal-day-btn {
    color: #8a4b00;
    font-weight: 700;
}

.moodle-cal-day-holiday {
    background: #e6f4ea;
}

.moodle-cal-day-holiday .moodle-cal-day-btn {
    color: #1b5e20;
    font-weight: 700;
}

.moodle-cal-day-holiday.moodle-cal-day-event {
    background: linear-gradient(135deg, #e6f4ea 50%, #fde6d2 50%);
}

.moodle-cal-day-holiday.moodle-cal-day-weekend {
    background: #e8edf5;
}

.moodle-cal-day-selected {
    background: #f5c48a;
    box-shadow: inset 0 0 0 2px #e67e00;
}

.moodle-cal-day-btn:hover {
    background: rgba(15, 108, 191, 0.08);
}

.moodle-cal-foot {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: #666;
}

.moodle-cal-today {
    border: none;
    background: transparent;
    color: #0f6cbf;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.moodle-cal-today:hover {
    text-decoration: underline;
}

.moodle-cal-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.85rem;
    margin: 0.55rem 0 0;
    font-size: 0.72rem;
    color: #666;
}

.moodle-cal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.moodle-cal-legend-swatch {
    width: 0.75rem;
    height: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    flex-shrink: 0;
}

.moodle-cal-legend-weekend {
    background: #f3f0f7;
}

.moodle-cal-legend-holiday {
    background: #e6f4ea;
}

.moodle-cal-legend-event {
    background: #fde6d2;
}

.cal-sidebar-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #1177d1;
    font-weight: 700;
}

.cal-event-list {
    display: grid;
    gap: 0.75rem;
    max-height: 380px;
    overflow: auto;
}

.cal-event-item {
    padding: 0.75rem 0.85rem;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #1177d1;
    background: #fafafa;
}

.cal-holiday-item {
    border-left-color: #2e7d32;
    background: #f4fbf5;
}

.cal-event-item time {
    display: block;
    font-size: 0.76rem;
    color: #777;
    margin-bottom: 0.2rem;
}

.cal-event-item h4 {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
    color: #222;
}

.cal-event-meta {
    margin: 0 0 0.3rem;
    font-size: 0.8rem;
    color: #666;
}

.cal-event-item p {
    margin: 0 0 0.55rem;
    font-size: 0.85rem;
    color: #444;
}

.cal-event-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cal-event-link,
.moodle-event-register {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #d67a00;
}

.cal-event-link:hover,
.moodle-event-register:hover {
    text-decoration: underline;
}

.cal-empty {
    margin: 0;
    color: #777;
    font-size: 0.88rem;
    font-style: italic;
}

.winner-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin: 0 1rem 0.5rem 0;
}

.winner-profile { overflow: hidden; margin-bottom: 0.75rem; }

.donor-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
    font-size: 0.9rem;
}

.donor-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #eee;
}

.campaign-stats { font-size: 0.95rem; }

.checkbox-inline {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-outline:hover {
    background: var(--green);
    color: #fff;
}

.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-large {
        grid-row: auto;
    }

    .gallery-item-large img,
    .gallery-item img {
        min-height: 220px;
        height: 220px;
    }

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

    .split-section,
    .leader-section {
        grid-template-columns: 1fr;
    }

    .topnav {
        width: 100%;
        justify-content: center;
    }

    .moodle-hub-layout {
        grid-template-columns: 1fr;
    }

    .moodle-hub-sidebar {
        order: -1;
    }

    body.moodle-home .moodle-header-inner,
body.moodle-app .moodle-header-inner {
        padding: 0.85rem 1rem;
    }

    body.moodle-home .moodle-header-inner .row {
        align-items: flex-start;
    }

    body.moodle-home .moodle-login-col {
        height: auto !important;
        align-self: flex-start;
    }

    body.moodle-home .moodle-mobile-header-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    body.moodle-home .moodle-brand-wrap,
body.moodle-app .moodle-brand-wrap {
        flex-direction: row;
        align-items: center;
    }

    body.moodle-home .moodle-brand-title,
body.moodle-app .moodle-brand-title {
        font-size: 1.35rem;
    }

    body.moodle-home .moodle-hero-text,
    body.moodle-home .moodle-hero-center,
    body.moodle-home .moodle-hero-photo {
        min-height: 280px;
    }

    body.moodle-home .moodle-hero-text {
        padding: 1.5rem;
    }

    body.moodle-home .moodle-hero-text h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    body.moodle-home .moodle-brand-wrap,
body.moodle-app .moodle-brand-wrap {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    body.moodle-home .moodle-brand-logo,
body.moodle-app .moodle-brand-logo {
        width: 72px;
        height: 72px;
    }

    body.moodle-home .moodle-mobile-header-actions {
        width: 100%;
    }

    body.moodle-home .moodle-mobile-header-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

/* Moodle-style homepage (DWU e-Learning layout) */
body.moodle-home {
    background: transparent;
}

body.moodle-home .moodle-site-header,
body.moodle-app .moodle-site-header {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 8px, transparent 9px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.05) 0 6px, transparent 7px),
        linear-gradient(180deg, #006837 0%, #005c30 100%);
    color: #fff;
    border-bottom: 3px solid var(--gold);
}

body.moodle-home .moodle-header-inner,
body.moodle-app .moodle-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

body.moodle-home .moodle-brand-wrap,
body.moodle-app .moodle-brand-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

body.moodle-home .moodle-brand-logo,
body.moodle-app .moodle-brand-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: var(--card);
    border-radius: 50%;
    padding: 4px;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}

body.moodle-home .moodle-brand-tagline,
body.moodle-app .moodle-brand-tagline {
    margin: 0 0 0.25rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
    line-height: 1.35;
}

body.moodle-home .moodle-brand-title,
body.moodle-app .moodle-brand-title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.15;
    color: #fff;
}

body.moodle-home .moodle-header-welcome {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

body.moodle-home .moodle-header-login {
    max-width: 420px;
    margin-left: auto;
}

body.moodle-home .moodle-login-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: flex-start;
    height: auto;
}

body.moodle-home .moodle-login-field {
    flex: 0 0 auto;
    max-width: 200px;
    width: auto;
    height: auto;
    min-height: 0;
    align-self: flex-start;
}

body.moodle-home .moodle-login-field.input-group {
    align-items: stretch;
    height: auto;
    flex-wrap: nowrap;
}

body.moodle-home .moodle-login-field .form-control {
    border-color: #ccc;
    font-size: 0.85rem;
    height: calc(1.5em + 0.5rem + 2px);
    min-height: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    line-height: 1.5;
}

body.moodle-home .moodle-login-field .input-group-text {
    background: var(--white);
    border-color: #ccc;
    color: #666;
    padding: 0.25rem 0.5rem;
}

body.moodle-home .moodle-login-btn {
    font-weight: 700;
    min-width: 2.25rem;
}

body.moodle-home .moodle-login-links {
    margin-top: 0.4rem;
    text-align: right;
    font-size: 0.78rem;
}

body.moodle-home .moodle-login-links a {
    color: #ffb81c;
    text-decoration: none;
}

body.moodle-home .moodle-login-links a:hover {
    text-decoration: underline;
}

body.moodle-home .moodle-login-links span {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0.35rem;
}

body.moodle-home .moodle-main-nav,
body.moodle-app .moodle-main-nav {
    background: #333;
    padding: 0;
    border-bottom: 1px solid #222;
}

body.moodle-home .moodle-main-nav .navbar-nav .nav-link,
body.moodle-app .moodle-main-nav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 0;
}

body.moodle-home .moodle-main-nav .navbar-nav .nav-link:hover,
body.moodle-home .moodle-main-nav .navbar-nav .nav-link:focus,
body.moodle-app .moodle-main-nav .navbar-nav .nav-link:hover,
body.moodle-app .moodle-main-nav .navbar-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

body.moodle-home .moodle-main-nav .navbar-nav .nav-link.active,
body.moodle-app .moodle-main-nav .navbar-nav .nav-link.active {
    background: #337ab7;
    color: #fff;
}

body.moodle-home .moodle-main-nav .dropdown-menu,
body.moodle-app .moodle-main-nav .dropdown-menu {
    border-radius: 0;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.moodle-home .moodle-main-nav .dropdown-item,
body.moodle-app .moodle-main-nav .dropdown-item {
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
}

body.moodle-home .moodle-main-nav .dropdown-item:hover,
body.moodle-app .moodle-main-nav .dropdown-item:hover {
    background: #eef5f1;
    color: var(--green-dark);
}

body.moodle-home .moodle-nav-register {
    color: var(--gold) !important;
    font-weight: 700;
}

body.moodle-home .moodle-main-nav .newsletter-bell,
body.moodle-app .moodle-main-nav .newsletter-bell,
body.moodle-app .moodle-header-icons .newsletter-bell {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.moodle-home .moodle-main-nav .newsletter-bell:hover,
body.moodle-app .moodle-main-nav .newsletter-bell:hover,
body.moodle-app .moodle-header-icons .newsletter-bell:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--gold);
}

body.moodle-home .moodle-hero-banner {
    background: var(--card);
    border-bottom: 1px solid #ddd;
}

body.moodle-home .moodle-hero-text {
    background: var(--card);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
}

body.moodle-home .moodle-hero-text h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.15;
    color: #006837;
    font-weight: 800;
    text-transform: uppercase;
}

body.moodle-home .moodle-hero-divider {
    width: 48px;
    height: 4px;
    margin: 1rem 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: 2px;
}

body.moodle-home .moodle-hero-text blockquote {
    margin: 0;
    font-style: italic;
    color: #555;
    font-size: 0.98rem;
    line-height: 1.55;
}

body.moodle-home .moodle-hero-quote-author {
    margin: 0.35rem 0 1rem;
    font-size: 0.85rem;
    color: #888;
}

body.moodle-home .moodle-hero-intro {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.6;
}

body.moodle-home .moodle-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.moodle-home .moodle-hero-center {
    background: linear-gradient(135deg, #004225 0%, #006837 55%, #005c30 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    min-height: 360px;
    text-align: center;
}

body.moodle-home .moodle-hero-emblem {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.15);
}

body.moodle-home .moodle-hero-emblem img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

body.moodle-home .moodle-hero-center-text {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

body.moodle-home .moodle-hero-line-gold {
    color: var(--gold);
}

body.moodle-home .moodle-hero-line-white {
    color: #fff;
}

body.moodle-home .moodle-hero-photo {
    min-height: 360px;
    overflow: hidden;
    background: #222;
}

body.moodle-home .moodle-hero-photo img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

body.moodle-home .stats-grid {
    margin: 0;
}

body.moodle-home .stats-section .stat-box {
    height: auto;
}
