/* Success Cases Page Styles - Premium Light Theme */

:root {
    --bg-light: #ffffff;
    --bg-subtle: #f9f9f9;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --accent: #8c7b6c;
    /* Bronze/Gold accent */
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.sub-page {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* 1. Page Hero (Standard Subpage Style) */
.page-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #16181b;
    /* Keep dark for consistency with other subpages */
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/DSC00681.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    animation: fadeInUp 1s ease forwards;
}

.page-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
    text-transform: uppercase;
}

/* 2. Filter Section (Light Theme) */
.filter-section {
    padding: 60px 0 24px;
    background-color: var(--bg-light);
}

.intro-text-box {
    text-align: center;
    margin-bottom: 60px;
}

.intro-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(140, 123, 108, 0.2);
}

/* 3. Cases Grid Section (Light Theme) */
.cases-list-section {
    padding: 30px 0 80px;
    background-color: var(--bg-light);
    min-height: 500px;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    /* row-gap: 24px, col-gap: 40px */
    margin-bottom: 60px;
}

/* Case Card Styling (Shrinked & Optimized) */
.case-card {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 20px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    width: 100%;
    /* max-width removed to ensure fill */
    height: 100%;
    /* Force fill grid cell */
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.case-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    background-color: rgba(140, 123, 108, 0.05);
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.case-card .case-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.4rem;
    /* Changed to 1.4rem per strict request */
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
    word-break: keep-all;
    font-weight: 600;
}

.case-summary {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Further reduced to 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-result-box {
    width: 100%;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push to bottom for uniform look */
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

.case-date {
    font-size: 0.8rem;
    color: #999;
}

/* Load More Button (Light Tone) */
.load-more-container {
    text-align: center;
}

.btn-load-more {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 14px 45px;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.btn-load-more:hover {
    background: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
}

/* 4. Blog Promo Section (Light & Brand Match) */
.blog-promo-section {
    padding: 100px 0;
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.blog-promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background-image: url('../assets/images/hyunmoon_logo_w.png');
    /* Very subtle watermark */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
    opacity: 0.02;
    z-index: 0;
}

.blog-promo-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-label {
    display: block;
    color: var(--accent);
    /* Brand gold instead of green */
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.blog-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    /* Slightly larger for impact on light bg */
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 600;
}

.blog-desc {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 45px;
    font-size: 1rem;
}

.btn-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--text-dark);
    /* Sophisticated black/dark gray */
    color: #fff;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-blog-link:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(140, 123, 108, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (min-width: 768px) {
    .page-hero {
        height: 360px;
    }

    .page-title {
        font-size: 2.6rem;
    }

    .filter-section {
        padding: 80px 0 32px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }

    .blog-title {
        font-size: 2.1rem;
    }

    .blog-desc {
        font-size: 1.05rem;
    }
}

@media screen and (min-width: 1024px) {
    .page-hero {
        height: 400px;
    }

    .page-title {
        font-size: 3rem;
    }

    .filter-section {
        padding: 100px 0 40px;
    }

    .cases-list-section {
        padding: 40px 0 120px;
    }

    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 40px;
    }

    .blog-title {
        font-size: 2.4rem;
    }

    .blog-desc {
        font-size: 1.15rem;
    }
}