/**
 * 파일명: post-promo-g.css
 * 파일경로: /home/thejoagi/corebizflow.com/wp-content/plugins/custom-post/assets/css/
 * 기능: post-promo-g.php 전용 스타일 (prmg- 접두사, 앰버 골드 팔레트)
 * 작성일: 2026-03-28
 * 수정일: 2026-03-28
 */

/* ─── 팔레트 변수 ─────────────────────────────────────────── */
.prmg-post {
    --prmg-amber:       #d97706;
    --prmg-amber-dark:  #b45309;
    --prmg-amber-light: #fef3c7;
    --prmg-amber-pale:  #fffbeb;
    --prmg-text:        #1a1a1a;
    --prmg-text-light:  #4b5563;
    --prmg-border:      #fde68a;
    --prmg-white:       #ffffff;
}

/* ─── 기본 리셋 ───────────────────────────────────────────── */
.prmg-post * { box-sizing: border-box; }
.prmg-post img { max-width: 100%; height: auto; }
.prmg-post a { text-decoration: none; }

/* ─── 래퍼 ───────────────────────────────────────────────── */
.prmg-post {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    color: var(--prmg-text);
    line-height: 1.75;
}

/* ─── 도입부 ──────────────────────────────────────────────── */
.prmg-section-intro {
    background: var(--prmg-amber-pale);
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 24px;
}
.prmg-intro-tag {
    display: inline-block;
    background: var(--prmg-amber);
    color: var(--prmg-white) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.prmg-intro-text {
    font-size: 15px;
    color: var(--prmg-text-light);
    margin: 0;
}

/* ─── 요약 박스 ───────────────────────────────────────────── */
.prmg-summary {
    background: var(--prmg-white);
    border: 2px solid var(--prmg-amber);
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.prmg-summary-label {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--prmg-amber-dark);
    border: 2px solid var(--prmg-amber);
    border-radius: 4px;
    padding: 3px 8px;
    margin-top: 2px;
}
.prmg-summary p {
    margin: 0;
    font-size: 15px;
    color: var(--prmg-text);
    font-weight: 500;
    line-height: 1.65;
}

/* ─── 콘텐츠 섹션 ─────────────────────────────────────────── */
.prmg-section-content {
    padding: 28px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--prmg-border);
}
.prmg-section-content.prmg-section-alt {
    background: var(--prmg-amber-pale);
    border-radius: 10px;
    padding: 24px 28px;
    border-bottom: none;
    margin-bottom: 20px;
}
.prmg-section-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmg-amber-dark) !important;
    border-bottom: none !important;
    background: none !important;
    box-shadow: none !important;
    margin: 0 0 12px;
    padding-bottom: 0;
}
.prmg-section-content p {
    font-size: 15px;
    color: var(--prmg-text-light);
    margin: 0 0 10px;
}
.prmg-section-content p:last-child { margin-bottom: 0; }

/* ─── 제품 섹션 ───────────────────────────────────────────── */
.prmg-section-products {
    margin: 28px 0;
}
.prmg-section-products h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--prmg-amber-dark) !important;
    border-bottom: 2px solid var(--prmg-amber) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ─── 2열 보더 카드 그리드 ────────────────────────────────── */
.prmg-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.prmg-product-card {
    background: var(--prmg-white);
    border-radius: 10px;
    border-left: 4px solid var(--prmg-amber);
    border-top: 1px solid var(--prmg-border);
    border-right: 1px solid var(--prmg-border);
    border-bottom: 1px solid var(--prmg-border);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}
.prmg-product-img {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--prmg-amber-pale);
}
.prmg-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prmg-product-no-img { background: var(--prmg-amber-light); }
.prmg-product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.prmg-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--prmg-text);
    margin: 0;
    line-height: 1.4;
    text-align: left !important;
}
.prmg-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--prmg-amber-dark);
    margin: 0;
    text-align: left !important;
}
.prmg-product-btn {
    display: inline-block !important;
    background: var(--prmg-amber) !important;
    color: var(--prmg-white) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 7px 16px !important;
    border-radius: 5px !important;
    border: none !important;
    cursor: pointer;
    text-align: center !important;
    align-self: flex-start;
    white-space: nowrap;
}
.prmg-product-btn:hover {
    background: var(--prmg-amber-dark) !important;
    color: var(--prmg-white) !important;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.prmg-section-faq { margin-bottom: 24px; }
.prmg-section-faq h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmg-amber-dark) !important;
    border-bottom: 2px solid var(--prmg-amber) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.prmg-faq-item {
    border: 1px solid var(--prmg-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.prmg-faq-item summary {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--prmg-text);
    cursor: pointer;
    list-style: none;
    background: var(--prmg-white);
}
.prmg-faq-item summary::-webkit-details-marker { display: none; }
.prmg-faq-item[open] summary {
    background: var(--prmg-amber-pale);
    color: var(--prmg-amber-dark);
}
.prmg-faq-ans {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--prmg-text-light);
    background: var(--prmg-white);
    border-top: 1px solid var(--prmg-border);
}
.prmg-faq-ans p { margin: 0 0 8px; }
.prmg-faq-ans p:last-child { margin-bottom: 0; }

/* ─── 결론 ────────────────────────────────────────────────── */
.prmg-section-conclusion {
    background: var(--prmg-amber-dark);
    border-radius: 12px;
    padding: 32px 36px;
    margin-bottom: 20px;
}
.prmg-section-conclusion h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--prmg-amber-light) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 10px;
    margin: 0 0 16px;
}
.prmg-section-conclusion p {
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    margin: 0 0 16px;
}
.prmg-conclusion-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.prmg-conclusion-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 14px;
    line-height: 1.55;
}
.prmg-conclusion-list li::before {
    content: '✓';
    flex-shrink: 0;
    color: var(--prmg-amber-light);
    font-weight: 700;
    margin-top: 1px;
}

/* ─── 모바일 반응형 ───────────────────────────────────────── */
@media (max-width: 768px) {
    .prmg-product-grid { grid-template-columns: 1fr; }
    .prmg-section-content { padding: 20px 0; }
    .prmg-section-content.prmg-section-alt { padding: 20px 18px; }
    .prmg-section-conclusion { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .prmg-section-intro { padding: 16px 14px; }
    .prmg-summary { padding: 14px 12px; }
    .prmg-product-card { padding: 12px 12px; gap: 10px; }
    .prmg-product-img { width: 72px; height: 72px; }
    .prmg-section-conclusion { padding: 20px 12px; }
    .prmg-faq-item summary { padding: 12px 14px; font-size: 14px; }
    .prmg-faq-ans { padding: 12px 14px; }
}
