/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.5.1769180402
Updated: 2026-01-23 16:00:02

*/


/* ==========================================================================
   WYNIKI WYSZUKIWANIA (SEARCH)
   ========================================================================== */

/* Główny kontener */
body.search .search-results-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    display: block !important;
}

body.search .search-header { 
    text-align: center !important; 
    margin-bottom: 50px !important; 
}

body.search .search-header h1 { 
    font-size: 26px !important; 
    color: #111 !important; 
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
}

body.search .search-query { 
    color: #B42523 !important; 
    font-weight: 900 !important; 
}

/* Siatka wyników - wymuszamy grid */
body.search .search-results-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
}

/* Karta posta */
body.search .search-post-card {
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    border-bottom: 4px solid transparent !important;
    transition: 0.3s !important;
    height: 100% !important;
}

body.search .search-post-card:hover { 
    transform: translateY(-5px) !important; 
    border-color: #B42523 !important; 
}

body.search .post-thumbnail img { 
    width: 100% !important; 
    height: 220px !important; 
    object-fit: cover !important; 
}

/* Treść wewnątrz karty */
body.search .post-content { 
    padding: 20px !important; 
    flex-grow: 1 !important; 
    display: flex !important; 
    flex-direction: column !important;
    background: #fff !important;
}

body.search h2.post-title { 
    font-size: 19px !important; 
    margin: 0 0 10px 0 !important; /* Całkowite wyzerowanie góry */
    line-height: 1.3 !important; 
}

body.search h2.post-title a { 
    text-decoration: none !important; 
    color: #111 !important; 
    font-weight: 700 !important;
}

body.search h2.post-title a:hover { 
    color: #B42523 !important; 
}

body.search .post-excerpt {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}

body.search .read-more-btn { 
    color: #B42523 !important; 
    text-decoration: none !important; 
    font-weight: bold !important; 
    font-size: 12px !important; 
    text-transform: uppercase !important; 
    margin-top: auto !important; 
    padding-top: 10px !important;
}

/* Paginacja */
body.search .custom-pagination { margin-top: 40px !important; text-align: center !important; width: 100% !important; }
body.search .custom-pagination ul { list-style: none !important; display: inline-flex !important; gap: 5px !important; padding: 0 !important; margin: 0 auto !important; }
body.search .custom-pagination a, body.search .custom-pagination span { padding: 8px 15px !important; border: 1px solid #ddd !important; text-decoration: none !important; color: #333 !important; }
body.search .custom-pagination .current { background: #B42523 !important; color: #fff !important; border-color: #B42523 !important; }

/* RWD */
@media (max-width: 768px) {
    body.search .search-results-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   STRONA BŁĘDU (404)
   ========================================================================== */

.custom-404-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 75vh !important;
    text-align: center !important;
    padding: 40px 20px !important;
    background-color: #fff !important;
}

.error-wrapper { max-width: 650px !important; width: 100% !important; }

.error-code {
    font-size: clamp(80px, 15vw, 120px) !important;
    font-weight: 900 !important;
    color: #B42523 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.search-section {
    margin: 40px 0 !important;
    background: #fdfdfd !important;
    padding: 35px !important;
    border-radius: 10px !important;
    border: 1px solid #eee !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

.search-box input[type="search"]:focus { border-color: #B42523 !important; }

.search-box input[type="submit"] {
    background-color: #111 !important;
    color: #fff !important;
    border-radius: 4px !important;
    transition: 0.3s !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
}

.search-box input[type="submit"]:hover { background-color: #B42523 !important; }

.btn-back-home {
    display: inline-block !important;
    background-color: #B42523 !important;
    color: #fff !important;
    padding: 16px 40px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    transition: 0.3s !important;
}

.btn-back-home:hover {
    background-color: #111 !important;
    box-shadow: 0 5px 15px rgba(180, 37, 35, 0.3) !important;
}

/* Responsywność */
@media (max-width: 768px) {
    .search-results-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   STRONA BLOG SEARCH
   ========================================================================== */

.blog-search-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    padding: 0 15px;
}

.blog-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #eeeeee;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-search-form:focus-within {
    border-color: #B42523;
    box-shadow: 0 8px 20px rgba(180, 37, 35, 0.15);
}

.blog-search-input {
    width: 100%;
    padding: 14px 25px;
    border: none !important;
    outline: none !important;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.blog-search-submit {
    background: #B42523;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.blog-search-submit:hover {
    background: #111;
}

.blog-search-submit svg {
    stroke: #fff;
}
