* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fdfcf8;
}

a {
    text-decoration: none;
    color: #333;
}

header {
    position: relative;
    min-height: 420px;
    padding: 60px 20px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    background-color: #ffffff;
}

header.loaded {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url("img/header-bg.webp") center / cover no-repeat;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1;
    animation: revealDown 1.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

header * {
    position: relative;
    z-index: 2;
}

@keyframes revealDown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

header h1 {
    font-size: 2.6em;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

header p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.95;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    position: relative;
    padding: 8px 12px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

nav a:hover {
    color: #f0e6d2;
}

nav a:hover::after {
    transform: scaleX(1);
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }

    nav {
        margin-top: 20px;
    }
}

section {
    padding: 40px 20px 0px 20px;
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    margin-bottom: 20px;
    color: #444;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

h3 {
    margin-top: 20px;
}

ul {
    padding-left: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background: #eee;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.gallery img {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

footer {
    background: #f5f3ee;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

.section-text {
    margin-bottom: 20px;
}

.odkaz-odkaz {
    color: #3a5f7d;
    font-weight: bold;
    cursor: pointer;
}

.odkaz-odkaz:hover {
    text-decoration: underline;
}

.icon {
    border-radius: 25%;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.icon-item {
    background: #fff;
    border-radius: 10px;
    padding: 12px 10px 14px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.icon-item img {
    width: 65%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
}

.icon-item span {
    display: block;
    font-size: 0.85em;
    color: #555;
    line-height: 1.3;
}

.icon-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
}

@media (max-width: 768px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

#aktualni table {
    width: 100%;
    border-collapse: collapse;
}

#aktualni th,
#aktualni td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#aktualni th {
    background: #eee;
    font-weight: bold;
}

#aktualni td a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

#aktualni td a:hover {
    text-decoration: underline;
    color: #222;
}

#aktualni .icon {
    width: 16px;
    height: 16px;
}

.no-mass {
    color: #b22222;
    font-weight: bold;
}

#scrollToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background: var(--glass-bg);
    color: #333;
    cursor: pointer;
    padding: 15px;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, opacity 0.3s;
}

#scrollToTop:hover {
    transform: scale(1.15);
    background: #3a5f7d;
    color: #fff;
}

.arrow {
    font-size: 20px;
    font-weight: bold;
}

/* Hlavní sekce aktualit */
#aktuality {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

/* Zvýrazněný box pro výročí */
.vyroci-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    border: 2px solid #3a5f7d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    align-items: center;
}

.vyroci-obsah {
    flex: 1;
    min-width: 280px;
}

.vyroci-foto {
    flex: 1;
    min-width: 260px;
    text-align: center;
}

.vyroci-foto img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Štítek (Badge) */
.badge {
    display: inline-block;
    background-color: #3a5f7d;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.vyroci-box h3 {
    color: #2c2c2c;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.vyroci-box p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Interaktivní tlačítko */
.vyroci-akce {
    margin-top: 20px;
}


.btn-slavnostni {
    display: inline-block;
    background: var(--glass-bg);
    /* Skleněný efekt podle vašeho scrollToTop */
    color: #333;
    /* Tmavší text pro dobrou čitelnost na světlém sklu */
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Jemný okraj pro zvýraznění skla */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /* Měkčí stín odpovídající sklu */
}


.btn-slavnostni:hover {
    background-color: #3a5f7d;
    transform: translateY(-2px);
    /* Interaktivní efekt nadzvednutí myší */
    color: #fff;
}

/* Úprava zbytku aktualit */
.ostatni-aktuality h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 20px;
    color: #333;
}

.aktualita-item {
    margin-bottom: 25px;
}

.aktualita-item h4 {
    margin-bottom: 8px;
    color: #4a4a4a;
}

.faq {
    max-width: 600px;
    margin: 2rem auto;
    font-family: sans-serif;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;

    max-height: 60px;
    transition: max-height 0.4s ease;
}

.faq-item summary {
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    background: #f7f7f7;
}

.faq-item summary:hover {
    background: #eee;
}

.arrow {
    transition: transform 0.3s ease;
}

.faq-item[open] .arrow {
    transform: rotate(180deg);
}

.faq-item[open] {
    max-height: 2000px;
}

.faq-item p {
    padding: 16px;
    margin: 0;
    line-height: 1.5;
}

.answer {
    padding: 16px;
    border-radius: 0 0 8px 8px;
    text-align: justify;
}

/* překrytí modlitby */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 60px 20px;

}

.prayer-box {
    background: #fdfcf8;
    max-width: 600px;
    width: 90%;
    max-height: 100vh;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    line-height: 1.7;

    overflow-y: auto;

    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.overlay.active {
    display: flex;
    opacity: 1;
}

.overlay.active .prayer-box {
    transform: scale(1);
}

.prayer-box h3 {
    margin-bottom: 20px;
    color: #444;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: #777;
}

.close-btn:hover {
    color: #000;
}

.open-prayer {
    color: #3a5f7d;
    font-weight: bold;
    cursor: pointer;
}

.open-prayer:hover {
    text-decoration: underline;
}

.prayer-content {
    display: none;
}

.prayer-content.active {
    display: block;
}