* {
    box-sizing: border-border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background-color: #f8f6f0;
    color: #2c2c2c;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #204e2f;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 3px solid #dab132;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    gap: 1.5rem;
}

.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 65px;
}

.logo {
    height: 60px !important;   
    width: auto !important;         
    max-width: 160px !important;   
    display: block !important;
    object-fit: contain !important; 
    margin: 0 !important;        
}

nav {
    flex-grow: 1;
}

.nav-links {
    display: flex;
    width: 100%;
    background-color: transparent;
}

.nav-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(197, 160, 89, 0.4); 
    color: #dab132;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    padding: 0.85rem 0.3rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:last-child {
    border-right: none;
}

.nav-btn:hover {
    background-color: rgba(197, 160, 89, 0.1);
    color: #dab132;
}

.nav-btn.active {
    background-color: rgba(197, 160, 89, 0.18);
    color: #ffffff;
    font-weight: 600;
}

.main-content-area {
    max-width: 1000px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e0d8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #204e2f;
    border-bottom: 1px solid #dab132;
    padding-bottom: 0.6rem;
    font-weight: normal;
    white-space: pre-line; 
}

.tab-content p {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333333;
    white-space: pre-line;   
    margin-bottom: 1.4rem;
}


.welcome-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0 !important;     
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-logo-large {
    max-width: 420px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: -45px auto -60px auto !important; 
    object-fit: contain !important;
    transform: scale(1.0);           
}

.welcome-hero h2 {
    margin-top: 0 !important;
    margin-bottom: 0.8rem !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    color: #204e2f;
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
}

.bible-quote {
    font-size: 1.35rem;
    font-style: italic;
    color: #204e2f;
    max-width: 700px;
    margin: 0.5rem auto 0 auto !important;
    line-height: 1.5;
}

.bible-quote cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    font-weight: bold;
    color: #dab132;
    margin-top: 0.5rem;
}

.upcoming-events-preview h3, .events-section h3 {
    font-size: 1.3rem;
    color: #204e2f;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', sans-serif;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.event-card {
    background-color: #fcfcf9;
    border: 1px solid #e2ddd3;
    border-left: 4px solid #c5a059;
    padding: 1.2rem;
    border-radius: 4px;
    font-family: 'Segoe UI', sans-serif;
}

.event-card h4 {
    color: #204e2f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-date {
    color: #c5a059;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.past-grid .event-card {
    opacity: 0.65;
    border-left-color: #94a3b8;
    background-color: #f1f5f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item-card {
    position: relative;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #f1f5f9;
    border: 1px solid #e2ddd3;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.gallery-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item-card .gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item-card:hover .gallery-thumb {
    transform: scale(1.05);
}

.gallery-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #ffffff;
    padding: 1.2rem 0.8rem 0.6rem 0.8rem;
    font-size: 0.9rem;
    pointer-events: none;
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delete-img-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.delete-img-btn:hover {
    background: rgb(185, 28, 28);
    transform: scale(1.05);
}

/* Lightbox Képnézegető Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}

.lightbox-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    display: block;
}

.lightbox-caption {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-top: 0.9rem;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    max-width: 800px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 3100;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    color: #dab132;
    transform: scale(1.1);
}

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

.admin-card {
    background: #fdfdfd;
    border: 1px solid #e5e0d8;
    padding: 1.5rem;
    border-radius: 4px;
}

.admin-card h3 {
    margin-bottom: 1rem;
    color: #204e2f;
    font-family: 'Segoe UI', sans-serif;
}

.floating-report-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    color: #666;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-auth-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #204e2f;
    color: #dab132;
    border: 1px solid #dab132;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 6px;
    max-width: 420px;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.auth-tab-btn.active {
    border-bottom: 2px solid #dab132;
    font-weight: bold;
    color: #204e2f;
}

.auth-info-text {
    font-size: 0.82rem;
    color: #e67e22;
    margin: 0.8rem 0;
}

.btn {
    display: inline-block;
    background-color: #204e2f;
    color: #ffffff;
    border: 1px solid #dab132;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 3px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
    font-family: 'Segoe UI', sans-serif;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}