.stokman-safari-section {
    padding: 80px 0;
    background: transparent !important;
    font-family: 'Montserrat', sans-serif;
}

/* Full-width layout: break out of the centered Bold Builder text/column wrapper.
 * Transparent background lets the site's parchment/background show through. */
.stokman-safari-section.safari-full-width {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Optional: use the containing Bold Builder row/column width instead. */
.stokman-safari-section.safari-contained {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

/* Ensure neither the theme nor a previous plugin version paints a white panel. */
body .stokman-safari-section,
body .stokman-safari-section .safari-container {
    background-color: transparent !important;
    background-image: none;
}

.stokman-safari-section *,
.stokman-safari-section *::before,
.stokman-safari-section *::after { box-sizing: border-box; }
.stokman-safari-section .safari-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(18px, 3vw, 64px);
}
.stokman-safari-section .safari-title {
    margin: 0 0 15px;
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.5px;
    text-align: center;
    text-transform: uppercase;
}
.stokman-safari-section .safari-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}
.stokman-safari-section .safari-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}
.stokman-safari-section .safari-card {
    position: relative;
    display: block;
    min-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
}
.stokman-safari-section .safari-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .85;
    transition: transform .5s ease, opacity .5s ease;
}
.stokman-safari-section .safari-card::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.1) 65%);
    content: '';
    pointer-events: none;
}
.stokman-safari-section .safari-overlay {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px;
}
.stokman-safari-section .safari-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.stokman-safari-section .safari-overlay p {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: rgba(255,255,255,.9);
    font-size: .85rem;
    line-height: 1.5;
    opacity: 0;
    transition: max-height .5s ease, margin-top .5s ease, opacity .5s ease;
}
.stokman-safari-section .safari-card:hover .safari-image,
.stokman-safari-section .safari-card:focus-visible .safari-image {
    transform: scale(1.08);
    opacity: 1;
}
.stokman-safari-section .safari-card:hover .safari-overlay p,
.stokman-safari-section .safari-card:focus-visible .safari-overlay p {
    max-height: 120px;
    margin-top: 10px;
    opacity: 1;
}
.stokman-safari-section .safari-card:focus-visible {
    outline: 3px solid #277eb8;
    outline-offset: 3px;
}
@media (max-width: 1024px) {
    .stokman-safari-section .safari-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .stokman-safari-section { padding: 55px 0; }
    .stokman-safari-section .safari-title { font-size: 1.7rem; }
    .stokman-safari-section .safari-grid { grid-template-columns: 1fr; }
    .stokman-safari-section .safari-card { min-height: 350px; }
    .stokman-safari-section .safari-overlay p {
        max-height: 120px;
        margin-top: 10px;
        opacity: 1;
    }
}
@media (hover: none) {
    .stokman-safari-section .safari-overlay p {
        max-height: 120px;
        margin-top: 10px;
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .stokman-safari-section .safari-image,
    .stokman-safari-section .safari-overlay p { transition: none; }
}

/* Additional theme conflict safeguards */
body .stokman-safari-section .safari-grid {
    display: grid !important;
}
body .stokman-safari-section a.safari-card {
    display: block;
    padding: 0;
    text-decoration: none;
}
body .stokman-safari-section .safari-overlay h3 {
    color: #fff;
}
