/* Only on single use-case pages */
body.single-use-case header.site-header {
    background: transparent !important;
    position: absolute;
    width: 100%;
    z-index: 10;
}

/* --------------------------------------------- */
/* Single Use Case Styles */
/* --------------------------------------------- */

/* Full Screen Banner */
.use-case-banner {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

/* Banner Image */
.use-case-banner picture,
.use-case-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Banner Content Wrapper */
.use-case-banner-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #fff;
    padding: 20px;
    width: 100%;
    max-width: 1390px;
}

/* Banner Title */
.use-case-banner-title {
    font-size: 60px;
    color: var(--uffizio-text-white);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 135%;
    width: 720px;
}


.uffizio-legacy-heading {
    font-family: var(--uffizio-font-body);
    font-size: 28px;
    text-transform: capitalize;
    line-height: 135%;
}

/* --------------------------------------------- */
/* Content Layout */
/* --------------------------------------------- */

.use-case-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 0;
}

.content-left {
    flex: 1;
    min-width: 300px;
}

.content-right {
    width: 100%;
    max-width: 350px;
    /* Sidebar */
}

h2.uffizio-heading {
    font-family: 'Inter', serif;
    font-size: 28px;
    text-transform: none;
    font-weight: 600;
}

.use-case-info {
    margin-top: 40px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f7f8fa 0%, #ffffff 100%);
    border-radius: 18px;
    border: 1px solid #e9e9e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}

.use-case-info:hover {
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* AUTHOR + VIEWS */
.use-case-info .author,
.use-case-info .views {
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* BADGE STYLE SPAN */
.use-case-info span {
    background: #e8ebf2;
    color: #111;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* VIEW COUNTER HIGHLIGHT */
.use-case-info .views span {
    background: #d2e7ff;
}

/* NEXT/PREV NAVIGATION */
.use-case-navigation {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.use-case-navigation a {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.25s;
    letter-spacing: 0.3px;
}

.use-case-navigation a:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0px 6px 16px rgba(37, 99, 235, 0.35);
}


/* Remove default list styling */

.content-left .uffizio-legacy-row:first-of-type .uffizio-legacy-text {
    margin-bottom: 30px !important;
}


.uffizio-legacy-text ul {
    padding-left: 20px;
    margin: 0;
    list-style: none;
    margin-bottom: 50px;
}

/* List item styling */
.uffizio-legacy-text ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: var(--uffizio-text-secondary);
}

/* ICON bullet using optimized SVG */
.uffizio-legacy-text ul li::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath fill='%230057ff' stroke='%230057ff' stroke-width='.5' d='M13.85 2.171a.527.527 0 0 0-.746 0L6.774 8.5 4.49 6.013a.527.527 0 0 0-.746-.031.53.53 0 0 0-.03.747l2.655 2.892a.53.53 0 0 0 .377.17h.012c.14 0 .273-.055.372-.153l6.719-6.719a.53.53 0 0 0 0-.748Z'/%3E%3Cpath fill='%230057ff' stroke='%230057ff' stroke-width='.5' d='M13.722 6.74a.53.53 0 0 0-.527.528c0 3.287-2.667 5.96-5.945 5.96s-5.945-2.673-5.945-5.96 2.667-5.96 5.945-5.96a.528.528 0 0 0 0-1.058c-3.86 0-7 3.148-7 7.018s3.14 7.018 7 7.018 7-3.148 7-7.018a.53.53 0 0 0-.528-.529Z'/%3E%3C/svg%3E");
}

.uffizio-legacy-text ul li b {
    font-weight: 600;
    /* color: #000; */
    /* or your theme color */
}

.uffizio-legacy-text ul li b+span {
    margin-left: 3px;
}


@media (max-width: 768px) {
    .uffizio-legacy-text ul li {
        padding-left: 28px;
    }

    .uffizio-legacy-text ul li::before {
        width: 14px;
        height: 14px;
        top: 3px;
    }
}

.uffizio-legacy-single-image {
    margin-bottom: 30px;
}


/* --------------------------------------------- */
/* Latest Use Cases Sidebar */
/* --------------------------------------------- */

.latest-use-cases {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 18px;
    border: 1px solid #eaeaea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.latest-use-cases h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #111827;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
    font-weight: 700;
}

.uffizio-text-block {
    margin-bottom: 50px;
}

/* EACH ITEM */
.latest-use-case-item {
    display: flex;
    gap: 15px;
    padding: 10px 5px;
    border-radius: 12px;
    transition: 0.25s ease;
    cursor: pointer;
}

.latest-use-case-item:hover {
    background: #f5f7ff;
    transform: translateX(4px);
}

.latest-use-case-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
}

/* TEXT AREA */
.latest-use-case-info {
    display: inline-grid;
    align-content: stretch;
}

.latest-use-case-info .title {
    margin: 0 0 6px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.latest-use-case-info .title a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: 0.25s ease;
}

.latest-use-case-info .title a:hover {
    color: #2563eb;
}

.latest-use-case-info .date {
    font-size: 0.65rem;
    color: #6b7280;
}

/* SIDEBAR RESPONSIVE */
@media (max-width: 900px) {
    .content-right {
        width: 100%;
        margin-top: 40px;
    }

    .latest-use-cases {
        padding: 20px;
    }

    .latest-use-case-item {
        gap: 12px;
    }
}

.latest-use-case-item img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
    background: #f4f4f4;
    /* fallback if image fails */
    display: block;
}

.single_downloadBtn button {
    position: relative;
    width: 20%;
    border-radius: 10px;
    font-weight: 500;
    font-size: 20px;
    font-family: "Antonio", serif !important;
    text-transform: uppercase;
    height: 60px;
    background: #fff !important;
    color: #0057FF !important;
    z-index: 6;
    margin-top: 25px;
    border: 1px solid var(--uffizio-color-accent);
}

.use-case-btn:hover {
    background-color: rgba(255, 255, 255, .3) !important;
    color: #fff !important;
    border: 1px solid #0057ff !important;
}

/* --------------------------------------------- */
/* Responsive */
/* --------------------------------------------- */

@media (max-width: 768px) {
    .use-case-content-wrapper {
        flex-direction: column;
    }

    .content-right {
        max-width: 100%;
    }

    .use-case-banner-content h1 {
        font-size: 2rem;
        /* mobile fix */
    }

    .use-case-banner {
        height: 300px;
    }
}