/* 
 * Belectrotec Case Studies V2
 * Strictly scoped CSS to completely prevent theme layout bleeding.
 * All rules must be prefixed with .bcsp-wrapper or .bcsp- or #bcsp-
 */

:root {
    --bcsp-primary: #ffcc00;
    --bcsp-bg: #ffffff;
    --bcsp-bg-alt: #f8f9fa;
    --bcsp-text: #2b2b2b;
    --bcsp-text-light: #6c757d;
    --bcsp-border: #edf2f7;
    --bcsp-font: 'Outfit', system-ui, -apple-system, sans-serif;
    --bcsp-radius: 20px;
    --bcsp-radius-sm: 10px;
    --bcsp-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --bcsp-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
    --bcsp-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Wrapper Reset (to prevent inheriting weird theme rules) */
.bcsp-wrapper {
    font-family: var(--bcsp-font);
    color: var(--bcsp-text);
    box-sizing: border-box;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.bcsp-wrapper *,
.bcsp-wrapper *::before,
.bcsp-wrapper *::after {
    box-sizing: border-box;
}

/* --- Admin Wrapper --- */
.bcsp-admin-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
}

.bcsp-admin-wrapper input[type="text"],
.bcsp-admin-wrapper textarea {
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.bcsp-admin-wrapper hr {
    margin: 20px 0;
    border-top: 1px solid #dcdcde;
}

/* --- Single Case Study Page --- */
.bcsp-single-page {
    background-color: var(--bcsp-bg);
    width: 100%;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 80px;
}

/* Hero Section */
.bcsp-hero {
    margin-top: -72px;
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: var(--bcsp-radius);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 50px;
    overflow: hidden;
    box-shadow: var(--bcsp-shadow);
}

.bcsp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    z-index: 1;
}

.bcsp-hero-overlay {
    max-width: 450px;
    z-index: 2;
    position: relative;
    color: #fff;
    padding: 0;
}

.bcsp-client-logo {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 15px;
    display: block;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: var(--bcsp-radius-sm);
}

.bcsp-hero-title,
.bcsp-hero-client-name {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0 5px 0;
    color: #fff;
    line-height: 1.2;
}

.bcsp-hero-title-small {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #f1f1f1;
    line-height: 1.4;
}

.bcsp-hero-desc {
    font-size: 15px;
    color: #f1f1f1;
    line-height: 1.5;
    margin-bottom: 20px;
}

.bcsp-tags .bcsp-tag {
    display: inline-block;
    background: var(--bcsp-primary);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Floating Client Logo */
.bcsp-floating-logo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    margin-top: -100px;
    /* Overlap hero section */
}

.bcsp-floating-logo {

    width: 200px;
    height: 200px;
    background-color: #ffffff;
    /* Blue color from screenshot */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px solid #fff;
    /* Thick white border to match design */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.bcsp-floating-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

/* Content Area */
.bcsp-content-wrapper {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.bcsp-main-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--bcsp-text);
}

.bcsp-section {
    margin-bottom: 35px;
}

.bcsp-label {
    display: inline-block;
    background: var(--bcsp-bg-alt);
    color: var(--bcsp-text-light);
    padding: 6px 14px;
    border-radius: var(--bcsp-radius-sm);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.bcsp-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--bcsp-text-light);
}

.bcsp-context-text {
    color: var(--bcsp-text);
}

.bcsp-divider {
    border: 0;
    border-top: 1px solid var(--bcsp-border);
    margin: 40px 0;
}

.bcsp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.bcsp-label-round {
    display: inline-block;
    background: var(--bcsp-primary);
    color: #000;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.bcsp-full-width {
    display: block;
    width: fit-content;
}

.bcsp-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.bcsp-list li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--bcsp-text-light);
    position: relative;
    padding-left: 24px;
}

.bcsp-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--bcsp-primary);
    font-weight: bold;
}

/* Gallery */
.bcsp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bcsp-gallery-item {
    overflow: hidden;
    border-radius: var(--bcsp-radius);
    box-shadow: var(--bcsp-shadow);
    position: relative;
    aspect-ratio: 4 / 3;
}

.bcsp-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.bcsp-gallery-item:hover img {
    transform: scale(1.05);
}

/* Interventions */
.bcsp-interventions-section {
    background: var(--bcsp-bg-alt);
    padding: 40px;
    border-radius: var(--bcsp-radius);
    margin-top: 20px;
    margin-bottom: 40px;
    border-left: 5px solid var(--bcsp-primary);
}

/* Timeline */
.bcsp-timeline-section {
    padding: 40px 0;
}

.bcsp-timeline-wrapper-inner {
    position: relative;
    margin-top: 30px;
    padding-left: 30px;
}

.bcsp-timeline-wrapper-inner::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 2px;
    background-color: var(--bcsp-border);
}

.bcsp-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.bcsp-timeline-item:last-child {
    margin-bottom: 0;
}

.bcsp-timeline-dot {
    position: absolute;
    left: -25px;
    /* Perfectly aligns the center of the 20px dot with the 12px center of the vertical line */
    top: 16px;
    /* Centers the dot vertically with the first line of text */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bcsp-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--bcsp-border);
    z-index: 2;
}

.bcsp-timeline-text {
    font-size: 15px;
    color: var(--bcsp-text-light);
    line-height: 1.6;
    background: var(--bcsp-bg-alt);
    padding: 15px 20px;
    border-radius: var(--bcsp-radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.bcsp-timeline-time {
    color: var(--bcsp-text);
    font-weight: 600;
}

/* Footer Testimonial */
.bcsp-footer-testimonial {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 0 40px;
}

.bcsp-testimonial-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--bcsp-radius);
    display: flex;
    align-items: flex-start;
    gap: 30px;
    box-shadow: var(--bcsp-shadow);
    border: 1px solid var(--bcsp-border);
    position: relative;
}



.bcsp-footer-logo {
    width: 80px;
    object-fit: contain;
}

.bcsp-quote-text {
    font-size: 18px;
    font-style: italic;
    color: var(--bcsp-text);
    line-height: 1.6;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
}

.bcsp-quote-author {
    font-size: 14px;
    color: var(--bcsp-text-light);
    font-weight: 600;
    font-style: normal;
}

/* Related Cases */
.bcsp-related-cases {
    max-width: 1200px;
    margin: 88px auto 0;
    padding: 0 20px 24px;
}

.bcsp-related-title {
    font-size: clamp(2.45rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.98;
    margin-bottom: 40px;
    text-align: center;
    color: var(--bcsp-text);
}

.bcsp-related-cases .bcsp-case-study-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
}

.bcsp-card-related {
    background: linear-gradient(180deg, #143328 0%, #041a0a 100%);
    border: 1px solid rgba(20, 71, 39, 0.16);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(7, 24, 14, 0.16);
}

.bcsp-card-related:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 78px rgba(7, 24, 14, 0.22);
}

.bcsp-card-related .bcsp-card-image {
    height: 250px;
    position: relative;
    border-bottom: 0;
}

.bcsp-card-related .bcsp-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 13, 5, 0.04) 0%, rgba(2, 13, 5, 0.22) 48%, rgba(4, 26, 10, 0.92) 100%);
    z-index: 1;
}

.bcsp-card-logo-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    width: 94px;
    height: 94px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(11, 24, 17, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcsp-card-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bcsp-card-related .bcsp-card-content {
    background: transparent;
    margin-top: -30px;
    padding: 0 28px 28px;
    gap: 14px;
}

.bcsp-card-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(218, 255, 160, 0.16);
    background: rgba(218, 255, 160, 0.08);
    color: #dfff9f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bcsp-card-related .bcsp-card-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.bcsp-card-related .bcsp-card-title a {
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bcsp-card-related .bcsp-card-title a:hover {
    color: #dfff9f;
}

.bcsp-card-related .bcsp-card-excerpt {
    margin: 0;
    color: rgba(243, 247, 239, 0.8);
    font-size: 1rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bcsp-card-related .bcsp-read-more {
    gap: 10px;
    margin-top: auto;
    align-self: flex-start;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(218, 255, 160, 0.18);
    background: rgba(218, 255, 160, 0.08);
    color: #dfff9f;
}

.bcsp-card-related:hover .bcsp-read-more {
    color: #ffffff;
    transform: none;
    background: rgba(218, 255, 160, 0.14);
    border-color: rgba(218, 255, 160, 0.28);
}

.bcsp-read-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Archive & Grid Styles --- */
.bcsp-archive-page {
    /* Top margin for main pages to breathe under header */
    padding-top: 60px;
    padding-bottom: 80px;
}

.bcsp-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: var(--bcsp-font);
}

.bcsp-archive-header {
    margin-bottom: 60px;
    text-align: center;
}

/* --- Archive Page Hero Section --- */
.bcsp-archive-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.bcsp-archive-hero {
    position: relative;
    background-color: #0d1e0d;
    /* Brand Dark Green */
    background-image:
        linear-gradient(rgba(22, 42, 18, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 42, 18, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center bottom;
    padding: clamp(150px, 17vw, 186px) 20px 120px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

.bcsp-archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(13, 30, 13, 0.9) 100%);
    pointer-events: none;
}

.bcsp-archive-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.bcsp-archive-hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.bcsp-archive-hero-title {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.1;
    color: #fff6db !important;
}

.bcsp-archive-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 246, 219, 0.88);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
    font-weight: 300;
}

.bcsp-case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.bcsp-card {
    background: #fff;
    border-radius: var(--bcsp-radius);
    overflow: hidden;
    box-shadow: var(--bcsp-shadow);
    transition: var(--bcsp-transition);
    border: 1px solid var(--bcsp-border);
    display: flex;
    flex-direction: column;
}

/* Dark Theme Variant */
.bcsp-card.bcsp-card-dark {
    background-color: #0d1e0d;
    /* Slightly lighter dark green */
    border: none;
    box-shadow: none;
    border-radius: 12px;
}

.bcsp-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--bcsp-shadow-hover);
}

.bcsp-card.bcsp-card-dark:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.bcsp-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bcsp-card-image-link {
    display: block;
    text-decoration: none;
}

.bcsp-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--bcsp-border);
}

.bcsp-card.bcsp-card-dark .bcsp-card-image {
    height: 260px;
    /* Reduced specific height to match ref more closely */
    border-bottom: none;
    position: relative;
    z-index: 1;
}

.bcsp-card.bcsp-card-dark .bcsp-card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, #0d1e0d 100%);
    z-index: 2;
}

.bcsp-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bcsp-card.bcsp-card-dark .bcsp-card-content {
    background-color: #0d1e0d;
    padding: 0 30px 40px 30px;
    z-index: 3;
    position: relative;
    margin-top: -30px;
}

.bcsp-card-empty-pill {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Re-adding pill to match new screenshot */
    border-radius: 20px;
    margin-bottom: 20px;
    height: 18px;
    width: 65px;
    margin-left: 0;
}

.bcsp-card-secteur {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--bcsp-primary);
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.bcsp-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.bcsp-card.bcsp-card-dark .bcsp-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.bcsp-card-title a {
    color: var(--bcsp-text);
    text-decoration: none;
    transition: color 0.3s;
}

.bcsp-card.bcsp-card-dark .bcsp-card-title a {
    color: #ffffff;
}

.bcsp-card-title a:hover {
    color: var(--bcsp-primary);
}

.bcsp-card-excerpt {
    font-size: 15px;
    color: var(--bcsp-text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.bcsp-read-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--bcsp-text);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--bcsp-transition);
}

.bcsp-card:hover .bcsp-read-more {
    color: var(--bcsp-primary);
    transform: translateX(5px);
}

.bcsp-no-results {
    font-size: 18px;
    color: var(--bcsp-text-light);
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 992px) {
    .bcsp-case-study-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bcsp-hero {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .bcsp-single-page {
        padding-top: 0;
    }

    .bcsp-related-cases {
        margin-top: 64px;
        padding-bottom: 8px;
    }

    .bcsp-related-title {
        margin-bottom: 28px;
    }

    .bcsp-related-cases .bcsp-case-study-grid {
        gap: 20px;
    }

    .bcsp-grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bcsp-hero {
        margin-top: -44px;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: auto;
        padding: 60px 20px;
        border-radius: 0;
    }

    .bcsp-hero-overlay {
        margin-top: 0;
        width: 100%;
        padding: 25px 20px;
    }

    .bcsp-hero-title {
        font-size: 26px;
    }

    .bcsp-main-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .bcsp-client-logo {
        margin: 0 auto 15px auto;
        max-width: 60px;
        max-height: 60px;
    }

    .bcsp-floating-logo-container {
        margin-top: -60px;
        display: flex;
        justify-content: center;
    }

    .bcsp-floating-logo {
        width: 140px;
        height: 140px;
        border-width: 5px;
    }

    .bcsp-card-logo-badge {
        width: 76px;
        height: 76px;
        padding: 12px;
        border-radius: 20px;
    }

    .bcsp-card-related .bcsp-card-image {
        height: 220px;
    }

    .bcsp-card-related .bcsp-card-content {
        padding: 0 22px 22px;
    }

    .bcsp-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .bcsp-case-study-grid {
        grid-template-columns: 1fr;
    }

    .bcsp-testimonial-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .bcsp-content-wrapper {
        padding: 40px 20px;
    }

    .bcsp-interventions-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .bcsp-gallery {
        grid-template-columns: 1fr;
    }

    .bcsp-hero-title {
        font-size: 22px;
    }

    .bcsp-hero-desc {
        font-size: 14px;
    }

    .bcsp-archive-title {
        font-size: 32px;
    }

    .bcsp-card-content {
        padding: 20px;
    }
}

/* --- Block Theme Compatibility --- */
/* Hide the default theme title, featured image, and metadata on single case study pages 
   so only the custom plugin template displays. */
.single-case_study header.entry-header,
.single-case_study .wp-block-post-title,
.single-case_study .wp-block-post-featured-image,
.single-case_study .wp-block-post-date,
.single-case_study .wp-block-post-author-name,
.single-case_study .wp-block-post-author,
.single-case_study .wp-block-post-terms,
.single-case_study .wp-block-post-featured-image+.wp-block-group,
.single-case_study .wp-block-post-title+.wp-block-group {
    display: none !important;
}

/* --- Home Page Shortcode Styles --- */
.bcsp-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bcsp-home-card {
    background: #fff;
    border: 1px solid var(--bcsp-border);
    border-radius: var(--bcsp-radius);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    align-items: center;
    /* Center everything horizontally */
}

/* ...rest of existing .bcsp-home-card styles... */
.bcsp-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bcsp-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bcsp-home-card:hover {
    border-color: #e2e8f0;
    transform: translateY(-8px);
    box-shadow: var(--bcsp-shadow-hover);
}

.bcsp-home-card:hover::before {
    transform: scaleX(1);
}

.bcsp-home-card-logo-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcsp-home-card-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bcsp-home-card-client-name-bold {
    font-size: 32px;
    font-weight: 800;
    /* Extra bold */
    margin: 0 0 15px 0;
    color: #000;
    line-height: 1.2;
}

.bcsp-home-card-title-string {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #2b2b2b;
    line-height: 1.6;
}

.bcsp-home-card-excerpt {
    display: none;
    /* Hidden based on design reference */
}

.bcsp-home-card-tags {
    display: none;
    /* Hidden in the new design reference */
}

.bcsp-home-card-tag {
    background: #e9ecef;
    color: var(--bcsp-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bcsp-home-card-link-wrapper {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 40px;
}

.bcsp-home-card-link {
    display: inline-flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--bcsp-transition);
}

.bcsp-home-card-link:hover {
    color: var(--bcsp-primary);
}

.bcsp-home-card-link .arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.bcsp-home-card-link:hover .arrow-icon {
    transform: translate(3px, -3px);
}

.bcsp-home-card-link svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* --- Archive List Shortcode Styles --- */
.bcsp-archive-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.bcsp-al-card {
    background: #fff;
    border: 1px solid var(--bcsp-border);
    border-radius: var(--bcsp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.bcsp-al-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.bcsp-al-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--bcsp-border);
}

.bcsp-al-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.bcsp-al-card:hover .bcsp-al-image::before {
    opacity: 1;
}

.bcsp-al-image-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.bcsp-al-secteur {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: var(--bcsp-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bcsp-al-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.bcsp-al-meta-header {
    height: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.bcsp-al-logo {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
}

.bcsp-al-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.bcsp-al-title a {
    color: var(--bcsp-text);
    text-decoration: none;
    transition: color 0.3s;
}

.bcsp-al-title a:hover {
    color: var(--bcsp-primary);
}

.bcsp-al-excerpt {
    font-size: 15px;
    color: var(--bcsp-text-light);
    line-height: 1.6;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.bcsp-al-footer {
    border-top: 1px solid var(--bcsp-border);
    padding-top: 25px;
    margin-top: auto;
}

.bcsp-al-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.bcsp-al-tags span {
    background: var(--bcsp-bg-alt);
    color: var(--bcsp-text-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.bcsp-al-btn {
    display: inline-flex;
    align-items: center;
    color: var(--bcsp-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.bcsp-al-btn svg {
    margin-left: 8px;
    transition: transform 0.3s;
}

.bcsp-al-btn:hover {
    color: var(--bcsp-primary);
}

.bcsp-al-btn:hover svg {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .bcsp-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bcsp-archive-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bcsp-home-grid {
        grid-template-columns: 1fr;
    }

    .bcsp-archive-list-grid {
        grid-template-columns: 1fr;
    }
}
