/* ========================================
   CASES GRID - PINTEREST MASONRY STYLE
   ======================================== */

/* Grid Container */

.cases-grid-container {
    padding: 4rem 0;
    max-width: 1800px;
    margin: 0 auto;
    --font-display: 'Chronicle Display', 'RecklessNeue', Georgia, serif;
    --font-body:    'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, sans-serif;
    font-family: var(--font-display);
    font-weight: normal;
 }

.cases-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.cases-grid-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cases-filter-button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #000;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.cases-filter-button:hover {
    background: #000;
    color: #fff;
}

/* ✅ Pinterest Masonry Grid - VRAI STYLE PINTEREST */
.cases-grid {
    column-count: 4;
    column-gap: 20px;
    padding: 0 20px;
}

/* ✅ Case Card - Pinterest Style avec hauteurs variables */
.case-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid; /* Empêche la carte de se couper entre colonnes */
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block; /* Important pour masonry */
    width: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ✅ Hauteurs VARIABLES comme Pinterest - Pattern aléatoire */
.case-card:nth-child(8n+1) .case-card-image,
.case-card:nth-child(8n+5) .case-card-image {
    height: 420px; /* Grande */
}

.case-card:nth-child(8n+2) .case-card-image,
.case-card:nth-child(8n+6) .case-card-image {
    height: 280px; /* Petite */
}

.case-card:nth-child(8n+3) .case-card-image,
.case-card:nth-child(8n+7) .case-card-image {
    height: 350px; /* Moyenne */
}

.case-card:nth-child(8n+4) .case-card-image,
.case-card:nth-child(8n+8) .case-card-image {
    height: 500px; /* Très grande */
}

/* ✅ Support pour la classe .case-card-large si elle existe dans le HTML */
.case-card-large .case-card-image {
    height: 520px !important; /* Force une grande hauteur */
}

.case-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.case-card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.case-card-image {
    width: 100%;
    height: 350px; /* Hauteur par défaut */
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-card-image {
    transform: scale(1.08);
}

/* Tag Badge */
.case-card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 20px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.case-card-tag.shopify {
    background: rgba(150, 200, 255, 0.95);
}

.case-card-tag.headless {
    background: rgba(255, 200, 150, 0.95);
}

.case-card-tag.new {
    background: rgba(255, 100, 100, 0.95);
    color: #fff;
}

/* Overlay with text - Pinterest Style */
.case-card-overlay {
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: transparent;
    color:#053333;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.case-card-link-wrapper {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    transition: opacity 0.4s ease;
}

.case-space-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background:#053333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

a.case-card-link:hover .case-space-badge {
    transform: scale(1.1);
    background:#944f24;
}

.case-badge-arrow {
    display: block;
    transition: transform 0.3s ease;
}

a.case-card-link:hover .case-badge-arrow {
    transform: translateX(3px);
}

.case-card:hover .case-card-overlay {
    opacity: 1;
}

.case-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.case-card-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.case-card-subtitle span {
    display: inline-block;
}

.case-card-price {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.75rem;
    opacity: 1;
}

.case-card-price span {
    display: inline-block;
}

/* Fullscreen Content */
.fullscreen-content.offices {
    padding: 2rem 0 0;
    padding-top: 100px;
}

/* ========================================
   RESPONSIVE - PINTEREST BREAKPOINTS
   ======================================== */

/* Desktop Large - 5 colonnes */
@media (min-width: 1440px) {
    .cases-grid {
        column-count: 5;
        column-gap: 25px;
    }
}

/* Desktop - 4 colonnes */
@media (min-width: 1200px) and (max-width: 1439px) {
    .cases-grid {
        column-count: 4;
        column-gap: 20px;
    }
}

/* Tablet Large - 2 colonnes */
@media (min-width: 992px) and (max-width: 1199px) {
    .cases-grid {
        column-count: 2;
        column-gap: 18px;
        padding: 0 1.5rem;
    }
    
    .cases-grid-header {
        padding: 0 1.5rem;
    }
    
    /* Ajuster les hauteurs pour 3 colonnes */
    .case-card:nth-child(6n+1) .case-card-image,
    .case-card:nth-child(6n+4) .case-card-image {
        height: 400px;
    }
    
    .case-card:nth-child(6n+2) .case-card-image,
    .case-card:nth-child(6n+5) .case-card-image {
        height: 280px;
    }
    
    .case-card:nth-child(6n+3) .case-card-image,
    .case-card:nth-child(6n+6) .case-card-image {
        height: 340px;
    }
}

/* Tablet - 2 colonnes */
@media (min-width: 768px) and (max-width: 991px) {
    .cases-grid {
        column-count: 2;
        column-gap: 16px;
        padding: 0 1.5rem;
    }
    
    .cases-grid-header {
        padding: 0 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .case-card-title {
        font-size: 1.125rem;
    }
    
    /* Hauteurs adaptées tablette */
    .case-card .case-card-image {
        height: 300px;
    }
    
    .case-card:nth-child(4n+1) .case-card-image {
        height: 380px;
    }
    
    .case-card:nth-child(4n+3) .case-card-image {
        height: 260px;
    }
}

/* Mobile Large - 1 colonnes */
@media (min-width: 576px) and (max-width: 767px) {
    .cases-grid {
        column-count: 1;
        column-gap: 15px;
        padding: 0 1rem;
    }
    
    .cases-grid-header {
        padding: 0 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .case-card {
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .case-card-overlay {
        padding: 1.25rem;
    }
    
    .case-card-title {
        font-size: 1rem;
    }
    
    .case-card-subtitle {
        font-size: 0.813rem;
    }
    
    .case-card-price {
        font-size: 0.875rem;
    }
    
    /* Pattern alternatif pour 2 colonnes */
    .case-card .case-card-image {
        height: 280px;
    }
    
    .case-card:nth-child(4n+1) .case-card-image,
    .case-card:nth-child(4n+3) .case-card-image {
        height: 380px;
    }
    
    .case-card:nth-child(4n+2) .case-card-image {
        height: 240px;
    }
}

/* Mobile - 2 colonnes compactes */
@media (max-width: 575px) {
    .cases-grid {
        column-count: 1;
        column-gap: 12px;
        padding: 0 1rem;
    }
    
    .cases-grid-container {
        padding: 2rem 0;
    }
    
    .cases-grid-header {
        padding: 0 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cases-grid-title {
        font-size: 1.75rem;
    }
    
    .cases-filter-button {
        font-size: 0.875rem;
        padding: 0.6rem 1.25rem;
    }
    
    .case-card {
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .case-card-overlay {
        padding: 1rem;
    }
    
    .case-card-title {
        font-size: 0.938rem;
    }
    
    .case-card-subtitle {
        font-size: 0.75rem;
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .case-card-price {
        font-size: 0.813rem;
        margin-top: 0.5rem;
    }
    
    .fullscreen-content.offices {
        padding-top: 80px;
    }
    
    /* Hauteurs variables pour mobile */
    .case-card .case-card-image {
        height: 260px;
    }
    
    .case-card:nth-child(3n+1) .case-card-image {
        height: 340px;
    }
    
    .case-card:nth-child(3n+2) .case-card-image {
        height: 220px;
    }
    
    .case-space-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Mobile Very Small - 1 colonne */
@media (max-width: 380px) {
    .cases-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .case-card {
        margin-bottom: 15px;
    }
    
    .case-card .case-card-image {
        height: 320px;
    }
    
    .case-card:nth-child(2n) .case-card-image {
        height: 400px;
    }
}

/* ========================================
   PINTEREST LOADING ANIMATION
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Stagger animation for cards */
.case-card:nth-child(1) { animation-delay: 0.05s; }
.case-card:nth-child(2) { animation-delay: 0.1s; }
.case-card:nth-child(3) { animation-delay: 0.15s; }
.case-card:nth-child(4) { animation-delay: 0.2s; }
.case-card:nth-child(5) { animation-delay: 0.25s; }
.case-card:nth-child(6) { animation-delay: 0.3s; }
.case-card:nth-child(n+7) { animation-delay: 0.35s; }

/* ========================================
   CASE DETAIL PAGE
   ======================================== */

.case-detail {
    display: none;
    background: #fff;
}

.case-detail.active {
    display: block;
}

/* Back Button */
.case-back-btn {
    position: fixed;
    top: 9rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #677b69;
    cursor: pointer;
    z-index: 100;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.case-back-btn:hover {
    background: #677b69;
    color: #fff;
}

/* Hero Section */
.case-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.case-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-hero-content {
    position: absolute;
    bottom: 5%;
    left: 5%;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.case-hero-title {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.case-hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    max-width: 600px;
}

/* Introduction Section */
.case-intro {
    padding: 8rem 5%;
}

.case-intro-container {
    max-width: 900px;
    margin: 0 auto;
}

.case-intro-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.case-intro-body {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 3rem;
}

.case-intro-cta {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-primary,
.btn-secondary {
    border: 2px solid #677b69;
    color: #677b69;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: #677b69;
    color: #fff;
}

/* Services Grid */
.case-services {
    padding: 6rem 5%;
    background: #F7F5F0;
}

.case-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-column:hover {
    background: #677b69;
    color: white;
}

.service-column {
    background: white;
    padding: 15% 16% 8%;
    text-align: center;
    border-radius: 7px;
    cursor: pointer;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.2rem 0;
    position: relative;
}

/* Split Section */
.case-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.case-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-split-content {
    display: flex;
    align-items: center;
    padding: 5rem;
}

.case-split-inner {
    max-width: 500px;
}

.case-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #999;
}

.case-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.case-section-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333;
}

.case-split-reverse {
    grid-template-columns: 1fr 1fr;
}

.case-split-reverse .case-split-content {
    order: -1;
}

/* Full Width Image */
.case-full-image {
    width: 100%;
}

.case-full-image img {
    width: 100%;
    display: block;
}

/* Color Block Section */
.case-color-block {
    padding: 10rem 5%;
    text-align: center;
    color: white;
}

.case-color-content {
    max-width: 800px;
    margin: 0 auto;
}

.case-color-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.case-color-text {
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Gallery Grid */
.case-gallery {
    padding: 5rem;
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-gallery-grid img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
}

/* Text Section */
.case-text-section {
    padding: 8rem 5%;
}

.case-text-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Next Project */
.case-next {
    padding: 5rem;
    background: #000;
    color: white;
}

.case-next-content {
    text-align: center;
}

.case-next-label {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.case-next-link {
    display: block;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.case-next-link img {
    width: 100%;
    display: block;
}

.case-next-cta {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: white;
    color: black;
    font-weight: 600;
    border-radius: 8px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS - DETAIL PAGE
   ======================================== */

@media (max-width: 991px) {
    .case-back-btn {
        top: 7rem;
        left: 2rem;
        padding: 0.6rem 1.25rem;
        font-size: 0.938rem;
    }
}

@media (max-width: 768px) {
    .case-split {
        grid-template-columns: 1fr;
    }
    
    .case-split-content {
        padding: 3rem 2rem;
    }
    
    .case-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .case-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-back-btn {
        top: 6rem;
        left: 1.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .case-intro,
    .case-text-section {
        padding: 5rem 2rem;
    }
    
    .case-gallery {
        padding: 3rem 2rem;
    }
    
    .case-next {
        padding: 3rem 2rem;
    }
}

@media (max-width: 575px) {
    .case-hero-content {
        bottom: 3%;
        left: 3%;
    }
    
    .case-split-content {
        padding: 2rem 1.5rem;
    }
    
    .case-intro,
    .case-text-section {
        padding: 4rem 1.5rem;
    }
    
    .case-color-block {
        padding: 6rem 1.5rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .case-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .case-card-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.6);
    }
    
    .cases-filter-button,
    .case-back-btn {
        display: none;
    }
}
/* ========================================
   CASE DETAIL PAGE
   ======================================== */

.case-detail {
    display: none;
    background: #fff;
}

.case-detail.active {
    display: block;
}

/* Back Button */
.case-back-btn {
    position: fixed;
    top: 9rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #677b69;
    cursor: pointer;
    z-index: 100;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.case-back-btn:hover {
    background: #677b69;
    color: #fff;
}

/* Hero Section */
.case-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.case-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-hero-content {
    position: absolute;
    bottom: 5%;
    left: 5%;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.case-hero-title {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.case-hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    max-width: 600px;
}

/* Introduction Section */
.case-intro {
    padding: 8rem 5%;
}

.case-intro-container {
    max-width: 900px;
    margin: 0 auto;
}

.case-intro-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.case-intro-body {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 3rem;
}

.case-intro-cta {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

 
.btn-primary ,
.btn-secondary {
    border: 2px solid #677b69;
    color: #677b69;
}

.btn-primary:hover ,
.btn-secondary:hover {
    background: #677b69;
    color: #fff;
}

/* Services Grid */
.case-services {
    padding: 6rem 5%;
    background: #F7F5F0;
}

.case-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}


.service-column:hover {
    background: #677b69;
    color: white;
}

.service-column {
    background: white;
    padding: 15% 16% 8%;
    text-align: center;
    border-radius: 7px;
    cursor: pointer;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.2rem 0;
   /* padding-left: 1.5rem; */
    position: relative;
}

/*
.service-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    font-weight: 600;
}*/

 /*Split Section */
.case-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.case-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-split-content {
    display: flex;
    align-items: center;
    padding: 5rem;
}

.case-split-inner {
    max-width: 500px;
}

.case-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #999;
}

.case-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.case-section-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333;
}

.case-split-reverse {
    grid-template-columns: 1fr 1fr;
}

.case-split-reverse .case-split-content {
    order: -1;
}

/* Full Width Image */
.case-full-image {
    width: 100%;
}

.case-full-image img {
    width: 100%;
    display: block;
}

/* Color Block Section */
.case-color-block {
    padding: 10rem 5%;
    text-align: center;
    color: white;
}

.case-color-content {
    max-width: 800px;
    margin: 0 auto;
}

.case-color-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.case-color-text {
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Gallery Grid */
.case-gallery {
    padding: 5rem;
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-gallery-grid img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
}

/* Text Section */
.case-text-section {
    padding: 8rem 5%;
}

.case-text-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Next Project */
.case-next {
    padding: 5rem;
    background: #000;
    color: white;
}

.case-next-content {
    text-align: center;
}

.case-next-label {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.case-next-link {
    display: block;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.case-next-link img {
    width: 100%;
    display: block;
}

.case-next-cta {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: white;
    color: black;
    font-weight: 600;
    border-radius: 8px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS - DETAIL PAGE
   ======================================== */

@media (max-width: 991px) {
    .case-back-btn {
        top: 7rem;
        left: 2rem;
        padding: 0.6rem 1.25rem;
        font-size: 0.938rem;
    }
}

@media (max-width: 768px) {
    .case-split {
        grid-template-columns: 1fr;
    }
    
    .case-split-content {
        padding: 3rem 2rem;
    }
    
    .case-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .case-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-back-btn {
        top: 6rem;
        left: 1.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .case-intro,
    .case-text-section {
        padding: 5rem 2rem;
    }
    
    .case-gallery {
        padding: 3rem 2rem;
    }
    
    .case-next {
        padding: 3rem 2rem;
    }
}

@media (max-width: 575px) {
    .case-hero-content {
        bottom: 3%;
        left: 3%;
    }
    
    .case-split-content {
        padding: 2rem 1.5rem;
    }
    
    .case-intro,
    .case-text-section {
        padding: 4rem 1.5rem;
    }
    
    .case-color-block {
        padding: 6rem 1.5rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .case-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .case-card-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.6);
    }
    
    .cases-filter-button,
    .case-back-btn {
        display: none;
    }
}