/* ========== SUB PAGE PORTFOLIO ========== */
.sub-portfolio {
    padding: 80px 0;
    background: var(--white);
}

.sub-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.sub-portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sub-portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sub-portfolio-card:hover img {
    transform: scale(1.06);
}

.sub-portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 48px 20px 18px;
    background: linear-gradient(to top, rgba(15, 26, 19, 0.85) 0%, transparent 100%);
    color: var(--white);
}

.sub-portfolio-info .tag {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sub-portfolio-info h4 {
    font-size: 16px;
    font-weight: 700;
}

.sub-portfolio-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .sub-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .sub-portfolio-card {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .sub-portfolio-grid {
        grid-template-columns: 1fr;
    }
    .sub-portfolio-card {
        height: 240px;
    }
}

/* ========== SUB PAGE HERO (슬라이더 대신 정적 히어로) ========== */
.sub-hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    max-height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
}

.sub-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(15, 26, 19, 0.5) 0%,
        rgba(15, 26, 19, 0.65) 50%,
        rgba(15, 26, 19, 0.85) 100%
    );
}

.sub-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 800px;
    animation: subHeroFadeUp 1s ease-out;
}

@keyframes subHeroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.sub-hero-badge {
    display: inline-block;
    background: rgba(200, 164, 94, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sub-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.sub-hero-desc {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 28px;
}

.sub-hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: var(--gray-50);
}

.content-section:nth-child(odd) {
    background: var(--white);
}

.content-block {
    max-width: 860px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.content-block h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    margin-top: 32px;
}

.content-block p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 16px;
}

.content-block ul, .content-block ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-block li {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 8px;
}

.content-block li::marker {
    color: var(--primary);
}

/* ========== INFO CARDS (가격, 특징 등) ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.info-card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.info-card .price {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    margin: 12px 0 4px;
}

.info-card .price-note {
    font-size: 13px;
    color: var(--gray-400);
}

/* ========== COMPARISON TABLE ========== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.compare-table thead {
    background: var(--primary);
    color: var(--white);
}

.compare-table th {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.compare-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.compare-table tbody tr:hover {
    background: var(--gray-50);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== FEATURE LIST (체크마크) ========== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--gray-800);
    line-height: 1.7;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* ========== STEP LIST (번호형) ========== */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 56px;
    margin-bottom: 28px;
    min-height: 44px;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(26, 86, 50, 0.3);
}

.step-list li strong {
    display: block;
    font-size: 17px;
    color: var(--dark);
    margin-bottom: 4px;
}

.step-list li span {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== HIGHLIGHT BOX ========== */
.highlight-box {
    background: linear-gradient(135deg, rgba(26, 86, 50, 0.05), rgba(200, 164, 94, 0.08));
    border-left: 4px solid var(--primary);
    padding: 24px 28px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
}

.highlight-box h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.highlight-box p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 12px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb-list a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list .separator {
    color: var(--gray-400);
}

.breadcrumb-list .current {
    color: var(--primary);
    font-weight: 600;
}

/* ========== INTERNAL LINKS (관련 페이지) ========== */
.related-pages {
    padding: 60px 0;
    background: var(--white);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.related-card {
    display: block;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 28px 24px;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.related-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.related-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.related-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.related-card .arrow {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ========== SUB PAGE RESPONSIVE ========== */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sub-hero {
        height: 45vh;
        min-height: 320px;
    }

    .sub-hero h1 {
        font-size: clamp(26px, 7vw, 38px);
    }

    .content-section {
        padding: 60px 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .compare-table {
        font-size: 13px;
    }

    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .sub-hero {
        height: 40vh;
        min-height: 280px;
    }

    .content-block h2 {
        font-size: 22px;
    }

    .content-block h3 {
        font-size: 18px;
    }
}
