/* ===== CSS Variables ===== */
:root {
    --ge-primary: #8bc34a;
    --ge-primary-dark: #689f38;
    --ge-primary-light: #c5e1a5;
    --ge-bg: #f1f8e9;
    --ge-bg-card: #ffffff;
    --ge-text: #1b5e20;
    --ge-text-light: #555;
    --ge-border: #e0e0e0;
    --ge-shadow: 0 4px 20px rgba(139, 195, 74, 0.12);
    --ge-radius: 16px;
    --ge-transition: all 0.25s ease;
}

/* ===== Base Reset ===== */
.ge-event-card *, .ge-modal * { box-sizing: border-box; }

/* ===== Header ===== */
.ge-site-header {
    background: var(--ge-bg-card);
    border-bottom: 1px solid var(--ge-border);
    padding: 12px 0;
    margin-bottom: 32px;
}
.ge-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.ge-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}
.ge-header-contacts {
    display: flex;
    gap: 15px;
    align-items: center;
}
.ge-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ge-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    transition: var(--ge-transition);
    background: var(--ge-bg);
}
.ge-contact-link:hover {
    background: var(--ge-primary);
    color: #fff;
    transform: translateY(-1px);
}
.ge-contact-link svg { flex-shrink: 0; }

/* ===== Sections ===== */
.ge-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ge-text);
    margin: 40px 0 20px;
    padding-left: 12px;
    border-left: 4px solid var(--ge-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.ge-empty-state {
    text-align: center;
    color: var(--ge-text-light);
    font-style: italic;
    padding: 40px 20px;
    background: var(--ge-bg);
    border-radius: var(--ge-radius);
}

/* ===== Events Grid ===== */
.ge-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== Event Card ===== */
.ge-event-card {
    background: var(--ge-bg-card);
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--ge-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ge-event-card:hover,
.ge-event-card:focus {
    box-shadow: var(--ge-shadow);
    border-color: var(--ge-primary);
    transform: translateY(-3px);
    outline: none;
}
.ge-event-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--ge-bg);
}
.ge-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ge-event-card:hover .ge-event-thumb img { transform: scale(1.03); }

.ge-event-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ge-event-date-badge {
    background: var(--ge-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    width: fit-content;
}
.ge-event-time {
    font-weight: 400;
    opacity: 0.95;
    font-size: 0.9em;
}
.ge-event-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ge-text);
    margin: 0 0 14px 0;
    line-height: 1.3;
}
.ge-event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    margin-top: auto;
}
.ge-audience-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ge-tag {
    background: var(--ge-bg);
    color: var(--ge-text);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ge-price-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ge-price-badge.free {
    background: var(--ge-bg);
    color: var(--ge-primary-dark);
}
.ge-price-badge.paid {
    background: #fff3e0;
    color: #e65100;
}
.ge-btn-more {
    background: var(--ge-primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--ge-transition);
    width: 100%;
    margin-top: auto;
}
.ge-btn-more:hover {
    background: var(--ge-primary-dark);
    transform: translateY(-1px);
}

/* ===== Modal ===== */
.ge-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.ge-modal.active { display: flex; }
.ge-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(27, 94, 32, 0.85);
    backdrop-filter: blur(4px);
}
.ge-modal-dialog {
    position: relative;
    background: var(--ge-bg-card);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    z-index: 1;
    animation: geModalIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
@keyframes geModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ge-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 32px;
    color: var(--ge-text);
    background: none;
    border: none;
    cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--ge-transition);
    z-index: 2;
}
.ge-modal-close:hover {
    background: var(--ge-bg);
    color: var(--ge-primary-dark);
}

.ge-modal-header {
    padding: 24px 30px 16px;
    border-bottom: 1px solid var(--ge-border);
}
.ge-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ge-text);
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.ge-modal-datetime {
    color: var(--ge-text-light);
    font-size: 0.95rem;
    margin: 0;
}

.ge-modal-content { padding: 24px 30px 30px; }

.ge-modal-hero {
    margin: 0 0 24px 0;
    border-radius: 14px;
    overflow: hidden;
}
.ge-modal-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.ge-modal-media { margin-bottom: 24px; }
.ge-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.ge-gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid transparent;
    transition: var(--ge-transition);
}
.ge-gallery-item:hover { border-color: var(--ge-primary); }
.ge-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.ge-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.ge-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.ge-modal-description {
    color: var(--ge-text-light);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.ge-modal-description p { margin: 0 0 12px 0; }
.ge-modal-description a { color: var(--ge-primary-dark); text-decoration: none; }
.ge-modal-description a:hover { text-decoration: underline; }

.ge-modal-contacts h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ge-text);
    margin: 0 0 12px 0;
}
.ge-contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ge-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--ge-transition);
    background: var(--ge-bg);
    color: var(--ge-text);
}
.ge-contact-btn:hover {
    background: var(--ge-primary);
    color: #fff;
    transform: translateY(-1px);
}
.ge-contact-btn svg { flex-shrink: 0; }
.ge-no-contacts {
    color: var(--ge-text-light);
    font-style: italic;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .ge-header-inner { flex-direction: column; text-align: center; }
    .ge-events-grid { grid-template-columns: 1fr; }
    .ge-event-meta { flex-direction: column; align-items: flex-start; }
    .ge-modal-dialog { margin: 10px; max-height: calc(100vh - 20px); }
    .ge-modal-header, .ge-modal-content { padding: 20px; }
    .ge-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Accessibility ===== */
.ge-event-card:focus-visible,
.ge-btn-more:focus-visible,
.ge-modal-close:focus-visible {
    outline: 2px solid var(--ge-primary);
    outline-offset: 2px;
}
.ge-modal[aria-hidden="true"] { display: none !important; }

/* ===== Lightbox (simple) ===== */
.ge-lightbox {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.ge-lightbox.active { display: flex; }
.ge-lightbox img {
    max-width: 90vw; max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.ge-lightbox-close {
    position: absolute; top: 20px; right: 25px;
    color: #fff; font-size: 36px;
    background: none; border: none;
    cursor: pointer;
}