.elementor-7802 .elementor-element.elementor-element-eddc6f0{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:0vw;--margin-bottom:0vw;--margin-left:0vw;--margin-right:0vw;--padding-top:010vw;--padding-bottom:0vw;--padding-left:0vw;--padding-right:0vw;}.elementor-7802 .elementor-element.elementor-element-54939d0{--display:flex;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--align-items:center;--gap:2vw 2vw;--row-gap:2vw;--column-gap:2vw;}.elementor-7802 .elementor-element.elementor-element-b644f41{width:var( --container-widget-width, 58% );max-width:58%;--container-widget-width:58%;--container-widget-flex-grow:0;}.elementor-7802 .elementor-element.elementor-element-b644f41 > .elementor-widget-container{margin:0vw 0vw 0vw 0vw;padding:02vw 010vw 02vw 010vw;}.elementor-7802 .elementor-element.elementor-element-09f195f .elementor-button{background-color:var( --e-global-color-accent );fill:var( --e-global-color-primary );color:var( --e-global-color-primary );border-radius:10px 10px 10px 10px;padding:20px 20px 20px 20px;}.elementor-7802 .elementor-element.elementor-element-09f195f{width:auto;max-width:auto;}.elementor-7802 .elementor-element.elementor-element-aaf510e > .elementor-widget-container{margin:0vw 10vw 0vw 010vw;}@media(max-width:1024px){.elementor-7802 .elementor-element.elementor-element-eddc6f0{--margin-top:0vw;--margin-bottom:0vw;--margin-left:0vw;--margin-right:0vw;--padding-top:012vw;--padding-bottom:0vw;--padding-left:0vw;--padding-right:0vw;}.elementor-7802 .elementor-element.elementor-element-54939d0{--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:2vw 2vw;--row-gap:2vw;--column-gap:2vw;--padding-top:0vw;--padding-bottom:02vw;--padding-left:02vw;--padding-right:02vw;}.elementor-7802 .elementor-element.elementor-element-b644f41 > .elementor-widget-container{margin:0vw 0vw 0vw 0vw;padding:0vw 0vw 0vw 0vw;}.elementor-7802 .elementor-element.elementor-element-b644f41{--container-widget-width:1000px;--container-widget-flex-grow:0;width:var( --container-widget-width, 1000px );max-width:1000px;}.elementor-7802 .elementor-element.elementor-element-09f195f .elementor-button{padding:20px 20px 20px 20px;}.elementor-7802 .elementor-element.elementor-element-aaf510e > .elementor-widget-container{margin:0vw 04vw 0vw 04vw;}}@media(max-width:767px){.elementor-7802 .elementor-element.elementor-element-eddc6f0{--margin-top:0vw;--margin-bottom:0vw;--margin-left:0vw;--margin-right:0vw;--padding-top:020vw;--padding-bottom:0vw;--padding-left:0vw;--padding-right:0vw;}.elementor-7802 .elementor-element.elementor-element-54939d0{--gap:2vw 2vw;--row-gap:2vw;--column-gap:2vw;--padding-top:0vw;--padding-bottom:02vw;--padding-left:02vw;--padding-right:02vw;}.elementor-7802 .elementor-element.elementor-element-b644f41 > .elementor-widget-container{margin:0vw 0vw 0vw 0vw;padding:0vw 0vw 0vw 0vw;}.elementor-7802 .elementor-element.elementor-element-09f195f .elementor-button{padding:10px 10px 10px 10px;}.elementor-7802 .elementor-element.elementor-element-aaf510e > .elementor-widget-container{margin:0vw 02vw 0vw 02vw;}}/* Start custom CSS for shortcode, class: .elementor-element-aaf510e *//* =========================================================== */
/* == CSS FOR EG_RANT PROGRAM FILTERS & CARDS == */
/* =========================================================== */

/* === Basic / Common Reusable Styles === */
.sr-only {
	border: 0; clip: rect(0,0,0,0); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Common Filter Label Style for all filter components */
.filter-label, /* For text search */
.reusable-select-filter-component .select-filter-label, /* For select dropdowns */
.support-areas-filter-container .support-areas-filter-label { /* For support areas */
    font-size: 0.9em; /* Consistent font size for labels */
    color: #555;
    margin-bottom: 8px; /* Increased space for better readability */
    display: block; /* Ensure label is on its own line */
    font-weight: 500; /* Slightly bolder label text */
}

/* === Reusable Search Component (for text input) === */
.reusable-search-component {
    display: flex; /* Allows label and input wrapper to be flex items */
    flex-direction: column; /* Stack label on top of input wrapper */
}

.reusable-search-component .search-input-wrapper {
    flex-grow: 1; /* Input wrapper takes available space if component grows */
}

div.reusable-search-component div.search-input-wrapper input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    line-height: normal; /* Reset line-height for consistency */
    background-color: #fff;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

div.reusable-search-component div.search-input-wrapper input[type="text"]:focus {
    border-color: #0073aa; /* WordPress blue for focus */
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* === Reusable Select Filter Component (for dropdowns like Legal Form, Program Type) === */
.reusable-select-filter-component {
    display: flex;
    flex-direction: column; /* Label above dropdown */
}

.reusable-select-filter-component .select-filter-dropdown {
    width: 100%;
    padding: 10px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E'); /* Simple SVG arrow */
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    padding-right: 30px; /* Make space for the arrow */
}

.reusable-select-filter-component .select-filter-dropdown:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* === Support Areas Filter (Tag Cloud) === */
.support-areas-filter-container {
    display: flex; /* Allows label and cloud to be flex items */
    flex-direction: column; /* Stack label on top of cloud */
}
.support-area-options-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Gap between individual area tags */
    padding-top: 5px; /* Small space if label is present */
}
.support-area-option {
    padding: 7px 14px;
    border: 1px solid #ddd; /* Lighter border */
    border-radius: 20px; /* More rounded pill shape */
    cursor: pointer;
    background-color: #f7f7f7; /* Lighter background */
    font-size: 0.85em; /* Slightly smaller font for tags */
    line-height: 1.4;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    color: #333; /* Default text color for tags */
    -webkit-appearance: none; /* Ensure button styling is consistent */
    -moz-appearance: none;
    appearance: none;
}
.support-area-option:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.support-area-option.active {
    background-color: #39bc97; /* Original accent color for active state */
    color: black; /* Original text color for active state */
    border-color: #E64A19; /* Original border color for active state */
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.support-area-option:focus-visible { /* Modern focus styling for accessibility */
    outline: 2px solid #FF5733; /* Keeping this from previous, or match .active if preferred */
    outline-offset: 2px;
}


/* === Reusable Reset Button === */
.reusable-search-reset-button {
    padding: 0px 40px !important; /* Keep important if overriding WP defaults */
    font-size: 0.9em !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    cursor: pointer;
    
    text-decoration: none;
   
    background: #39CB97; /* Dark blue background */
    color: #153D55 !important;
    box-shadow: none;
    transition: background .1s ease-in-out, opacity .1s ease-in-out;
    line-height: normal; /* Critical for vertical alignment */
    height: 40px; /* Match height of input and select for visual alignment */
    display: inline-flex; /* Use inline-flex to allow it to sit alongside other items if wrapper allows */
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    box-sizing: border-box; /* Include padding/border in height calculation */
    white-space: nowrap; /* Prevent text wrapping */
}
.reusable-search-reset-button:hover,
.reusable-search-reset-button:focus {
    background: #112e42 !important; /* Slightly darker on hover/focus */
    opacity: 0.9;
}

/* === Error & Warning Messages === */
.api-error, .api-warning {
    padding: 12px 15px; margin: 20px 0; border-radius: 5px; font-size: 0.95em;
    width: 100%; /* Ensure it spans full width */
    box-sizing: border-box;
}
.api-error { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }
.api-warning { color: #856404; background-color: #fff3cd; border: 1px solid #ffeeba; }


/* === Filter Toggle Button and Panel (Mobile Collapsible) === */
.filters-toggle-wrapper {
    margin-bottom: 15px; /* Space between button and panel or content */
}

.filters-toggle-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 0.95em;
    font-weight: 600;
    color: #153D55;
    background-color: #f0f0f0;
    border: 1px solid #153D55;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: background-color 0.2s;
    position: relative;
}

.filters-toggle-button:hover,
.filters-toggle-button:focus {
    background-color: #e0e0e0;
}

.filters-toggle-button .toggle-arrow {
    display: inline-block;
    margin-left: auto;
    transition: transform 0.2s ease-in-out;
    font-size: 1.2em;
}

.filters-panel {
    display: block;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out, margin 0.3s ease-out, border-width 0.3s ease-out;
}

.filters-panel.filters-panel-open {
    display: block;
}


/* === Program Controls Container (for all filters and reset button) === */
.program-controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.program-controls-container .reusable-search-component,
.program-controls-container .reusable-select-filter-component,
.program-controls-container .support-areas-filter-container {
    flex-grow: 1;
    min-width: 220px;
    margin-bottom: 0;
}

.program-controls-container .search-reset-button-wrapper {
    flex-shrink: 0;
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
}

/* === Mobile Styles (e.g., less than 768px) for Program Filters === */
@media (max-width: 767px) {
    .filters-toggle-wrapper {
        display: block;
    }

    #programFiltersPanel:not(.filters-panel-open) {
        display: none;
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top:0;
        margin-bottom:0;
        border-width: 0;
    }
    #programFiltersPanel.filters-panel-open {
        display: block;
        max-height: 2000px; /* Adjust if content is much taller */
        opacity: 1;
    }

    .program-controls-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 10px;
    }

    .program-controls-container .reusable-search-component,
    .program-controls-container .reusable-select-filter-component,
    .program-controls-container .support-areas-filter-container {
        min-width: 100%;
    }

    .program-controls-container .search-reset-button-wrapper {
        width: 100%;
        margin-left: 0;
    }
    .program-controls-container .reusable-search-reset-button {
        width: 100%;
    }
}

/* === Desktop Styles (e.g., 768px and up) for Program Filters === */
@media (min-width: 768px) {
     .filters-toggle-wrapper:has(#toggleProgramFiltersButton) {
        display: none;
    }

    #programFiltersPanel,
    #programFiltersPanel.filters-panel-open {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        padding: 15px;
        margin-bottom: 20px;
        border-width: 1px;
    }

    .program-controls-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 20px;
    }
     .program-controls-container .reusable-search-component,
    .program-controls-container .reusable-select-filter-component,
    .program-controls-container .support-areas-filter-container {
        min-width: 220px;
    }
    .program-controls-container .search-reset-button-wrapper {
        width: auto;
    }
     .program-controls-container .reusable-search-reset-button {
        width: auto;
    }
}


/* === Program Cards Grid === */
.program-cards-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .program-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .program-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Individual Program Card === */
.program-card {
    display: flex; flex-direction: column; border: 2px solid #39CB97; border-radius: 8px;
    padding: 20px; background-color: #fff; text-decoration: none; color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; /* Removed border-top-color transition as it's no longer used for status */
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    position: relative;
}
.program-card:hover, .program-card:focus-within {
    transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    outline: none;
}

/* Removed the .program-card[data-status-class="status-closed"] rule for border-top,
   as the request is to make the progress bar red */

.program-details-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.program-logo-wrapper {
    text-align: center;
    margin-bottom: 12px;
    min-height: 50px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.program-logo {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

/* --- FONT SIZE STYLING FOR PROGRAM CARD TEXT (as per original request) --- */
.program-cards-container .program-card .program-creator {
    font-size: 0.85em; /* Original font size */
    color: #666;
    margin: 0 0 5px;
}

.program-cards-container .program-card .program-name {
    font-size: 1.15em; /* Original font size */
    font-weight: 600;
    color: #222;
    margin: 0 0 10px;
    line-height: 1.3;
}
/* --- END FONT SIZE STYLING --- */


/* Meta information like Program Type or Support Areas on card */
.program-meta {
    font-size: 0.8em;
    color: #777;
    margin: 0 0 8px;
    line-height: 1.4;
}
.program-type-display {
    font-style: italic;
}

.program-timeline-info {
    margin-top: auto;
}

/* === Program Progress Bar Styling === */
.program-progress-container {
    background-color: #e9ecef; /* Light grey background for the container */
    border-radius: 4px;
    height: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    width: 100%;
}

.program-progress-bar {
    background-color: #39CB97; /* Default Green progress bar */
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-in-out, background-color 0.3s ease-in-out; /* Added background-color transition */
}

/* Make the progress bar RED when the program card has status-closed */
.program-card[data-status-class="status-closed"] .program-progress-bar {
    background-color: #c0392b; /* Red color for the progress bar */
}


.program-status-standalone {
    font-size: 1.05em;
    font-weight: 600;
    text-align: center;
    margin: 0 0 8px 0;
    padding: 0 5px;
}
.program-status-standalone.status-active { color: #27ae60; }
.program-status-standalone.status-closed { color: #c0392b; } /* Red for "Ukončené" text */
.program-status-standalone.status-ongoing { color: #3498db; }
.program-status-standalone.status-error { color: #c0392b; }

.program-date-endpoints {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #555;
}
.program-date-endpoints .date-from {
    color: #bbb; /* Your requested color for from date */
}
.program-date-endpoints .date-to {
    text-align: right;
    color: #555;
    font-weight: 500;
    font-size: 1.2em; /* Your requested font size for to date */
}/* End custom CSS */