<style>
.hidden {
    display: none !important;
}
.rex-hero {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 20px;
    height: 400px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    background: #fff;
}

/* SLIDER */
.swiper {
    width: 100%;
    height: 400px;
    border-radius: 18px;
    overflow: hidden;
    background: #f5f5f7;
}

.slide-item {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-item h2 {
    font-size: 44px;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-item p {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 70%;
}

.cta-button {
    display: inline-flex;
    width: fit-content;
    padding: 12px 28px;
    background: #111;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    background: #333;
    transform: translateY(-1px);
}

/* SIDEBAR */
.rex-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 400px;
}

.rex-box {
    background: #fff !important;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #1d1d1f;
    min-height: 190px;
    transition: all 0.4s ease;
    position: relative;
    
    /* Wymuszamy poświatę, jeśli coś ją blokuje */
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.25) !important;
}

.rex-box:hover {
    border-color: #ff9500;
    transform: translateY(-5px);
    /* Tutaj wzmacniamy efekt */
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.5) !important;
}

.rex-box img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    margin-bottom: 8px;
}

.rex-box .tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ff9500; 
    margin-bottom: 3px;
}

.rex-box h3 {
    margin: 4px 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #1d1d1f;
}

.rex-box .price {
    font-weight: 600;
    font-size: 15px;
    color: #111;
    margin-top: 6px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3b30;
    color: #fff;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .rex-hero {
        grid-template-columns: 1fr;
        height: auto;
        gap: 15px;
    }
    .swiper { height: 260px; }
    .slide-item { padding: 24px; }
    .slide-item h2 { font-size: 28px; }
    .slide-item p { font-size: 15px; max-width: 100%; }
    .rex-sidebar {
        flex-direction: row;
        height: auto;
        gap: 12px;
    }
    .rex-box {
        min-height: 160px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .rex-sidebar {
        flex-direction: column;
    }
}


        .rex-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-family: sans-serif; }
        .rex-blog-card { text-decoration: none; border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: 0.3s; color: #333; }
        .rex-blog-card:hover { border-color: #f15a24; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transform: translateY(-3px); }
        .rex-thumb { height: 140px; background-size: cover; background-position: center; }
        .rex-body { padding: 15px; }
        .rex-body h3 { font-size: 14px; margin: 0 0 8px 0; height: 38px; overflow: hidden; line-height: 1.3; }
        .rex-body .date { font-size: 11px; color: #999; }
        
        @media (max-width: 992px) { .rex-blog-grid { grid-template-columns: 1fr; } }
  
</style>
