/*
 Theme Name: Blocksy Child - KB Marketing
 Template: blocksy
 Description: Child theme with FAQ Schema and AggregateRating
 Version: 1.2
*/

/* Footer 4 columns fix */
.ct-footer [data-row="middle"] .ct-container {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 40px !important;
    padding: 60px 40px !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
}

@media (max-width: 999px) {
    .ct-footer [data-row="middle"] .ct-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
        padding: 40px 30px !important;
    }
}

@media (max-width: 689px) {
    .ct-footer [data-row="middle"] .ct-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 30px 20px !important;
    }
}

/* === GRID & LAYOUT FIX v3 (2026-04-02) === */

/* Grid: 4 cards "Dlaczego" (2x2) */
.entry-content div[style*="grid-template-columns:repeat(auto-fit,minmax(240px"],
.entry-content div[style*="grid-template-columns: repeat(auto-fit, minmax(240px"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
}

/* Grid: 3 columns "Co zawiera" */
.entry-content div[style*="grid-template-columns:repeat(auto-fit,minmax(300px"],
.entry-content div[style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
}

/* Grid: Cennik 3 columns */
.entry-content div[style*="grid-template-columns:repeat(auto-fit,minmax(280px"],
.entry-content div[style*="grid-template-columns: repeat(auto-fit, minmax(280px"] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

/* Grid: Steps 80px + text */
div[style*="grid-template-columns:80px 1fr"],
div[style*="grid-template-columns: 80px 1fr"] {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    align-items: center !important;
    margin-bottom: 15px !important;
}

/* Circle numbers */
div[style*="border-radius:50%"][style*="width:80px"],
div[style*="border-radius: 50%"][style*="width: 80px"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Lists no bullets */
.entry-content ul[style*="list-style:none"],
.entry-content ul[style*="list-style: none"] {
    list-style: none !important;
    padding-left: 0 !important;
}

/* Grid: 200px items */
.entry-content div[style*="grid-template-columns:repeat(auto-fit,minmax(200px"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}

/* Blog grid override */
#geo-blog-section div[style*="grid-template-columns:repeat(auto-fit,minmax(280px"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .entry-content div[style*="grid-template-columns:repeat(auto-fit,minmax(240px"],
    .entry-content div[style*="grid-template-columns:repeat(auto-fit,minmax(300px"],
    .entry-content div[style*="grid-template-columns:repeat(auto-fit,minmax(280px"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns:80px 1fr"] {
        grid-template-columns: 60px 1fr !important;
    }
}

/* === END GRID & LAYOUT FIX v3 === */

/* === HERO & CONTAINER FIX (2026-04-02) === */

/* Hero gradient override - blue to dark instead of dark to dark */
.entry-content div[style*="linear-gradient(135deg,#0f172a 0%,#1e293b"] {
    background: linear-gradient(135deg, #03a4d0 0%, #0f172a 100%) !important;
}

/* Prevent functions.php breakout CSS from stretching content on -dla- pages */
/* The wrapper div has max-width:1100px - its children should NOT be 100vw */
/* Override the entry-content > div > div rule from functions.php */
.entry-content > div[style*="max-width:1100px"] > div[style*="grid-template-columns"],
.entry-content > div[style*="max-width: 1100px"] > div[style*="grid-template-columns"],
.entry-content > div[style*="max-width:1100px"] > h2,
.entry-content > div[style*="max-width: 1100px"] > h2,
.entry-content > div[style*="max-width:1100px"] > p,
.entry-content > div[style*="max-width: 1100px"] > p,
.entry-content > div[style*="max-width:1100px"] > div[style*="max-width:800px"],
.entry-content > div[style*="max-width: 1100px"] > div[style*="max-width:800px"],
.entry-content > div[style*="max-width:1100px"] > div[style*="border-radius:12px"],
.entry-content > div[style*="max-width: 1100px"] > div[style*="border-radius:12px"] {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* === END HERO & CONTAINER FIX === */
