/**
 * Block Editor and Pattern Styles
 * 
 * Custom styles for theme-specific patterns and Gutenberg blocks.
 */

/* --- Case Study Hero Block --- */
.case-study-hero {
    position: relative;
    padding: 120px 0 160px;
    background-color: var(--brand-blue);
    color: #fff;
    overflow: hidden;
    margin-bottom: 0;
    z-index: 1;
}

.case-study-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: #fff;
    clip-path: ellipse(60% 100% at 50% 100%);
}

.case-study-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .case-study-hero h1 {
        font-size: 2.2rem;
    }

    .case-study-hero {
        padding: 90px 15px 130px;
    }
}

/* --- Case Study Feature Section --- */
.cs-feature-section {
    padding: 80px 0;
    background: #fff;
}

.cs-feature-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.cs-feature-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cs-feature-img-wrapper:hover img {
    transform: scale(1.03);
}

.cs-feature-content h2 {
    color: var(--brand-blue);
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.cs-feature-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 2px;
}

/* Premium Tick List */
.cs-tick-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 !important;
}

.cs-tick-list li {
    position: relative;
    padding-left: 45px !important;
    margin-bottom: 12px !important;
    font-size: 1.05rem !important;
    line-height: 1.6;
    color: #333;
    display: block !important;
}

.cs-tick-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: rgba(191, 10, 48, 0.08);
    color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.cs-tick-list li:hover::before {
    background: var(--brand-red);
    color: #fff;
    transform: scale(1.1);
}

/* --- Result Section Optimization --- */
.cs-result-card {
    background: #fdfdfd;
    border-radius: 25px;
    padding: 60px 40px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.cs-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--brand-red);
}

.cs-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.cs-result-item h4 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-red);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.cs-result-item p {
    font-size: 0.95rem;
    color: var(--brand-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* --- Atomic Components for Standalone Patterns --- */

/* Standalone Client Info */
.cs-client-brief {
    margin: 40px auto;
    padding: 25px 30px;
    background: #fbfbfb;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
}

.cs-info-item {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #444;
}

.cs-info-label {
    font-weight: 800;
    color: var(--brand-blue);
    margin-right: 12px;
}

/* Standalone Branded Heading */
.cs-standalone-heading {
    margin: 60px auto 25px;
}

.cs-branded-title {
    color: var(--brand-red) !important;
    font-weight: 800 !important;
    font-size: 2.8rem !important;
    margin-bottom: 10px !important;
    line-height: 1.1 !important;
}

/* Standalone Premium Text */
.cs-premium-text {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: #444 !important;
}

/* Standalone Premium Image Box (The one that was "bare") */
.cs-premium-img {
    max-width: 800px !important;
    margin: 40px auto !important;
    padding: 15px !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}

.cs-premium-img:hover {
    transform: translateY(-5px);
}

.cs-premium-img figure {
    margin: 0 !important;
    border-radius: 12px;
    overflow: hidden;
}

.cs-premium-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}