/* --- ZMIENNE GŁÓWNE --- */
:root {
    --wcbd-front-primary: #4f46e5;    /* Fiolet */
    --wcbd-front-dark: #111827;       /* Ciemny tekst */
    --wcbd-front-text: #374151;       /* Szary tekst */
    --wcbd-front-bg-accent: #f8f9fa;  /* Tło sekcji */
    --wcbd-front-radius: 24px;        /* Duże zaokrąglenia (Xiaomi style) */
    --wcbd-front-radius-sm: 12px;     /* Małe zaokrąglenia */
}

/* Kontener główny */
.wcbd-container {
    max-width: 100%;
    margin: 40px 0;
    font-family: inherit; /* Dziedziczy font motywu */
    color: var(--wcbd-front-text);
    line-height: 1.6;
}

/* --- ZABEZPIECZENIE TEKSTU (Word Break) --- */
.wcbd-text, 
.wcbd-feature-desc, 
.wcbd-card-text p,
.wcbd-sub-block {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* --- 1. SEKCJA FOTO + TEKST (Zig-Zag) --- */
.wcbd-feature-row {
    display: flex;
    align-items: center;
    background-color: var(--wcbd-front-bg-accent);
    border-radius: var(--wcbd-front-radius);
    padding: 40px 50px; /* Duży padding */
    gap: 50px;
    margin-bottom: 40px;
    overflow: hidden;
}

.wcbd-feature-row.wcbd-row-reverse {
    flex-direction: row-reverse;
}

.wcbd-feature-content {
    flex: 1;
}

.wcbd-feature-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--wcbd-front-dark);
    margin-bottom: 20px;
    line-height: 1.25;
}

.wcbd-feature-desc {
    font-size: 16px;
    color: var(--wcbd-front-text);
}

.wcbd-feature-image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wcbd-feature-image-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: var(--wcbd-front-radius-sm);
    /* Opcjonalny cień jak na renderach telefonów */
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

/* --- 2. SIATKA CECH (Grid Karty) --- */
.wcbd-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dwie kolumny */
    gap: 24px;
    margin-bottom: 40px;
}

.wcbd-grid-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: var(--wcbd-front-radius-sm);
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%; /* Równa wysokość */
}

.wcbd-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.wcbd-card-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    object-fit: contain;
}

.wcbd-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--wcbd-front-dark);
    margin-bottom: 12px;
}

.wcbd-card-text {
    font-size: 15px;
    color: var(--wcbd-front-text);
}

/* --- 3. PRZYCISK (Style ze zdjęcia) --- */
.wcbd-btn-wrap {
    margin: 30px 0;
}

.wcbd-btn {
    display: inline-block;
    background-color: var(--wcbd-front-primary);
    color: #fff !important;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    font-size: 16px;
}

.wcbd-btn:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

/* --- 4. KOLUMNY --- */
.wcbd-columns {
    display: flex;
        background: white!important;
        border-radius: 20px;
        border:1px solid var(--kds-border);
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.wcbd-col-1, .wcbd-col-2 {
    flex: 1;
    min-width: 0;
}

/* Proporcje */
.wcbd-layout-50-50 .wcbd-col-1 { flex: 1; }
.wcbd-layout-50-50 .wcbd-col-2 { flex: 1; }

.wcbd-layout-40-60 .wcbd-col-1 { flex: 0 0 40%; }
.wcbd-layout-40-60 .wcbd-col-2 { flex: 0 0 60%; }

.wcbd-layout-60-40 .wcbd-col-1 { flex: 0 0 60%; }
.wcbd-layout-60-40 .wcbd-col-2 { flex: 0 0 40%; }

/* --- 5. NAGŁÓWKI & STANDARD --- */
.wcbd-header {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--wcbd-front-dark);
    line-height: 1.2;
    font-size: 32px;
}

.wcbd-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 50px 0;
}

/* --- RESPONSYWNOŚĆ (Mobile) --- */
@media (max-width: 900px) {
    .wcbd-feature-row {
        flex-direction: column !important;
        padding: 30px;
        text-align: center;
        gap: 30px;
    }

    .wcbd-columns {
        flex-direction: column;
    }

    .wcbd-layout-40-60 .wcbd-col-1,
    .wcbd-layout-40-60 .wcbd-col-2,
    .wcbd-layout-60-40 .wcbd-col-1,
    .wcbd-layout-60-40 .wcbd-col-2 {
        flex: auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .wcbd-feature-grid {
        grid-template-columns: 1fr; /* Jedna karta pod drugą */
    }
    
    .wcbd-header {
        font-size: 26px;
    }
    
    .wcbd-btn {
        display: block;
        width: 100%;
    }
}