/* 제휴카드 서브페이지 — 현대적이고 세련된 스타일 */

.pcard-page {
    --pcard-bg: #fff;
    --pcard-surface: #fff;
    --pcard-border: #f1f5f9;
    --pcard-border-strong: #1e293b;
    --pcard-text: #1e293b;
    --pcard-muted: #64748b;
    --pcard-accent: #ef4444;
    --pcard-radius: 20px;
    max-width: 1440px;
    margin: 40px auto;
    padding: 0 15px 80px;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    box-sizing: border-box;
}

.pcard-page *,
.pcard-page *::before,
.pcard-page *::after {
    box-sizing: border-box;
}

.pcard-title {
    margin: 0 0 40px;
    font-size: 32px;
    font-weight: 800;
    color: var(--pcard-text);
    text-align: left;
    letter-spacing: -0.03em;
    border-bottom: 2px solid #111;
    padding-bottom: 20px;
}

.pcard-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pcard-item {
    margin-bottom: 16px;
    border: 1px solid var(--pcard-border);
    border-radius: var(--pcard-radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.pcard-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.pcard-item.is-open {
    background: #fff;
    border-color: #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
}

.pcard-head {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 24px;
    padding: 24px 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background 0.2s ease;
}

.pcard-logo {
    flex: 0 0 120px;
    width: 120px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.pcard-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pcard-name {
    flex: 0 0 140px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.pcard-benefit {
    flex: 1;
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.pcard-benefit-highlight {
    color: var(--pcard-accent);
    font-weight: 800;
    font-size: 1.1em;
}

.pcard-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #94a3b8;
    font-size: 22px;
    transition: all 0.3s;
}

.pcard-item.is-open .pcard-toggle {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
}

.pcard-body {
    display: none;
    padding: 0 30px 30px;
}

.pcard-card-block {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 30px;
    background: #fcfcfc;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    margin-top: 10px;
}

.pcard-card-visual {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1.58 / 1;
    background: #fff;
}

.pcard-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pcard-card-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.03em;
}

.pcard-card-sub {
    margin: 0 0 25px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

.pcard-detail-table {
    width: 100%;
    border-top: 1px solid #eee;
}

.pcard-detail-table th,
.pcard-detail-table td {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: top;
}

.pcard-detail-table th {
    width: 100px;
    color: #94a3b8;
    font-weight: 700;
    text-align: left;
}

.pcard-detail-table td {
    color: #334155;
    font-weight: 500;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .pcard-head {
        gap: 15px;
        padding: 20px;
    }

    .pcard-logo {
        flex: 0 0 100px;
        height: 40px;
    }

    .pcard-name {
        font-size: 16px;
        flex: 0 0 120px;
    }

    .pcard-benefit {
        font-size: 14px;
    }

    .pcard-card-block {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .pcard-card-visual {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pcard-page {
        margin-top: 0;
        padding: 0;
    }

    .pcard-title {
        font-size: 22px;
    }

    .pcard-head {
        flex-wrap: wrap;
    }

    .pcard-logo {
        order: 1;
    }

    .pcard-toggle {
        order: 2;
        margin-left: auto;
    }

    .pcard-name {
        order: 3;
        flex: 1 1 100%;
        font-size: 18px;
        margin-top: 10px;
    }

    .pcard-benefit {
        order: 4;
        flex: 1 1 100%;
        font-size: 15px;
    }

    .pcard-body {
        padding: 0 15px 20px;
    }
}