/*
Theme Name: Baptisté Jablonec Theme
Theme URI: https://baptistejablonec.cz/
Description: Moderní, rychlá a bezpečná šablona pro sbor Baptistů v Jablonci nad Nisou.
Version: 2.1.0
Author: Jakub Marcinka
Author URI: https://jmarcinka.cz/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baptiste-jablonec
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary-red: #BF0001;
    --light-red: #DD100E;
    --dark-gray: #383535;
    --darker-gray: #262525;
    --black: #000000;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--black);
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: var(--transition);
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Header */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

header.site-header.is-scrolled {
    padding: 0.5rem 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-link img {
    height: 50px;
    width: auto;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--dark-gray);
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
    padding: 1.5rem 0;
}

/* Skrytí podmenu */
.main-nav .sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    min-width: 260px;
    z-index: 9999;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    border-top: 3px solid var(--primary-red);
}

/* Zobrazení při hoveru */
.main-nav li:hover > .sub-menu {
    display: block !important;
}

/* 3. úroveň (do strany) */
.main-nav .sub-menu .sub-menu {
    top: -0.5rem;
    left: 100%;
}

.main-nav .sub-menu a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid #f9f9f9;
}

.main-nav .sub-menu li:last-child a {
    border-bottom: none;
}

.main-nav .sub-menu a:hover {
    background: var(--off-white);
    color: var(--primary-red);
}

/* Indikátor šipky */
.main-nav .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.7rem;
    opacity: 0.7;
}

.main-nav .sub-menu .menu-item-has-children > a::after {
    content: '\f105';
}


.header-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons-header {
    display: flex;
    gap: 1rem;
}

.social-icons-header a {
    color: var(--dark-gray);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icons-header a:hover {
    color: var(--primary-red);
}

.search-container {
    background: var(--off-white);
    border-radius: 50px;
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    min-width: 180px;
}

.search-container form {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0;
}

.search-container input[type="search"] {
    border: none;
    background: none;
    outline: none;
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    min-width: 80px;
    -webkit-appearance: none;
    appearance: none;
}

.btn-search-header {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-search-header:hover {
    background: var(--light-red);
}

/* ===================================
   FRONT PAGE
   =================================== */

/* Hero Section */
.home-hero {
    height: 85vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 80px; /* offset header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-schedule {
    display: inline-flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 3rem;
    background: rgba(0,0,0,0.4);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-schedule-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 1.2rem;
    color: #fff;
}

.hero-schedule-item i {
    color: var(--primary-red);
    font-size: 1.3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-hero-solid {
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(191, 0, 1, 0.3);
}

.btn-hero-solid:hover {
    background: var(--light-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(191, 0, 1, 0.4);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--white);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}



/* Overlapping Cards */
.hero-cards-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding: 0 5%;
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hero-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease;
    overflow: hidden; /* Důležité pro ořezání obrázku nahoře */
    position: relative;
}

.hero-card:has(.card-top-img) {
    padding-top: 0;
}

.card-top-img {
    width: calc(100% + 5rem);
    margin: 0 -2.5rem 2rem -2.5rem;
    height: 180px;
    object-fit: cover;
    display: block;
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.hero-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.schedule-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.btn-solid {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.3s ease;
}

.btn-solid:hover {
    background: var(--light-red);
    color: var(--white);
}

.btn-solid.dark {
    background: var(--dark-red);
}

.btn-solid.dark:hover {
    background: #8b0000;
    color: var(--white);
}

/* Verses Slider Section */
.verses-slider-section {
    padding: 6rem 5%;
    background: var(--white);
    text-align: center;
}

@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr !important;
    }
    .main-video-box {
        grid-column: span 1 !important;
    }
}

.verses-slider {
    background-color: #9f8c81; /* Brown color from screenshot */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding-bottom: 2rem; /* space for pagination */
}

.verse-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    color: var(--white);
}

.verse-content h2, .verse-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.verse-content p {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.verse-ref {
    font-size: 1.2rem;
    font-weight: 700;
}

.verses-slider .swiper-pagination-bullet {
    background: #555;
    opacity: 0.5;
}

.verses-slider .swiper-pagination-bullet-active {
    background: var(--primary-red);
    opacity: 1;
}

/* Čemu Věříme Section */
.beliefs-section {
    background: linear-gradient(135deg, #f7cece 0%, #f0dada 100%);
    position: relative;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.beliefs-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5% 0;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--black);
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .beliefs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .beliefs-grid {
        grid-template-columns: 1fr;
    }
}

.belief-item {
    text-align: center;
}

.belief-item i {
    font-size: 2.5rem;
    color: var(--primary-red) !important;
    display: block;
    margin-bottom: 1.5rem;
}

.belief-item h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--black);
}

.beliefs-section .beliefs-grid .belief-item h4.red-text {
    color: #BF0001 !important;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.belief-item p {
    font-size: 0.9rem;
    color: var(--black);
    line-height: 1.6;
}

.beliefs-action {
    margin-top: 2rem;
}

.btn-text-white {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.btn-text-white:hover {
    opacity: 0.8;
}

/* History & Building Section */
.history-building-section {
    padding: 6rem 5%;
    background: var(--white);
}

.history-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
    .history-image {
        grid-row: 1; /* Put image on top for mobile */
    }
}

.history-text h2, .building-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.history-text p, .building-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.history-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Meetings Section */
.meetings-section {
    padding: 6rem 5%;
    background: var(--white);
    border-top: 1px solid #eee;
}

.meetings-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

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

.meetings-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.meetings-info > p {
    margin-bottom: 2rem;
    color: #555;
}

/* Contact Section */
.contact-section {
    padding: 6rem 5%;
    background: var(--white);
    border-top: 1px solid #eee;
}

.contact-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.contact-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.contact-header p {
    color: #555;
    max-width: 800px;
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-map {
        order: 2;
    }
    .contact-details {
        order: 1;
    }
}

.detail-row {
    margin-bottom: 1.5rem;
    color: var(--black);
}

.detail-row strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.small-text {
    font-size: 0.85rem;
    color: #666;
}

.social-links-list strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.social-link.red {
    color: var(--primary-red);
    text-decoration: none;
    line-height: 1.8;
}

.social-link.red:hover {
    text-decoration: underline;
}

/* Footer */
footer.site-footer {
    background: var(--darker-gray);
    color: var(--white);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.8rem;
}

.footer-widget a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--primary-red);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary-red);
}

.copyright-bar {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .main-nav.is-open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    header.site-header {
        padding: 1rem;
    }

    header.site-header.is-scrolled {
        padding: 0.8rem 1rem;
    }
    
    .header-tools {
        display: none; /* Hide extra tools on mobile for cleaner header, or move to menu */
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .cards-container {
        margin-top: -50px;
    }

    .single-hero-content {
        padding: 2rem 1.5rem !important;
    }

    .single-title {
        font-size: 1.8rem !important;
    }

    .single-content-wrapper {
        padding: 2rem 1.5rem !important;
    }

    .single-nav {
        grid-template-columns: 1fr !important;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
    }

    .archive-hero-content h1 {
        font-size: 2rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   SINGLE POST (Článek)
   =================================== */

.single-post-main {
    margin-top: 80px;
}

.single-hero {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.single-hero--no-image {
    min-height: 30vh;
    background: linear-gradient(135deg, var(--dark-gray), var(--darker-gray));
    align-items: center;
    justify-content: center;
    text-align: center;
}

.single-hero-content {
    max-width: 900px;
    padding: 4rem 5%;
    color: var(--white);
}

.single-hero--no-image .single-hero-content {
    padding: 3rem 5%;
}

.single-meta-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.single-category {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-date {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.single-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1rem;
}

.single-excerpt {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
}

.single-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

.single-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
}

.single-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
}

.single-content p {
    margin-bottom: 1.5rem;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

.single-content blockquote {
    border-left: 4px solid var(--primary-red);
    background: var(--off-white);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--dark-gray);
}

.single-content ul, .single-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.single-content li {
    margin-bottom: 0.5rem;
}

.single-content a {
    color: var(--primary-red);
    text-decoration: underline;
    transition: var(--transition);
}

.single-content a:hover {
    color: var(--light-red);
}

/* Tagy */
.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    margin-top: 3rem;
}

.single-tags i {
    color: #999;
    margin-right: 0.5rem;
}

.single-tags a {
    background: var(--off-white);
    color: var(--dark-gray);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #eee;
    transition: var(--transition);
}

.single-tags a:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Navigace mezi články */
.single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.single-nav-link {
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.single-nav-link:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.single-nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.8rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* ===================================
   WORDPRESS GALERIE
   =================================== */

.gallery {
    display: grid;
    gap: 0.5rem;
    margin: 2rem 0;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }

.gallery-item {
    margin: 0 !important;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 !important;
    box-shadow: none !important;
}

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

.gallery-caption {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .gallery-columns-4,
    .gallery-columns-5 { grid-template-columns: repeat(2, 1fr); }
    .gallery-columns-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================
   ARCHIV & VYHLEDÁVÁNÍ
   =================================== */

.archive-main, .search-main {
    margin-top: 80px;
}

.archive-hero {
    background: linear-gradient(135deg, var(--dark-gray), var(--darker-gray));
    padding: 6rem 5% 4rem;
    text-align: center;
    color: var(--white);
}

.archive-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.archive-hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

.archive-label {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.archive-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.post-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.post-card-cat {
    background: rgba(191, 0, 1, 0.1);
    color: var(--primary-red);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-card-date {
    font-size: 0.8rem;
    color: #999;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-card-title a {
    text-decoration: none;
    color: var(--black);
    transition: var(--transition);
}

.post-card-title a:hover {
    color: var(--primary-red);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-card-link:hover {
    gap: 0.8rem;
}

/* Pagination */
.archive-pagination {
    margin-top: 3rem;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.archive-pagination a, .archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid #eee;
    color: var(--dark-gray);
}

.archive-pagination .current {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.archive-pagination a:hover {
    background: var(--off-white);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 5rem 2rem;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    display: block;
}

.no-results h2 {
    margin-bottom: 1rem;
}

.no-results p {
    color: #888;
    margin-bottom: 2rem;
}

/* ===================================
   STRÁNKA (PAGE)
   =================================== */

.page-main {
    margin-top: 80px;
    padding: 5rem 5% 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-main .entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-main .entry-title {
    font-size: 3rem;
    color: var(--black);
}

.page-main .entry-content {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.9;
}

.page-main .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ===================================
   404 STRÁNKA
   =================================== */

.error-404-main {
    margin-top: 80px;
}

.error-404-wrapper {
    text-align: center;
    padding: 8rem 5%;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-icon span {
    font-size: 8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
    margin-bottom: 2rem;
}

.error-404-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404-wrapper > p {
    color: #888;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-404-actions {
    margin-bottom: 3rem;
}

.error-404-search {
    max-width: 400px;
    margin: 0 auto;
}

.error-404-search p {
    color: #999;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.error-404-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.error-404-search .search-field {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    font-size: 0.9rem;
}

.error-404-search .search-submit {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.error-404-search .search-submit:hover {
    background: var(--light-red);
}

/* ===================================
   KOMENTÁŘE
   =================================== */

.single-comments {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--off-white);
    border-radius: 12px;
}

.comment-list .comment-author img {
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-list .comment-meta {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: #999;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-red);
}

.comment-form .btn-more {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.comment-form .btn-more:hover {
    background: var(--light-red);
    box-shadow: 0 5px 15px rgba(191, 0, 1, 0.3);
}

/* Swiper pagination dots */
.swiper-pagination-bullet-active {
    background: var(--primary-red) !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    border-left: 5px solid var(--primary-red);
}

.cookie-content {
    flex: 1;
}

.cookie-content strong {
    display: block;
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.cookie-content p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.cookie-actions {
    flex-shrink: 0;
}

.cookie-actions .btn-solid {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        border-left: none;
        border-top: 5px solid var(--primary-red);
        padding: 1.5rem;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-actions .btn-solid {
        width: 100%;
    }
}



/* Gutenberg Accordion (Details Block) Styling */
.wp-block-details {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: var(--transition);
}

.wp-block-details summary {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    transition: background 0.3s ease;
    user-select: none;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.wp-block-details[open] summary::after {
    transform: rotate(180deg);
}

.wp-block-details summary:hover {
    background: #f7f7f7;
}

.wp-block-details .wp-block-details__content {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    line-height: 1.8;
}

/* FINAL NAVIGATION FIX */
a, .main-nav a, .nav-list a, .main-nav ul li a {
    text-decoration: none !important;
}

.main-nav a, .nav-list a, .main-nav ul li a {
    color: var(--dark-gray);
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-nav a:hover, .nav-list a:hover, .main-nav .current-menu-item > a {
    color: var(--primary-red) !important;
}

@media (max-width: 992px) {
    .main-nav.is-open a {
        font-size: 1.4rem;
        padding: 1.2rem;
        display: block;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        color: var(--dark-gray) !important;
    }
}

/* GDPR POPUP STYLES */
.gdpr-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: var(--white);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 9999;
    border: 1px solid #eee;
    transition: opacity 0.3s ease;
}

.gdpr-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.gdpr-icon {
    font-size: 2rem;
    color: var(--primary-red);
}

.gdpr-text p {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin: 0;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@media (max-width: 480px) {
    .gdpr-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* GDPR COMPLIANCE V2 STYLES */
.gdpr-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.75rem !important;
    color: var(--primary-red) !important;
    text-decoration: underline !important;
}

.gdpr-actions {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.gdpr-actions button {
    flex: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--dark-gray);
    color: var(--dark-gray) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--off-white);
    border-color: var(--black);
}


a:hover, .main-nav a:hover, .nav-list a:hover {
    color: var(--primary-red) !important;
    text-decoration: none !important;
}

/* HERO BUTTON FIX */
.home-hero {
    height: 90vh !important; /* Make it even taller */
    padding-bottom: 250px !important; /* Create massive space at bottom for cards */
    display: flex !important;
    align-items: center !important;
}

.hero-btns {
    margin-bottom: 50px !important; /* Lift buttons up */
}

/* GDPR POPUP REFINEMENT */
.gdpr-popup {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
}

.gdpr-text p {
    color: #333 !important;
    font-size: 0.9rem !important;
}

.gdpr-link {
    color: var(--primary-red) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

/* VERSES SLIDER CLEANUP V20 */
.verses-slider {
    padding: 0 !important; /* Remove padding from container */
}

.verses-slider .swiper-slide {
    padding: 80px 40px !important; /* Add padding to slide instead */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
}

.verse-content {
    background: transparent !important; /* Remove the gray box */
    box-shadow: none !important;
    padding: 0 !important;
}

.verse-content h2, .verse-content h3 {
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.verse-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* FINAL HERO & LINK FIX V21 */
.home-hero {
    height: 100vh !important; /* Full screen for hero to ensure space */
    display: flex !important;
    align-items: flex-start !important; /* Align to top instead of center */
    padding-top: 150px !important;
}

.hero-content {
    margin-top: 0 !important;
}

.hero-btns {
    margin-top: 40px !important;
}


body a:hover {
    color: var(--primary-red) !important;
}

/* GDPR BUTTONS FIX */
.gdpr-actions button#accept-gdpr {
    background: var(--primary-red) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
}

.gdpr-actions button#reject-gdpr {
    background: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
}

/* BUTTONS & SUBMENU REFINEMENT V22 */
.btn-solid, .hero-btns .btn-solid, .btn-primary, .wp-block-button__link {
    color: #ffffff !important; /* Force white text */
}

.btn-solid i, .btn-solid span {
    color: #ffffff !important;
}

/* Fix for buttons in hero and other sections */
a.btn-solid, a.btn-primary {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Submenu cleanup */
.main-nav ul li ul.sub-menu {
    min-width: 180px !important; /* Narrower box */
    padding: 10px 0 !important; /* Less padding */
    border-top: 3px solid var(--primary-red) !important;
}

.main-nav ul li ul.sub-menu li a {
    padding: 8px 20px !important; /* Smaller links */
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

/* FOOTER WHITE TEXT V24 */
footer, footer p, footer a, footer .footer-col h4, footer ul li a, footer .copyright-bar p, footer .copyright-bar a {
    color: #ffffff !important; /* Force white in footer */
}

footer a:hover {
    color: var(--primary-red) !important;
}

/* VERSE READABILITY ENHANCEMENT */
.verse-content h2, .verse-content p, .verse-content .verse-ref {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important; /* Shadow for better contrast */
}

/* HERO SPACING REFINEMENT V25 */
.home-hero {
    padding-top: 80px !important; /* Move content closer to top */
}

/* EXCLUDE ADMIN BAR FROM RESETS */
#wpadminbar a, #wpadminbar a *, #wpadminbar .ab-item, #wpadminbar .ab-item * {
    color: inherit !important;
    text-decoration: none !important;
}

/* More specific reset for theme only */
#page a, .site-main a, .footer a {
    /* This ensures we only target the actual content */
}

/* SAFE LINK RESET V26 - ONLY FOR THEME CONTENT */
.site-header a, .main-nav a, .hero-content a, .verses-slider-section a, footer a, .content-area a {
    color: var(--dark-gray) !important;
    text-decoration: none !important;
}

.site-header a:hover, .main-nav a:hover, footer a:hover {
    color: var(--primary-red) !important;
}

/* Ensure sub-menu links are also safe */
.sub-menu a {
    color: var(--dark-gray) !important;
}

/* ACCORDION (DETAILS BLOCK) STYLING V26 */
details.wp-block-details {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.wp-block-details summary {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: var(--dark-gray);
}

details.wp-block-details summary::-webkit-details-marker {
    display: none;
}

details.wp-block-details summary::after {
    content: '\f078'; /* FontAwesome chevron down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--primary-red);
}

details[open].wp-block-details summary::after {
    transform: rotate(180deg);
}

details.wp-block-details[open] {
    background: #fff;
    box-shadow: var(--shadow);
}

details.wp-block-details .wp-block-details__content {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    line-height: 1.7;
}

/* Fix for editor - make sure it doesn't hide them */
.editor-styles-wrapper details {
    display: block !important;
}


.btn-solid:hover, .btn-outline:hover, .hero-btns a:hover, .btn-primary:hover, .wp-block-button__link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Ensure arrows and icons inside are also white */
.btn-solid i, .btn-outline i, .btn-solid span, .btn-outline span {
    color: #ffffff !important;
}

/* Specific fix for the outline button in hero */
.btn-outline {
    border-color: #ffffff !important;
}


.btn-outline:hover i, .btn-outline:hover span {
    color: var(--primary-red) !important;
}

/* FOOTER ICONS & TEXT FINAL WHITE V30 */
footer i, footer .social-links a, footer .footer-col a, footer .footer-col p {
    color: #ffffff !important;
    opacity: 1 !important; /* Ensure no transparency is hiding the white */
}

footer .social-links a:hover i {
    color: var(--primary-red) !important;
}


.btn-outline {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Hover logic: Solid stays white text, Outline turns RED text on white background */
.btn-solid:hover, .btn-primary:hover, .wp-block-button__link:hover {
    color: #ffffff !important;
}

.btn-outline:hover {
    background: #ffffff !important;
    color: #ae2111 !important; /* Explicitně tato červená */
}

/* Ensure icons inside follow the same logic */
.btn-outline:hover i, .btn-outline:hover span {
    color: #ae2111 !important;
}

.btn-hero-solid:hover, .btn-solid:hover, .btn-primary:hover {
    color: #ffffff !important;
}

/* OUTLINE BUTTON (Čemu věříme) */
.btn-hero-outline, .btn-outline {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* THE HOVER FIX - Text must be RED on white background */
.btn-hero-outline:hover, .btn-outline:hover {
    background: #ffffff !important;
    color: #ae2111 !important; /* Naše tmavě červená */
}

/* Ensure no shadows or other styles override the color */
.hero-btns a:hover {
    color: inherit; /* Allow the specific classes above to take over */
}

/* TOTAL HERO BUTTON OVERRIDE V33 */
/* Vynucení bílé barvy pro vše v hero-btns v základu */
.hero-btns a, 
.hero-btns a.btn-hero-solid, 
.hero-btns a.btn-hero-outline {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Hover stav pro červené tlačítko - zůstává bílé */
.hero-btns a.btn-hero-solid:hover {
    color: #ffffff !important;
    background-color: #901b0e !important; /* O něco tmavší červená při hoveru */
}

/* Hover stav pro obrysové tlačítko - zčervená na bílém pozadí */
.hero-btns a.btn-hero-outline:hover {
    background-color: #ffffff !important;
    color: #ae2111 !important; /* Červená na bílé */
}

/* Pojistka pro ikony */
.hero-btns a i, .hero-btns a span {
    color: inherit !important;
}

/* CONTACT SECTION EMAIL WHITE FIX V34 */
.contact-section .social-link.red, 
.contact-details .social-link.red {
    color: #ffffff !important;
    text-decoration: none !important;
}

.contact-section .social-link.red:hover {
    color: var(--primary-red) !important;
}

/* ULTIMATE CONTACT EMAIL OVERRIDE V35 */
.social-links-list a.social-link, 
.social-links-list a.red,
.contact-details a {
    color: #ffffff !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
}

.social-links-list a.social-link:hover, 
.social-links-list a.red:hover {
    color: #ff0000 !important; /* Jasně červená při hoveru pro jistotu */
}
