/**
 * Theme Name:     Astra Child
 * Author:         Brainstorm Force
 * Template:       astra
 * Text Domain:	   astra-child
 * Description:    The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 6,000+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
 
*/
 
 
/* =====================================================================
   1. PORTFOLIO -> KOMPLEKSOWE REALIZACJE (Pojedyncza strona realizacji)
   ===================================================================== */

/* GŁÓWNY KONTENER LISTY */
body .portfolio-inline-container {
    width: 100% !important;
    max-width: 850px !important;
    margin: 20px auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* USTAWIENIA LISTY (Desktop) */
body .portfolio-inline-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* POJEDYNCZY ELEMENT LISTY (Desktop) */
body .portfolio-inline-list li {
    display: flex !important;
    align-items: center !important;
    color: #a5a5a5 !important; 
    font-weight: 600 !important; 
    font-size: 17px !important; 
    margin: 7px 10px !important; 
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
}

/* ŻÓŁTY KWADRACIK (Wszystkie widoki) - ZMNIEJSZONY */
body .portfolio-inline-list li::before {
    content: "" !important;
    display: inline-block !important;
    width: 6px !important;  /* ZMIANA: Zmniejszone z 6px */
    height: 6px !important; /* ZMIANA: Zmniejszone z 6px */
    background-color: #fab10b !important;
    margin-right: 10px !important;
    margin-bottom: 2px !important; /* Wyrównanie w pionie */
    flex-shrink: 0 !important;
}

/* UKRYWANIE NAWIGACJI POD WPISAMI */
.post-navigation, .nav-links {
    display: none !important;
}

/* =====================================================================
   2. POPRAWKI DLA URZĄDZEŃ MOBILNYCH (Ekrany < 1024px)
   ===================================================================== */
   
@media (max-width: 1024px) {

    /* UKŁAD ELEMENTÓW W BOXIE (Podstrona realizacji) */
    body .portfolio-inline-list {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body .portfolio-inline-list li {
        font-size: 16px !important;
        margin: 5px 8px !important;
    }

    /* UKŁAD ELEMENTÓW W ZAJAWCE (Strona główna/karty) */
    .portfolio-karty .elementor-post__excerpt .inb-portfolio-container {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px 10px !important;
        margin: 10px auto !important;
        width: 100% !important;
    }

    .portfolio-karty .elementor-post__excerpt .inb-portfolio-item {
        display: flex !important;
        align-items: center !important;
        font-size: 16px !important; 
        white-space: nowrap !important;
    }

    /* Kwadraciki w zajawce na mobilu - ZMNIEJSZONE */
    .portfolio-karty .elementor-post__excerpt .inb-portfolio-item::before {
        content: '' !important;
        display: inline-block !important;
        width: 4px !important;  /* ZMIANA: Zmniejszone z 5px */
        height: 4px !important; /* ZMIANA: Zmniejszone z 5px */
        background-color: #FFC107 !important;
        margin-right: 6px !important;
        margin-bottom: 2px !important;
        flex-shrink: 0 !important;
    }

    /* POZOSTAŁE POPRAWKI MOBILNE */
    .odstep-gora { height: 60px !important; }
    .odstep-dol { height: 50px !important; }
    
    .tytul {
        font-size: 25px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        display: block !important;
    }

    body #page .entry-content .wp-block-image img, 
    body #page .entry-content .wp-block-group,
    body #page .entry-content figure.wp-block-image {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: auto !important;
    }

    body #page .entry-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    .ukryj-mobile { display: none !important; }
}

/* =====================================================================
   3. STYLIZACJA ZAJAWKI (Desktop)
   ===================================================================== */

.inb-portfolio-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px 0 !important;
    line-height: 1.4 !important;
    margin-top: 5px !important;
}

.inb-portfolio-item {
    color: #a5a5a5 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

/* KWADRACIK W KARTACH (DESKTOP) - ZMNIEJSZONY */
.inb-portfolio-item::before {
    content: '' !important;
    display: inline-block !important;
    width: 5px !important;  /* ZMIANA: Zmniejszone z 6px */
    height: 5px !important; /* ZMIANA: Zmniejszone z 6px */
    background-color: #FFC107 !important;
    margin-right: 8px !important;
    margin-left: 8px !important;
    margin-bottom: 2px !important; /* Wyrównanie w pionie */
    border-radius: 1px;
}

/* ------- WYŚRODKOWANIE TYTUŁU W ZAJAWCE ------- */

.elementor-posts-container .elementor-post__title,
.elementor-posts-container .elementor-post__title a {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.tytul {
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.elementor-element.elementor-element-7b0257a .elementor-post__title a {
    font-size: 24px;
}


/* Powiększenie ikony Play na mobilu - wersja precyzyjna */
@media (max-width: 767px) {
    .elementor-custom-embed-play i, 
    .elementor-custom-embed-play svg {
        width: 100px !important; 
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }
} 


/* =====================================================================
   4. STYLIZACJA KART - RAMKA TYLKO PONIŻEJ ZDJĘCIA (HOVER MOD)
   ===================================================================== */

.portfolio-karty .elementor-post {
    border: none !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    
    /* Ramka domyślna (subtelna) */
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    padding: 15px !important;
    transition: all 0.3s ease-in-out !important;
    overflow: hidden !important;
    height: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    border-radius: 6px !important;
}

/* ZDJĘCIE - dopasowane do krawędzi */
.portfolio-karty .elementor-post__thumbnail {
    margin: -15px -15px 15px -15px !important;
    border-radius: 6px 6px 0 0 !important;
    overflow: hidden !important;
    border: none !important; /* Brak ramki na zdjęciu */
}

/* EFEKT HOVER - Podświetlenie jak na Twoim zdjęciu */
.portfolio-karty .elementor-post:hover {
    transform: translateY(-10px) !important;
   
    
    
    /* Lżejszy cień dla głębi */
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}


/* Pojedyncza oferta opis przed stopką - zmiana kropek na kwadraty i ustawienie koloru */
.entry-content ul {
    list-style-type: square; /* Zmienia kropki na kwadraty */
}

.entry-content ul li::marker {
    color: #FAB10B; /* Ustawia żółty kolor kwadracików (Gold) */
}/* Opcjonalnie: Nagłówek może lekko "świecić" przy hoverze */
.portfolio-karty .elementor-post:hover .elementor-post__title a {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}