/* ======================================
   1. VARIABLES & COLORS 
   ====================================== */
:root {
    /* Pozadí */
    --col-cream: #EBE6DF; 
    --white: #ffffff; 

    /* Mintová v navbaru */
    --col-light: #C5DFD4; 

    /* Tlačítka */
    --col-orange: #E65A35; 
    --col-orange-light: #F27B5C; /* Hover */
    --col-teal-dark: #2B4570; /* Hover */
    --col-teal-med: #4470A6; 

    /* Meněí nadpisy a pozadí */
    --col-mint-light: #D5DFE8; 
    --col-yellow-pale: #e4c77f;

    /* Hobit barva */
    --col-hobit:#B7950B;

    /* Stín */
    --shadow: 0 10px 25px rgba(43, 69, 112, 0.12);
}

@font-face {
    font-family: 'Antipol VF';
    src: url('../font/Antipol_VF.otf') format('opentype'); 
    font-weight: 100 900; 
    font-style: normal;
    font-display: block;
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
   html {
    overflow-y: scroll; 
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--col-cream);
    color: var(--col-text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden !important;
    position: fixed !important; 
    width: 100% !important;     
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main {
    flex: 1;
    margin-bottom: 60px;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-family: 'Antipol VF', sans-serif; 
    color: var(--col-teal-dark);
    font-weight: 700; 
    position: relative;
    top: 3px; 
    line-height: 1.1;
}

/* Generic Section Title (with underline) */
.section-title {
    text-align: center;
    color: var(--col-teal-dark);
    font-size: 2.4rem;
    margin-top: 60px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--col-orange);
    border-radius: 2px;
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-primary {
    background-color: var(--col-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--col-orange-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--col-teal-med);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-5px);
    background-color: var(--col-teal-dark);
}


/* =========================================
   28. ZMENŠENÍ TLAČÍTEK PRO VELMI MALÉ DISPLEJE
   ========================================= */
@media (max-width: 662px) {
    .btn {
        font-size: 0.85rem;   /* Zmenší samotné písmo (aby to tolik nekřičelo) */
        padding: 12px 20px;   /* "Vyfoukne" bublinu kolem textu (menší vnitřní okraje) */
        line-height: 1.4;     /* Kdyby se dlouhý text přece jen zalomil, ať na sobě řádky nejsou nalepené */
    }
}

/* =========================================
   29. EXTRÉMNÍ ZÁCHRANA PRO PIDI DISPLEJE (pod 320px)
   ========================================= */
@media (max-width: 320px) {
    .btn {
        font-size: 0.75rem;    /* Ještě o kousek menší písmo */
        padding: 10px 8px;     /* Osekneme okraje na absolutní minimum */
        letter-spacing: 0px;   /* Zrušíme případné mezery mezi písmeny */
        width: 100%;           /* Tlačítko se roztáhne na celou dostupnou šířku, ať má text co nejvíc místa */
        box-sizing: border-box;
    }
}

/* =========================================
   5. NAVIGATION (NAVBAR)
   ========================================= */
nav {
    background-color: var(--col-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(43, 69, 112, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;         
    align-items: center;     
    gap: 15px;              
    font-size: 25px; 
    font-weight: 500;       
    color: var(--col-teal-dark);
    font-family: 'Antipol VF', sans-serif;
    text-decoration: none; 
    position: relative;
    top: 5px; 
}

.nav-logo-img {
    width: 55px;             
    height: 55px;          
    border-radius: 50%;    
    object-fit: contain;   
    background-color: var(--col-teal-dark); 
    position: relative;
    top: -5px; 
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--col-teal-dark);
    font-weight: 600;
    font-size: 17px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--col-orange);
}

.hamburger {
    display: none;
    color: var(--col-teal-dark);
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================================
   6. HEADERS (HERO & PAGE)
   ========================================= */
/* Hero Header (Index) */
header.hero {
    background: linear-gradient(135deg, rgba(43, 69, 112, 0.95), rgba(43, 69, 112, 0.4)), url('image/1.JPG');
    background-size: cover;
    background-position: center;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--col-yellow-pale);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Page Header (Subpages) */
.page-header {
    background-color: var(--col-teal-dark);
    color: var(--white);
    padding: 35px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--col-yellow-pale);
    font-size: 2.8rem;
    margin: 0 0 20px 0;
    position: relative;
    top: 8px;
    font-family: 'Antipol VF', sans-serif;
}

.page-header p {
    color: var(--col-light);
    font-size: 1.2rem;
}

/* =========================================
   7. SHARED COMPONENTS (INDEX & OTHERS)
   ========================================= */
/* Index Cards */
/* =========================================
   7. SHARED COMPONENTS - VERZE GRID (STEJNÁ VÝŠKA KARET)
   ========================================= */

.grid-cards {
    display: grid;
    /* Na velkém monitoru budou automaticky 3 vedle sebe */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    text-align: left;
}

/* Zajištění, že tlačítko zůstane vždy dole */
.card {
    background: var(--white);
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--col-teal-med);
    display: flex; /* Vnitřek karty je flex, aby se tlačítko dalo poslat dolů */
    flex-direction: column;
    height: 100%; 
}

.card .btn {
    margin-top: auto; /* Tohle natlačí tlačítko vždycky úplně na dno karty */
    align-self: flex-start; 
}

/* --- MAGIE PRO TABLETY (Ten "zlatý střed") --- */
@media (min-width: 620px) and (max-width: 1024px) {
    .grid-cards {
        grid-template-columns: 1fr 1fr; /* Na sílu vynutíme 2 sloupce */
    }
    
    .grid-cards .card:last-child {
        grid-column: 1 / -1;  /* Karta dostane povolení roztáhnout se přes oba sloupce... */
        justify-self: center; /* ...vycentrujeme ji hezky doprostřed... */
        width: 75%;           /* ...a roztáhneme ji přesně na 75 %, takže bude větší, ale ne ošklivá! */
        max-width: 500px;     /* Malá pojistka proti extrémům */
    }
}

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

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--col-teal-dark);
    font-weight: 700;
}

.card p {
    margin-bottom: 15px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.card-icon-img {
    width: 60px;        
    height: 60px;       
    object-fit: contain; 
    margin-bottom: 25px; 
    display: block;      
    /* TADY JE TEN MAGICKÝ TRIK NA ODSTRANĚNÍ BÍLÉHO POZADÍ: */
    mix-blend-mode: multiply; 
}

/* "Chcete nás podpořit" Highlight Section */
.section-highlight {
    background-color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.section-highlight h2 {
    font-size: 2.2rem;
    margin-bottom: 35px;
}

/* =========================================
   8. PAGE: O NÁS
   ========================================= */
/* Mission Box */
.mission-box {
    background-color: var(--col-light);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 40px auto; 
    position: relative;
    box-shadow: var(--shadow);
}

.mission-box h2 {
    font-size: 1.6rem;
    color: var(--col-teal-dark);
    margin-bottom: 20px;
}

.mission-box p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--col-teal-dark);
}

/* =========================================
   33. ÚPRAVA BOXU "NAŠE POSLÁNÍ" PRO MOBILY (pod 700px)
   ========================================= */
@media (max-width: 700px) {
    /* Zmenšíme samotný box a jeho okraje */
    .mission-box {
        padding: 30px 20px !important; /* Výrazně zmenšená vata uvnitř boxu */
        border-radius: 20px !important; /* Lehce menší zakulacení, ať to na mobilu nevypadá jak bublina */
        margin: 30px auto !important; /* Menší mezery nad a pod boxem */
    }

    /* Zmenšíme nadpis */
    .mission-box h2 {
        font-size: 1.4rem !important; 
        margin-bottom: 15px !important;
    }

    /* Zmenšíme samotný text poslání */
    .mission-box p {
        font-size: 0.95rem !important; /* Drobnější a elegantnější písmo */
        line-height: 1.5 !important;   /* Trochu upravíme řádkování, ať se to dobře čte */
        margin-bottom: 10px !important;
    }
}

/* Timeline (Story) */
.story-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 80px auto;
    padding: 20px 0;
}

.story-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--col-mint-light);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 0;
}

.story-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.story-row.reverse {
    flex-direction: row-reverse;
}

.story-date {
    width: 100px;
    height: 100px;
    background-color: var(--col-teal-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Antipol VF', sans-serif;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding-top: 6px;
    line-height: 1;
    
}

.story-content {
    width: 42%;
    background: var(--white);
    padding: 30px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--col-teal-dark);
    position: relative;
    transition: transform 0.3s;
}

.story-content:hover {
    transform: translateY(-5px);
}

/* Triangle arrows for timeline */
.story-content::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.story-row .story-content { margin-left: auto; }
.story-row .story-content::after { left: -10px; border-right: 10px solid var(--white); }

.story-row.reverse .story-content { margin-right: auto; margin-left: 0; }
.story-row.reverse .story-content::after { right: -10px; left: auto; border-left: 10px solid var(--white); border-right: none; }

.story-content h3 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 21px;
    color: var(--col-teal-dark);
}

/* Image Carousel */
.gallery-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    position: relative;
}

.image-carousel {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
    position: relative;
    background: #ddd;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

.photo-year-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(38, 84, 77, 0.85); /* Hex 26544D with opacity */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px 5px 18px;
    border-radius: 20px;
    font-family: 'Antipol VF', sans-serif;
    font-weight: 600;
    font-size: 1.45rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 5;
    min-height: 40px; 
    line-height: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--col-teal-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background-color: var(--col-orange);
    color: white;
}

.prev { left: 15px; }
.next { right: 15px; }

.vedouci-label {
    text-align: center;
    font-family: 'Antipol VF', sans-serif;
    font-size: 23px;
    color: var(--col-teal-dark);
    margin-bottom: 60px;
    margin-top: 20px;
    font-weight: 900;
}

/* =========================================
   9. PAGE: DIATÁBOR
   ========================================= */
.camp-intro {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 60px auto;
}

.camp-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--col-teal-dark);
}

.theme-title {
    font-family: 'Antipol VF', sans-serif; 
    font-size: 2.8rem;  
    font-weight: 800;   
    text-transform: uppercase; 
    color: var(--col-hobit);
    margin-top: 10px;   
    margin-bottom: 10px;
    letter-spacing: 4px; 
    line-height: 1.1;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1); 
}

.camp-intro p {
    font-size: 1.15rem;
    color: var(--col-teal-dark);
    text-align: center;
    font-weight: 500;
    line-height: 1.9;
    opacity: 0.9;
   
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}



.info-box {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    border-bottom: 5px solid var(--col-teal-med);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(38, 84, 77, 0.15); /* New teal shadow */
}

.icon-circle {
    width: 70px;
    height: 70px;
    color: var(--col-teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
}

.kdy-img {
    width: 65px; 
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.icon-img {
    width: 66px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.info-box h3 {
    font-size: 1.1rem;
    color: var(--col-teal-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.big-data {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--col-teal-dark); 
    font-family: 'Antipol VF', sans-serif;
    margin-bottom: 5px;
}

.sub-data {
    font-size: 1rem;
    color: #888;
}

.nature-notice {
    background-color: var(--col-light);
    border: 1px solid var(--col-light);
    border-radius: 25px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 50px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: left;
}

.notice-icon {
    font-size: 2.5rem;
    background: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.notice-content h3 {
    margin: 0 0 5px 0;
    color: var(--col-teal-dark);
    font-size: 1.4rem;
}

.notice-content p {
    margin: 0;
    line-height: 1.9;
    color: var(--col-teal-dark);
}



/* 1. Kolečko se stane oknem, které ořízne všechno, co trčí ven */
.info-box .icon-circle {
    position: relative !important;
    overflow: hidden !important;
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* =========================================
   49. DIATÁBOR INFO KARTY - ZLATÝ STŘED (od 939px do 620px)
   ========================================= */

/* 1. FÁZE: Tablety (939px až 620px) - Dvě karty nahoře, třetí roztažená dole */
@media (max-width: 939px) and (min-width: 620px) {
    .info-grid {
        /* Bezpečné rozdělení na 2 sloupce, které nerozbije šířku stránky */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; 
    }
    
    .info-grid .info-box:last-child {
        grid-column: 1 / -1 !important;  /* Karta zabere celý spodní řádek */
        justify-self: center !important; /* Vycentruje se doprostřed */
        width: 75% !important;           /* Trošku se roztáhne (tvůj požadavek) */
        max-width: 500px !important;     /* Pojistka, aby z ní nebyla obří nudle */
    }
}

/* 2. FÁZE: Mobily (pod 619px) - Klasicky všechny tři pod sebou */
@media (max-width: 619px) {
    .info-grid {
        grid-template-columns: 1fr !important; /* Jeden sloupec */
    }
    
    .info-grid .info-box:last-child {
        width: 100% !important;      /* Třetí karta se vrátí do normálu */
        max-width: none !important;
    }
}

/* =========================================
   10. PAGE: FOTOGALERIE
   ========================================= */
.gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto 80px auto;
}

.big-card {
    display: block;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden; 
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.big-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(38, 84, 77, 0.15); /* New teal shadow */
}

/* Big Image Area */
.big-card-image {
    width: 100%;
    height: auto; 
    aspect-ratio: 16 / 9; 
    max-height: 550px;
    position: relative;
    overflow: hidden;
}

.big-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Centered Footer Bar */
.big-card-footer {
    padding: 18px 25px; 
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* Text Layout */
.footer-text {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
    gap: 4px;
}

.year-label {
    font-size: 1.6rem;
    color: var(--col-teal-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-family: 'Antipol VF', sans-serif;
}

.footer-text h3 {
    margin: 0px 0px 5px 0px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--col-teal-dark);
    font-family: 'Antipol VF', sans-serif;
}

/* =========================================
   11. PAGE: SPONZOŘI
   ========================================= */

.intro-text-box {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 60px auto; 
    padding: 0 20px;
}

.intro-text-box p {
    font-size: 1.2rem; 
    line-height: 1.8;  
    color: var(--col-teal-dark);
    font-weight: 400;
    opacity: 0.9;
}

/* --- DĚKUJEME (CASUAL STYLE) --- */
.thank-you-simple {
    text-align: center;
    margin-bottom: 30px;
    margin-top: -20px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--col-mint-light); 
    display: inline-block; 
    padding-left: 40px;
    padding-right: 40px;
}

/* Obal pro centrování čáry */
.thank-you-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.thank-you-simple h2 {
    font-family: 'Antipol VF', sans-serif;
    font-size: 2.4rem;
    font-weight: 750;
    color: var(--col-teal-dark);
    margin: 0;
}

/* --- STÁVAJÍCÍ STYLY (Cloud Section) --- */
.cloud-section {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.year-label {
    display: inline-block;
    background-color: var(--col-teal-dark);
    color: var(--white);
    font-family: 'Antipol VF', sans-serif;
    font-size: 1.6rem; 
    padding: 10px 35px; 
    border-radius: 50px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(38, 84, 77, 0.3);
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

/* --- STYL PRO FOTKU ROČNÍKU --- */
.year-photo-wrapper {
    position: relative;
    z-index: 2; 
    max-width: 900px; 
    margin: 0 auto 40px auto; 
    padding: 0 15px; 
}

.year-photo {
    width: 100%;
    height: auto;
    max-height: 400px; 
    object-fit: cover; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid var(--white); 
}

/* --- BUBLINY --- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; 
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 10px;
}

.tag-pill {
    background-color: var(--white);
    color: var(--col-teal-dark);
    padding: 12px 28px; 
    font-size: 1rem; 
    border-radius: 50px; 
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid transparent; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    user-select: none;
    text-decoration: none;
}

.tag-pill.has-gallery {
    cursor: pointer;
}

.tag-pill:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--white);
    border-color: var(--col-orange);
    color: var(--col-orange);
    box-shadow: 0 8px 20px rgba(213, 87, 59, 0.2);
    z-index: 10; 
}

.donors-bubble {
    margin-top: 40px;
    display: inline-block;
    background-color: var(--white); 
    border: 2px solid var(--col-light); 
    padding: 25px 50px;
    border-radius: 25px;
    max-width: 750px;
    position: relative;
    z-index: 2; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.donors-bubble h4 {
    color: var(--col-teal-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donors-text {
    color: var(--col-teal-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-note {
    margin-top: 30px;
    font-size: 1rem;
    color: var(--col-teal-dark);
    font-style: italic;
    position: relative;
    z-index: 2;
    background-color: var(--col-cream); 
    padding: 5px 20px;
    display: inline-block;
    border-radius: 20px;
    font-weight: 500;
}

/* =========================================
   52. SPONZOŘI - KROCENÍ BUBLIN NA MENŠÍCH DISPLEJÍCH
   ========================================= */

/* 1. Fáze: Tablety a menší monitory (pod 800px) */
@media (max-width: 849px) {
    .tag-cloud {
        gap: 12px !important; /* Zmenšíme obří mezery mezi bublinami */
    }
    
    .tag-pill {
        padding: 10px 20px !important; /* Vyfoukneme tu vnitřní vatu */
        font-size: 0.9rem !important;  /* Zmenšíme text */
    }
}

/* 2. Fáze: Mobily (pod 480px) */
@media (max-width: 619px) {
    .tag-cloud {
        gap: 8px !important; /* Úplně mini mezery pro pidi displeje */
    }
    
    .tag-pill {
        padding: 9px 9px !important; 
        font-size: 0.8rem !important; 
    }
}

/* 2. Fáze: Mobily (pod 480px) */
@media (max-width: 480px) {
    .tag-cloud {
        gap: 8px !important; /* Úplně mini mezery pro pidi displeje */
    }
    
    .tag-pill {
        padding: 8px 15px !important; 
        font-size: 0.8rem !important; 
    }
}
/* =========================================
   12. PAGE: KONTAKT
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    margin-top: 40px;
}

.contact-info-box {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    height: 100%;                
    display: flex;               
    flex-direction: column;   
    justify-content: space-between;
}

.contact-info-box h2 {
    font-size: 1.7em;
    font-weight: 700;
}

.info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.icon {
    color: var(--col-teal-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Instagram Icon Link Special Styling */
a.icon {
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

a.icon:hover {
    background-color: var(--col-orange);
    transform: scale(1.1);
}

.contact-ig-icon {
    width: 20px;
    height: 20px;
    fill: var(--col-teal-dark);
    transition: fill 0.3s ease;
}

a.icon:hover .contact-ig-icon {
    fill: var(--white);
}

/* Contact Form */
.contact-form-box {
    background: linear-gradient(135deg, var(--col-teal-dark) 0%, #3a5b91 100%);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(43, 69, 112, 0.25); 
    color: var(--white);
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form-box h3 {
    color: var(--col-yellow-pale);
    margin-bottom: 5px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Antipol VF', sans-serif;
}

.contact-form-box p {
    color: var(--col-mint-light);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
    flex: 1; 
}

.form-group {
    margin-bottom: 20px;
}

.checkbox-wrapper {
    display: flex;       
    align-items: center; 
    gap: 12px;           
    margin-bottom: 25px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;        
    height: 20px;
    margin: 0;
    box-shadow: none;   
    cursor: pointer;
    accent-color: var(--col-orange); 
}

.checkbox-wrapper label {
    margin: 0;           
    text-transform: none;
    font-weight: 400;   
    font-size: 0.9rem;  
    cursor: pointer;     
    line-height: 1.3;   
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid transparent; 
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--col-teal-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    resize: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--col-orange-light); 
}

button.btn-submit {
    background-color: var(--col-orange);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    transition: 0.3s;
    margin-top: auto; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button.btn-submit:hover {
    background-color: var(--white);
    color: var(--col-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Success Message (Post-Submit) */
.success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.success-box h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
    font-family: 'Antipol VF', sans-serif;
}

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

/* Form Highlight Pulse Animation */
.highlight-pulse {
    animation: pulseOrange 1.0s ease-in-out;
    position: relative; 
    z-index: 10;
}

@keyframes pulseOrange {
    0% { transform: scale(1); box-shadow: 0 15px 35px rgba(43, 69, 112, 0.25); }
    50% { transform: scale(1.02); box-shadow: 0 0 40px rgba(213, 87, 59, 0.6); } 
    100% { transform: scale(1); box-shadow: 0 15px 35px rgba(43, 69, 112, 0.25); }
}

#formular {
    scroll-margin-top: 120px; 
}

/* Smart Phone Link (Link on Mobile, Text on Desktop) */
.phone-link {
    color: var(--col-teal-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.members-section {
    max-width: 100%;
    margin: 0 auto 60px auto;
    background-color: var(--white);
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--shadow); 
    text-align: center;
    border-top: 5px solid var(--col-teal-med);
}

.members-section h2 {
    font-size: 27px;
    font-weight: 700;
    color: var(--col-teal-dark);
    margin-bottom: 30px;
    font-family: 'Antipol VF', sans-serif;
}

/* Styl pro předsedu */
.chairman-box {
    background-color: var(--col-mint-light); 
    border: 1px solid var(--col-mint-light);
    color: var(--col-teal-dark);
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 35px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chairman-box span {
    color: var(--col-teal-dark); 
}

/* Mřížka pro ostatní členy */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px;
    justify-content: center;
}

.member-item {
    font-size: 1.05rem;
    color: var(--col-teal-dark);
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: color 0.3s;
}

.member-item:hover {
    color: var(--col-orange);
}

@media (max-width: 600px) {
    .members-grid {
        grid-template-columns: 1fr; /* Pod sebe */
        gap: 5px;
    }
    .member-item {
        border-bottom: none;
        padding: 5px;
    }
    
}

/* =========================================
   41. OPTIMALIZACE KONTAKTŮ PRO MOBILY (pod 600px)
   ========================================= */
@media (max-width: 406px) {
    /* 1. Zmenšíme vatu (padding) kolem celé karty */
    .contact-info-box {
        padding: 25px 20px !important;
    }

    /* 2. Zmenšíme hlavní nadpis na kartě */
    .contact-info-box h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0px !important;
        margin-left: 10px;
    }

    /* 3. Zmenšíme ikony, ať nechají víc místa pro text */
    .icon {
        width: 32px !important;
        height: 32px !important;
        margin-right: 12px !important;
    }
    
    /* Musíme zmenšit i obrázky uvnitř ikon (ten tvůj instagram) */
    .icon img, .contact-ig-icon {
        width: 18px !important;
        height: 18px !important;
    }

    /* 4. Oprava dlouhých textů (záchrana před přetékáním a ošklivým lámáním) */
    .info-item div {
        /* Zmenšíme lehce text u kontaktů */
        font-size: 0.8rem; 
        word-break: break-all;      /* Rozbije to v půlce slova, když není zbytí */
        overflow-wrap: break-word;  /* Novější příkaz pro to samé */
    }

    /* Zabráníme ošklivému zalomení telefonního čísla uprostřed */
    .phone-link {
        white-space: nowrap; 
    }
    
    /* Zmenšení mezer mezi jednotlivými kontakty */
    .info-item {
        margin-bottom: 20px !important;
    }
}

/* =========================================
   46. ABSOLUTNÍ OPRAVA VŠECH IKON V KONTAKTECH
   ========================================= */
@media (max-width: 406px) {
    /* 1. Obal ikony: dostane jasný rozměr a přísný zákaz se smrsknout */
    .info-item .icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;  /* Zákaz ždímání! */
        flex-shrink: 0 !important;   /* Dvojitá pojistka proti smrsknutí */
        margin-right: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 2. Samotné obrázky (PNG) v HTML: zrušíme 280px a vnutíme 24px */
    .info-item .icon img {
        width: 32px !important;       /* Natvrdo velikost */
        height: auto !important;
        min-width: 32px !important;   /* Zákaz stát se tečkou */
        max-width: 32px !important;
        object-fit: contain !important;
    }

    /* 3. Instagram SVG: srovnáme ho na stejnou velikost jako PNG obrázky */
    .info-item .icon svg.contact-ig-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }
}
/* =========================================
   13. LIGHTBOX
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95); 
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh; 
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 2px solid var(--white);
}

.lb-year {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 10px;
    font-family: 'Antipol VF', sans-serif;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--col-orange);
}

.lb-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lb-arrow:hover {
    color: var(--col-orange);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* =========================================
   14. FOOTER
   ========================================= */
footer {
    background-color: var(--col-teal-dark);
    color: var(--col-mint-light);
    padding: 60px 0 20px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    justify-content: center; 
}

.footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;  
    align-items: center;    
}

.footer-col p {
    line-height: 2;         
    margin-bottom: 15px;    
    max-width: 330px;      
}

.footer-col h4 {
    color: var(--col-yellow-pale);
    margin: 0;              
    margin-bottom: 20px;    
    font-size: 1.3rem;
}

.footer-col a {
    color: var(--col-mint-light);
    display: inline-block;  
    width: auto;           
    margin: 0;             
    padding: 0;             
    line-height: 1;       
    margin-bottom: 20px;
}

.footer-col a:hover {
    color: var(--col-orange);
    transform: scale(1.05); /* Jemné zvětšení */
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* =========================================
   27. OPRAVA PATIČKY PRO TABLETY
   ========================================= */

/* Spustíme mobilní zobrazení patičky už na 950px, aby nevznikala prázdná díra */
@media (max-width: 950px) {
    .footer-grid {
        /* Vynutíme zobrazení všeho pod sebou (1 sloupec) */
        grid-template-columns: 1fr !important;
        gap: 40px !important; /* Dáme jim trochu prostoru na dýchání */
    }

    .footer-col {
        /* Všechno vycentrujeme, aby to vypadalo jako úmyslný design */
        text-align: center !important;
        align-items: center !important;
    }

    /* Omezíme šířku toho prvního odstavce, aby se na tabletu netáhl přes celou obrazovku */
    .footer-col p {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================
   15. MEDIA QUERIES (MOBILE OPTIMIZATION)
   ========================================= */

/* --- TABLETS & PHONES --- */
@media (max-width: 1100px) {
    
    /* 1. Navigation */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--col-light);
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* 2. Headers & Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    header.hero {
        height: 60vh;
        border-radius: 0;
    }

    /* 3. O Nás: Carousel & Timeline */
    .image-carousel {
        height: 300px;
    }

    .story-container::before {
        left: 30px; 
    }

    .story-row, .story-row.reverse {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .story-date {
        position: relative;
        left: 30px; 
        transform: none;
        margin-bottom: 20px;
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .story-content {
        width: 100%; 
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px; 
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        /* Indent from the timeline line */
        margin-left: 70px !important; 
        width: calc(100% - 70px);
    }
    
    .story-content::after {
        display: none; 
    }

    /* 4. Diatabor & Contact */
    .nature-notice {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

}
@media (max-width: 850px) {

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .phone-link {
        cursor: pointer;
        text-decoration: underline;
    }

    .email-link
    {
        text-decoration: underline;
    }

    .instagram-link
    {
        text-decoration: underline;
    }

    /* 5. Fotogalerie: Big Cards */
    .big-card-image {
        height: 240px;
    }

    .big-card-footer {
        padding: 15px;
    }

    .footer-text h3 {
        font-size: 1.3rem;
    }

    /* 6. Subpage: Photo Grid (Masonry) */
    .photo-grid-standard {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    /* 7. Lightbox Interface */
    .lb-arrow {
        font-size: 20px;
        padding: 10px;
    }
    
    .lb-prev { left: 5px; }
    .lb-next { right: 5px; }

    /* Move Download button to bottom center on mobile */
    .lb-download-btn {
        top: auto;
        bottom: 20px; 
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }
    
    .lb-download-btn:hover {
        transform: translateX(-50%) translateY(-2px);
    }
}

@media (max-width: 600px) {
    .download-all-btn {
        font-size: 0.75rem; 
        padding: 8px 20px;
    }
}

@media (max-width: 768px) {
    .theme-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 500px) {
    .logo {
        font-size: 1.2rem; 
        gap: 10px;        
    }
    
    .nav-logo-img {
        width: 50px;       
        height: 50px;
    }
}

@media (max-width: 350px) {
    .logo {
        font-size: 1.1rem; 
        gap: 8px;        
    }
    
    .nav-logo-img {
        width: 40px;       
        height: 40px;
    }
}

@media (max-width: 300px) {
    .logo {
        font-size: 1rem; 
        gap: 5px;        
    }
    
    .nav-logo-img {
        width: 35px;       
        height: 35px;
    }
}
/* =========================================
   16. SUBPAGE: PHOTO GRID (MASONRY)
   ========================================= */

.back-link {
    color: var(--col-yellow-pale);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    letter-spacing: 1px;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-5px);
}

.bottom-link-fix {
    color: var(--col-teal-dark) !important; 
}

.bottom-link-fix:hover {
    color: var(--col-orange) !important;
    transform: translateX(-5px);
}

/* The Grid Container */
.photo-grid-standard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px; 
    margin-bottom: 50px;
}

/* The Photo Item */
.photo-item {
    position: relative;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #ddd;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    cursor: pointer;
    display: block;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 1px solid #333;
}

.lb-counter {
    color: #888;
    margin-top: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-btn:hover { color: var(--col-orange); }

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.lb-arrow:hover {
    color: var(--col-orange);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-download-btn {
    position: absolute;
    top: 20px;
    left: 20px; /* Top left corner */
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2005; 
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-download-btn:hover {
    background-color: var(--col-orange);
    border-color: var(--col-orange);
    color: white;
    transform: translateY(2px);
}
.header-top-row {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
}

/* The Download All Button */
.download-all-btn {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    
    padding: 10px 25px;
    border-radius: 50px;
    
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    
    margin-top: 30px; 
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-all-btn:hover {
    background-color: var(--col-orange);
    border-color: var(--col-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.bottom-action-bar {
    text-align: center;  
    margin-bottom: 40px;
    padding-top: 0px;
}

/* Specific adjustment for the bottom button */
.download-all-btn.bottom-btn {
    margin-top: 0; 
    background-color: var(--col-teal-med); 
}

.download-all-btn.bottom-btn:hover {
    background-color: var(--col-orange);
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .download-all-btn {
        font-size: 0.75rem; 
        padding: 8px 20px;
    }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .lb-download-btn {
        top: auto;
        bottom: 20px; 
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }
    
    .lb-download-btn:hover {
        transform: translateX(-50%) translateY(-2px);
    }
}
/* Mobile */
@media (max-width: 768px) {
    .photo-grid-standard {
        /* Smaller columns on phone */
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .lb-arrow {
        font-size: 20px;
        padding: 10px;
    }
    
    .lb-prev { left: 5px; }
    .lb-next { right: 5px; }
}

/* ===================================
   18. FOOTER EMAIL COPY & INSTAGRAM 
   ===================================*/

/* 2. Email Wrapper */
.email-click-wrapper {
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: transform 0.1s ease;
    margin-bottom: 10px; 
}

.email-click-wrapper:hover {
    transform: scale(1.02);
}

.email-click-wrapper:hover .footer-email-text {
    color: var(--col-orange);
    text-decoration: underline;
}

.email-click-wrapper:active {
    transform: scale(0.98);
}

/* 3. The Popup Bubble (Small & Animated) */
.copy-popup {
    /* Visuals */
    background-color: var(--col-teal-dark);
    color: #fff;
    
    /* Compact Size */
    padding: 3px 8px; 
    font-size: 0.7rem; 
    
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;

    /* Positioning */
    position: absolute;
    bottom: 105%; 
    left: 50%;
    
    /* HIDDEN STATE (Default) */
    opacity: 0;           
    visibility: hidden;   
    transform: translateX(-50%) translateY(10px); 
    
    /* Animation settings */
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 4. The Arrow (Small) */
.copy-popup::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -4px; 
    border-width: 4px; 
    border-style: solid;
    border-color: var(--col-teal-dark) transparent transparent transparent;
}

/* 5. VISIBLE STATE */
.copy-popup.show {
    opacity: 1;           
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

.instagram-btn {
    display: inline-flex !important; 
    
    /* TOTO ZMĚŇ: Místo fit-content dáme všem tlačítkům stejnou šířku */
    width: 140px !important; 
    
    padding: 10px 24px !important; 
    line-height: normal !important; 
    justify-content: center; 
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    background-color: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--col-mint-light) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0 !important; 
    white-space: nowrap; 
    transition: all 0.3s ease;
}

.instagram-btn:hover {
    background-color: var(--col-orange);
    border-color: var(--col-orange);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(213, 87, 59, 0.4);
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    
    background-color: var(--col-orange);
    color: var(--white);
    
    border: none;
    border-radius: 50%;
    cursor: pointer;
    
    /* Center the arrow */
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9000; 
    
    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.scroll-top-btn.show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Effect */
.scroll-top-btn:hover {
    background-color: var(--col-teal-dark); 
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}


/* =========================================
   19. AKTUALITY (NEWS)
   ========================================= */

/* Mřížka pro články */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 45px;
    margin-bottom: 60px;
}

/* Karta článku - NYNÍ JAKO ODKAZ (a) */
a.news-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid var(--col-teal-med);
    display: flex;
    flex-direction: column;
    text-decoration: none; 
    color: inherit;        
    cursor: pointer;
    height: 100%;          
}

a.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(38, 84, 77, 0.15);
}

/* Obrázek v kartě */
.news-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Datum (čtvereček přes obrázek) */
.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--white);
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    min-width: 60px;
    
}

.news-date .day {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--col-orange);
    line-height: 1;
    font-family: 'Antipol VF', sans-serif;
}

.news-date .month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--col-teal-dark); /* Lehce upraveno pro lepsi citelnost */
}

.news-year {
    font-size: 0.85rem;
    color: var(--col-orange); 
    font-weight: 700;
    margin-bottom: 5px;      
    text-transform: uppercase;
    letter-spacing: 1px;     
    font-family: 'Open Sans', sans-serif;
}

/* Obsah karty */
.news-content {
    padding: 25px;
    padding-bottom: 40px; 
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative; 
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--col-teal-dark);
    line-height: 1.2;
}

.news-content p {
    color: var(--col-teal-dark);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1; 
    opacity: 0.9;
}

/* Tlačítko "Číst celý článek" */
.read-more-link {
    color: var(--col-teal-med);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: absolute;
    bottom: 20px;  
    right: 25px;   
    transition: all 0.3s ease;
}

.read-more-link:hover {
    transform: translateX(5px);
    color: var(--col-orange);
}

/* 1. FÁZE: Tablety a menší monitory (1029px až 650px) */
@media (max-width: 1029px) and (min-width: 650px) {
    .news-grid {
        /* Vynutíme přesně 2 sloupce vedle sebe */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; 
    }
    
    /* Zacílíme na poslední kartu, ALE jen pokud je lichá (např. 3. v pořadí) */
    .news-grid a.news-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;  /* Zabere celou šířku spodního řádku */
        justify-self: center !important; /* Vycentruje se doprostřed */
        width: 75% !important;           /* Lehce se roztáhne (přesně jak chceš) */
        max-width: 600px !important;     /* Pojistka proti obřím nudlím */
    }
}

/* 2. FÁZE: Mobily (pod 649px) - Všechno poslušně pod sebou */
@media (max-width: 649px) {
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Zrušíme to roztahování z předchozího kroku */
    .news-grid a.news-card:last-child:nth-child(odd) {
        width: 100% !important;
        max-width: none !important;
    }
}

/* =========================================
   20. HOMEPAGE: LATEST POST SECTION (Nyní funguje jako výlety!)
   ========================================= */
.latest-post-banner {
    display: flex;
    align-items: stretch;
    background-color: var(--white);
    border-radius: 25px;
    overflow: hidden; 
    box-shadow: var(--shadow);
    margin: 20px auto 60px auto; /* Upravila jsem horní margin, aby se nelepily */
    max-width: 100%;
    z-index: 10;
    position: relative;
    
    /* PŘIDEJ TENTO ŘÁDEK: */
    min-height: 350px; /* Nastaví minimální výšku, aby byly oba bloky stejně vysoké */
}

/* Základní rozložení pro tlačítka u článků (PC verze = doleva) */
.lp-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start; /* Zarovná tlačítka doleva */
    align-items: center;         /* Zarovná je hezky do jedné výškové roviny */
}

/* Mobilní verze (displeje menší než 768px) */
@media (max-width: 768px) {
    .lp-buttons {
        justify-content: center !important;/* Vystředí tlačítka na mobilu */
    }
}

/* OBRÁZEK */
.lp-image {
    flex: 1; 
    display: flex;            
    align-items: center;      
    justify-content: center;
    background-color: var(--col-mint-light); /* Barva pozadí pod letákem */
    overflow: hidden;
}

.lp-image img {
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: cover; 
}

/* OBSAH A TEXTY */
.lp-content {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.lp-date {
    color: var(--col-teal-dark);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.lp-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--col-teal-dark);
}

.lp-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--col-teal-dark);
    opacity: 0.9;
    text-align: justify;
}

/* --- MOBILNÍ ÚPRAVA --- */
@media (max-width: 927px) {
    .latest-post-banner {
        flex-direction: column; 
        margin-top: 20px;
    }

    .lp-image {
        width: 100%;
        height: auto; 
    }

    .lp-content {
        padding: 25px; 
        
    }

    .lp-content h2 {
        font-size: 1.35rem;
    }
}



/* =========================================
   21. ČLÁNEK: MODERNÍ GRID (WIDE)
   ========================================= */

.article-wide-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.span-full {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    text-align: center;
}

/* Úvodní tučný text */
.intro-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--col-teal-dark);
    font-weight: 650;
    text-align: justify;
}

.article-row {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
    align-items: center;
    margin-bottom: 80px; 
}

/* 3. Obrázky v článku */
.article-img-box {
    width: 100%;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow); 
    position: relative;
}

.article-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. Textové bloky */
.text-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--col-teal-dark);
    opacity: 0.9;
    text-align: justify;
}

.text-block h3 {
    font-size: 1.8rem;
    color: var(--col-teal-dark);
    margin-bottom: 35px;
}


/* 6. Závěrečný box */
.conclusion-card {
    background-color: var(--white);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid var(--col-orange);
    box-shadow: var(--shadow);
}

@media (min-width: 901px) {
    .article-row.pic-left .text-block {
        order: 2; /* Text jde doprava */
    }
    .article-row.pic-left .article-img-box {
        order: 1; /* Fotka jde doleva */
    }
}

/* --- MOBILNÍ VERZE --- */
@media (max-width: 900px) {
    .article-row {
        display: flex;       /* Pod sebe */
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .article-img-box {
        height: 300px;
    }
}

/* =========================================
   50. DETAIL ČLÁNKU - ZAROVNÁNÍ TEXTU DOLEVA (pod 490px)
   ========================================= */
@media (max-width: 490px) {
    /* Zarovná text v detailu článku (jak ten úvodní, tak ty vedle fotek) doleva */
    .article-wide-wrapper .intro-text,
    .article-wide-wrapper .text-block p,
    .article-wide-wrapper .span-full p {
        text-align: left !important;
        hyphens: auto; /* Pro hezčí dělení dlouhých slov na mobilu */
    }
}
/* =========================================
   22. NÁŠ TÝM (MEDAILONKY)
   ========================================= */

/* Nadpis sekce */
.team-section-title {
    text-align: center;          
    margin: 80px auto 50px auto;
    color: var(--col-teal-dark);
    font-size: 2rem;
    position: relative;
    display: block;             
    width: 100%;
}

.team-section-title:first-of-type {
    margin-top: 20px; 
}

/* Ozdobná čára pod nadpisem */
.team-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--col-orange);
    margin: 10px auto 0 auto;   
    border-radius: 2px;
}
/* Mřížka pro karty */
.team-grid {
    display: flex;            /* Změněno z grid na flex */
    flex-wrap: wrap;          /* Povolí kartám skočit na další řádek */
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.team-card {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-bottom: 4px solid transparent; 
    /* TYTO DVĚ VLASTNOSTI PŘIDEJ: */
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Barevné pozadí nahoře v kartě */
.card-header-bg {
    height: 100px;
    background: linear-gradient(135deg, var(--col-mint-light), var(--col-teal-dark));
    width: 100%;
}

/* Různé barvy pro různé role (pomocí tříd) */
.role-medic .card-header-bg { background: linear-gradient(135deg, #e53e3e, #c53030); } 
.role-leader .card-header-bg { background: linear-gradient(135deg, var(--col-teal-med), var(--col-teal-dark)); } 
.role-boss .card-header-bg { background: linear-gradient(135deg, var(--col-yellow-pale), var(--col-orange)); } 

/* Hlavička pro bývalé členy (elegantní tlumená šedomodrá) */
.role-former .card-header-bg { 
    background: linear-gradient(135deg, #dfd1c1, #b5a28c); 
}
.role-former .team-role { 
    color: #9e8a72; 
}

/* Tmavší, solidní ocelově stříbrná pro Hlavního vedoucího */
.role-main-leader .card-header-bg { 
    /* Používáme tmavší odstíny šedé (#B0B0B0, #DCDCDC, #707070) bez čistě bílé */
    background: linear-gradient(135deg, #B0B0B0 0%, #DCDCDC 50%, #707070 100%); 
    /* Odstraníme vnitřní stín, který přidával jas */
    box-shadow: none;
}

.role-main-leader .team-role { 
    /* Tmavší barva textu pro perfektní čitelnost */
    color: #444; 
    font-weight: 700;
}

/* Fotka v kruhu */
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--white);
    background-color: #eee; 
    margin: -70px auto 15px auto; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 0 35px 40px 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.team-info .btn {
    margin-top: auto !important; 
}

/* Skryje dlouhý text */
.more-text {
    display: none;
}

/* Třída, kterou přidáme po kliknutí */
.more-text.show {
    display: inline; /* Zobrazí text, aby plynule navazoval */
}

/* Vzhled rozbalovacího tlačítka */
.read-more-btn {
    display: inline-block;
    margin-top: 5px;
    color: var(--col-orange); /* Použij vaši klubovou oranžovou */
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

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

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--col-teal-dark);
    margin-bottom: 5px;
}

.team-role {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.team-role span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: center;
    
}

/* Tento kód automaticky přidá tečku před každou funkci */
.team-role span::before {
    content: "• ";
    margin-right: 5px;
    opacity: 0.7;
}

/* Barevné texty rolí */
.role-medic .team-role { color: #e53e3e; }
.role-boss .team-role { color: var(--col-orange); }
.role-leader .team-role { color: var(--col-teal-dark); }

.team-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--col-teal-dark);
    opacity: 0.8;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
    margin-bottom: 15px;
}


/* =========================================
   OPRAVA KONTAKTU PRO MOBIL
   ========================================= */

@media (max-width: 768px) {
    
    /* 1. Ujistíme se, že hlavní kontejner nemá divné okraje */
    .container {
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Zabrání vodorovnému posuvníku */
    }

    /* 2. Obal kontaktů srovnáme pod sebe a na střed */
    .contact-wrapper {
        display: flex;
        flex-direction: column; /* Boxy pod sebe */
        align-items: center;    /* Zarovnat na střed */
        justify-content: center;
        width: 100%;            /* Využít celou šířku */
        margin: 0;              /* Zrušit vnější odsazení */
        padding: 0;             /* Zrušit vnitřní odsazení */
        gap: 30px;              /* Mezera mezi boxy */
        margin-bottom: 60px !important;
    }

    /* 3. Samotné boxy (Info i Formulář) roztáhneme */
    .contact-info-box, 
    .contact-form-box {
        width: 100% !important;  /* Vynutit plnou šířku */
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;  /* Aby padding nezvětšoval šířku */
    }
}

@media (max-width: 768px) {
    /* Uvnitř odstavců (p) se značka <br> nebude zobrazovat = nebude odřádkovávat */
    p br, .text-block br, .news-content br {
        display: none;
    }
}

/* =========================================
   44. ÚPRAVA KONTAKTNÍHO FORMULÁŘE PRO MOBILY
   ========================================= */
@media (max-width: 450px) {
    /* 1. Vyfoukneme tu obří vatu kolem formuláře, získáme tím spoustu místa! */
    .contact-form-box {
        padding: 25px 20px !important;
    }

    /* 2. Zmenšíme hlavní nadpis, aby se hezky vešel vedle ikonky na jeden řádek */
    .contact-form-box h3 {
        font-size: 1.4rem !important;
    }

    .contact-form-box label{
        font-size: 0.8rem;
    }

    /* 3. Zmenšíme políčka a jejich text, aby to působilo elegantněji */
    input, textarea {
        padding: 12px 10px !important;
        font-size: 0.8rem !important;
    }

    /* 4. Oprava checkboxu - zarovnáme čtvereček nahoru k prvnímu řádku textu */
    .checkbox-wrapper {
        align-items: flex-start !important; 
        gap: 10px !important;
    }
    
    .checkbox-wrapper input[type="checkbox"] {
        margin-top: 3px !important; /* Lehce ho posuneme, aby přesně lícoval s textem */
        flex-shrink: 0;             /* Zákaz zmenšování samotného čtverečku */
    }
}

/* =========================================
   ROZBALOVACÍ MENU (DROPDOWN)
   ========================================= */
.nav-links li.dropdown {
    position: relative; /* Aby se podmenu pozicovalo vůči tomuto bodu */
}

/* Samotné vysouvací menu */
.dropdown-menu {
    display: none; /* Skryté ve výchozím stavu */
    position: absolute;
    top: 100%; /* Hned pod lištou */
    left: 0;
    background-color: var(--white);
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    flex-direction: column; 
}

/* Položky uvnitř rozbalovacího menu */
.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--col-teal-dark);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none; 
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Hover efekt na položky v menu */
.dropdown-menu li a:hover {
    background-color: #f9f9f9;
    color: var(--col-orange);
    padding-left: 24px; /* Malý posun doprava pro efekt */
}

/* Zobrazení menu při najetí myší (Desktop) */
@media (min-width: 769px) {
    .nav-links li.dropdown:hover .dropdown-menu {
        display: flex; /* Ukáže se jako flexbox */
    }
}

/* --- MOBILNÍ VERZE --- */
@media (max-width: 1100px) {
    .dropdown-menu {
        position: static; 
        box-shadow: none;
        background-color: var(--col-light); 
        width: 100%;
        padding: 0;
    }

    .dropdown-menu li a {
        padding-left: 17px; 
        color: var(--col-teal-dark);
        border-bottom: none;
        padding-top: 10px;
        line-height: 1.3;
    }
    
    /* Třída .show se přidá JavaScriptem při kliknutí */
    .dropdown-menu.show {
        display: flex;
    }
    
    /* Šipka dolů u rodiče */
    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 0.7em;
        margin-left: 5px;
    }
}

/* =========================================
   SEKCE VÝLETY (TRIPS)
   ========================================= */

.trip-card {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 25px;
    overflow: hidden; 
    box-shadow: var(--shadow); 
    margin-bottom: 50px;
    transition: transform 0.3s ease;
}

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

.trip-card.reverse {
    flex-direction: row-reverse;
}

/* OBRÁZEK VÝLETU */
.trip-img {
    flex: 1; 
    display: flex;            
    align-items: center;      
    justify-content: center;
    background-color: var(--white); 
    overflow: hidden;
}

.trip-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* TEXT VÝLETU */
.trip-content {
    flex: 1; 
    padding: 25px;
}

.trip-date {
    display: inline-block;
    background-color: var(--col-yellow-pale);
    color: var(--col-teal-dark);
    padding: 5px 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.trip-content h2 {
    color: var(--col-teal-dark);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.trip-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--col-teal-dark);
    opacity: 0.9;
    text-align: justify;
}

/* Statistiky výletu (ikonky) */
.trip-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    justify-content: left;
}

.stat-item {
    font-size: 1rem;
    color: #555;
}

/* --- MOBILNÍ ÚPRAVA --- */
@media (max-width: 1060px) {
    .trip-card, .trip-card.reverse {
        flex-direction: column; 
        height: auto;
    }

    .trip-img {
        width: 100%;
        height: 250px; 
    }

    .trip-content {
        padding: 25px;
    }
    
    .trip-content h2 {
        font-size: 1.5rem;
    }

    .trip-stats {
        justify-content: center;
    }
}

/* =========================================
   OPRAVA MENU NA MOBILU (Naše akce)
   ========================================= */
@media (max-width: 1100px) {
    /* 1. Zarovnání textu na střed */
    .nav-links li.dropdown .dropdown-toggle {
        justify-content: center !important; 
        width: 100%;
        padding-bottom: 5px;
    }

    /* 2. Odstranění druhé (duplicitní) šipky, kterou tam dává šablona */
    .nav-links li.dropdown .dropdown-toggle::after {
        display: none !important; /* Skryje automatickou šipku */
        content: none !important;
    }
}

/* Úprava patičky: Na PC čára, na mobilu odřádkování */
.mobile-break { display: none; } /* Na PC enter skryjeme */

@media (max-width: 768px) {
    .desktop-divider { display: none; }
    .mobile-break { display: block; }  
    .copyright { line-height: 1.6; }   
}

@media (max-width: 768px) {
    .intro-text {
        font-size: 1.1rem; /* Menší písmo jen pro mobil */
        line-height: 1.5;
    }
}

/* =========================================
   ZIG-ZAG PRO BANNERY NA HLAVNÍ STRÁNCE
   ========================================= */
/* Toto pravidlo platí jen pro počítače a tablety (nad 768px) */
@media (min-width: 928px) {
    /* Třída .reverse otočí směr Flexboxu */
    .latest-post-banner.reverse {
        flex-direction: row-reverse;
    }
}

/* =========================================
   ZÁCHRANA PRO "NÁŠ INSTAGRAM" NA MOBILU
   ========================================= */
@media (max-width: 768px) {
    /* 1. Odlepíme odkaz z pravého dolního rohu a vrátíme ho mezi lidi */
    .latest-post-banner .read-more-link {
        position: static !important; 
        margin: 5px 0 0 8px !important;
    }

    /* 2. Obal s tlačítky vycentrujeme a dáme jim mezeru */
    .latest-post-banner .lp-content div {
        display: flex;
        flex-wrap: wrap; /* Pokud se nevejdou, skočí pod sebe */
        justify-content: left; /* Zarovnáme pěkně na střed */
        gap: 20px; /* Dostatečná mezera, aby se nepřekrývaly */
        margin-top: 25px;
    }
}


/* Zatemnění pozadí (skryté ve výchozím stavu) */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Samotné bílé okno */
.bio-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto; 
}

/* Křížek na zavření */
.close-bio {
    position: absolute;
    top: 15px; 
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    z-index: 10;
}

/* Rozložení: fotka vlevo, text vpravo */
.bio-modal-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Obal pro fotku v okně */
.bio-modal-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--col-orange);
}

/* Stylování textů v okně */
.bio-modal-text {
    text-align: left;
}
.bio-modal-text h3 {
    color: var(--col-teal-dark);
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.bio-roles {
    color: var(--col-orange);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: left; 
}
.bio-desc {
    font-style: italic;
    line-height: 1.6;
    text-align: justify;
   
}

.bio-roles span {
    display: block;
}

.bio-roles span::before {
    content: "• ";
    margin-right: 5px;
    opacity: 0.7; 
}

/* Mobilní zobrazení - fotka nahoru, text dolů */
@media (max-width: 720px) {
    .bio-modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bio-modal-text {
        text-align: center;
    }
    .bio-modal-image img {
        width: 180px;
        height: 180px;
    }
}


/* =========================================
   31. ABSOLUTNÍ NANO DISPLEJE (pod 300px)
   ========================================= */
@media (max-width: 300px) {
    /* Osekáme hlavní kontejner na krev */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Zmenšíme i ty nejmenší mezery a ikony, abychom nahnali pixely pro text */
    .card {
        padding: 15px 10px !important; 
        border-radius: 15px !important; /* Zmenšíme i zakulacení rohů, ať to ladí */
    }

    .card-icon-img {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 15px !important;
    }

    .card h3 {
        font-size: 1.25rem !important;
    }

    /* Tlačítko se roztáhne, ale ubereme mu ještě víc vaty */
    .btn {
        padding: 8px 5px !important;
        font-size: 0.7rem !important;
    }

    /* TADY JE HLAVNÍ ZÁCHRANA:
       Kdyby náhodou jakýkoliv skrytý prvek (obrázek, div, text) 
       měl natvrdo nastavenou šířku, tady mu ji všem plošně zakážeme. */
    * {
        max-width: 100vw !important; 
    }
}

/* =========================================
   32. OPRAVA BOXU PŘEDSEDKYNĚ (pro malé mobily)
   ========================================= */
@media (max-width: 400px) {
    .chairman-box {
        padding: 10px 15px !important; /* Výrazně ubereme vatu po stranách */
        font-size: 0.95rem !important; /* O chloupek zmenšíme písmo */
        max-width: 100%;               /* Přísný zákaz přetéct přes okraj karty */
        box-sizing: border-box;
        word-wrap: break-word;         /* Jistota je jistota - kdyby se to pořád nevešlo, zalomí se to */
    }
}