/* ============================================
   Bootstrap-like grid fallback
   Theme doesn't load Bootstrap but some content uses .row/.col-md-* classes.
   Breakpoint matches Bootstrap's md (768px).
   ============================================ */
body .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    align-items: stretch;
}
body .row > [class*="col-"] {
    flex: 1 1 100%;
    min-width: 0;
    box-sizing: border-box;
}
body .row > [class*="col-"] > img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
@media (min-width: 768px) {
    body .row > .col-md-12 { flex: 0 0 calc(100% - 0px); max-width: 100%; }
    body .row > .col-md-8  { flex: 0 0 calc(66.666% - 10px); max-width: calc(66.666% - 10px); }
    body .row > .col-md-6  { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
    body .row > .col-md-4  { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }
    body .row > .col-md-3  { flex: 0 0 calc(25% - 15px); max-width: calc(25% - 15px); }
}

/* ===== Responsible gambling footer notice ===== */
body .responsible-gambling-footer {
    position: relative;
    margin: 40px 0 24px;
    padding: 20px 24px 20px 88px;
    background: linear-gradient(135deg, rgba(220,38,38,0.04), rgba(232,67,147,0.04));
    border: 1px solid rgba(220,38,38,0.18);
    border-radius: 14px;
    color: #374151;
    font-size: 0.92em;
    line-height: 1.6;
    overflow: hidden;
}
/* 18+ shield icon */
body .responsible-gambling-footer::before {
    content: '18+';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(220,38,38,0.35);
    border: 3px solid rgba(255,255,255,0.5);
}
/* Left red accent bar */
body .responsible-gambling-footer::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #dc2626, #991b1b);
}
body .responsible-gambling-footer p {
    margin: 0 !important;
    color: inherit;
}
body .responsible-gambling-footer strong {
    display: block;
    color: #991b1b;
    font-weight: 800;
    font-size: 0.92em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

@media (max-width: 640px) {
    body .responsible-gambling-footer {
        padding: 16px 18px 16px 18px;
    }
    body .responsible-gambling-footer::before {
        position: static;
        transform: none;
        margin: 0 0 12px;
        width: 44px;
        height: 44px;
        font-size: 12px;
    }
}

/* ===== "Pro padoms" callout ===== */
body .propadoms {
    position: relative;
    margin: 16px 0 0;
    padding: 14px 16px 14px 54px;
    background: linear-gradient(135deg, rgba(255,215,50,0.12), rgba(245,158,11,0.08));
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px;
    color: #1f2937;
    font-size: 0.93em;
    line-height: 1.55;
}
body .propadoms::before {
    content: '💡';
    position: absolute;
    left: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 50%;
    background: rgba(245,158,11,0.2);
    box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
body .propadoms p {
    margin: 0 !important;
    color: inherit;
}
body .propadoms span[style*="font-weight"] {
    color: #92400e;
}

/* ============================================
   Global PROS / CONS — polished layout
   Applies everywhere (casino reviews, games, bonuses, articles, pages).
   Overrides legacy aces-style.css styling via high-specificity selectors.
   ============================================ */

/* ===== Column gap on desktop ===== */
body .wp-block-columns:has(.space-pros, .space-cons) {
    gap: 0px !important;
        margin: 28px auto 0 !important;
    max-width: 1005px;
}

/* ===== Box base (reset legacy) ===== */
body .space-pros,
body .space-cons {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    background: none !important;
    border: none !important;
}
body .space-pros .space-pros-ins,
body .space-cons .space-cons-ins {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px 22px 26px !important;
    box-shadow: 0 1px 3px rgba(17,24,39,0.04), 0 10px 30px rgba(17,24,39,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    overflow: hidden;
    border: 1px solid transparent !important;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    flex: 1 1 auto !important;
    flex-grow: unset;
    flex-shrink: unset;
    flex-basis: unset;
}
body .space-pros .space-pros-ins:hover,
body .space-cons .space-cons-ins:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(17,24,39,0.08), 0 20px 50px rgba(17,24,39,0.09);
}

/* Kill legacy "+" / "–" giant icon backgrounds (::before on .space-*-ins from aces-style.css) */
body .space-pros .space-pros-ins::before,
body .space-cons .space-cons-ins::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    width: 5px !important;
    height: auto !important;
    background-image: none !important;
    background-color: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    font-family: inherit !important;
    padding: 0 !important;
}

/* Tinted gradient bg + left accent bar (plus) */
body .space-pros .space-pros-ins {
    background: linear-gradient(135deg, #fff 0%, #fff 60%, #f0fdf4 100%) !important;
    border-color: rgba(16,185,129,0.15) !important;
}
body .space-pros .space-pros-ins::before {
    background: linear-gradient(180deg, #10b981, #059669) !important;
}

/* Tinted gradient bg + left accent bar (minus) */
body .space-cons .space-cons-ins {
    background: linear-gradient(135deg, #fff 0%, #fff 60%, #fef2f2 100%) !important;
    border-color: rgba(232,67,147,0.15) !important;
}
body .space-cons .space-cons-ins::before {
    background: linear-gradient(180deg, #e84393, #c4397c) !important;
}

/* ===== Titles ===== */
body .space-pros .space-pros-title,
body .space-cons .space-cons-title {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px !important;
    padding: 0 !important;
    font-size: 1.15em;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    border: none !important;
    font-family: inherit;
}
body .space-pros .space-pros-title {
    color: #065f46 !important;
}
body .space-cons .space-cons-title {
    color: #9f1239 !important;
}

/* Leading icon badge next to title */
body .space-pros .space-pros-title::before,
body .space-cons .space-cons-title::before {
    content: '' !important;
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    flex-shrink: 0;
    position: static;
    font-family: inherit;
    font-size: 0;
    line-height: 0;
    color: transparent;
}
body .space-pros .space-pros-title::before {
    background-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}
body .space-cons .space-cons-title::before {
    background-color: #e84393;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    box-shadow: 0 4px 12px rgba(232,67,147,0.4);
}

/* ===== Lists ===== */
body .space-pros .space-pros-description,
body .space-cons .space-cons-description {
    color: #1f2937;
    font-size: 0.95em;
    line-height: 1.55;
    padding: 0 !important;
}
body .space-pros .space-pros-description ul,
body .space-cons .space-cons-description ul,
body .space-pros-description ul,
body .space-cons-description ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
body .space-pros .space-pros-description li,
body .space-cons .space-cons-description li,
body .space-pros-description ul li,
body .space-cons-description ul li {
    position: relative;
    padding: 7px 0 7px 30px !important;
    margin: 0 !important;
    list-style: none !important;
    border-bottom: 1px dashed rgba(17,24,39,0.06);
    font-size: inherit;
    line-height: 1.55;
}
body .space-pros .space-pros-description li:last-child,
body .space-cons .space-cons-description li:last-child {
    border-bottom: none;
}
/* Replace legacy FontAwesome check/cross with colored circular SVG badges */
body .space-pros .space-pros-description li::before,
body .space-cons .space-cons-description li::before,
body .space-pros-description ul li:before,
body .space-cons-description ul li:before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 11px 11px !important;
    font-family: inherit !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    font-weight: normal !important;
}
body .space-pros .space-pros-description li::before,
body .space-pros-description ul li:before {
    background-color: rgba(16,185,129,0.14) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
}
body .space-cons .space-cons-description li::before,
body .space-cons-description ul li:before {
    background-color: rgba(232,67,147,0.12) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e84393' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
}

/* Links inside pros/cons — match theme accent but readable on light bg */
body .space-pros .space-pros-description a,
body .space-cons .space-cons-description a {
    color: #5c2698 !important;
    text-decoration: underline;
}
body .space-pros .space-pros-description a:hover,
body .space-cons .space-cons-description a:hover {
    color: #e84393 !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body .wp-block-columns:has(.space-pros, .space-cons) {
        gap: 14px !important;
        margin: 22px 0 !important;
    }
    body .space-pros .space-pros-ins,
    body .space-cons .space-cons-ins {
        padding: 18px 18px 16px 20px !important;
        border-radius: 14px;
    }
    body .space-pros .space-pros-title,
    body .space-cons .space-cons-title {
        font-size: 1.05em;
        margin: 0 0 12px !important;
    }
    body .space-pros .space-pros-description,
    body .space-cons .space-cons-description {
        font-size: 0.92em;
    }
    body .space-pros .space-pros-description li,
    body .space-cons .space-cons-description li {
        padding: 6px 0 6px 28px !important;
    }
    body .space-pros .space-pros-description li::before,
    body .space-cons .space-cons-description li::before {
        top: 9px !important;
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 560px) {
    /* Stack columns on small screens */
    body .wp-block-columns:has(.space-pros, .space-cons) {
        flex-direction: column !important;
    }
    body .wp-block-columns:has(.space-pros, .space-cons) > .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* ============================================
   Generic info/benefit blocks
   Applies to .kesbeks-jauno-kazino and siblings
   that share the same "titled list card" pattern.
   ============================================ */

body .kesbeks-jauno-kazino {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #fff 60%, #faf5ff 100%);
    border: 1px solid rgba(92,38,152,0.15);
    border-radius: 16px;
    padding: 22px 24px 20px 28px;
    box-shadow: 0 1px 3px rgba(17,24,39,0.04), 0 10px 30px rgba(17,24,39,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}
body .kesbeks-jauno-kazino:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(17,24,39,0.08), 0 20px 50px rgba(17,24,39,0.09);
}

/* Left accent bar */
body .kesbeks-jauno-kazino::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #7c3aed, #5c2698);
}

/* Heading */
body .kesbeks-jauno-kazino > h3 {
    font-size: 1.15em;
    font-weight: 800;
    margin: 0 0 14px;
    padding: 0;
    color: #1f2937;
    line-height: 1.3;
    letter-spacing: 0.01em;
    border: none;
    font-family: inherit;
}

/* List */
body .kesbeks-jauno-kazino > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body .kesbeks-jauno-kazino > ul > li {
    position: relative;
    list-style: none !important;
    padding: 8px 0 8px 28px !important;
    margin: 0 !important;
    font-size: 0.94em;
    line-height: 1.5;
    color: #1f2937;
    border-bottom: 1px dashed rgba(17,24,39,0.06);
}
body .kesbeks-jauno-kazino > ul > li:last-child {
    border-bottom: none;
}
body .kesbeks-jauno-kazino > ul > li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 11px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background-color: rgba(92,38,152,0.12) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c2698' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px 10px !important;
    font-family: inherit !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Links inside */
body .kesbeks-jauno-kazino a {
    color: #5c2698;
    text-decoration: underline;
}
body .kesbeks-jauno-kazino a:hover {
    color: #e84393;
}

/* Column gap & desktop height alignment */
body .wp-block-columns:has(.kesbeks-jauno-kazino) {
    gap: 20px !important;
    margin: 28px 0 !important;
}
@media (min-width: 782px) {
    body .wp-block-columns:has(.kesbeks-jauno-kazino) {
        align-items: stretch !important;
    }
    body .wp-block-columns:has(.kesbeks-jauno-kazino) > .wp-block-column {
        display: flex !important;
        flex-direction: column;
    }
    body .wp-block-columns:has(.kesbeks-jauno-kazino) > .wp-block-column > .kesbeks-jauno-kazino {
        flex: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body .kesbeks-jauno-kazino {
        padding: 18px 18px 16px 22px;
        border-radius: 14px;
    }
    body .kesbeks-jauno-kazino > h3 {
        font-size: 1.05em;
        margin-bottom: 10px;
    }
    body .kesbeks-jauno-kazino > ul > li {
        font-size: 0.9em;
        padding: 7px 0 7px 26px !important;
    }
}

@media (max-width: 560px) {
    body .wp-block-columns:has(.kesbeks-jauno-kazino) {
        flex-direction: column !important;
    }
    body .wp-block-columns:has(.kesbeks-jauno-kazino) > .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
}
