/* Cases Page 2025 Modern Design */

:root {
    --case-card-bg: #ffffff;
    --case-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --case-hover-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    --case-radius: 20px;
    --case-accent-gradient: linear-gradient(135deg, var(--accent-color), #089096);
}

/* Fix for header strip color */
body.starter-page-page {
    background-color: #02444d;
}

#cases-section {
    background: linear-gradient(180deg, #f8fcfd 0%, #66a5ad 80%);
    padding: 40px 0;
}

.case-card {
    background: var(--case-card-bg);
    border-radius: var(--case-radius);
    padding: 30px;
    box-shadow: var(--case-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--case-hover-shadow);
}

.case-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(10, 106, 110, 0.08);
    /* accent with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.case-card:hover .case-icon-wrapper {
    background: var(--case-accent-gradient);
    transform: scale(1.1) rotate(5deg);
}

.case-icon-wrapper i {
    font-size: 28px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.case-card:hover .case-icon-wrapper i {
    color: #ffffff;
}

.case-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    /* Dark Slate for visibility on white bg */
    margin-bottom: 8px;
}

.case-subtitle {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.case-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
}

.case-stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    /* Push to bottom */
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.stat-box {
    text-align: left;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-desc {
    font-size: 12px;
    color: #64748b;
}

.case-problem,
.case-solution {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
}

.case-problem strong,
.case-solution strong {
    display: block;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header-modern .badge-modern {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(10, 106, 110, 0.1);
    color: var(--accent-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 15px;
}

.section-header-modern h2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.section-header-modern p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

/* Hover reveal effect */
.hover-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.case-card:hover .hover-reveal {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

/* Decorative elements */
.decor-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 106, 110, 0.05), rgba(8, 144, 150, 0.05));
    top: -20px;
    right: -20px;
    z-index: 0;
}

/* Compact Premium Gradient for Cases (V6) */
.cases-modern .page-title {
    padding: 102px 0 8px;
    background: #02444d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

/* Atmospheric decor for the title block */
.cases-modern .page-title::before {
    display: none;
}

.cases-modern .page-title .container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.cases-modern .page-title h1 {
    font-size: 32px;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    /* Tight vertical flow */
}

.cases-modern .breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cases-modern .breadcrumbs li {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5) !important;
}

.cases-modern .breadcrumbs li a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.cases-modern .breadcrumbs li a:hover {
    color: var(--accent-color) !important;
}

.cases-modern .breadcrumbs li.current {
    color: #ffffff !important;
    font-weight: 600;
}

/* Modern Separator Overrides */
.cases-modern .breadcrumbs ol li+li::before {
    content: "\F138" !important;
    /* bi-chevron-right */
    font-family: "bootstrap-icons" !important;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3) !important;
    padding: 0 10px 0 0 !important;
    display: inline-block;
}

@media (max-width: 768px) {
    .cases-modern .page-title .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}