/* ==========================================================================
   1. RESET GLOBÁLNÍCH VLASTNOSTÍ BODY ZE STYLE.CSS (PROTI ROZPADU MŘÍŽKY)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Rušíme flexbox centering ze style.css, který rozbíjel mřížku */
    display: block !important; 
    min-height: 100vh;
    color: #333; /* Základní barva textu pro blog (nadpisy apod.) */
}

/* Vynucení fixní pozice pro tvůj originální navbar ze style.css */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Odsazení obsahu blogu dolů, aby neprolézal pod fixní navbar */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px;
}

/* ==========================================================================
   2. CELKOVÉ SVĚTLEJŠÍ POZADÍ WEBU
   ========================================================================== */
#blog-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: url('../figs/background.jpg') no-repeat center center;
	background-size: cover;
}

/* ==========================================================================
   3. STRUKTURA MŘÍŽKY (GRID LAYOUT)
   ========================================================================== */
.blog-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.blog-welcome h1 {
    font-size: 4.5rem; /* Výrazně větší písmo pro dominantní nadpis */
    color: #f8f9fa;    /* Světlá, elegantní šedobílá barva */
    font-family: 'UnifrakturMaguntia', 'MedievalSharp', 'Old English Text MT', 'Textur', serif; 
    font-weight: normal; /* Gotické fonty jsou samy o sobě dost výrazné */
    margin-bottom: 10px;
}
.blog-welcome p {
    color: #555;
}

/* Samotná mřížka panelů */
.blog-grid {
    display: grid !important; /* Pojistka pro aktivaci mřížky */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

/* Speciální široká karta pro Construction */
.wide-card {
    grid-column: 1 / -1;
}

/* ==========================================================================
   4. DESIGN JEDNOTLIVÝCH PANELŮ (KARET)
   ========================================================================== */
.blog-card {
    background-color: #222;
    border-radius: 12px;
    padding: 25px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #fff;
}

.card-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
}

.card-content .subtitle {
    color: #ddd;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Seznamy článků uvnitř karet */
.post-list, .place-list {
    list-style: none;
}

.post-list li {
    margin-bottom: 12px;
}

.post-list a, .place-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff !important; /* Přebijeme šedou barvu odkazů ze style.css */
    font-weight: 500;
}

.post-list a:hover .post-title, .place-item:hover {
    text-decoration: underline;
}

.post-date {
    font-size: 0.8rem;
    color: #bbb !important;
    margin-top: 2px;
}

/* ==========================================================================
   5. UNIKÁTNÍ FOTOGRAFIE PRO KAŽDÝ PODPANEL
   ========================================================================== */
.card-recipes {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), 
                url('../figs/recipes.jpg') no-repeat center center;
    background-size: cover;
}

.card-instruments {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), 
                url('../figs/instruments.jpg') no-repeat center center;
    background-size: cover;
}

.card-devices {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), 
                url('../figs/devices.jpg') no-repeat center center;
    background-size: cover;
}

.card-cars {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), 
                url('../figs/cars.jpg') no-repeat center center;
    background-size: cover;
}

.card-prague {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), 
                url('../figs/prague.jpg') no-repeat center center;
    background-size: cover;
}

.card-europe {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), 
                url('../figs/europe.jpg') no-repeat center center;
    background-size: cover;
}

.card-construction {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), 
                url('../figs/construction.jpg') no-repeat center center;
    background-size: cover;
}
