html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--main-font);
    font-size: 16px; 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    overflow-x: hidden;
}

.tox-tinymce-aux {
    z-index: 9999999 !important;
}

#mediaPickerModal {
    z-index: 99999999 !important;
}

h1, h2, h3 { font-family: var(--main-font); color: var(--primary-color); margin-top: 0; word-break: break-word; }

.hidden { display: none !important; }

/* --- TELEPÍTŐ --- */
.install-body { font-family: Arial, sans-serif; background: #f7fafc; color: #2d3748; display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; padding: 1rem; }
.install-card { background: white; padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); max-width: 450px; width: 100%; border-top: 5px solid #1a365d; }
.install-card h1 { margin-top: 0; color: #1a365d; font-size: 1.6rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.install-desc { font-size: 0.95rem; color: #718096; margin-bottom: 1.5rem; }
.error { background: #fed7d7; color: #c53030; padding: 12px; border-radius: 4px; margin-bottom: 20px; font-size: 0.95rem; border-left: 4px solid #c53030; }

/* --- NAVIGÁCIÓ --- */
.navbar { background-color: var(--primary-color); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: relative; z-index: 20;}
.navbar-brand { color: var(--secondary-color); font-size: 1rem; font-weight: bold; text-decoration: none; font-family: var(--main-font); }
.navbar-hamburger { display: none; font-size: 1.8rem; color: var(--white); cursor: pointer; user-select: none; }
.navbar-menu { display: flex; align-items: center; }
.navbar-menu a { color: var(--white); text-decoration: none; margin-left: 1.5rem; font-family: var(--main-font); transition: color 0.3s; font-weight: bold; font-size: 1rem; }
.navbar-menu a:hover { color: var(--secondary-color); }
.navbar-admin-link { background: rgba(255,255,255,0.1); padding: 0.5rem 1rem; border-radius: 4px; }

/* --- ELRENDEZÉS (LAYOUT) --- */
.container { max-width: var(--max-width); margin: 2rem auto; padding: 0 1rem; flex: 1; width: 100%; box-sizing: border-box; }
.admin-container { max-width: 1200px !important; }

.grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid > * { min-width: 0; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .grid-2-1 { grid-template-columns: 1.8fr 1.2fr; }
    .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; }
}

/* --- KÁRTYÁK ÉS DOBOZOK --- */
.card { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 2rem; border-top: 4px solid var(--secondary-color); width: 100%; box-sizing: border-box; }
.card-edit { border-top: 4px solid var(--info); }
.setup-card { max-width: 400px; margin: 2rem auto; border-top: 4px solid var(--danger); }
.login-card { max-width: 400px; margin: 2rem auto; }
.card-subtitle { color: #718096; margin-top: -10px; }
.content { font-size: 1rem; line-height: 1.6; font-family: var(--main-font); }

/* --- HERO BANNER --- */
.hero-banner-full { width: 100%; background-size: cover; background-position: center; padding: 8rem 2rem; color: var(--white); text-align: center; margin-top: 0; margin-bottom: 2rem; background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--hero-bg); }
.hero-banner-solid { width: 100%; background-color: var(--primary-color); padding: 6rem 2rem; color: var(--white); text-align: center; margin-top: 0; margin-bottom: 2rem; }
.hero-banner-full h1, .hero-banner-solid h1 { color: var(--white); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); font-size: 3.5rem; margin-top: 0; }
.hero-banner-full p, .hero-banner-solid p { text-shadow: 1px 1px 3px rgba(0,0,0,0.6); font-size: 1.3rem; margin: 0; }

/* --- ESEMÉNY KÁRTYÁK --- */
.modern-event-card { display: flex; gap: 1.2rem; background: var(--white); padding: 1.2rem; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); margin-bottom: 1.2rem; border-left: 5px solid var(--primary-color); transition: transform 0.2s, box-shadow 0.2s; border-left-color: var(--event-color, var(--primary-color)); }
.modern-event-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.me-calendar-page { flex-shrink: 0; width: 65px; height: 70px; border: 2px solid var(--event-color, var(--primary-color)); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; text-align: center; background: #fff; }
.me-month { background: var(--event-color, var(--primary-color)); color: #fff; font-family: var(--main-font); font-weight: bold; font-size: 0.75rem; text-transform: uppercase; padding: 3px 0; letter-spacing: 1px; }
.me-day { font-size: 1.8rem; font-family: var(--main-font); font-weight: bold; color: var(--text-color); line-height: 1; margin: auto; }
.me-content { flex-grow: 1; min-width: 0; }
.me-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; flex-wrap: wrap; gap: 0.5rem; }
.me-time { font-family: var(--main-font); font-weight: bold; color: var(--text-color); font-size: 1.25rem; display: flex; align-items: center; gap: 4px; }
.me-church { font-family: var(--main-font); font-size: 1rem; padding: 0.2rem 0.4rem; border-radius: 5px; color: #fff; white-space: nowrap; background-color: var(--event-color, var(--primary-color)); }
.me-title { margin: 0 0 0.4rem 0; font-size: 1.15rem; color: var(--text-color); font-weight: bold; line-height: 1.3; word-break: break-word; }
.me-desc { margin: 0; font-size: 0.9rem; color: #718096; line-height: 1.5; }

/* --- HÍREK ÉS CÍMKÉK --- */
.news-tag { display: inline-block; color: var(--primary-color); font-size: 0.95rem; margin-right: 12px; margin-bottom: 5px; font-family: var(--main-font); font-style: italic; font-weight: bold; }
.tag-suggestion { display: inline-block; background: #edf2f7; color: #4a5568; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; margin-right: 5px; margin-top: 5px; cursor: pointer; border: 1px solid #cbd5e0; transition: background 0.2s; font-family: var(--main-font); }
.tag-suggestion:hover { background: #e2e8f0; border-color: #a0aec0; }
.tag-suggestions-container { margin-top: 8px; }
.news-tags-display { color: #718096; font-style: italic; }

/* --- TEMPLOM KÁRTYÁK ÉS SZABÁLYOK --- */
.church-info-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: 1px solid var(--border); border-top: 4px solid var(--card-color); display: flex; flex-direction: column; cursor: pointer; transition: transform 0.2s; }
.church-info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.15); }
.church-info-image { width: 100%; height: 200px; object-fit: cover; background-color: #e2e8f0; display: flex; align-items: center; justify-content: center; }
.church-info-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.church-info-title { margin-top: 0; font-size: 1.5rem; color: var(--card-color); margin-bottom: 10px; line-height: 1.2; }
.church-info-desc { color: #4a5568; font-size: 1rem; margin-bottom: 0; line-height: 1.5; }
.church-info-services { color: #4a5568; font-size: 0.95rem; line-height: 1.5; }

.recurring-rule-item { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #e2e8f0; }
.recurring-rule-title { color: var(--rule-color); font-weight: bold; font-size: 1.1rem; }
.recurring-rule-meta { font-size: 0.95rem; }
.recurring-rule-desc { margin-top: 4px; color: #4a5568; font-size: 0.95rem; line-height: 1.3; }

/* --- TEMPLOM MODAL --- */
.church-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 1050; padding: 1.5rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.church-modal-overlay.active { opacity: 1; visibility: visible; }
.church-modal-content { background: #fff; width: 100%; max-width: 900px; max-height: 90vh; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.95); transition: transform 0.3s ease; display: flex; flex-direction: row; }
.church-modal-overlay.active .church-modal-content { transform: scale(1); }
.church-modal-image-container { flex: 0 0 45%; background: #e2e8f0; position: relative; }
.church-modal-image { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; }
.church-modal-text { flex: 1; padding: 2.5rem; overflow-y: auto; }
.church-modal-close { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.1); width: 35px; height: 35px; border-radius: 50%; text-align: center; line-height: 35px; font-weight: bold; font-size: 1.2rem; cursor: pointer; z-index: 10; border: none; }
.church-modal-close:hover { background: var(--danger); color: #fff; }
.cm-title { margin-top:0; font-size:2.2rem; margin-bottom: 1rem; line-height: 1.2; }
.cm-desc { font-size: 1.1rem; color: #4a5568; line-height: 1.7; }
.cm-rules-container { margin-top: 1.5rem; }
.cm-rules { font-size: 1.05rem; }
.cm-details { margin-top: 1rem; font-size: 1.1rem; line-height: 1.6; color: #4a5568; }

/* --- MÉDIA KÁRTYÁK ÉS KIVÁLASZTÓ --- */
.media-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.2s; }
.media-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.media-img-container { height: 150px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.media-img-container img { width: 100%; height: 100%; object-fit: cover; }
.media-info { padding: 10px; font-size: 0.85rem; flex-grow: 1; display: flex; flex-direction: column; }
.media-filename { font-weight: bold; color: var(--text-color); margin-bottom: 5px; word-break: break-all; }
.media-meta { color: #718096; font-size: 0.75rem; margin-bottom: 10px; }
.media-actions { display: flex; gap: 5px; margin-top: auto; }

.image-selector-container { border: 1px dashed var(--border); padding: 15px; border-radius: 8px; background: #f8fafc; margin-bottom: 10px; }
.image-selector-preview { display: flex; align-items: center; justify-content: center; min-height: 150px; background: #edf2f7; border-radius: 4px; margin-bottom: 15px; overflow: hidden; border: 1px solid #e2e8f0; position: relative; }
.image-selector-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* --- MENÜ DRAG & DROP --- */
.menu-drag-list { list-style: none; padding: 0; margin: 0; }
.menu-drag-item { background: #fff; border: 1px solid var(--border); padding: 12px 15px; margin-bottom: 8px; border-radius: 4px; cursor: grab; display: flex; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); font-family: var(--main-font); }
.menu-drag-item:active { cursor: grabbing; }
.menu-drag-item.dragging { opacity: 0.5; background: #edf2f7; }
.menu-drag-handle { color: #a0aec0; margin-right: 15px; font-size: 1.2rem; display: inline-block; }
.menu-drag-url { margin-left: auto; color: #a0aec0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; font-size: 0.85rem;}
.menu-drag-title { font-size: 1.1rem; color: var(--primary-color); word-break: break-all; margin-right: 10px; font-weight: bold; }

/* --- ŰRLAPOK (FORMS) --- */
.form-group { margin-bottom: 1.5rem; width: 100%; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; font-family: var(--main-font); color: var(--text-color); }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 1rem; }
.form-control:focus { border-color: #3182ce; outline: none; box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2); }
textarea.form-control { min-height: 150px; resize: vertical; }
.textarea-sm { min-height: 80px !important; }
.textarea-xs { min-height: 60px !important; }
.checkbox-label { display: flex; align-items: center; font-weight: normal; font-size: 1rem; cursor: pointer; margin-bottom: 0.8rem;}
.checkbox-label input[type="checkbox"] { width: auto; margin-right: 10px; transform: scale(1.2); }

.color-picker-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-picker-input { height: 40px; width: 50px; flex-shrink: 0; padding: 0; cursor: pointer; border: 1px solid var(--border); border-radius: 4px; }
.color-input-lg { height: 40px; padding: 2px; }
.color-text-input { flex: 1; min-width: 100px; }

.captcha-group { background: #edf2f7; padding: 15px; border-radius: 4px; border-left: 4px solid var(--info); }
.captcha-question { font-size: 1.2rem; font-weight: bold; font-family: monospace; color: var(--primary-color); }
.captcha-input { width: 80px; margin-bottom: 0; }
.file-input-sm { width: auto; max-width: 150px; padding: 0.2rem; font-size: 0.8rem; }
.file-input-md { width: auto; max-width: 250px; padding: 0.3rem; }
.media-file-input { font-size: 0.9rem; max-width: 250px; }

/* --- GOMBOK --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-family: var(--main-font); font-weight: bold; text-align: center; transition: opacity 0.3s, background-color 0.3s; word-wrap: break-word; font-size: 1rem; box-sizing: border-box; line-height: 1.5; margin: 0; }
.btn:hover { opacity: 0.9; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-secondary { background-color: var(--secondary-color); color: var(--primary-color); }
.btn-cancel { background-color: #e2e8f0; color: #4a5568; }
.btn-cancel:hover { background-color: #cbd5e0; }
.btn-info { background-color: var(--info); color: var(--white); }
.btn-danger { background-color: var(--danger); color: var(--white); }

.btn-full { width: 100%; }
.btn-full-mt { width: 100%; margin-top: 1.5rem; }
.btn-login { width: 100%; margin-top: 10px; }
.btn-copy { flex: 1; padding: 0.3rem; }
.btn-icon { padding: 0.3rem; }
.btn-action-mb { margin-bottom: 5px; }

/* --- TÁBLÁZATOK --- */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; border-radius: 8px; display: block; }
table { width: 100%; border-collapse: collapse; font-family: var(--main-font); min-width: 500px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); word-break: break-word;}
th { background-color: #edf2f7; color: var(--primary-color); }

.dashboard-table { font-size: 0.85rem; width: 100%; }
.td-nowrap { white-space: nowrap; }
.p-half { padding: 0.5rem; }
.td-nowrap-phalf { white-space: nowrap; padding: 0.5rem; }
.td-mono-phalf { font-family: monospace; padding: 0.5rem; word-break: break-all; }

/* --- NAPTÁR --- */
.filter-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.btn-filter { padding: 0.5rem 1rem; border-radius: 20px; text-decoration: none; font-family: var(--main-font); font-size: 0.9rem; font-weight: bold; border: 1px solid var(--filter-color, var(--border)); transition: all 0.2s; background-color: var(--white); color: var(--text-color); }
.btn-filter.active { background-color: var(--filter-color); color: var(--white); border-color: var(--filter-color); }
.btn-filter.active-primary { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; background: var(--white); padding: 1rem; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.calendar-header-title { margin: 0; font-size: 1.5rem; color: var(--primary-color); }
.calendar-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; table-layout: fixed; min-width: 600px; }
.calendar-table th { background: var(--primary-color); color: var(--white); text-align: center; padding: 10px; border: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem; }
.calendar-table td { border: 1px solid var(--border); height: 120px; vertical-align: top; padding: 5px; position: relative; }
.calendar-table td.empty { background: #f8fafc; }
.calendar-table td.calendar-day:hover { background: #fdfdfd; }
.calendar-table td.calendar-day.today { background-color: #ebf8ff; border: 2px solid var(--info); }
.day-number { font-weight: bold; color: #718096; text-align: right; margin-bottom: 5px; font-size: 0.9rem; }
.cal-event { color: #fff; font-size: 0.75rem; padding: 4px 6px; border-radius: 3px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-family: var(--main-font); box-shadow: 0 1px 2px rgba(0,0,0,0.1); transition: opacity 0.2s; background-color: var(--event-bg); }

/* --- EGYEDI RENDSZER MODAL (ALERT/CONFIRM HELYETT) --- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal-z { z-index: 10000; }
.modal-content { width: 100%; max-width: 500px; position: relative; background: #fff; border-radius: 8px; }
.modal-close { position: absolute; top: -15px; right: -15px; background: #fff; color: var(--danger); width: 30px; height: 30px; border-radius: 50%; text-align: center; line-height: 30px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10; border: none; }

.sys-confirm-content { padding: 2rem; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.sys-confirm-title { margin-top: 0; color: var(--primary-color); font-size: 1.5rem; margin-bottom: 1rem; }
.sys-confirm-msg { font-size: 1.1rem; color: var(--text-color); margin-bottom: 2rem; }
.sys-confirm-actions { display: flex; justify-content: center; gap: 1rem; }

/* --- MÉDIA VÁLASZTÓ MODAL --- */
.media-modal-content { max-width: 800px; width: 95%; max-height: 90vh; display: flex; flex-direction: column; background: var(--bg-color); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.media-modal-header { padding: 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: white; }
.media-modal-close { position: static; transform: none; box-shadow: none; background: #f1f5f9; color: var(--text-color); }
.media-modal-body { padding: 1.5rem; overflow-y: auto; flex-grow: 1; background: white; }
.media-modal-empty { text-align: center; color: #a0aec0; padding: 2rem; }
.media-picker-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.media-picker-card { cursor: pointer; border: 2px solid transparent; }
.media-picker-card:hover { border-color: var(--info) !important; }
.media-picker-img-container { height: 100px; }
.media-picker-info { padding: 8px; font-size: 0.75rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-modal-footer { padding: 1rem; background: #f8fafc; text-align: right; border-top: 1px solid var(--border); }

/* --- PUBLIKUS OLDALAK, HÍREK --- */
.page-title { color: var(--primary-color); font-size: 2.5rem; margin-bottom: 2rem; }
.toc-card { background: var(--white); border-top: 4px solid var(--secondary-color); padding: 1.5rem; margin-bottom: 2rem; }
.toc-title { margin-top: 0; color: var(--primary-color); font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 15px; }
.toc-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.toc-item { margin-left: var(--indent); margin-bottom: 8px; }
.toc-link { color: var(--info); text-decoration: none; transition: color 0.2s; }
.toc-link:hover { color: var(--primary-color) !important; }

.public-header { text-align: center; margin-bottom: 2rem; }
.public-header-title { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.public-header-desc { font-size: 1.2rem; color: #4a5568; }
.search-details { margin-bottom: 2rem; padding: 1.5rem; }
.search-summary { cursor: pointer; font-weight: bold; font-size: 1.1rem; color: var(--primary-color); outline: none; }
.search-form { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.search-actions { display: flex; gap: 10px; margin-top: 1rem; }
.public-news-card { display: flex; flex-direction: column; }
.public-news-title { margin-top: 0; font-size: 1.6rem; margin-bottom: 0.5rem; }
.public-news-date { font-size: 1.1rem; color: var(--primary-color); font-weight: bold; margin-bottom: 0.5rem; }
.public-news-divider { border: 0; border-top: 1px solid var(--border); margin-bottom: 1.5rem; width: 100%; }
.public-news-tags-wrapper { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 12px; }

/* --- FŐOLDAL (HOME) --- */
.home-section { margin-bottom: 3rem; }
.home-section-title { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 1.5rem; }
.home-church-title { color: var(--primary-color); margin-bottom: 1.5rem; }
.empty-state-message { grid-column: 1 / -1; color: #718096; }
.home-news-card { margin-bottom: 0; padding: 1.5rem; display: flex; flex-direction: column; }
.home-news-title { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.3rem; }
.home-news-date { font-size: 1.05rem; color: var(--primary-color); font-weight: bold; margin-bottom: 0.5rem; }
.home-news-divider { border: 0; border-top: 1px solid var(--border); margin-bottom: 1rem; width: 100%; }
.home-news-tags { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 10px; }
.home-news-action { margin-top: 1rem; text-align: right; }
.home-news-link { color: var(--primary-color); font-weight: bold; text-decoration: none; font-size: 0.95rem; }

/* --- SEGÉDOSZTÁLYOK (UTILITY) --- */
.message { padding: 1rem; border-radius: 4px; font-family: var(--main-font); font-weight: bold; width: 100%; word-wrap: break-word; }
.message-success { background-color: #c6f6d5; color: #22543d; border-left: 4px solid var(--success); }
.message-error { background-color: #fed7d7; color: #822727; border-left: 4px solid var(--danger); }
.mb-2rem { margin-bottom: 2rem; }
.text-danger { color: var(--danger); }
.hint-text { color: #718096; font-weight: normal; }
.hint-text-block { color: #718096; display: block; margin-bottom: 2px; }
.form-hint { color: #718096; display: block; margin-top: 4px; font-size: 0.85rem; }
.form-hint-inline { font-weight: normal; color: #718096; }
.mb-10 { margin-bottom: 10px; }
.mb-5 { margin-bottom: 5px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-5 { margin-top: 5px; }
.mt-1rem { margin-top: 1rem; }
.mt-2rem { margin-top: 2rem; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1rem { margin-bottom: 1rem; }
.ml-10 { margin-left: 10px; }
.ml-auto { margin-left: auto; }
.w-100 { width: 100%; }
.flex-center { display: flex; align-items: center; }
.flex-center-gap { display: flex; align-items: center; gap: 10px; }
.flex-grow-1 { flex-grow: 1; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 1rem; }
.status-dot { padding: 0 4px; font-size: 1.1rem; }
.status-dot-active { color: var(--success); }
.status-dot-inactive { color: #a0aec0; }
.alert-info-box { background: #ebf8ff; border-left: 4px solid var(--info); padding: 10px; margin-bottom: 15px; font-size: 0.9rem; color: #2b6cb0; }
.events-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 10px; }
.select-filter { width: auto; padding: 0.4rem; font-size: 0.9rem; }
.badge-recurring { color: var(--info); font-size: 0.8rem; font-weight: bold; }
.badge-manual { color: #718096; font-size: 0.8rem; }
.church-preview-img { max-height: 100px; border-radius: 4px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.section-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.section-desc { font-size: 0.85rem; color: #718096; margin-top: 0; margin-bottom: 1.5rem; }
.add-rule-box { background: #f8fafc; padding: 15px; border: 1px dashed var(--info); border-radius: 4px; margin-bottom: 2rem; }
.add-rule-title { margin-top: 0; color: var(--primary-color); }
.rule-grid { gap: 1rem; margin-bottom: 1rem; }
.color-circle { width: 20px; height: 20px; border-radius: 50%; background-color: var(--circle-color); }
.fw-normal { font-weight: normal; }
.fw-bold { font-weight: bold; }
.badge-admin { background: var(--primary-color); color: white; padding: 3px 8px; border-radius: 12px; font-size: 0.8rem; }
.badge-editor { background: var(--info); color: white; padding: 3px 8px; border-radius: 12px; font-size: 0.8rem; }
.p-10 { padding: 10px; }
.preview-transparent { min-height: 50px; background: transparent; border: none; margin-bottom: 5px; }
.favicon-preview-img { max-width: 32px; max-height: 32px; border-radius: 4px; }
.empty-placeholder-sm { color: #a0aec0; font-size: 0.8rem; }
.empty-placeholder { color: #a0aec0; }
.or-text-sm { font-size: 0.8rem; color: #718096; }
.or-text { font-size: 0.9rem; color: #718096; font-weight: bold; }
.h3-mt { margin-top: 2rem; }
.hero-preview-img { max-width: 100%; max-height: 150px; border-radius: 4px; }
.fs-09 { font-size: 0.9rem; }
.h-100px { height: 100px; }
.text-decoration-none { text-decoration: none; }
.preview-img-js { max-width: 100%; max-height: 200px; border-radius: 4px; }
.empty-rules-text { color: #718096; font-style: italic; }
.rules-list { list-style: none; padding: 0; margin: 0; }
.rule-item { background: white; border: 1px solid var(--border); padding: 10px; margin-bottom: 8px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; }
.rule-item-content { flex-grow: 1; padding-right: 15px; }
.rule-item-title { color: var(--primary-color); font-weight: bold; }
.rule-item-meta { font-size: 0.9rem; }
.rule-item-desc { color: #718096; font-size: 0.85rem; margin-top: 4px; line-height: 1.3; }
.form-inline { display: inline; }
.status-badge { background-color: var(--badge-color); color: white; padding: 2px 4px; border-radius: 4px; font-size: 0.75rem; white-space: nowrap; }

/* Dashboard listák */
.stat-list { list-style: none; padding: 0; font-size: 1.1rem; margin-top: 1.5rem; }
.stat-item { margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.stat-item.border-none { border-bottom: none; }
.stat-value { float: right; color: var(--primary-color); font-weight: bold; }

/* Admin Navigáció */
.admin-nav { margin-bottom: 2rem; border-bottom: 2px solid var(--border); padding-bottom: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-nav a { text-decoration: none; color: var(--primary-color); font-weight: bold; }
.admin-nav a.active { color: var(--secondary-color); border-bottom: 2px solid var(--secondary-color); padding-bottom: 1rem; }

.content img, .content iframe, .content canvas, .content video { max-width: 100%; height: auto; border-radius: 4px; }
.site-footer { background-color: var(--primary-color); color: var(--white); text-align: center; padding: 1.5rem; font-family: var(--main-font); margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* --- Admin Modál és Kártya Közös Stílusok --- */
.admin-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.admin-header-flex h2 { margin: 0; }
.admin-modal-wide { max-width: 1100px !important; width: 95% !important; padding: 2.5rem !important; border-radius: 12px !important; max-height: 90vh !important; overflow-y: auto !important; box-sizing: border-box; }
.admin-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.admin-modal-title { margin: 0; color: var(--primary-color); font-size: 1.8rem; }
.admin-modal-close { background: transparent; border: none; font-size: 2.2rem; cursor: pointer; line-height: 1; padding: 0; color: #4a5568; transition: color 0.2s; }
.admin-modal-close:hover { color: var(--danger); }
.admin-form-actions { margin-top: 2rem; display: flex; justify-content: flex-end; gap: 1rem; }
.admin-filter-form { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; background: #f8fafc; padding: 10px 15px; border-radius: 6px; border: 1px solid var(--border); }
.admin-filter-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95rem; user-select: none; }
.select-filter { max-width: 250px; margin: 0; }
.gap-1 { gap: 1rem; }

/* Médiatár többes kijelölés effektje */
.media-selected-outline { outline: 4px solid var(--info); outline-offset: -4px; border-radius: 6px; transform: scale(0.95); transition: transform 0.2s, outline 0.2s;}

.content img { transition: transform 0.2s; }
.content img:hover { transform: scale(1.02); }

/* Mobil nézet finomhangolása */
@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.15rem; }
    .card { padding: 1.2rem; border-radius: 4px; margin-bottom: 1rem; }
    .grid { gap: 1rem; }
    .media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    th, td { padding: 0.6rem; font-size: 0.85rem; }
    .form-control { padding: 0.6rem; font-size: 0.95rem; }
    .btn { width: 100%; margin-bottom: 0.5rem; font-size: 0.95rem; padding: 0.6rem 1rem; }
    .calendar-table td { height: 80px; padding: 2px; }
    .cal-event { font-size: 0.65rem; padding: 2px; }
    .calendar-table th { font-size: 0.7rem; padding: 5px; }
    .hero-banner-full h1, .hero-banner-solid h1 { font-size: 2rem; }
    .modern-event-card { gap: 1rem; padding: 1rem; flex-direction: column; border-left-width: 4px; }
    .me-calendar-page { flex-direction: row; width: 100%; height: auto; border-radius: 4px; border-width: 1px; }
    .me-month { padding: 4px 8px; font-size: 0.8rem; }
    .me-day { font-size: 1rem; font-weight: normal; margin-left: 8px; color: var(--text-color); margin-right: auto; }
    .church-modal-content { flex-direction: column; }
    .church-modal-image-container { flex: none; height: 250px; }
    .church-modal-image { position: relative; }
    .church-modal-text { padding: 1.5rem; }
    .admin-nav { gap: 0.5rem; flex-direction: column; }
    .admin-nav a { padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.95rem;}
    .admin-nav a.active { border-bottom: 2px solid var(--secondary-color); }
    .image-selector-actions { flex-direction: column; align-items: stretch; }
    .navbar { padding: 1rem; }
    .navbar-hamburger { display: block; }
    .navbar-menu { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background-color: var(--primary-color); padding: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    .navbar-menu.active { display: flex; }
    .navbar-menu a { margin: 0.75rem 0; width: 100%; text-align: left; margin-left: 0; }
    .navbar-admin-link { width: 100%; text-align: center; margin-top: 1rem; }
}

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