/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Ensure form controls use the same font as the site */
input, select, textarea, button,
.form-input, .form-textarea, .form-select {
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    background: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Navigation */
.nav {
    display: flex;
    gap: 0.75rem; /* větší mezery mezi položkami menu */
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    /* stejné rozměry a centrování obsahu */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px; /* sjednocení šířky na desktopu */
    text-align: center;
}

/* Na malých displejích zmenšíme minimální šířku, aby se menu vešlo */
@media (max-width: 640px) {
    .nav { gap: 0.5rem; }
    .nav-link { min-width: 100px; }
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-link.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-link.green { background: #10b981; }
.nav-link.orange { background: #f59e0b; }
.nav-link.purple { background: #8b5cf6; }
.nav-link.blue { background: #3b82f6; }
.nav-link.pink { background: #ec4899; }
.nav-link.indigo { background: #6366f1; }

.nav-link.green:hover { background: #059669; }
.nav-link.orange:hover { background: #d97706; }
.nav-link.purple:hover { background: #7c3aed; }
.nav-link.blue:hover { background: #2563eb; }
.nav-link.pink:hover { background: #db2777; }
.nav-link.indigo:hover { background: #4f46e5; }

.admin-btn {
    background: #e0e0e0; /* Changed to a distinct light gray */
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid #c0c0c0; /* Darker border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* More prominent shadow */
}

.admin-btn:hover {
    background: #d0d0d0; /* Darker on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Main content */
.main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    color: white;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Added default border */
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Added default shadow */
}

.btn-primary {
    background: #10b981;
    color: white;
    border-color: #10b981; /* Ensure border matches background */
}

.btn-primary:hover {
    background: #059669;
    border-color: #059669; /* Ensure border matches background */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); /* Enhanced shadow */
}

.btn-secondary {
    background: #d1d5db; /* Changed to a darker gray for better visibility */
    color: #374151; /* Changed text color */
    border: 1px solid #a0a0a0; /* Darker border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* More prominent shadow */
}

.btn-secondary:hover {
    background: #b0b0b0; /* Darker gray on hover */
    color: #1f2937; /* Darker text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444; /* Ensure border matches background */
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626; /* Ensure border matches background */
}
.btn-warning {
    background: #f59e0b; /* Oranžovo-jantarová barva */
    color: white;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background: #d97706; /* Tmavší odstín pro hover */
    border-color: #d97706;
}
/* Cards */
.cards {
    display: grid;
    /* Zde je klíčová změna z 300px na 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #c0c0c0; /* More prominent border */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Even stronger shadow on hover */
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Content sections */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #c0c0c0; /* More prominent border */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.content-section h2 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content-section h3 {
    color: #374151;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.25rem;
}
/* Styly pro obsah z editoru (seznamy, odstavce atd.) */
.content-section ul,
.content-section ol {
    padding-left: 30px; /* Přidá odsazení pro odrážky/čísla */
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.75rem; /* Mezera mezi položkami seznamu */
}

.content-section p {
    margin-bottom: 1rem; /* Konzistentní mezera pod odstavci */
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #a0a0a0; /* Darker border for inputs */
    background-color: #ffffff; /* Ensure white background */
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit; /* Keep fonts consistent with site */
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.table tr:hover {
    background: #f9fafb;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

.message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination-link,
.pagination-current {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.pagination-link {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-current {
    background: #3b82f6;
    color: white;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
/* Desktop/tablet alignment: contact flush left, links flush right, subscribe centered */
@media (min-width: 641px) {
    .footer .footer-content { grid-template-columns: 1fr 1fr 1fr; }
    .footer .footer-content .footer-contact { justify-self: start; }
    .footer .footer-content .footer-links { justify-self: end; }
    .footer .footer-content .footer-subscribe { justify-self: center; }
}
/* Push the right-most footer block as far right as possible */
.footer .footer-content { margin-right: 0; }
/* Na desktopu necháme tři sloupce se stejnou šířkou v rámci containeru */

/* Mobile-first responsive ordering for footer columns */
@media (max-width: 640px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-subscribe { order: 1; }
    .footer-links { order: 2; }
    .footer-contact { order: 3; }
    /* Center columns on mobile while keeping text left inside */
    .footer .footer-content > * { justify-self: center; width: 100%; max-width: 560px; }
    .footer .footer-content { margin-right: 0; }

    /* Mobile UX polish */
    .footer .subscription-section {
        border-bottom: 1px solid #374151;
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }
    .footer .footer-links h3,
    .footer .footer-contact h3 { margin-top: 0.25rem; }

    /* Larger tap targets for footer links */
    .footer .footer-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        margin: 0.4rem 0;
        background: #111827; /* slate-900 */
        border: 1px solid #374151; /* slate-700 */
        border-radius: 10px;
        color: #d1d5db;
        text-decoration: none;
    }
    .footer .footer-links a::after {
        content: '›';
        color: #9ca3af;
        font-size: 1.2rem;
        line-height: 1;
    }
    .footer .footer-links a:active { transform: scale(0.996); }

    /* Tighter, consistent spacing for contact block */
    .footer .footer-contact p { margin: 0.25rem 0 0.75rem; }
}

.footer h3 {
    margin-bottom: 1rem;
    color: #f9fafb;
}

.footer p,
.footer a {
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Admin styles */
.admin-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.admin-nav a {
    padding: 0.5rem 1rem;
    background: #e0e0e0; /* Changed to a distinct light gray */
    color: #313131; /* Darker text for better contrast */
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #c0c0c0; /* Added border */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Added shadow */
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6; /* Ensure border matches background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
}
div[style*="display: flex"] form button.btn {
    /* Reset vzhledu operačního systému */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    border: none; /* Důležitý reset */

    /* Sjednocení vzhledu s <a> tagy */
    display: inline-block;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* 
 * 2. SPECIFICKÁ PRAVIDLA PRO BAREVNÉ VARIANTY
 * Tato pravidla mají díky dvojité třídě (.btn.btn-danger) vyšší prioritu
 * a správně přebijí obecné styly.
*/
button.btn.btn-danger {
    color: white;
    background-color: #ef4444;
    border: 1px solid #ef4444;
}
button.btn.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

button.btn.btn-warning {
    color: white;
    background-color: #f59e0b;
    border: 1px solid #f59e0b;
}
button.btn.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

/* Můžeme přidat i další, např. pro zelené tlačítko potvrzení */
button.btn[style*="background: #10b981"] {
    border: 1px solid #10b981;
}
button.btn[style*="background: #10b981"]:hover {
    background-color: #059669 !important; /* !important je zde nutné kvůli inline stylu */
    border-color: #059669;
}
/* File upload */
.file-upload {
    border: 2px dashed #d1d2d6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.file-upload:hover {
    border-color: #9ca3af;
}

.file-upload.dragover {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Responsive design */
@media (max-width: 768px) {
    
    /* 1. Zmenšíme okraje kontejneru na mobilu */
    .container {
        padding: 0 15px;
    }

    /* 2. Opravíme layout karet, aby měly vždy jen jeden sloupec */
    .cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 3. Zmenšíme vnitřní odsazení hlavních bílých boxů */
    .content-section {
        padding: 1.5rem;
    }

    /* 4. Zjednodušíme layout hlavičky a navigace */
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .nav {
        width: 100%;
        justify-content: center;
        gap: 0.25rem; /* Zmenšíme mezery mezi tlačítky */
    }
    .nav-link {
        padding: 0.5rem 0.75rem; /* Zmenšíme tlačítka */
        font-size: 0.85rem;
    }

    /* 5. Zmenšíme nadpisy v úvodní sekci */
    .hero h1 {
        font-size: 2rem;
    }

    /* 6. Opravíme dvousloupcový layout (např. na stránce Konzultace) */
    .layout-grid-two-columns {
        grid-template-columns: 1fr;
    }
}

/* Icon Wrapper Styles */
.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0; /* Light gray background for all icon wrappers */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0; /* Subtle border */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.icon-wrapper .icon {
    color: #333; /* Default icon color */
    font-size: 1.5rem; /* Ensure icons are visible */
}

/* Specific icon colors - these should override the default */
.icon-wrapper.green .icon { color: #10b981; }
.icon-wrapper.orange .icon { color: #f59e0b; }
.icon-wrapper.red .icon { color: #ef4444; }
.icon-wrapper.blue .icon { color: #3b82f6; }
.icon-wrapper.purple .icon { color: #8b5cf6; }
.icon-wrapper.pink .icon { color: #ec4899; }
.icon-wrapper.indigo .icon { color: #6366f1; }

/* For icons that are meant to be white on a colored background */
.icon-wrapper.white-icon .icon { color: white; }

/* Example of how to use: <div class="icon-wrapper white-icon" style="background-color: #3b82f6;">...</div> */
.plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* Mezera mezi textem a tlačítkem */
    padding: 1rem 1.5rem; /* Zmenšíme vnitřní okraje pro kompaktnější vzhled */
}

.plan-info {
    display: flex;
    flex-direction: column; /* Uložíme texty pod sebe */
}

.plan-title {
    font-size: 0.9rem;
    color: #6b7280; /* Světlejší barva pro méně důležitý text */
}

.plan-dates {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937; /* Tmavá barva pro důležité datum */
}

.plan-card .btn-small {
    /* Zajistí, že se text tlačítka nikdy nezalomí */
    white-space: nowrap;
    /* Přidáme flex pro dokonalé vycentrování ikony a textu */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
/*
================================================
Styly pro on-page editaci
================================================
*/
.editable-container {
    position: relative;
    border: 1px dashed transparent;
    transition: border-color 0.3s ease;
}
.is-editor .editable-container:hover {
    border-color: #f59e0b; /* Oranžový rámeček při najetí jen pro přihlášené */
}
.edit-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.is-editor .editable-container:hover .edit-btn {
    opacity: 1;
}
#editable-modal h3 {
    color: #1f2937 !important; /* Vynutí tmavou barvu pro nadpis okna */
}
#editable-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 998;
}
#editable-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;
}
#editable-modal h3 { margin-top: 0; }
#editable-modal .trumbowyg-box { margin-top: 1rem; margin-bottom: 1rem; }
.modal-buttons { display: flex; gap: 1rem; justify-content: flex-end; }

#editable-modal .trumbowyg-editor,
#editable-modal .trumbowyg-editor h1,
#editable-modal .trumbowyg-editor h2,
#editable-modal .trumbowyg-editor h3,
#editable-modal .trumbowyg-editor p,
#editable-modal .trumbowyg-editor div {
    color: #333 !important; /* Vynutí tmavou barvu textu uvnitř editoru */
    background: white; /* Zajistí bílé pozadí pro jistotu */
}
/*
================================================
Univerzální responzivní layouty
================================================
*/
.layout-grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Výchozí stav: Dva sloupce pro velké obrazovky */
    gap: 2rem;
    margin-bottom: 2rem;
}
.subscription-section {
    text-align: center;
    padding: 2rem 0;
    margin: 2rem 0;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
}
.subscription-section h3 {
    margin-bottom: 0.5rem;
}
.subscription-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 620px; /* zvětšeno pro širší pole e‑mailu */
    margin: 1rem auto 0;
}
.subscription-form input[type="email"] {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.1rem; /* větší výška pro pohodlné psaní */
    font-size: 1.05rem; /* mírně větší písmo */
}
.subscription-options {
    display: flex;
    gap: 1.5rem;
    color: #d1d5db;
}
.subscription-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.incentive-strip {
    background: rgba(255, 255, 255, 0.15); /* Lehce průhledné bílé pozadí */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 0 0 2rem 0;
    text-align: center;
    color: white;
}

.incentive-strip a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.incentive-strip a:hover {
    text-decoration: none;
}

/* Světlá varianta incentivního proužku (tmavý text, světlé pozadí) */
.incentive-strip.incentive-light {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
}
.incentive-strip.incentive-light a {
    color: #065f46;
}
.incentive-strip.incentive-light a:hover {
    color: #0f766e;
}

/* Lepší kontrast CTA v incentive-light boxu */
.incentive-strip.incentive-light .btn.btn-primary {
    background-color: #047857; /* tmavší zelena pro kontrast */
    border-color: #047857;
    color: #ffffff;
    font-weight: 700;
}
.incentive-strip.incentive-light .btn.btn-primary:hover,
.incentive-strip.incentive-light .btn.btn-primary:focus {
    background-color: #065f46;
    border-color: #065f46;
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.35);
}
.incentive-strip.incentive-light .btn.btn-primary:focus-visible {
    outline: 3px solid rgba(6, 95, 70, 0.4);
    outline-offset: 2px;
}
.article-list-grid {
    display: grid;
    grid-template-columns: 1fr; /* Výchozí pro mobily: jeden sloupec */
    gap: 2.5rem; /* Větší mezery mezi články */
}

.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex; /* Na mobilu se obsah skládá pod sebe */
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-card-image-link {
    display: block;
    overflow: hidden; /* Důležité pro efekt při najetí myší */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.article-card-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Klíčové pro moderní vzhled obrázku */
    transition: transform 0.4s ease;
}

.article-card-image-link:hover img {
    transform: scale(1.05); /* Lehký zoom efekt */
}

.article-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Zajistí, že obsah vyplní zbytek karty */
}

.article-card-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.article-card-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.article-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #667eea;
}

.article-card-excerpt {
    color: #4b5563;
    line-height: 1.6;
    flex-grow: 1; /* Odsune tlačítko na spodek karty */
}

.article-card-content .btn {
    margin-top: 1rem; /* Odsazení tlačítka od textu */
    align-self: flex-start; /* Zarovná tlačítko doleva */
}

/* Responzivní změna pro větší obrazovky (tablety a desktopy) */
@media (min-width: 768px) {
    .article-card {
        display: grid;
        grid-template-columns: 250px 1fr; /* Obrázek vlevo, text vpravo */
        align-items: center;
        flex-direction: row;
    }

    .article-card-image-link {
        height: 100%;
        border-radius: 12px 0 0 12px; /* Zaoblení jen na levé straně */
    }

    .article-card-image-link img {
        height: 100%;
    }
}

/* 
 * Media Query: Tato pravidla se aktivují POUZE na obrazovkách,
 * které jsou široké 992px nebo méně (tablety na výšku a mobily).
*/
@media (max-width: 992px) {
    .layout-grid-two-columns {
        grid-template-columns: 1fr; /* Změní layout na jeden sloupec */
    }
}
