/* --- ZÁKLADNÝ RESET A TYPOGRAFIA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #1a202c;
    background-color: #f7fafc;
    font-size: 18px;
    padding-top: 70px;
}

/* --- NAVIGAČNÉ MENU (Fixné hore) --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1A365D;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}
.logo {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.nav-links a:hover {
    background-color: #2b6cb0;
    color: white;
}
.nav-links a.btn-oznamy {
    background-color: #D69E2E;
    color: #1A365D;
    font-weight: bold;
}
.nav-links a.btn-oznamy:hover {
    background-color: #ecc94b;
}

/* --- HLAVIČKA S OBRÁZKOM (Hero Sekcia) --- Opravený názov obrázka */
.hero {
    position: relative;
    height: 60vh;
    min-height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('../img/kostol.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.1rem;
    color: #f7fafc;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* --- HLAVNÝ OBSAH --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    scroll-margin-top: 90px;
}
section h2 {
    color: #1A365D;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    font-size: 1.7rem;
}
section h3 {
    color: #2b6cb0;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
section p {
    margin-bottom: 1rem;
}

/* --- ŠPECIÁLNE ROZLOŽENIE PRE BOČNÉ BLOKY --- */
.filialka-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.filialka-text {
    flex: 2;
}
.filialka-image-container {
    flex: 1;
    text-align: center;
}
.filialka-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.contact-info {
    list-style: none;
    margin-top: 1rem;
}
.contact-info li {
    margin-bottom: 0.5rem;
}
.contact-info a {
    color: #2b6cb0;
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}

/* --- ŠTÝLOVANIE TLAČIDIEL --- */
.pdf-button, .btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, transform 0.1s;
    font-size: 0.95rem;
}

.pdf-button {
    background-color: #2b6cb0;
    color: white !important;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.pdf-button:hover {
    background-color: #1a365d;
    text-decoration: none;
}

.btn-primary {
    background-color: #2b6cb0;
    color: white !important;
}
.btn-primary:hover {
    background-color: #1a365d;
    text-decoration: none;
}

.btn-secondary {
    background-color: #4a5568;
    color: white !important;
}
.btn-secondary:hover {
    background-color: #2d3748;
    text-decoration: none;
}

.pdf-button:active, .btn-primary:active, .btn-secondary:active {
    transform: scale(0.98);
}

.skupina-tlacidiel {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 1rem 0;
    justify-content: flex-start;
}

/* --- ŠTÝLOVANIE SEKCE KONTAKT A PODPORA (Nový moderný layout) --- */
.kontakt-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}
.kontakt-fara, .kontakt-podpora {
    flex: 1 1 450px;
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.kontakt-fara h3, .kontakt-podpora h3 {
    margin-top: 0 !important;
    margin-bottom: 1rem;
    color: #1A365D;
}
.podpora-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
/* Kontajner, ktorý spája IBAN box a QR kód */
.bankove-spojenie {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.25rem;
}
/* Box s IBAN-om */
.iban-box {
    flex: 2 1 280px; /* Rozpätie a minimálny základ pre šírku */
    background: #ffffff;
    padding: 1rem;
    border-left: 4px solid #2b6cb0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Samotné číslo IBAN */
.iban-cislo {
    display: block;
    margin-top: 0.25rem;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2d3748;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Zákaz zalomenia textu */
	overflow-x: auto;
}

/* Obal pre QR kód a text pod ním */
.qr-box {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Zväčšený obrázok QR kódu */
.qr-kod {
    width: 100%;
    max-width: 140px; /* Zväčšené zo 110px na 140px */
    height: auto;
    border: 1px solid #e2e8f0;
    padding: 6px;
    background: #ffffff;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

/* Malý popis pod QR kódom */
.qr-box small {
    font-size: 0.75rem;
    color: #718096;
}

/* --- PÄTA STRÁNKY --- */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #718096;
    background-color: white;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
}
footer a:hover {
    text-decoration: underline !important;
}

/* --- KOMPONENTY PRE PODSTRÁNKY --- */
.pamiatky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.pamiatka-karta {
    background-color: #f7fafc;
    border-left: 4px solid #2b6cb0;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pamiatka-karta h3 {
    margin-top: 0;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.tabulka-responsivna {
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 6px;
}
.knazi-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    text-align: left;
    font-size: 0.95rem;
}
.knazi-table th {
    background-color: #1A365D;
    color: #ffffff;
    padding: 10px 15px;
    font-weight: 600;
}
.knazi-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}
.knazi-table tr:nth-child(even) {
    background-color: #f7fafc;
}
.knazi-table tr:hover {
    background-color: #edf2f7;
}

.knazi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 3rem 0;
}
.knaz-karta {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #2b6cb0;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.knaz-karta h3 {
    margin-top: 0 !important;
    color: #1A365D;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.knaz-roky {
    display: inline-block;
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 0.2rem 0.6rem;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.knaz-karta p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 0;
}
.knaz-karta-hlavna {
    border-top-color: #D69E2E;
}

.hero-subpage {
    min-height: 40vh;
}
.sekcia-predel {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}
.zdroj-publikacia {
    margin-top: 3rem;
    color: #718096;
    font-size: 0.85rem;
    text-align: center;
}
.gdpr-info {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #718096;
}
.gdpr-info a {
    color: #2b6cb0;
    text-decoration: none;
}
.gdpr-info a:hover {
    text-decoration: underline;
}
.zdroj-publikacia-vlavo {
    margin-top: 1rem;
    color: #718096;
    font-size: 0.85rem;
}
.odsadenie-karty {
    margin-bottom: 2rem;
}
.sekcia-odsadenie {
    margin-top: 2rem;
}
.zdroj-evidencia {
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
    margin-top: 1rem;
}

/* --- RESPONSÍVNY DIZAJN --- */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    section {
        padding: 1.5rem;
        scroll-margin-top: 120px;
    }
    .nav-container {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }
    .nav-links {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    .hero {
        height: 40vh;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .filialka-layout, .kontakt-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .filialka-image-container {
        width: 100%;
        order: 2;
    }
    .filialka-text {
        order: 1;
    }
    .bankove-spojenie {
        flex-direction: column;
        align-items: stretch;
    }
	.knazi-table {
    font-size: 0.85rem;
	}
}

@media (max-width: 480px) {
    .skupina-tlacidiel {
        flex-direction: column;
        gap: 0.75rem;
    }
    .btn-primary, .btn-secondary {
        text-align: center;
        width: 100%;
    }
}