#page-filtered #page .main-inner { 
    max-width: 1200px;
    padding: 1.5rem;
}

#page-filtered #page .main-inner [role="main"] { 
    padding: 0;
}

/* Courses Filtration Page Styles */

/* Main wrapper */
.courses-filtration-wrapper {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

/* Filtration Sidebar */
.filtration-sidebar {
    flex: 0 0 328px;
    height: fit-content;
    overflow-y: auto;
}

/* Hide old header styles - no longer needed */
.filtration-header {
    display: none;
}

.filtration-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.toggle-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #368537;
    margin: 0;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.toggle-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(86deg) brightness(104%) contrast(97%);
}

.filtration-content {
    transition: all 0.3s ease;
    padding: 0 5px;
}

.filtration-filters {
    /* Filters will be populated by JavaScript */
}

/* Main Content Area */
.courses-main-content {
    flex: 1;
    min-width: 0;
}

/* Courses page title */
.courses-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 2rem 0;
    padding: 0;
    line-height: 1.2;
}

/* Active Filters Section */
.active-filters {
    margin-bottom: 2rem;
    margin-top: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.active-filters-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.clear-filters-link {
    font-size: 14px;
    color: #368537;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.clear-filters-link:hover {
    color: #2a6a2b;
}

.filter-category-group {
    margin-bottom: 1rem;
    display: block;
}

.filter-category-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.filter-category-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.active-filter-tags {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 20px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    font-size: 12px;
    color: #333;
    transition: all 0.2s ease;
}

.active-filter-tag:hover {
    border-color: #368537;
    background: #e9ecef;
}

.remove-filter-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.remove-filter-btn:hover {
    color: #dc3545;
}

.courses-count {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    display: inline-block;
    font-weight: 500;
}





/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem 0;
    align-items: start;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Course Card Template podle obrázku */
.course-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.course-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.course-thumbnail .play-icon img {
    width: 38px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

.course-thumbnail:hover .play-icon img {
    transform: scale(1.1);
}

.course-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gov-cz-card__title.course-title {
    font-size: 1.25rem;
    color: #368537;
    font-weight: 500;
    line-height: 150%;
    margin-bottom: 0;
}

.gov-cz-card .course-link {
    height: 100%;
}

.gov-cz-card .course-link:hover {
    text-decoration: none;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
}

.course-duration .clock-icon {
    opacity: 0.7;
}

.course-description {
    color: #2E2D2C;
    font-size: 1rem;
    line-height: 1.5;
    overflow: hidden;
    flex: 1;
}

.course-description p {
    margin-bottom: 0;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.course-tag {
    background: #f0f8f0;
    color: #368537;
    padding: 0.25rem 0.5rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e0f0e0;
}

.star-icon { 
    margin-right: 0.5rem;
}

/* Pagination Styles */
.courses-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
    text-decoration: none;
}

.pagination-link:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    background: #28a745;
    border: 1px solid #28a745;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design */

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

@media (max-width: 768px) {
    .courses-filtration-wrapper {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .courses-page-title {
        font-size: 1.75rem;
        margin: 0 0 1.5rem 0;
    }
    
    .filtration-sidebar {
        flex: none;
        width: 100%;
        position: static;
        order: 1;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 1.5rem;
    }
    
    .courses-main-content {
        order: 2;
    }
    
    .filtration-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        cursor: pointer;
    }
    
    .filtration-toggle:hover {
        background: none;
        border: none;
        box-shadow: none;
    }
    
    .filtration-toggle:active {
        transform: none;
    }
    
    .filtration-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .filtration-content.expanded {
        max-height: 2000px;
        opacity: 1;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .course-card {
        min-height: 280px;
    }
    
    .course-thumbnail {
        height: 140px;
    }
    
    .course-content {
        padding: 1rem;
    }
    
    .pagination-wrapper {
        gap: 0.25rem;
    }
    
    .pagination-link,
    .pagination-current {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .gov-cz-empty {
        min-height: 250px;
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .courses-filtration-wrapper {
        padding: 0.5rem;
    }
    
    .courses-page-title {
        font-size: 1.5rem;
        margin: 0 0 1rem 0;
    }
    
    .filtration-sidebar {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .filtration-toggle {
        display: block;
    }
    
    .filtration-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .filtration-content.expanded {
        max-height: 2000px;
        opacity: 1;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .course-card {
        min-height: 260px;
    }
    
    .course-thumbnail {
        height: 120px;
    }
    
    .course-content {
        padding: 0.75rem;
    }
    
    .gov-cz-card__title.course-title {
        font-size: 1.25rem;
        color: #368537;
        font-weight: 500;
    }
    
    .course-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .pagination-wrapper {
        gap: 0.25rem;
    }
    
    .pagination-link,
    .pagination-current {
        min-width: 32px;
        height: 32px;
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .gov-cz-empty {
        min-height: 200px;
        padding: 1.5rem 1rem;
    }
    
    .gov-cz-empty__title {
        font-size: 18px;
    }
    
    .gov-cz-empty__text {
        font-size: 14px;
        max-width: 300px;
    }
}

/* Desktop - vždy zobrazená filtrace */
@media (min-width: 769px) {
    .filtration-content {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
    
    .filtration-toggle {
        display: none !important;
    }
    
    .filtration-sidebar {
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation for toggle */
.filtration-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.filtration-content.expanded {
    margin-top: 1.5rem;
    max-height: 1000px;
    opacity: 1;
}

/* Loading states */
.courses-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.courses-empty {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

/* Filter item styles */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section-title {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.filter-checkbox label {
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

.filter-search {
    margin-bottom: 1rem;
}

.filter-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-search input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

/* ===== GOV.CZ DESIGN SYSTEM STYLES ===== */

/* Gov.cz checkbox styly podle obrázku */
.gov-cz-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
}

.gov-cz-checkbox__input {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    border: 2px solid #6D6D6D;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0;
}

.gov-cz-checkbox__input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-image: url('/theme/eakademiedia/pix/courses/icons/checkmark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.gov-cz-checkbox__input:checked {
    background: #368537;
    border-color: #368537;
}

.gov-cz-checkbox__input:hover {
    border-color: #2d6b2e;
}

.gov-cz-checkbox__input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 133, 55, 0.2);
}

.gov-cz-checkbox__label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
    user-select: none;
    transition: color 0.2s ease;
    margin: 0;
    font-weight: 400;
}

.gov-cz-checkbox__label:hover {
    color: #368537;
}

/* Gov.cz search input styly podle oficiální dokumentace */
.gov-cz-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.gov-cz-search__input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.4;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #fff;
}

.gov-cz-search__input:focus {
    outline: none;
    border-color: #368537;
    box-shadow: 0 0 0 3px rgba(54, 133, 55, 0.2);
}

.gov-cz-search__input:hover {
    border-color: #999;
}

.gov-cz-search__input:focus:hover {
    border-color: #368537;
}

.gov-cz-search__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-cz-search__icon img {
    opacity: 0.6;
}

/* Gov.cz card styly podle obrázku */
.gov-cz-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gov-cz-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.gov-cz-card__content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gov-cz-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gov-cz-card__title a:hover {
    color: #368537;
}

.gov-cz-card__text {
    color: #2E2D2C;
    line-height: 150%;
    flex: 1;
}

/* Gov.cz tag styly podle obrázku */
.gov-cz-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #f0f8f0;
    color: #368537;
    border: 1px solid #e0f0e0;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}



.gov-cz-tag:hover {
    background: #e0f0e0;
    border-color: #c8e6c8;
    transform: translateY(-1px);
}

/* Pagination styly podle návrhu */
.gov-cz-pagination {
    margin-top: 1.5rem;
}

.gov-cz-pagination__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.gov-cz-pagination__item {
    margin: 0;
}

.gov-cz-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #368537;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gov-cz-pagination__link:hover {
    background: transparent;
    border: none;
    color: #2d6b2e;
    text-decoration: none;
}

.gov-cz-pagination__link:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.gov-cz-pagination__link--current {
    background: #e0f0e0;
    border: none;
    color: #368537;
    border-radius: 6px;
}

.gov-cz-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    color: #368537;
    font-size: 16px;
    font-weight: 500;
}

/* Gov.cz empty state styly */
.gov-cz-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.gov-cz-empty__icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-cz-empty__title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.gov-cz-empty__text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    text-align: center;
    max-width: 400px;
}

/* Gov.cz message styly */
.gov-cz-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.gov-cz-message--info {
    background: transparent;
    border: none;
    color: #6c757d;
}

.gov-cz-message--success {
    background: #e6ffe6;
    border: 1px solid #b3ffb3;
    color: #006600;
}

.gov-cz-message--warning {
    background: #fff2e6;
    border: 1px solid #ffcc99;
    color: #cc6600;
}

.gov-cz-message--error {
    background: #ffe6e6;
    border: 1px solid #ffb3b3;
    color: #cc0000;
}

/* Gov.cz button styly */
.gov-cz-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.gov-cz-button--primary {
    background: #368537;
    color: #fff;
    border-color: #368537;
}

.gov-cz-button--primary:hover {
    background: #2d6b2e;
    border-color: #2d6b2e;
}

.gov-cz-button--secondary {
    background: #fff;
    color: #368537;
    border-color: #368537;
}

.gov-cz-button--secondary:hover {
    background: #f5f5f5;
}

.gov-cz-button--small {
    padding: 0.5rem 1rem;
    font-size: 14px;
}

.gov-cz-button--large {
    padding: 1rem 2rem;
    font-size: 18px;
}

/* Gov.cz input styly */
.gov-cz-input {
    position: relative;
    margin-bottom: 1rem;
}

.gov-cz-input__field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.gov-cz-input__field:focus {
    outline: none;
    border-color: #368537;
    box-shadow: 0 0 0 3px rgba(54, 133, 55, 0.2);
}

.gov-cz-input__field:hover {
    border-color: #999;
}

.gov-cz-input__field::placeholder {
    color: #666;
}

/* Gov.cz search input s ikonou lupy */
.gov-cz-input--search .gov-cz-input__field {
    padding-right: 2.5rem;
    background-image: url('/theme/eakademiedia/pix/courses/icons/search.svg');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
}

/* Gov.cz search input styly */
.gov-cz-search {
    position: relative;
    margin-bottom: 1rem;
}

.gov-cz-search__input {
    width: 100%;
    padding: 5px 28px 6px 8px;
    border: 1px solid #B0B0B0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
    background-image: url('/theme/eakademiedia/pix/courses/icons/search.svg');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    box-sizing: border-box;
}

.gov-cz-search__input:focus {
    outline: none;
    border-color: #368537;
    box-shadow: 0 0 0 3px rgba(54, 133, 55, 0.2);
}

.gov-cz-search__input:hover {
    border-color: #999;
}

.gov-cz-search__input::placeholder {
    color: #666;
}

.gov-cz-search__icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
}

/* Gov.cz form group styly */
.gov-cz-form-group {
    margin-bottom: 1.5rem;
}

.gov-cz-form-group__label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.gov-cz-form-group__help {
    font-size: 14px;
    color: #666;
    margin-top: 0.25rem;
}

/* Gov.cz filter section styly podle obrázku */
.gov-cz-filter-section {
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.gov-cz-filter-section__title {
    font-size: 16px;
    font-weight: 400;
    color: #368537;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
    text-transform: none;
}

/* Responsive gov.cz styly */
@media (max-width: 768px) {
    .gov-cz-pagination__link {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 14px;
    }
    
    .gov-cz-card__content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .gov-cz-pagination__link {
        min-width: 32px;
        height: 32px;
        padding: 0.25rem;
        font-size: 12px;
    }
    
    .gov-cz-card__content {
        padding: 0.75rem;
    }
}



/* Utility classes for showing/hiding elements */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Mobile filters state */
.filtration-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filtration-content.expanded {
    max-height: 1000px;
}

/* Element visibility states */
.courses-count.hidden {
    display: none !important;
}

.courses-count.visible {
    display: block !important;
}

.active-filters.hidden {
    display: none !important;
}

.active-filters.visible {
    display: block !important;
}

.pagination.hidden {
    display: none !important;
}

/* Checkbox visibility during search */
.gov-cz-checkbox.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-category-values {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .active-filter-tag {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-results-info {
        font-size: 0.875rem;
    }
    
    .filter-logic-hint {
        font-size: 0.6875rem;
    }
}

/* ========================================
   FRONTPAGE COURSE CARDS - 4 cards per row
   ======================================== */

/* Frontpage course list wrapper */
.frontpage-course-list-all {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem 0;
    align-items: start;
}



/* Responsive grid adjustments for frontpage */
@media (max-width: 1200px) {
    .frontpage-course-list-all {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .frontpage-course-list-all {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .frontpage-course-list-all {
        grid-template-columns: 1fr;
    }
}