:root {
    --primary-color: #0B2545;
    --accent-color: #1ECAD3;
    --gradient-blue: #2F80ED;
    --bg-main: #FFFFFF;
    --bg-section: #F8FDFF;
    --bg-soft: #EFF8FB;
    --text-primary: #0B2545;
    --text-secondary: #4F6D7A;
    --border-color: #D6EEF1;
    --shadow-soft: 0 14px 38px rgba(11, 37, 69, 0.08);
    --shadow-hover: 0 20px 45px rgba(30, 202, 211, 0.18);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-section);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.btn-primary-custom,
.btn-outline-custom {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    line-height: 1;
    min-height: 48px;
    padding: 14px 24px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-color), #2AE1EA);
    border: 1px solid var(--accent-color);
    box-shadow: 0 10px 25px rgba(30, 202, 211, 0.25);
    color: var(--primary-color);
}

.btn-primary-custom:hover {
    box-shadow: var(--shadow-hover);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}

.btn-outline-custom:hover {
    background: #FFFFFF;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.case-hero {
    background-image:
        linear-gradient(90deg, rgba(11, 37, 69, 0.95), rgba(11, 37, 69, 0.78), rgba(11, 37, 69, 0.46)),
        url('https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80');
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
    min-height: 430px;
    padding: 96px 0 56px;
    position: relative;
}

.case-hero .container {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-kicker {
    color: var(--accent-color);
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.case-hero h1 {
    color: #FFFFFF;
    font-size: 4rem;
    line-height: 1.08;
    margin-bottom: 18px;
    max-width: 760px;
}

.case-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.16rem;
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 780px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stat-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 44px;
    max-width: 760px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 18px;
}

.hero-stat strong {
    color: var(--accent-color);
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.case-listing-section,
.detail-content-section {
    padding: 72px 0;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    color: var(--primary-color);
    font-size: 2.35rem;
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin: 0;
    max-width: 720px;
}

.case-filter-panel {
    background: var(--bg-main);
    border: 1px solid rgba(30, 202, 211, 0.2);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 34px;
    padding: 24px;
}

.case-search {
    position: relative;
}

.case-search i {
    color: var(--accent-color);
    left: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.case-search input {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font: inherit;
    min-height: 52px;
    padding: 0 18px 0 48px;
    transition: all 0.2s ease;
    width: 100%;
}

.case-search input:focus {
    background: #FFFFFF;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(30, 202, 211, 0.12);
    outline: none;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    min-height: 42px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
}

.case-results-bar {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    font-size: 0.95rem;
    justify-content: space-between;
    margin-bottom: 18px;
}

.case-results-bar strong {
    color: var(--primary-color);
}

.case-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
    background: #FFFFFF;
    border: 1px solid rgba(30, 202, 211, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: all 0.25s ease;
}

.case-card:hover,
.case-card:focus-within {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.case-card:focus {
    outline: 3px solid rgba(30, 202, 211, 0.35);
    outline-offset: 3px;
}

.case-card-media {
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
}

.case-card-media img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    width: 100%;
}

.case-card:hover .case-card-media img {
    transform: scale(1.05);
}

.case-category-badge {
    background: rgba(11, 37, 69, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    left: 16px;
    padding: 7px 10px;
    position: absolute;
    text-transform: uppercase;
    top: 16px;
}

.case-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.case-card h3 {
    color: var(--primary-color);
    font-size: 1.28rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.case-description {
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.7;
    margin-bottom: 18px;
}

.case-meta {
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 16px;
}

.case-meta span,
.result-highlight {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.case-meta i,
.result-highlight i {
    color: var(--accent-color);
    margin-top: 4px;
    width: 16px;
}

.result-highlight {
    background: rgba(30, 202, 211, 0.1);
    border: 1px solid rgba(30, 202, 211, 0.18);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 18px;
    padding: 12px;
}

.case-card .btn-primary-custom {
    margin-top: auto;
    width: 100%;
}

.case-empty-state {
    background: #FFFFFF;
    border: 1px solid rgba(30, 202, 211, 0.2);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    color: var(--text-secondary);
    display: none;
    padding: 56px 20px;
    text-align: center;
}

.case-empty-state i {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.case-empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.insight-band {
    background: #FFFFFF;
    border-top: 1px solid rgba(30, 202, 211, 0.18);
    padding: 64px 0;
}

.insight-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-item {
    border-left: 4px solid var(--accent-color);
    padding: 4px 0 4px 22px;
}

.insight-item h3 {
    color: var(--primary-color);
    font-size: 1.12rem;
    margin-bottom: 8px;
}

.insight-item p {
    color: var(--text-secondary);
    margin: 0;
}

.case-cta {
    background:
        linear-gradient(90deg, rgba(11, 37, 69, 0.96), rgba(11, 37, 69, 0.85)),
        url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80');
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
    padding: 78px 0;
    text-align: center;
}

.case-cta h2 {
    color: #FFFFFF;
    font-size: 2.45rem;
    margin-bottom: 14px;
}

.case-cta p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    margin: 0 auto 28px;
    max-width: 720px;
}

.detail-hero {
    background: var(--primary-color);
    color: #FFFFFF;
    min-height: 460px;
    overflow: hidden;
    position: relative;
}

.detail-hero-bg {
    background-position: center;
    background-size: cover;
    inset: 0;
    opacity: 0.38;
    position: absolute;
}

.detail-hero::after {
    background: linear-gradient(90deg, rgba(11, 37, 69, 0.98), rgba(11, 37, 69, 0.72), rgba(11, 37, 69, 0.5));
    content: '';
    inset: 0;
    position: absolute;
}

.detail-hero .container {
    align-items: flex-end;
    display: flex;
    min-height: 460px;
    padding-bottom: 58px;
    padding-top: 90px;
    position: relative;
    z-index: 1;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    gap: 8px;
    margin-bottom: 20px;
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--accent-color);
}

.detail-hero h1 {
    color: #FFFFFF;
    font-size: 3.2rem;
    line-height: 1.14;
    margin-bottom: 18px;
    max-width: 900px;
}

.detail-summary {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 840px;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-meta-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #FFFFFF;
    display: inline-flex;
    gap: 9px;
    padding: 10px 12px;
}

.detail-meta-pill i {
    color: var(--accent-color);
}

.detail-layout {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.detail-featured-media {
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
    border: 1px solid rgba(30, 202, 211, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin: 0;
    overflow: hidden;
}

.detail-featured-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.detail-panel,
.facts-panel {
    background: #FFFFFF;
    border: 1px solid rgba(30, 202, 211, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.detail-panel h2,
.facts-panel h2 {
    color: var(--primary-color);
    font-size: 1.45rem;
    margin-bottom: 16px;
}

.detail-panel p,
.detail-panel li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-panel ul {
    margin: 0;
    padding-left: 20px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-list span {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 9px 12px;
}

.metrics-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-item {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.metric-item strong {
    color: var(--accent-color);
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-item span {
    color: var(--primary-color);
    font-weight: 700;
}

.facts-panel {
    position: sticky;
    top: 100px;
}

.fact-list {
    display: grid;
    gap: 16px;
}

.fact-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.fact-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.fact-item span {
    color: var(--text-secondary);
    display: block;
    font-size: 0.86rem;
    margin-bottom: 4px;
}

.fact-item strong {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.not-found-section {
    padding: 100px 0;
    text-align: center;
}

.not-found-box {
    background: #FFFFFF;
    border: 1px solid rgba(30, 202, 211, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
    max-width: 720px;
    padding: 48px 28px;
}

.not-found-box i {
    color: var(--accent-color);
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.not-found-box p {
    color: var(--text-secondary);
}

@media (max-width: 1199px) {
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-hero h1,
    .detail-hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 991px) {
    .case-hero {
        padding: 80px 0 48px;
    }

    .hero-stat-row,
    .insight-grid,
    .detail-layout,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .facts-panel {
        position: static;
    }
}

@media (max-width: 767px) {
    .case-hero {
        min-height: auto;
        padding: 66px 0 42px;
    }

    .case-hero h1,
    .detail-hero h1 {
        font-size: 2.4rem;
    }

    .case-hero p,
    .detail-summary {
        font-size: 1rem;
    }

    .hero-stat-row,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-listing-section,
    .detail-content-section {
        padding: 52px 0;
    }

    .section-heading h2,
    .case-cta h2 {
        font-size: 2rem;
    }

    .case-filter-panel,
    .case-card-body,
    .detail-panel,
    .facts-panel {
        padding: 20px;
    }

    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .case-results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .detail-hero,
    .detail-hero .container {
        min-height: 420px;
    }
}

@media (max-width: 575px) {
    .case-hero h1,
    .detail-hero h1 {
        font-size: 2.05rem;
    }

    .hero-actions,
    .case-cta .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
    }
}
