/* NHWZ Events — Matching nhwz.ch KoPage theme */

:root {
    --color1: #292f36;
    --color2: #4ecdc4;
    --color1_25: #cacbcd;
    --color1_50: #94979b;
    --color1_75: #5f6368;
    --color1_125: #1f2329;
    --color2_25: #d3f3f0;
    --color2_50: #a7e6e2;
    --color2_125: #3b9a93;
    --font1: 'Montserrat', sans-serif;
    --font2: 'Hind', sans-serif;
}

body {
    font-family: var(--font2);
    color: rgba(0, 0, 0, 0.75);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font1);
    font-weight: 700;
    color: var(--color1_125);
}

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

/* ==================== HEADER ==================== */
#headerMenu {
    background: rgb(255, 255, 255);
    padding: 0 20px;
    box-shadow: 0 0.4375rem 1.8125rem 0 rgba(0, 0, 0, 0.09);
    position: relative;
    z-index: 10;
}

#headerMenu .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: inherit;
}

.logoHolder {
    white-space: nowrap;
}

.logoHolder h2 {
    font-size: 98px;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    min-height: 100px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.logoHolder img {
    max-height: 100px;
    height: 100px;
    min-height: 80px;
}

.logoHolder a {
    text-decoration: none;
}

/* Navigation */
.menuHolder {
    display: flex;
    flex-flow: row wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menuHolder li {
    display: inline-block;
    padding: 0;
}

.menuHolder li a {
    font-size: 15px;
    color: rgb(0, 0, 0);
    padding: 26px 10px;
    margin: 0;
    border-radius: 0;
    border: solid transparent;
    border-width: 0 0 3px 0;
    text-transform: uppercase;
    transition: 0.2s all;
    text-decoration: none;
    display: block;
    font-family: var(--font2);
    font-weight: 700;
}

.menuHolder li.active a,
.menuHolder li a:hover {
    color: var(--color1);
    border-color: var(--color2);
}

.menuHolder li.accent2 a {
    font-size: 15px;
    color: rgb(40, 167, 69);
    background: rgb(255, 255, 255);
    padding: 10px 15px;
    margin: 0 0 0 10px;
    border-radius: 4px;
    border: 1px solid rgb(40, 167, 69);
}

.menuHolder li.accent2 a:hover {
    color: var(--color2_125);
    background: var(--color2_25);
}

.menuHolder li.topmenuSocial > span {
    display: flex;
    gap: 0.5rem;
    padding: 0 10px;
}

.menuHolder li.topmenuSocial a {
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 5px;
    font-size: 1.1rem;
}

.mobileMenuToggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color1);
    cursor: pointer;
    padding: 10px;
}

/* ==================== HERO SECTION (GREEN) ==================== */
.event-hero-section {
    background: rgb(40, 167, 69);
    padding: 50px 0;
    color: white;
}

.event-hero-section h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.event-hero-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.event-hero-section .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

.event-hero-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.event-hero-section .breadcrumb-item a:hover {
    color: white;
}

.event-hero-section .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.event-hero-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== EVENT DETAIL PAGE ==================== */
.event-detail-section {
    padding: 2rem 0;
}

.event-detail-section .col-container {
    padding: 0.5rem 0;
}

.event-image img,
.event-image .event-media-frame {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 1 / 1.414;
    background: #fff;
}

.event-image img {
    object-fit: contain;
}

.event-image .event-media-frame {
    border: 0;
    display: block;
}

.event-image-fallback {
    background: #fff;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image-fallback img {
    max-width: 200px;
    width: 50%;
    opacity: 0.7;
    object-fit: contain;
}

.event-info {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.8;
}

.event-info strong {
    color: var(--color1_125);
}

.event-info div {
    margin-bottom: 0.25rem;
}

.btn-color1 {
    background-color: var(--color1);
    border-color: var(--color1);
    color: #fff;
    font-family: var(--font2);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s all;
}

.btn-color1:hover {
    background-color: var(--color1_125);
    border-color: var(--color1_125);
    color: #fff;
}

/* ==================== PROGRAM GRID VIEW ==================== */
.program-intro {
    padding: 2rem 0;
}

.program-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.program-intro p {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.kimgRatio {
    overflow: hidden;
    border-radius: 8px;
}

.kimgRatio img {
    width: 100%;
    object-fit: cover;
}

.program-section {
    padding: 1.5rem 0 1rem;
}

.program-section h4 {
    font-size: 1rem;
    text-align: left;
}

/* Green day banner (matching hero style) */
.day-banner {
    background: rgb(40, 167, 69);
    padding: 50px 0;
    color: white;
}

.day-banner h1 {
    color: white;
    font-size: 2.2rem;
    margin: 0;
}

/* Jump-to buttons */
.btn-color2 {
    background-color: var(--color2);
    border-color: var(--color2);
    color: #fff;
    font-family: var(--font2);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s all;
}

.btn-color2:hover {
    background-color: var(--color2_125);
    border-color: var(--color2_125);
    color: #fff;
}

/* Event card wrapper */
.event-card-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 12px;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card-wrapper:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
}

/* Event card image — fixed aspect ratio keeps all cards aligned */
.kimgRatio1 {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
}

.kimgRatio1 img,
.kimgRatio1 .event-media-frame {
    width: 100%;
    height: 100%;
}

.kimgRatio1 img {
    object-fit: contain;
}

.kimgRatio1 .event-media-frame {
    border: 0;
    display: block;
    background: #fff;
}

.kimgRatio1 .event-media-frame-card {
    pointer-events: none;
}

.kimgRatio1 img.nhwz-fallback-logo {
    object-fit: contain;
    background: #fff;
}

/* Event card metadata */
.event-card-meta-grid {
    text-align: left;
    font-size: 0.95rem;
    color: var(--color1_125);
    line-height: 1.8;
}

.event-card-past {
    opacity: 0.65;
}

.event-card-past:hover {
    opacity: 1;
}

.event-title-link {
    color: var(--color1_125);
    text-decoration: none;
}

.event-title-link:hover {
    color: var(--color2_125);
}

.event-read-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color1);
    text-decoration: underline;
}

.event-read-more:hover {
    color: var(--color2_125);
}

/* ==================== FULL-DAY EVENT BANNER ==================== */
.full-day-event-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 5px solid rgb(40, 167, 69);
}

.full-day-event-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.full-day-badge {
    display: inline-block;
    background: rgb(40, 167, 69);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font1);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.full-day-event-title {
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
    color: var(--color1_125);
}

.full-day-event-description {
    font-size: 1rem;
    color: var(--color1_75);
    margin-bottom: 0.6rem;
    max-width: 750px;
}

.full-day-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    font-size: 0.95rem;
    color: var(--color1_125);
    margin-bottom: 0.25rem;
}

/* ==================== PROGRAM POSTER LIGHTBOX ==================== */
.program-poster-thumb {
    cursor: zoom-in;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.program-poster-thumb:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.22);
    transform: scale(1.01);
}

.program-poster-hint {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--color1_50);
    font-style: italic;
}

.program-poster-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 1.5rem;
}

.program-poster-overlay.active {
    display: flex;
}

.program-poster-overlay img {
    max-width: 95vw;
    max-height: 93vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.program-poster-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s;
    padding: 0;
}

.program-poster-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .program-poster-thumb {
        max-width: 90%;
    }
}

/* ==================== FOOTER ==================== */
.nhwz-footer {
    background: rgb(204, 67, 36);
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
}

.footer-separator {
    background: rgb(222, 222, 222);
    width: 100%;
    height: 2px;
    margin: 10px 0;
}

.footer-logo {
    max-height: 80px;
}

.footer-company {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font2);
}

.footer-company strong {
    color: rgba(255, 255, 255, 0.9);
}

.footer-company a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.footer-company a:hover {
    color: #fff;
}

.footer-social {
    margin: 1rem 0;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
    transition: 0.2s color;
    text-decoration: none;
}

.footer-social a:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .mobileMenuToggle {
        display: block;
    }

    .menuHolder {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .menuHolder.mobile-open {
        display: flex;
    }

    .menuHolder li {
        width: 100%;
    }

    .menuHolder li a {
        padding: 12px 10px;
        border-width: 0;
    }

    .menuHolder li.accent2 a {
        margin: 5px 0;
    }

    #headerMenu .container {
        flex-wrap: wrap;
    }

    .logoHolder img {
        max-height: 60px;
        height: 60px;
        min-height: 60px;
    }

    .logoHolder h2 {
        min-height: 60px;
    }
}

@media (max-width: 768px) {
    .event-hero-section h1 {
        font-size: 1.6rem;
    }

    .event-card-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .day-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}
