/* Case Studies Page Styles - Modern Design */

/* Font Imports */

/* Font Classes for Tailwind */
.font-jcb-bold-condensed {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif !important;
}

.font-jcb-bold {
    font-family: 'JCBEuro Bold Regular', sans-serif !important;
}

.font-jcb-roman {
    font-family: 'JCBEuro Roman Regular', sans-serif !important;
}

/* Tailwind Color Variables */
.bg-glow-yellow {
    background-color: #FAA747 !important;
}

.text-glow-yellow {
    color: #FAA747 !important;
}

.border-glow-yellow {
    border-color: #FAA747 !important;
}

/* Container fix for proper centering */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Hero Section */
.case-hero {
    background: #000;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Hero Section Typography */
.case-hero h1 {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif !important;
    font-size: 3rem;
    line-height: 1;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.case-hero p {
    font-family: 'JCBEuro Roman Regular', sans-serif !important;
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #D1D5DB;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Yellow divider line */
.case-hero .w-20 {
    width: 5rem;
    height: 0.25rem;
    background-color: #FAA747;
    margin: 0 auto 1.5rem auto;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: rgb(255, 255, 255);
    padding: 20px 0;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 4px 0px;
    position: sticky;
    top: 0px;
    z-index: 100;
    border: 0;
    box-sizing: border-box;
}

.breadcrumb-nav nav {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.breadcrumb-nav a {
    color: rgb(75, 85, 99);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #FAA747;
}

.breadcrumb-nav span {
    color: #000000;
}

/* Container wrapper */
#case-studies-container {
    padding: 80px 0;
    background: #f5f5f5;
}

/* Case Study Sections */
.case-study-section {
    margin-bottom: 80px;
}

.case-study-section:last-child {
    margin-bottom: 0;
}

.case-study-content {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top Section with Image and Content */
.case-study-main {
    display: grid;
    grid-template-columns: 5fr 4fr;
    min-height: 500px;
}

/* Image Container */
.case-study-image {
    position: relative;
    overflow: hidden;
    background: #000;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.5s ease;
}

.case-study-section:hover .case-study-image img {
    opacity: 1;
    transform: scale(1.05);
}

/* Overlay with case number */

.case-category-badge {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: #FAA747;
    color: #000;
    padding: 10px 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'JCBEuro Bold Regular', sans-serif;
}

/* Content Section */
.case-study-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.case-title {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
    color: #000;
    font-family: 'JCBEuro Bold Condensed Regular', sans-serif;
    letter-spacing: -0.5px;
}

.case-subtitle {
    font-size: 18px;
    color: rgb(0, 0, 0);
    margin-bottom: 15px;
    font-family: 'JCBEuro Roman Regular', sans-serif;
    font-weight: 700;
    line-height: 32.4px;
    display: block;
    box-sizing: border-box;
    border: 0;
    text-transform: none;
    letter-spacing: normal;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    font-family: 'JCBEuro Roman Regular', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-meta i {
    color: #FAA747;
}

.case-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0;
    font-family: 'JCBEuro Roman Regular', sans-serif;
}

.case-description strong {
    font-weight: 700;
    color: #000;
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Stats Bar - Bottom Section */
.stats-bar {
    background: linear-gradient(135deg, #FAA747 0%, #f59e0b 100%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="40" height="40" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="dots" width="40" height="40" patternUnits="userSpaceOnUse"%3E%3Ccircle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23dots)" /%3E%3C/svg%3E');
}

.stat-item {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0,0,0,0.1);
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 42px;
    font-weight: 900;
    color: white;
    font-family: 'JCBEuro Bold Condensed Regular', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'JCBEuro Bold Regular', sans-serif;
}

/* View More Link */
.case-study-link {
    position: absolute;
    bottom: 20px;
    right: 40px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'JCBEuro Bold Regular', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.case-study-link:hover {
    opacity: 1;
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .case-study-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .case-study-info {
        padding: 40px;
    }
}

@media (max-width: 968px) {
    .case-study-main {
        grid-template-columns: 1fr;
    }
    
    .case-study-image {
        height: 400px;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .stat-item:nth-child(3)::after {
        display: block;
    }
}

@media (max-width: 768px) {
    #case-studies-container {
        padding: 40px 0;
    }
    
    .case-study-section {
        margin-bottom: 40px;
    }
    
    .case-hero {
        padding: 60px 0;
    }
    
    .case-title {
        font-size: 32px;
    }
    
    .case-study-info {
        padding: 30px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .stat-item {
        padding: 30px 15px;
    }
    
    
    .case-category-badge {
        bottom: 20px;
        left: 20px;
        padding: 8px 20px;
        font-size: 11px;
    }
}

/* CTA Section */
.bg-black {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
    border: 0;
    box-sizing: border-box;
}

/* CTA Typography */
.bg-black h2 {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif !important;
    font-size: 36px;
    line-height: 40px;
    color: rgb(255, 255, 255);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    text-align: center;
    font-weight: 400;
    border: 0;
    box-sizing: border-box;
}

/* CTA Yellow Divider */
.bg-black .w-20 {
    width: 80px;
    height: 4px;
    background-color: rgb(250, 167, 71);
    margin: 0 auto 24px auto;
    border: 0;
    box-sizing: border-box;
}

.bg-black p {
    font-family: 'JCBEuro Roman Regular', sans-serif !important;
    font-size: 20px;
    line-height: 28px;
    color: rgb(209, 213, 219);
    max-width: 672px;
    margin: 0 auto 32px auto;
    text-align: center;
    border: 0;
    box-sizing: border-box;
}

/* CTA Buttons Base */
.bg-black a {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif !important;
    font-size: 18px;
    line-height: 28px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 16px 32px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    border: 0;
}

/* Primary Button (Yellow Background) */
.bg-black .bg-glow-yellow,
.bg-black a.bg-glow-yellow {
    background-color: rgb(250, 167, 71) !important;
    color: rgb(0, 0, 0) !important;
}

.bg-black .bg-glow-yellow:hover,
.bg-black a.bg-glow-yellow:hover,
.bg-black .hover\:bg-white:hover {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(0, 0, 0) !important;
}

/* Secondary Button (Transparent with Border) */
.bg-black .bg-transparent,
.bg-black a.bg-transparent {
    background-color: rgba(0, 0, 0, 0) !important;
    color: rgb(250, 167, 71) !important;
    border: 2px solid rgb(250, 167, 71) !important;
}

.bg-black .bg-transparent:hover,
.bg-black a.bg-transparent:hover,
.bg-black .hover\:bg-glow-yellow:hover {
    background-color: rgb(250, 167, 71) !important;
    color: rgb(0, 0, 0) !important;
    border-color: rgb(250, 167, 71) !important;
}

/* Icon color for secondary button */
.bg-black .bg-transparent i,
.bg-black a.bg-transparent i {
    color: rgb(250, 167, 71) !important;
}

.bg-black .bg-transparent:hover i,
.bg-black a.bg-transparent:hover i,
.bg-black .hover\:bg-glow-yellow:hover i {
    color: rgb(0, 0, 0) !important;
}

/* CTA Button Container */
.bg-black .flex {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
    border: 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .bg-black .flex {
        flex-direction: column;
    }
    
    .bg-black a {
        width: 100%;
        display: block;
    }
}

/* Spacer Section */
.py-16.bg-gray-100 {
    padding: 64px 0;
    background-color: rgb(243, 244, 246);
}

/* ============================================================
   Preview-card additions: make archive cards link to singles.
   ============================================================ */

/* Image is now an <a> — keep existing image sizing, add pointer */
.case-study-image {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.case-study-image img {
    transition: transform 0.35s ease;
}

.case-study-image:hover img {
    transform: scale(1.03);
}

/* Title link — inherit color, hover glow yellow */
.case-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.case-title a:hover {
    color: #FAA747;
}

/* Read case study CTA */
.case-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: 'JCBEuro Bold Regular', sans-serif;
    font-size: 0.95rem;
    color: #FAA747;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.18s ease, gap 0.18s ease;
}

.case-read-more:hover {
    color: #d87f1e;
    gap: 12px;
}

.case-read-more i {
    font-size: 0.85rem;
    transition: transform 0.18s ease;
}

.case-read-more:hover i {
    transform: translateX(3px);
}