/* =================================================================
   KSAP BODY CONTENT INTEGRATED CSS (FINAL CONFLICT-FREE VERSION)
   ================================================================= */

/* ------------------------------------------------
   1. GLOBAL RESET & UTILITIES
   ------------------------------------------------ */
#ksap-body-content {
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--ksap-slate-700);
}


/* =========================================
   KSAP 추천 세트 상품
   ========================================= */

#sets,
#sets * {
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: normal;
}

.ksap-set-showcase {
    position: relative;
    overflow: hidden;
    padding: 62px 0 66px;
    border-top: 1px solid #e7eef7;
    border-bottom: 1px solid #e7eef7;
    color: #17324d;
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.ksap-set-container {
    position: relative;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.ksap-set-header {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.ksap-set-eyebrow {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    margin-bottom: 12px;
    padding: 5px 12px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

#sets .ksap-set-header h2 {
    margin: 0 0 12px !important;
    color: #102f4a !important;
    font-family: inherit !important;
    font-size: clamp(1.85rem, 3.2vw, 2.35rem) !important;
    font-weight: 850 !important;
    letter-spacing: -0.035em;
    line-height: 1.2 !important;
}

#sets .ksap-set-header p {
    max-width: 680px;
    margin: 0 auto !important;
    color: #526478;
    font-size: 15px;
    line-height: 1.7;
}

.ksap-set-benefits {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 24px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    list-style: none;
}

.ksap-set-benefits li {
    position: relative;
    padding: 1px 16px 1px 34px;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.ksap-set-benefits li::before {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 15px;
    height: 15px;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    color: #2563eb;
    content: "✓";
    font-size: 10px;
    font-weight: 900;
    line-height: 13px;
    text-align: center;
    transform: translateY(-50%);
}

.ksap-set-benefits li + li {
    border-left: 1px solid #e2e8f0;
}

.ksap-set-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 20px;
    align-items: stretch;
}

.ksap-set-example {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.055);
}

.ksap-set-example-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #dbeafe;
}

.ksap-set-example-image::after {
    position: absolute;
    inset: 64% 0 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.4));
    content: "";
    pointer-events: none;
}

.ksap-set-example-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ksap-set-example-badge,
.ksap-set-example-category {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
}

.ksap-set-example-badge {
    top: 12px;
    left: 12px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: #1e40af;
    background: rgba(239, 246, 255, 0.95);
    backdrop-filter: blur(8px);
}

.ksap-set-example-category {
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.ksap-set-example-progress {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.ksap-set-example-progress strong {
    font-size: 12px;
    font-weight: 900;
}

.ksap-set-example-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.ksap-set-nav-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    appearance: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    color: #17324d;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    pointer-events: auto;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.ksap-set-nav-button span {
    margin-top: -2px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

.ksap-set-nav-button:hover,
.ksap-set-nav-button:focus-visible {
    color: #ffffff;
    background: #2563eb;
    outline: 0;
    transform: scale(1.06);
}

.ksap-set-nav-button:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.72);
    outline-offset: 2px;
}

.ksap-set-autoplay-progress {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.42);
}

.ksap-set-autoplay-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #3b82f6;
    transform: scaleX(0);
    transform-origin: left center;
}

.ksap-set-autoplay-progress span.is-running {
    animation: ksap-set-autoplay-progress 6500ms linear forwards;
}

.ksap-set-overview.is-autoplay-paused .ksap-set-autoplay-progress span {
    animation-play-state: paused;
}

@keyframes ksap-set-autoplay-progress {
    to {
        transform: scaleX(1);
    }
}

.ksap-set-example figcaption {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.ksap-set-example-kicker {
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.4;
}

#sets .ksap-set-example h3 {
    margin: 0 0 8px !important;
    color: #17324d !important;
    font-family: inherit !important;
    font-size: 21px !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em;
    line-height: 1.35 !important;
}

#sets .ksap-set-example figcaption > p {
    margin: 0 0 16px !important;
    color: #526478;
    font-size: 13px;
    line-height: 1.65;
}

.ksap-set-example.is-updating .ksap-set-example-image img,
.ksap-set-example.is-updating figcaption {
    animation: ksap-set-reveal 280ms ease both;
}

@keyframes ksap-set-reveal {
    from {
        opacity: 0.55;
        transform: translateY(5px);
    }

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

.ksap-set-example-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 12px;
    row-gap: 5px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.ksap-set-original-price {
    grid-column: 1;
    grid-row: 1;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
    text-decoration: line-through;
}

.ksap-set-example-price strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #0f2942;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.25;
    white-space: nowrap;
}

.ksap-set-example-price small {
    margin-right: 3px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
}

.ksap-set-saving {
    display: inline-flex;
    grid-column: 1;
    grid-row: 2;
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #c2410c;
    background: #fff7ed;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: nowrap;
}

.ksap-set-summary {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: 20px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.055);
}

.ksap-set-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.ksap-set-summary-header > div > span {
    display: block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.4;
}

#sets .ksap-set-summary h3 {
    margin: 0 !important;
    color: #17324d !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em;
    line-height: 1.35 !important;
}

.ksap-set-summary-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.ksap-set-summary-count strong {
    color: #2563eb;
    font-weight: 900;
}

.ksap-set-list {
    flex: 1;
    min-height: 0;
    max-height: 394px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 1px solid #e8eef5;
    border-bottom: 1px solid #e8eef5;
    scroll-behavior: smooth;
    scrollbar-color: #bfdbfe transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    list-style: none;
    overscroll-behavior: contain;
}

.ksap-set-list li {
    min-width: 0;
    border-bottom: 1px solid #e8eef5;
}

.ksap-set-list li:last-child {
    border-bottom: 0;
}

.ksap-set-queue-button {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px 8px;
    border: 0;
    border-radius: 10px;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.ksap-set-queue-button:hover {
    background: #f8fbff;
}

.ksap-set-queue-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: -3px;
}

.ksap-set-list li.is-active .ksap-set-queue-button {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

.ksap-set-list li.is-active .ksap-set-list-number {
    color: #ffffff;
    background: #2563eb;
}

.ksap-set-list-loading {
    padding: 24px 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.ksap-set-list-number {
    display: inline-flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 10px;
    font-weight: 900;
}

.ksap-set-list-name {
    min-width: 0;
}

.ksap-set-list-name strong,
.ksap-set-list-name small {
    display: block;
}

.ksap-set-list-name strong {
    color: #243b53;
    font-size: 13px;
    font-weight: 820;
    line-height: 1.4;
}

.ksap-set-list-name small {
    margin-top: 2px;
    color: #718096;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.ksap-set-list-price {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
    white-space: nowrap;
}

.ksap-set-list-price strong {
    color: #17324d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.ksap-set-list-price small {
    padding: 2px 6px;
    border-radius: 999px;
    color: #c2410c;
    background: #fff7ed;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.35;
}

.ksap-set-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.ksap-set-detail-button {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding: 11px 14px;
    border-radius: 12px;
    color: #ffffff !important;
    background: #17324d;
    box-shadow: 0 8px 18px rgba(23, 50, 77, 0.14);
    text-decoration: none !important;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ksap-set-detail-button > span:first-child {
    min-width: 0;
}

.ksap-set-detail-button strong,
.ksap-set-detail-button small {
    display: block;
}

.ksap-set-detail-button strong {
    font-size: 13px;
    font-weight: 850;
    line-height: 1.4;
}

.ksap-set-detail-button small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.ksap-set-detail-button > span:last-child {
    display: inline-flex;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #17324d;
    background: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.ksap-set-detail-button:hover,
.ksap-set-detail-button:focus-visible {
    color: #ffffff !important;
    background: #2563eb;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
    outline: 0;
    transform: translateY(-2px);
}

.ksap-set-detail-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .ksap-set-overview {
        grid-template-columns: 1fr;
    }

    .ksap-set-example,
    .ksap-set-summary {
        width: min(100%, 680px);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .ksap-set-showcase {
        padding: 50px 0 54px;
    }

    .ksap-set-container {
        width: min(100% - 24px, 560px);
    }

    .ksap-set-header {
        margin-bottom: 20px;
    }

    #sets .ksap-set-header h2 {
        font-size: 1.75rem !important;
        line-height: 1.26 !important;
    }

    #sets .ksap-set-header p {
        font-size: 15px;
    }

    .ksap-set-benefits {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        padding: 7px 14px;
    }

    .ksap-set-benefits li {
        padding: 9px 2px 9px 26px;
    }

    .ksap-set-benefits li::before {
        left: 2px;
    }

    .ksap-set-benefits li + li {
        border-top: 1px solid #e2e8f0;
        border-left: 0;
    }

    .ksap-set-example,
    .ksap-set-summary {
        border-radius: 16px;
    }

    .ksap-set-example figcaption,
    .ksap-set-summary {
        padding: 16px;
    }

    #sets .ksap-set-example h3,
    #sets .ksap-set-summary h3 {
        font-size: 18px !important;
    }

    .ksap-set-example-progress {
        top: 10px;
        right: 10px;
    }

    .ksap-set-example-nav {
        right: 10px;
        left: 10px;
    }

    .ksap-set-nav-button {
        width: 42px;
        height: 42px;
    }

    .ksap-set-list {
        display: flex;
        max-height: none;
        gap: 10px;
        padding: 2px 2px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        border-bottom: 0;
        scroll-snap-type: x mandatory;
        scrollbar-gutter: auto;
    }

    .ksap-set-list li {
        flex: 0 0 min(286px, calc(100vw - 66px));
        border-bottom: 0;
        scroll-snap-align: start;
    }

    .ksap-set-queue-button {
        height: 100%;
        grid-template-columns: 29px minmax(0, 1fr);
        gap: 9px;
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #ffffff;
    }

    .ksap-set-list li.is-active .ksap-set-queue-button {
        border-color: #93c5fd;
        box-shadow: inset 3px 0 0 #2563eb, 0 8px 18px rgba(37, 99, 235, 0.08);
    }

    .ksap-set-list-price {
        grid-column: 2;
        align-items: flex-start;
        margin-top: -3px;
    }

    .ksap-set-detail-button {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ksap-set-detail-button,
    .ksap-set-nav-button,
    .ksap-set-queue-button {
        transition: none;
    }

    .ksap-set-list {
        scroll-behavior: auto;
    }

    .ksap-set-example.is-updating .ksap-set-example-image img,
    .ksap-set-example.is-updating figcaption {
        animation: none;
    }

    .ksap-set-autoplay-progress span {
        animation: none;
    }

    .ksap-set-detail-button:hover,
    .ksap-set-detail-button:focus-visible {
        transform: none;
    }
}

#ksap-body-content *,
#ksap-body-content *::before,
#ksap-body-content *::after {
    box-sizing: inherit;
}

/* Container */
.ksap-container {
    max-width: var(--ksap-container);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Utilities */
.ksap-flex {
    display: flex;
}

.ksap-items-center {
    align-items: center;
}

.ksap-grid {
    display: grid;
}

.md-hidden {
    display: none;
}

/* Icons */
.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 24px;
    height: 24px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* Media Queries */
@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-hidden {
        display: none;
    }

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

    .md-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md-col-span-2 {
        grid-column: span 2;
    }
}




/* =========================================
   KSAP HERO SECTION - FINAL FIXED CSS
   ========================================= */

/* 1. 아바다(Avada) 테마의 가로 너비 오류 강제 수정 */
#ksap-hero-section .fusion-row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

#ksap-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--ksap-slate-900) 0%, var(--ksap-blue) 50%, var(--ksap-slate-900) 100%) !important;
    color: white;
    width: 100%;
    overflow: hidden;
    /* 내부 요소가 밖으로 나가는 것 방지 */
    padding-top: 100px;
    padding-bottom: 5rem;
    z-index: 1;
}

@media (min-width: 960px) {
    #ksap-hero-section {
        padding-top: 150px;
        padding-bottom: 7rem;
    }
}

/* 2. 컨테이너 패딩 (모바일 여백 핵심) */
#ksap-hero-section .ksap-hero-container {
    max-width: var(--ksap-container);
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    box-sizing: border-box !important;

    /* [모바일] 글자가 화면 끝에 붙지 않도록 좌우 여백 24px 부여 */
    padding-left: 24px !important;
    padding-right: 24px !important;
}

@media (min-width: 768px) {
    #ksap-hero-section .ksap-hero-container {
        /* [PC] 기존 디자인대로 넓은 여백 유지 */
        padding-left: 8rem !important;
        padding-right: 8rem !important;
    }
}

/* 3. 배경 레이아웃 요소 */
#ksap-hero-section .ksap-hero-bg-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#ksap-hero-section .ksap-hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

#ksap-hero-section .ksap-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    color: #ffffff;
    opacity: 0.05;
}

/* 4. 내부 콘텐츠 타이포그래피 */
#ksap-hero-section .ksap-hero-inner {
    max-width: 800px;
    animation: ksapFadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes ksapFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* 뱃지 스타일 */
#ksap-hero-section .ksap-badge-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 58, 138, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

#ksap-hero-section .ksap-ping-container {
    position: relative;
    display: flex;
    height: 12px;
    width: 12px;
    margin-right: 12px;
}

#ksap-hero-section .ksap-ping-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #4ade80;
    opacity: 0.75;
    animation: ksapPing 1s infinite;
}

@keyframes ksapPing {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

#ksap-hero-section .ksap-ping-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
}

#ksap-hero-section .ksap-badge-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #dbeafe;
}

#ksap-hero-section .ksap-hero-orgs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    max-width: 100%;
    margin: -0.75rem 0 1.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.28);
    color: #dbeafe;
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: normal;
    box-sizing: border-box;
}

#ksap-hero-section .ksap-hero-orgs-label {
    flex: 0 0 auto;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(250, 204, 21, 0.16);
    color: #fde68a;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.4;
}

#ksap-hero-section .ksap-hero-orgs span:last-child {
    min-width: 0;
}

@media (max-width: 480px) {
    #ksap-hero-section .ksap-hero-orgs {
        display: flex;
        width: 100%;
        font-size: 0.84rem;
    }
}

/* 제목 및 설명 */
#ksap-hero-section .ksap-hero-title {
    font-size: 2.5rem !important;
    /* 모바일 크기 최적화 */
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    word-break: keep-all;
}

@media (min-width: 768px) {
    #ksap-hero-section .ksap-hero-title {
        font-size: 4rem !important;
    }
}

#ksap-hero-section .ksap-text-gradient {
    background: -webkit-linear-gradient(left, #fde047, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #facc15;
}

#ksap-hero-section .ksap-hero-desc {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* 5. 버튼 그룹 (모바일 세로, PC 가로) */
#ksap-hero-section .ksap-hero-btn-group {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    #ksap-hero-section .ksap-hero-btn-group {
        flex-direction: row;
        width: auto;
    }
}

#ksap-hero-section .ksap-hero-btn-primary {
    background: white;
    color: var(--ksap-blue);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
}

#ksap-hero-section .ksap-hero-btn-primary:hover {
    transform: translateY(-3px);
    background: var(--ksap-light-blue);
}

#ksap-hero-section .ksap-hero-btn-dashboard {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

#ksap-hero-section .ksap-hero-btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-3px);
}

#ksap-hero-section .ksap-hero-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

#ksap-hero-section .ksap-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 6. 하단 특징 그리드 */
#ksap-hero-section .ksap-hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    #ksap-hero-section .ksap-hero-features {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 3rem;
    }
}

#ksap-hero-section .ksap-feature-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #cbd5e1;
    word-break: keep-all;
}

#ksap-hero-section .icon-check {
    width: 18px;
    height: 18px;
    color: #facc15;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

/* 신규 회원 쿠폰 강조 배너 (발급안내 섹션) */
.ksap-event-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.6rem 1rem;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 0 2.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 55%, #f59e0b 100%);
    box-shadow: 0 12px 32px -8px rgba(217, 119, 6, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: normal;
    animation: ksapEventGlow 2.8s ease-in-out infinite;
}

@keyframes ksapEventGlow {
    0%, 100% { box-shadow: 0 12px 32px -8px rgba(217, 119, 6, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 16px 44px -6px rgba(217, 119, 6, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
}

.ksap-event-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: ksapEventShine 3.8s ease-in-out infinite;
}

@keyframes ksapEventShine {
    0% { left: -60%; }
    55%, 100% { left: 135%; }
}

.ksap-event-tag {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.72rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.92);
    color: #fde047;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.ksap-event-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 16rem;
    gap: 0.15rem;
    min-width: 0;
}

.ksap-event-title {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.ksap-event-free {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border-radius: 0.4rem;
    background: #1e293b;
    color: #fde047;
}

.ksap-event-sub {
    color: #78350f;
    font-size: 0.85rem;
    font-weight: 700;
}

.ksap-event-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.7rem;
    background: #1e293b;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ksap-event-action:hover,
.ksap-event-action:focus-visible {
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .ksap-event-action {
        margin-left: 0;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .ksap-event-title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ksap-event-banner,
    .ksap-event-shine { animation: none; }
}














/* =========================================
   KSAP Premium Process Section CSS
   ========================================= */

#process.ksap-process {
    padding: 80px 0;
    background-color: #f8fafc;
    overflow: hidden !important;
    position: relative;
}

/* Header */
#process .ksap-section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

#process .ksap-badge-pill {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

#process h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ksap-slate-900);
    margin: 0 0 1rem 0;
}

#process .ksap-subtitle {
    color: var(--ksap-slate-500);
    font-size: 1.125rem;
    line-height: 1.6;
    word-break: keep-all;
}


/* --- 1. Step Timeline --- */
.ksap-process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    margin-bottom: 6rem;
}

/* PC: Horizontal Layout */
@media (min-width: 768px) {
    .ksap-process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Connecting Line (PC Only) */
.ksap-timeline-line {
    display: none;
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, #3b82f6 50%, #e2e8f0 100%);
    z-index: 0;
}

@media (min-width: 768px) {
    .ksap-timeline-line {
        display: block;
    }
}

/* Step Item */
.ksap-timeline-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Step Icon Circle */
.ksap-step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--ksap-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
    margin-bottom: 1.5rem;
    color: #3b82f6;
    position: relative;
    transition: transform 0.3s ease;
}

.ksap-timeline-item:hover .ksap-step-icon {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--ksap-blue);
    background: var(--ksap-light-blue);
}

.ksap-step-num {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--ksap-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Step Content */
.ksap-step-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ksap-slate-900);
    margin: 0 0 0.5rem 0;
}

.ksap-step-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-break: keep-all;
}

.ksap-step-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.ksap-step-badge.final {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
}








/* --- Certificate Stack Style (5-Card Spread) --- */

/* 비주얼 영역 배경 */
.ksap-showcase-visual {
    background: var(--ksap-light-blue);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* 추상적 배경 원 */
.ksap-visual-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

/* 스택 컨테이너 (중앙 정렬) */
.ksap-cert-stack {
    position: relative;
    width: 280px;
    height: 400px;
    perspective: 1200px;
    /* 3D 원근감 */
    z-index: 10;
    /* 카드들이 좌우로 퍼지므로 마진 없이 중앙 정렬 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 카드 공통 스타일 */
.ksap-cert-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 10px;
    /* 부드러운 그림자 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* 투명도 없음 (선명하게) */
    opacity: 1 !important;
    border: 1px solid #e2e8f0;
}

/* 이미지 스타일 */
.ksap-real-cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- [좌우 배치 및 자동 애니메이션] --- */

/* 1. 왼쪽 끝 (Left 2) */
.ksap-cert-card.layer-l2 {
    z-index: 1;
    /* 기본 위치: 왼쪽으로 많이 이동, 회전, 축소 */
    animation: ksapFloatL2 6s ease-in-out infinite;
}

/* 2. 왼쪽 중간 (Left 1) */
.ksap-cert-card.layer-l1 {
    z-index: 2;
    animation: ksapFloatL1 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* 3. 오른쪽 끝 (Right 2) */
.ksap-cert-card.layer-r2 {
    z-index: 1;
    animation: ksapFloatR2 6s ease-in-out infinite;
}

/* 4. 오른쪽 중간 (Right 1) */
.ksap-cert-card.layer-r1 {
    z-index: 2;
    animation: ksapFloatR1 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* 5. 메인 카드 (Center) */
.ksap-cert-card.main-card {
    z-index: 10;
    /* 메인은 그림자 더 강하게 */
    box-shadow: 0 20px 50px -10px rgba(30, 58, 138, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: ksapFloatMain 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* --- [키프레임] 둥둥 떠다니는 효과 --- */
/* 각 카드의 translate/rotate 값을 유지하면서 Y축으로만 살짝 움직임 */

@keyframes ksapFloatL2 {

    0%,
    100% {
        transform: translate(-140px, 10px) rotate(-15deg) scale(0.85);
    }

    50% {
        transform: translate(-140px, 0px) rotate(-15deg) scale(0.85);
    }
}

@keyframes ksapFloatL1 {

    0%,
    100% {
        transform: translate(-75px, 5px) rotate(-8deg) scale(0.92);
    }

    50% {
        transform: translate(-75px, -5px) rotate(-8deg) scale(0.92);
    }
}

@keyframes ksapFloatMain {

    0%,
    100% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(0px, -10px) rotate(0deg) scale(1);
    }
}

@keyframes ksapFloatR1 {

    0%,
    100% {
        transform: translate(75px, 5px) rotate(8deg) scale(0.92);
    }

    50% {
        transform: translate(75px, -5px) rotate(8deg) scale(0.92);
    }
}

@keyframes ksapFloatR2 {

    0%,
    100% {
        transform: translate(140px, 10px) rotate(15deg) scale(0.85);
    }

    50% {
        transform: translate(140px, 0px) rotate(15deg) scale(0.85);
    }
}

/* 광택 효과 */
.ksap-cert-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: ksapShine 4s infinite linear;
    pointer-events: none;
    z-index: 20;
}

@keyframes ksapShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}



/* Right: Content Area */
.ksap-showcase-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ksap-showcase-title {
    font-size: 1.65rem;
    font-weight: 800 !important;
    color: #0f172a;
    margin: 0 0 0.9rem 0;
    line-height: 1.35;
    letter-spacing: 0;
    word-break: keep-all;
}

.ksap-showcase-title .highlight {
    color: #1e40af;
}

.ksap-showcase-desc {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    word-break: keep-all;
}


/* --- Process Section - Right Option Boxes --- */

.ksap-cert-type-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

/* 박스 공통 스타일 */
.ksap-option-box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    word-break: keep-all;
    overflow: hidden;
}

/* 시험형 박스 */
.ksap-option-box.active {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.11);
}

/* 실기형 박스 */
.ksap-option-box.inactive {
    border-color: #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.ksap-option-box.inactive:hover {
    border-color: #cbd5e1;
}

.ksap-option-head,
.ksap-option-main,
.ksap-option-chips {
    position: relative;
    z-index: 1;
}

.ksap-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ksap-option-tag,
.ksap-option-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.ksap-option-tag {
    background: #1d4ed8;
    color: #ffffff;
}

.ksap-option-tag.muted {
    background: #475569;
    color: #ffffff;
}

.ksap-option-status {
    background: rgba(37, 99, 235, 0.1);
    color: #1e40af;
}

.ksap-option-status.muted {
    background: #f1f5f9;
    color: #475569;
}

.ksap-option-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

/* 아이콘 원형 */
.ksap-option-icon {
    width: 46px;
    height: 46px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ksap-option-icon.active {
    background: #dbeafe;
    color: #2563eb;
}

.ksap-option-icon.inactive {
    background: #e2e8f0;
    color: #64748b;
}

/* 텍스트 정보 */
.ksap-option-info {
    flex: 1;
    min-width: 0;
}

.ksap-option-name {
    font-size: 1.02rem;
    font-weight: 700 !important;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.ksap-option-name.active {
    color: #0f172a;
}

.ksap-option-name.inactive {
    color: #0f172a;
}

.ksap-option-desc {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.ksap-option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ksap-option-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.ksap-option-chips.muted span {
    background: #f1f5f9;
    color: #475569;
}

/* Security Note */
.ksap-security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.84rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 0.95rem;
    border-radius: 0.8rem;
    line-height: 1.45;
    word-break: keep-all;
}

.ksap-security-note svg {
    margin-top: 0.1rem;
    color: #2563eb;
    flex-shrink: 0;
}

.ksap-security-note strong,
.ksap-security-note span {
    display: block;
}

.ksap-security-note strong {
    margin-bottom: 0.15rem;
    color: #0f172a;
    font-size: 0.9rem;
}

.ksap-security-note span {
    color: #475569;
}

.ksap-dashboard-cta {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: #0f172a;
    color: #ffffff;
}

.ksap-dashboard-cta-text {
    min-width: 0;
}

.ksap-dashboard-cta-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-size: 0.96rem;
    line-height: 1.3;
}

.ksap-dashboard-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    background: #2563eb;
    color: #ffffff !important;
    font-weight: 800;
    line-height: 1.2;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ksap-dashboard-cta-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.6rem;
}

.ksap-dashboard-cta-btn-secondary {
    background: #ffffff;
    color: #0f172a !important;
}

.ksap-dashboard-cta-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.ksap-dashboard-cta-btn-secondary:hover {
    background: #e0f2fe;
}

.ksap-dashboard-cta-text p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.86rem;
    line-height: 1.5;
    word-break: keep-all;
}

@media (max-width: 640px) {
    .ksap-showcase-visual {
        min-height: 360px;
        padding: 2.5rem 1rem;
    }

    .ksap-cert-stack {
        width: 210px;
        height: 300px;
    }

    .ksap-cert-card.layer-l2 {
        animation: none;
        transform: translate(-92px, 8px) rotate(-14deg) scale(0.78);
    }

    .ksap-cert-card.layer-l1 {
        animation: none;
        transform: translate(-48px, 2px) rotate(-8deg) scale(0.9);
    }

    .ksap-cert-card.main-card {
        animation: none;
        transform: translate(0, -4px) rotate(0deg) scale(1);
    }

    .ksap-cert-card.layer-r1 {
        animation: none;
        transform: translate(48px, 2px) rotate(8deg) scale(0.9);
    }

    .ksap-cert-card.layer-r2 {
        animation: none;
        transform: translate(92px, 8px) rotate(14deg) scale(0.78);
    }

    .ksap-showcase-content {
        padding: 2rem 1.25rem;
    }

    .ksap-option-box {
        padding: 0.95rem;
        border-radius: 0.8rem;
    }

    .ksap-option-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .ksap-option-tag,
    .ksap-option-status {
        min-height: 26px;
        padding: 0.32rem 0.6rem;
        font-size: 0.72rem;
    }

    .ksap-option-main {
        gap: 0.7rem;
    }

    .ksap-option-icon {
        width: 38px;
        height: 38px;
        border-radius: 0.7rem;
    }

    .ksap-option-icon .icon-md {
        width: 18px;
        height: 18px;
    }

    .ksap-option-name {
        margin-right: 0;
        font-size: 0.95rem;
    }

    .ksap-option-info {
        min-width: 0;
    }

    .ksap-option-desc {
        font-size: 0.86rem;
    }

    .ksap-option-chips {
        gap: 0.35rem;
    }

    .ksap-option-chips span {
        min-height: 26px;
        font-size: 0.74rem;
    }

    .ksap-dashboard-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .ksap-dashboard-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .ksap-dashboard-cta-btn {
        width: 100%;
    }
}























/* =========================================
   KSAP Reviews Section CSS (Final)
   ========================================= */

#ksap-reviews-section {
    position: relative;
    background-color: #f8fafc !important;
    padding: 6rem 0;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #334155;
}

/* 배경 데코레이션 */
.ksap-review-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.ksap-review-blur-circle {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 헤더 */
#ksap-reviews-section .ksap-section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

#ksap-reviews-section .ksap-badge-pill {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

#ksap-reviews-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

#ksap-reviews-section .ksap-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* 카운터 텍스트 강조 */
#ksap-reviews-section .ksap-counter-text {
    color: #2563eb;
    font-weight: 700;
}

/* 롤링 트랙 컨테이너 (넘침 방지) */
.ksap-marquee-wrapper {
    overflow: hidden !important;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.ksap-marquee-wrapper.is-dragging {
    cursor: grabbing;
}

.ksap-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
    animation: ksapScroll var(--ksap-marquee-duration, 30s) linear infinite;
}

.ksap-marquee-track.is-js-marquee {
    animation: none;
}

/* 리뷰 카드 */
.ksap-review-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 340px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.ksap-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ksap-stars {
    color: #fbbf24;
    letter-spacing: -2px;
    font-size: 1.1rem;
}

.ksap-usecase-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
}

.ksap-card-title {
    font-size: 1.08rem;
    font-weight: 900 !important;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
    letter-spacing: -0.2px;
    -webkit-font-smoothing: auto;
}

.ksap-card-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.ksap-user-row {
    display: flex;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}

.ksap-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 0.75rem;
}

.ksap-avatar.blue {
    background: #3b82f6;
}

.ksap-avatar.amber {
    background: #f59e0b;
}

.ksap-avatar.green {
    background: #10b981;
}

.ksap-avatar.purple {
    background: #8b5cf6;
}

.ksap-user-meta {
    display: flex;
    flex-direction: column;
}

.ksap-user-meta strong {
    font-size: 0.85rem;
    color: #0f172a;
}

.ksap-user-meta span {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 1px;
}

/* 통계 바 */
.ksap-review-stats-bar {
    max-width: 900px;
    margin: 3rem auto 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .ksap-review-stats-bar {
        flex-direction: row;
        justify-content: space-around;
        padding: 2rem;
    }
}

.ksap-stat-item {
    display: flex;
    align-items: center;
    text-align: left;
    margin: 0.5rem 0;
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .ksap-stat-item {
        width: auto;
    }
}

.ksap-stat-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.ksap-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ksap-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.ksap-lbl {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.ksap-stat-divider {
    display: none;
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

@media (min-width: 768px) {
    .ksap-stat-divider {
        display: block;
    }
}

/* 법적 고지 */
#ksap-reviews-section .ksap-disclaimer {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 400;
}

/* 기존 -50% 방식 제거하고, JS가 계산한 픽셀만큼 이동 */
@keyframes ksapScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1px * var(--ksap-marquee-shift, 0)));
    }
}















/* =========================================
   KSAP Price Banner CSS (Updated)
   ========================================= */

.pb-section {
    background-color: #0f172a !important;
    /* 다크 네이비 */
    padding: 5rem 0;
    border-top: 1px solid #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.pb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.pb-content-wrapper {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

@media (min-width: 768px) {
    .pb-content-wrapper {
        flex-direction: row;
        padding: 4rem;
        justify-content: space-between;
    }
}

/* Left Text */
.pb-text-content {
    flex: 1;
    width: 100%;
    margin-bottom: 3rem;
    z-index: 10;
}

@media (min-width: 768px) {
    .pb-text-content {
        margin-bottom: 0;
        margin-right: 2rem;
    }
}

.pb-badge {
    display: inline-flex;
    align-items: center;
    color: #facc15;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pb-badge svg {
    margin-right: 6px;
}

/* [요청 사항 반영] 제목 폰트 충돌 방지 */
.pb-title {
    font-size: 2rem;
    font-weight: 700 !important;
    /* 요청하신 굵기 */
    color: #ffffff !important;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .pb-title {
        font-size: 2.5rem;
    }

    .pb-mobile-br {
        display: none;
    }
}

.pb-description {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.pb-highlight {
    color: #ffffff;
    font-weight: 700;
    border-bottom: 1px solid #64748b;
}

.pb-desktop-br {
    display: none;
}

@media (min-width: 768px) {
    .pb-desktop-br {
        display: block;
    }
}

/* Right Card Stack (수정됨: 모바일 표시 강제 설정) */
.pb-card-stack-container {
    width: 100%;
    max-width: 400px;
    /* [중요] 높이가 무시되지 않도록 !important 추가 */
    height: 340px !important;
    position: relative;
    perspective: 1000px;
    /* [중요] 강제로 블록 요소로 표시 */
    display: block !important;
    margin: 0 auto;
    z-index: 5;
}

/* 자바스크립트가 타겟팅하는 내부 ID 스타일 보강 */
#pb-card-stack {
    width: 100%;
    height: 100%;
    display: block !important;
    position: relative;
}

/* 모바일 전용 여백 및 높이 조정 */
@media (max-width: 767px) {
    .pb-card-stack-container {
        height: 300px !important;
        /* 모바일은 약간 작게 */
        margin-top: 2rem !important;
        /* 텍스트와 간격 벌리기 */
    }
}

/* 카드 공통 스타일 (기존 유지) */
.ksap-price-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    z-index: 0;
}

/* ... 이후 active, next 등 클래스는 기존 코드 그대로 두시면 됩니다 ... */

/* 위치 상태 클래스 */
.ksap-price-card.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    z-index: 30;
}

.ksap-price-card.next {
    transform: translateY(20px) scale(0.95);
    opacity: 0.7;
    z-index: 20;
    filter: brightness(0.95);
}

.ksap-price-card.last {
    transform: translateY(40px) scale(0.9);
    opacity: 0.4;
    z-index: 10;
    filter: brightness(0.9);
}

.ksap-price-card.hidden {
    transform: translateY(60px) scale(0.85);
    opacity: 0;
    z-index: 0;
}


/* --- [요청 사항] 카드 내부 폰트 확대 및 강조 --- */

/* 1. 자격증 이름 (뱃지) */
.ksap-price-badge {
    font-size: 1.4rem !important;
    /* 아주 크게 */
    font-weight: 900 !important;
    /* 아주 굵게 */
    padding: 10px 20px !important;
    border-radius: 10px !important;
    letter-spacing: -0.5px;
    display: inline-block;
    margin-bottom: 1.2rem !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 2. 가격 숫자 */
.ksap-price-num {
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1;
    margin-bottom: 0.5rem !important;
    letter-spacing: -1px;
}

.ksap-price-unit {
    font-size: 1.5rem !important;
    color: #64748b !important;
    font-weight: 700 !important;
    margin-left: 4px;
}

/* 3. 정상가 */
.ksap-price-original {
    text-decoration: line-through;
    color: #94a3b8 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
}

/* 4. 하단 뱃지 */
.ksap-price-tag {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: 99px;
    display: inline-block;
}















/* ==========================================================================
   KCA License Course Section Styles (Final Updated)
   ========================================================================== */

/* --- 1. Variables & Base --- */
:root {
    --kca-navy: #1b3a57;
    --kca-blue: #2563eb;
    --kca-light-blue: var(--ksap-light-blue);
    --kca-gray-text: #475569;
    --kca-border: #e2e8f0;
}

.kca-section-wrapper {
    position: relative;
    padding: 60px 0;
    background-color: #f8fafc;
    /* [수정] Pretendard 제거 -> 전체 통일 폰트로 변경 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
    /* [추가] 모바일 텍스트 자동 확대 방지 */
    -webkit-text-size-adjust: 100%;
}

#courses,
#courses * {
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: normal;
}

#courses {
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

#courses button,
#courses input {
    font-family: inherit !important;
}

.kca-bg-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.kca-container {
    width: 92%; max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 2;
}

/* --- Header --- */
.kca-header { text-align: center; margin-bottom: 40px; }

.kca-badge-pill {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

#courses .kca-header h2 { margin: 0 0 15px 0 !important; color: var(--kca-navy); font-family: inherit !important; font-size: 2.2rem !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -1px; }
#courses .kca-subtitle { margin: 0 !important; color: var(--kca-gray-text); font-size: 1.05rem; line-height: 1.6; }
.text-blue { color: var(--kca-blue); }

/* --- Catalog Views (Courses, Names, Bundles) --- */
#courses .ksap-catalog-tabs {
    position: relative;
    display: grid;
    width: min(720px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 0 auto 24px;
    padding: 5px;
    border: 1px solid var(--kca-border);
    border-radius: 15px;
    background: #eef2f7;
}

#courses .ksap-catalog-tabs::before {
    position: absolute;
    z-index: 0;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 20px) / 3);
    border-radius: 11px;
    background: #17324d;
    box-shadow: 0 8px 18px rgba(23, 50, 77, 0.18);
    content: "";
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

#courses .ksap-catalog-tabs[data-active-view="names"]::before {
    transform: translateX(calc(100% + 5px));
}

#courses .ksap-catalog-tabs[data-active-view="sets"]::before {
    transform: translateX(calc(200% + 10px));
}

#courses .ksap-catalog-tab {
    position: relative;
    z-index: 1;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    border-radius: 11px;
    color: #526072;
    background: transparent;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4;
    cursor: pointer;
    transition: color 260ms ease;
}

#courses .ksap-catalog-tab.is-active,
#courses .ksap-catalog-tab[aria-selected="true"] {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
}

#courses .ksap-catalog-tab:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #courses .ksap-catalog-tabs::before,
    #courses .ksap-catalog-tab {
        transition: none;
    }
}

#courses [role="tabpanel"][hidden],
#courses .ksap-course-controls[hidden] {
    display: none !important;
}

#courses .ksap-catalog-set-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

#courses .ksap-catalog-set-card {
    display: flex;
    min-width: 0;
    grid-column: span 3;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 16px;
    color: #17324d;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#courses .ksap-catalog-set-card:hover,
#courses .ksap-catalog-set-card:focus-visible {
    border-color: #93c5fd;
    color: #17324d;
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.09);
    outline: 0;
    transform: translateY(-3px);
}

#courses .ksap-catalog-set-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #dbeafe;
}

#courses .ksap-catalog-set-image::after {
    display: none;
}

#courses .ksap-catalog-set-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

#courses .ksap-catalog-set-card:hover img,
#courses .ksap-catalog-set-card:focus-visible img {
    transform: scale(1.035);
}

#courses .ksap-catalog-set-badge {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: #1e40af;
    background: rgba(239, 246, 255, 0.94);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    backdrop-filter: blur(8px);
}

#courses .ksap-catalog-set-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

#courses .ksap-catalog-set-category {
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.4;
}

#courses .ksap-catalog-set-card h3 {
    margin: 0 0 9px !important;
    color: #17324d !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em;
    line-height: 1.4 !important;
}

#courses .ksap-catalog-set-courses {
    display: -webkit-box;
    min-height: 55px;
    margin: 0 0 13px !important;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

#courses .ksap-catalog-set-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 8px;
    row-gap: 5px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

#courses .ksap-catalog-set-original {
    grid-column: 1;
    grid-row: 1;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
    text-decoration: line-through;
}

#courses .ksap-catalog-set-price strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #0f2942;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

#courses .ksap-catalog-set-price strong::before {
    display: block;
    margin-bottom: 2px;
    color: #2563eb;
    content: "세트가";
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: right;
}

#courses .ksap-catalog-set-saving {
    display: inline-flex;
    grid-column: 1;
    grid-row: 2;
    width: max-content;
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #c2410c;
    background: #fff7ed;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: nowrap;
}

#courses .ksap-catalog-set-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
}

#courses .ksap-course-name-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#courses .ksap-course-name-item[hidden] {
    display: none !important;
}

#courses .ksap-course-name-link {
    display: flex;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 12px;
    color: #17324d;
    background: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
    word-break: keep-all;
    overflow-wrap: normal;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

#courses .ksap-course-name-link:hover,
#courses .ksap-course-name-link:focus-visible {
    border-color: #93c5fd;
    color: #1d4ed8;
    outline: 0;
    transform: translateY(-2px);
}

#courses .ksap-course-name-link span:last-child {
    flex: 0 0 auto;
    color: #2563eb;
}

/* --- Controls (Search & Filter) --- */
.ksap-course-controls {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.ksap-search-box {
    position: relative;
    width: min(500px, 100%);
    margin: 0 auto;
}
#courses #ksap-course-search {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px 12px 48px;
    border: 1px solid var(--kca-border);
    border-radius: 999px;
    outline: none;
    color: #14213d;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    font-family: inherit !important;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
#courses #ksap-course-search:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.ksap-search-box svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 17px;
    width: 20px;
    height: 20px;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

#courses #ksap-category-filters {
    display: grid;
    max-width: 100%;
    grid-template-columns: repeat(9, max-content);
    justify-content: center;
    gap: 8px;
    overflow: visible;
}
#courses #ksap-category-filters .ksap-chip {
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--kca-border);
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, 0.92);
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
#courses #ksap-category-filters .ksap-chip:hover,
#courses #ksap-category-filters .ksap-chip:focus-visible {
    border-color: #93c5fd;
    color: #1d4ed8;
}
#courses #ksap-category-filters .ksap-chip.active,
#courses #ksap-category-filters .ksap-chip.is-active {
    border-color: #17324d;
    background: #17324d;
    color: #ffffff;
    font-weight: 800 !important;
}

/* --- Compact Grid Layout --- */
.ksap-compact-grid-wrap {
    position: relative;
}

/* 마지막 카드행 위로 그라디언트 페이드 오버레이 */
.ksap-compact-grid-wrap.has-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(248, 250, 252, 0.2) 15%,
        rgba(248, 250, 252, 0.75) 45%,
        rgba(248, 250, 252, 0.98) 70%,
        rgba(248, 250, 252, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.ksap-compact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.ksap-compact-grid-wrap.has-more .ksap-compact-grid {
    clip-path: inset(0 0 128px 0);
}

/* --- Compact Card Design --- */
#courses .course {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 18px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.055);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

#courses .course[hidden] {
    display: none !important;
}

#courses .course:hover,
#courses .course:focus-visible {
    border-color: #bfdbfe;
    outline: 0;
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(30, 58, 138, 0.15);
}

#courses .course-image-wrap {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #dbeafe;
}

#courses .course-image-wrap::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.42));
    content: "";
    pointer-events: none;
}

#courses .course-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

#courses .course:hover .course-image,
#courses .course:focus-visible .course-image {
    transform: scale(1.045);
}

#courses .primary-badge {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.73);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(7px);
}

#courses .ministry-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    display: flex;
    max-width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 9px 6px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 9px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

#courses .ministry-badge.edu {
    background: linear-gradient(135deg, #10b981, #047857);
}

#courses .ministry-badge.agri,
#courses .ministry-badge.nature,
#courses .ministry-badge.forest {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

#courses .ministry-badge.science {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

#courses .ministry-badge.health {
    background: linear-gradient(135deg, #f43f5e, #be123c);
}

#courses .ministry-badge.safety {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

#courses .ministry-badge.police {
    background: linear-gradient(135deg, #64748b, #334155);
}

#courses .ministry-badge.gender {
    background: linear-gradient(135deg, #d946ef, #a21caf);
}

#courses .ministry-badge.broadcast {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

#courses .ministry-badge.ocean {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

#courses .ministry-badge span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

#courses .ministry-badge strong {
    overflow: hidden;
    max-width: 210px;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#courses .course-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 17px 18px 18px;
}

#courses .price {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.5;
    white-space: nowrap;
}

#courses .price-note {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

#courses .course-title {
    margin: 0 !important;
    color: #17324d;
    font-family: inherit !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.42 !important;
    letter-spacing: -0.025em;
}

#courses .course-meta {
    display: flex;
    margin: 6px 0 12px;
    flex-direction: column;
    justify-content: center;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f8fafc;
}

#courses .course-meta span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.5;
}

#courses .course-meta strong {
    margin-top: 2px;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

#courses .tag-row {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 15px;
}

#courses .tag {
    overflow: hidden;
    min-width: 0;
    padding: 5px 2px;
    border-radius: 7px;
    background: #eaf1ff;
    color: #2758a5;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#courses .tag svg {
    display: none;
}

#courses .card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #edf1f6;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

#courses .empty {
    grid-column: 1 / -1;
    padding: 72px 20px;
    border: 1px dashed #b9c7d9;
    border-radius: 18px;
    color: #64748b;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
}

@media (min-width: 521px) {
    .ksap-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 769px) {
    .ksap-compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ksap-compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    #courses #ksap-category-filters {
        grid-template-columns: repeat(6, max-content);
    }

    #courses .ksap-course-name-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #courses .ksap-catalog-set-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #courses .ksap-catalog-set-card {
        grid-column: auto;
    }

}

@media (max-width: 768px) {
    #courses #ksap-category-filters {
        grid-template-columns: repeat(6, max-content);
        overflow-x: visible;
    }

    #courses .ksap-course-name-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #courses .ksap-catalog-set-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    #courses #ksap-category-filters {
        grid-template-columns: repeat(3, max-content);
        gap: 6px;
    }

    #courses #ksap-category-filters .ksap-chip {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 13px !important;
    }

    #courses .ksap-catalog-tab {
        min-height: 44px;
        padding: 8px 6px;
        font-size: 12px !important;
    }

    #courses .ksap-course-name-grid {
        grid-template-columns: 1fr;
    }

    #courses .ksap-catalog-set-grid {
        grid-template-columns: 1fr;
    }
}

/* Load More */
.ksap-load-more-wrap {
    text-align: center;
    display: none;
    margin-top: -7.25rem; /* 페이드 안으로 더 끌어올림 */
    padding: 1rem 1rem 1.75rem;
    position: relative;
    z-index: 2; /* 오버레이보다 위 */
}
.ksap-load-more-wrap.visible { display: block; }

.ksap-load-more-wrap::before {
    content: '';
    position: absolute;
    top: -4.5rem;
    left: 0;
    right: 0;
    bottom: -0.25rem;
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0) 0%,
        rgba(248, 250, 252, 0.92) 42%,
        #f8fafc 78%,
        #f8fafc 100%
    );
    pointer-events: none;
    z-index: 0;
}

.ksap-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--ksap-blue) 0%, #2563eb 50%, #7c3aed 100%);
    background-size: 200% 200%;
    border: none;
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    box-shadow:
        0 8px 24px -4px rgba(30, 58, 138, 0.5),
        0 0 0 0 rgba(37, 99, 235, 0);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: loadMoreGradient 3s ease infinite, loadMoreRing 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 반짝임 sweep 효과 */
.ksap-btn-more::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    animation: loadMoreShine 2.2s ease-in-out infinite;
    z-index: 1;
}

/* 외부 펼스링 링 */
.ksap-btn-more::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 99px;
    border: 2px solid rgba(99, 102, 241, 0.5);
    animation: loadMoreRingPulse 2s ease-out infinite;
    z-index: -1;
    pointer-events: none;
}

.ksap-btn-more:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow:
        0 20px 40px -8px rgba(30, 58, 138, 0.55),
        0 0 30px rgba(99, 102, 241, 0.3);
    animation: loadMoreGradient 1s ease infinite;
}

.ksap-btn-more:active {
    transform: translateY(-1px) scale(1.01);
}

@keyframes loadMoreGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes loadMoreRing {
    0%, 100% { box-shadow: 0 8px 24px -4px rgba(30,58,138,0.5), 0 0 0 0 rgba(37,99,235,0.4); }
    50% { box-shadow: 0 12px 32px -2px rgba(30,58,138,0.65), 0 0 0 10px rgba(37,99,235,0); }
}

@keyframes loadMoreShine {
    0% { left: -75%; }
    100% { left: 125%; }
}

@keyframes loadMoreRingPulse {
    0% { opacity: 1; inset: -4px; }
    100% { opacity: 0; inset: -14px; }
}

/* 모바일 최적화 */
@media (max-width: 599px) {
    .mobile-hide { display: none; }
    .ksap-btn-more {
        width: 90%;
        max-width: 340px;
        justify-content: center;
        padding: 1.1rem 2rem;
        font-size: 1.05rem;
    }
    .ksap-load-more-wrap { margin-top: -4.75rem; padding: 1rem 1rem 1.25rem; }
    .ksap-load-more-wrap::before { top: -3.75rem; }
    .ksap-compact-grid-wrap.has-more .ksap-compact-grid { clip-path: inset(0 0 96px 0); }
}

/* Popular Course Glow */
.ksap-popular-glow {
    animation: ksapPopularGlow 2.5s infinite alternate;
    border: 1px solid #fde68a !important;
}
@keyframes ksapPopularGlow {
    0% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.1); border-color: #fde68a; }
    100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); border-color: #f59e0b; }
}














/* =========================================
   KSAP Partners Section CSS (Uniform Bold)
   ========================================= */

/* 섹션 기본 설정 */
.ksap-partners {
    background-color: #0f172a !important;
    /* Slate 900 */
    padding: 6rem 0;
    border-top: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

/* 배경 블러 효과 */
.ksap-partner-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.ksap-partner-bg-blob.blue {
    top: 10%;
    left: 20%;
    width: 400px;
    height: 400px;
    background-color: #1d4ed8;
}

.ksap-partner-bg-blob.slate {
    bottom: 10%;
    right: 20%;
    width: 300px;
    height: 300px;
    background-color: #64748b;
}

/* 헤더 */
.ksap-partner-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.ksap-partner-label {
    display: inline-block;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.ksap-partner-header h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.ksap-partner-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* 그리드 레이아웃 (모바일 2열 / PC 4열) */
.ksap-partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 768px) {
    .ksap-partner-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* 카드 스타일 */
.ksap-partner-card {
    position: relative;
    background-color: #1e293b;
    /* Slate 800 */
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.25rem 0.5rem;
    /* 모바일 패딩 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/10;
    transition: all 0.3s ease;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ksap-partner-card {
        padding: 2rem 1rem;
        aspect-ratio: 4/3;
    }
}

.ksap-partner-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* 아이콘 래퍼 */
.ksap-icon-wrap {
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ksap-partner-card:hover .ksap-icon-wrap {
    transform: scale(1.1);
}

/* 이미지 아이콘 (첫번째 카드 등) */
.ksap-img-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* SVG 아이콘 (원형 배경) */
.ksap-icon-wrap.circle {
    width: 40px;
    height: 40px;
    background-color: rgba(51, 65, 85, 0.5);
    border-radius: 50%;
    color: #94a3b8;
    transition: background-color 0.3s, color 0.3s;
}

.ksap-icon-wrap.circle svg {
    width: 20px;
    height: 20px;
}

/* PC 크기 조정 */
@media (min-width: 768px) {
    .ksap-icon-wrap.circle {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .ksap-icon-wrap.circle svg {
        width: 28px;
        height: 28px;
    }

    .ksap-img-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 0.5rem;
    }
}

.ksap-partner-card:hover .ksap-icon-wrap.circle {
    background-color: rgba(30, 58, 138, 0.3);
    color: #60a5fa;
}

/* 텍스트 스타일 (전체 Bold 적용) */
.ksap-partner-name {
    font-size: 0.8rem;
    /* 모바일 폰트 */
    color: #e2e8f0;
    /* 밝은 회색 */
    font-weight: 700;
    /* Bold 강제 적용 */
    text-align: center;
    word-break: keep-all;
    line-height: 1.3;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .ksap-partner-name {
        font-size: 1rem;
    }

    /* PC 폰트 */
}

.ksap-partner-card:hover .ksap-partner-name {
    color: #ffffff;
}

/* 하단 라인 효과 */
.ksap-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.ksap-partner-card:hover .ksap-hover-line {
    width: 100%;
}








/* =========================================
   KSAP FAQ SECTION - PREMIUM STYLE
   ========================================= */

#ksap-faq-section {
    padding: 6rem 0;
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0;
    /* 폰트 명시 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    /* [추가] 모바일 텍스트 자동 확대 방지 */
    -webkit-text-size-adjust: 100%;
}

/* Header */
#ksap-faq-section .ksap-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

#ksap-faq-section .ksap-badge-pill {
    display: inline-block;
    background: var(--ksap-light-blue);
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

#ksap-faq-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

#ksap-faq-section .ksap-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Accordion Wrapper */
.ksap-faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FAQ Item */
.ksap-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ksap-faq-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.05);
}

.ksap-faq-item.active {
    border-color: #2563eb;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.1);
}

/* Question Button */
.ksap-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;

    /* [중요 수정] 모바일 버튼 폰트 깨짐 방지 */
    font-family: inherit;
    font-size: 1rem;
    /* 모바일 기준 기본 사이즈 재설정 */
    color: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* 아이폰 기본 버튼 스타일 제거 */
}

/* 모바일 화면에서 FAQ 질문 폰트 크기 조정 */
@media (min-width: 768px) {
    .ksap-faq-question {
        font-size: 1.1rem;
        /* PC에서는 약간 키움 */
    }
}

.ksap-q-mark {
    font-size: 1.25rem;
    font-weight: 900;
    color: #2563eb;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.ksap-q-text {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.ksap-faq-icon {
    color: #94a3b8;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.ksap-faq-item.active .ksap-faq-icon {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Answer Area */
.ksap-faq-answer {
    max-height: 0;
    /* JS 애니메이션용 */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
}

.ksap-a-inner {
    padding: 1.25rem 1.5rem 1.5rem 4rem;
    /* Q마크 위치 고려한 왼쪽 여백 */
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    word-break: keep-all;
    overflow-wrap: normal;
}

.ksap-a-inner strong {
    color: var(--ksap-blue);
    font-weight: 700;
}

.ksap-faq-guide-steps {
	display: grid;
	gap: 0.35rem;
	margin: 0.8rem 0 0.65rem;
	padding-left: 1.35rem;
}

.ksap-faq-guide-steps li {
	padding-left: 0.15rem;
	word-break: keep-all;
}

.ksap-faq-guide-note {
	display: block;
	color: #64748b;
	font-size: 0.92rem;
	word-break: keep-all;
}

.ksap-faq-application-action {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
    margin-top: 1.25rem;
}

.ksap-faq-application-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--ksap-blue) 0%, #2563eb 100%);
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    word-break: keep-all;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ksap-faq-application-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.55);
}

.ksap-faq-application-link--secondary {
	border: 1px solid var(--ksap-blue);
	background: #ffffff;
	color: var(--ksap-blue) !important;
}

.ksap-faq-application-link--secondary:hover {
	background: #eff6ff;
	color: #1d4ed8 !important;
	box-shadow: none;
}

/* Bottom CTA */
.ksap-faq-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem 2rem;
    background: #f1f5f9;
    border-radius: 1.5rem;
}

.ksap-faq-cta p {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
}

.ksap-cta-button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ksap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 200px;
}

.ksap-btn-phone {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.ksap-btn-phone:hover {
    background: var(--ksap-light-blue);
    transform: translateY(-2px);
}

.ksap-btn-chat {
    background: linear-gradient(135deg, var(--ksap-blue) 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.ksap-btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.ksap-btn svg {
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .ksap-disclaimer {
        word-break: keep-all;
    }

    #ksap-faq-section {
        padding: 4rem 0;
    }

    #ksap-faq-section h2 {
        font-size: 1.75rem;
    }

    .ksap-q-text {
        font-size: 1rem;
    }

    .ksap-a-inner {
        padding: 1.25rem 1.5rem 1.5rem 1.5rem;
        /* 모바일은 좌측 여백 축소 */
    }

    .ksap-faq-application-link {
        width: 100%;
    }

    .ksap-q-mark {
        margin-right: 0.75rem;
    }

    .ksap-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        /* 모바일에서 버튼 꽉 차게 */
    }

    .ksap-faq-cta {
        margin-top: 3rem;
        padding: 2rem 1rem;
    }
}











/* =========================================
   FAQ Section CTA (하단 문의 버튼)
   ========================================= */

/* 컨테이너 */
.ksap-faq-cta {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 40px;
}

.ksap-faq-cta p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
}

/* 버튼 그룹 */
.ksap-cta-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 버튼 공통 */
.ksap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ksap-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.ksap-btn svg {
    margin-right: 8px;
}

/* 1. 전화 문의 (화이트 + 테두리) */
.ksap-btn-phone {
    background-color: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.ksap-btn-phone:hover {
    background-color: var(--ksap-light-blue);
}

/* 2. 채팅 상담 (파란 그라데이션) */
.ksap-btn-chat {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
}

.ksap-btn-chat:hover {
    opacity: 0.95;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .ksap-cta-button-group {
        flex-direction: column;
        padding: 0 20px;
    }

    .ksap-btn {
        width: 100%;
    }
}





#ksap-president-greeting {
    --ksap-president-bg: #f8fafc;
    --ksap-president-card-bg: #ffffff;
    --ksap-president-soft: #eef6f4;
    --ksap-president-line: #d9e2ec;
    --ksap-president-border: #dbe3ee;
    --ksap-president-ink: #0f172a;
    --ksap-president-body: #465568;
    --ksap-president-muted: #64748b;
    --ksap-president-accent: #1d4ed8;
    --ksap-president-teal: #0f766e;
    --ksap-president-sign: #6b8fd6;
    padding: 56px 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.95) 100%),
        var(--ksap-president-bg);
}

#ksap-president-greeting * {
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: normal;
}

#ksap-president-greeting .ksap-president-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

#ksap-president-greeting .ksap-president-heading {
    max-width: 760px;
    margin-bottom: 18px;
}

#ksap-president-greeting .ksap-president-heading h2,
#ksap-president-greeting .ksap-president-heading p {
    margin: 0;
}

#ksap-president-greeting .ksap-president-heading h2 {
    margin-top: 8px;
    color: var(--ksap-president-ink);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

#ksap-president-greeting .ksap-president-heading > p:last-child {
    margin-top: 10px;
    color: var(--ksap-president-body);
    font-size: 16px;
    line-height: 1.7;
}

#ksap-president-greeting .ksap-president-label {
    color: var(--ksap-president-accent);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0;
}

#ksap-president-greeting .ksap-president-tabs {
    --ksap-president-card-height: 456px;
    display: grid;
    grid-template-columns: minmax(230px, 300px) 1fr;
    gap: 18px;
    align-items: stretch;
    min-height: var(--ksap-president-card-height);
}

#ksap-president-greeting .ksap-president-list {
    display: grid;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 7px;
    height: var(--ksap-president-card-height);
    align-self: stretch;
}

#ksap-president-greeting .ksap-president-tab {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 7px 12px;
    border: 1px solid var(--ksap-president-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ksap-president-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

#ksap-president-greeting .ksap-president-tabs[data-president-autoplay="true"] .ksap-president-tab {
    overflow: hidden;
}

#ksap-president-greeting .ksap-president-tabs[data-president-autoplay="true"] .ksap-president-tab.is-active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ksap-president-accent), var(--ksap-president-teal));
    transform-origin: left center;
    animation: ksapPresidentTabProgress var(--ksap-president-rotation-duration, 8.2s) linear forwards;
}

#ksap-president-greeting .ksap-president-tabs.is-paused .ksap-president-tab.is-active::after {
    animation-play-state: paused;
}

#ksap-president-greeting .ksap-president-tab:hover,
#ksap-president-greeting .ksap-president-tab.is-active {
    border-color: rgba(29, 78, 216, 0.5);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

#ksap-president-greeting .ksap-president-tab > span:last-child {
    min-width: 0;
}

#ksap-president-greeting .ksap-president-tab strong {
    display: block;
    color: var(--ksap-president-ink);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    word-break: keep-all;
}

#ksap-president-greeting .ksap-president-tab span span {
    display: block;
    margin-top: 2px;
    color: var(--ksap-president-muted);
    font-size: 12px;
    line-height: 1.35;
    word-break: keep-all;
}

#ksap-president-greeting .ksap-president-tab-photo,
#ksap-president-greeting .ksap-president-tab-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 20px;
    font-weight: 800;
}

#ksap-president-greeting .ksap-president-tab-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

#ksap-president-greeting .ksap-president-panels {
    display: grid;
    min-width: 0;
    height: var(--ksap-president-card-height);
    align-self: stretch;
}

#ksap-president-greeting .ksap-president-panel {
    display: grid;
    grid-template-columns: minmax(220px, 31%) 1fr;
    height: var(--ksap-president-card-height);
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--ksap-president-border);
    border-radius: 8px;
    background: var(--ksap-president-card-bg);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

#ksap-president-greeting .ksap-president-panel.is-active {
    animation: ksapPresidentPanelIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#ksap-president-greeting .ksap-president-panel[hidden] {
    display: none;
}

#ksap-president-greeting .ksap-president-photo {
    height: 100%;
    min-height: 0;
    margin: 0;
    background: #dde5ee;
}

#ksap-president-greeting .ksap-president-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

#ksap-president-greeting .ksap-president-avatar-card {
    display: grid;
    height: 100%;
    min-height: 0;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(29, 78, 216, 0.14), rgba(15, 118, 110, 0.18)),
        #edf4f8;
    color: var(--ksap-president-accent);
    font-size: 72px;
    font-weight: 800;
}

#ksap-president-greeting .ksap-president-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 34px 26px;
}

#ksap-president-greeting .ksap-president-quote {
    margin: 0;
    color: #243447;
    font-size: 20px;
    line-height: 1.75;
    font-weight: 800;
    word-break: keep-all;
}

#ksap-president-greeting .ksap-president-body {
    margin: 0;
    color: var(--ksap-president-body);
    font-size: 16px;
    line-height: 1.85;
    word-break: keep-all;
}

#ksap-president-greeting .ksap-president-panel.is-typing-ready .ksap-president-typing {
    opacity: 0;
}

#ksap-president-greeting .ksap-president-panel.is-typing-ready .ksap-president-typing.is-typing,
#ksap-president-greeting .ksap-president-panel.is-typing-ready .ksap-president-typing.is-typed {
    opacity: 1;
}

#ksap-president-greeting .ksap-president-panel.is-typing-ready .ksap-president-typing.is-typing::after {
    content: "|";
    display: inline-block;
    margin-left: 2px;
    color: var(--ksap-president-accent);
    animation: ksapPresidentBlink 0.8s steps(1, end) infinite;
}

#ksap-president-greeting .ksap-president-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--ksap-president-line);
}

#ksap-president-greeting .ksap-president-name {
    margin: 0;
    color: var(--ksap-president-ink);
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}

#ksap-president-greeting .ksap-president-role {
    margin: 6px 0 0;
    color: var(--ksap-president-muted);
    font-size: 14px;
    line-height: 1.5;
}

#ksap-president-greeting .ksap-president-signature {
    margin: 0;
    color: var(--ksap-president-sign);
    white-space: nowrap;
    font-family: "Times New Roman", serif;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0;
}

@keyframes ksapPresidentTabProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes ksapPresidentPanelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes ksapPresidentBlink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    #ksap-president-greeting {
        padding: 32px 0 !important;
    }

    #ksap-president-greeting .ksap-president-tabs {
        --ksap-president-card-height: auto;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    #ksap-president-greeting .ksap-president-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
        height: auto;
    }

    #ksap-president-greeting .ksap-president-panels {
        height: auto;
    }

    #ksap-president-greeting .ksap-president-panel {
        grid-template-columns: 1fr;
        height: auto;
    }

    #ksap-president-greeting .ksap-president-photo,
    #ksap-president-greeting .ksap-president-avatar-card {
        height: auto;
        min-height: 320px;
    }

    #ksap-president-greeting .ksap-president-tabs--six .ksap-president-photo,
    #ksap-president-greeting .ksap-president-tabs--six .ksap-president-avatar-card {
        height: 420px;
        min-height: 0;
    }
}

@media (min-width: 681px) and (max-width: 991.98px) {
    #ksap-president-greeting .ksap-president-panel {
        grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
    }

    #ksap-president-greeting .ksap-president-tabs--six .ksap-president-photo,
    #ksap-president-greeting .ksap-president-tabs--six .ksap-president-avatar-card {
        height: 100%;
        min-height: 0;
    }

    #ksap-president-greeting .ksap-president-copy {
        padding: 24px 26px 22px;
    }
}

@media (max-width: 680px) {
    #ksap-president-greeting .ksap-president-container {
        width: min(100% - 20px, 1180px);
    }

    #ksap-president-greeting .ksap-president-heading h2 {
        font-size: 24px;
    }

    #ksap-president-greeting .ksap-president-list {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    #ksap-president-greeting .ksap-president-copy {
        padding: 24px 18px 20px;
    }

    #ksap-president-greeting .ksap-president-photo,
    #ksap-president-greeting .ksap-president-avatar-card {
        min-height: 260px;
    }

    #ksap-president-greeting .ksap-president-tabs--six .ksap-president-photo,
    #ksap-president-greeting .ksap-president-tabs--six .ksap-president-avatar-card {
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    #ksap-president-greeting .ksap-president-tabs--six .ksap-president-photo img {
        object-fit: cover;
        object-position: center top;
    }

    #ksap-president-greeting .ksap-president-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    #ksap-president-greeting .ksap-president-quote {
        font-size: 18px;
    }

    #ksap-president-greeting .ksap-president-name {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ksap-president-greeting .ksap-president-tab {
        transition: none;
    }

    #ksap-president-greeting .ksap-president-panel.is-active {
        animation: none;
    }

    #ksap-president-greeting .ksap-president-tabs[data-president-autoplay="true"] .ksap-president-tab.is-active::after {
        animation: none;
        transform: scaleX(1);
    }

    #ksap-president-greeting .ksap-president-panel.is-typing-ready .ksap-president-typing.is-typing::after {
        animation: none;
    }
}












/* ==========================================================================
   KSAP Ebook Hero Section Style
   ========================================================================== */

/* 기본 래퍼 테마 (히어로 섹션 배경을 위해 추가합니다) */
.ksap-wp-ebook-page-wrapper {
    background-color: #0d1017;
    color: #e5e7eb;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.ksap-wp-hero-section {
    padding: 160px 20px 100px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    animation: ksapWpFadeInDown 0.8s ease forwards;
    z-index: 10;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
}

@keyframes ksapWpFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.ksap-wp-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: ksapWpFloatGlow 8s infinite alternate ease-in-out;
}

.ksap-wp-shape-1 {
    top: -10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.4) 0%, transparent 70%);
}

.ksap-wp-shape-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.25) 0%, transparent 70%);
    animation-delay: -4s;
}

@keyframes ksapWpFloatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.ksap-wp-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.ksap-wp-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
}

.ksap-wp-p-1 {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 15%;
    animation: ksapWpParticleFloat 4s infinite alternate;
}

.ksap-wp-p-2 {
    width: 4px;
    height: 4px;
    top: 40%;
    right: 20%;
    animation: ksapWpParticleFloat 5s infinite alternate-reverse;
}

.ksap-wp-p-3 {
    width: 8px;
    height: 8px;
    bottom: 30%;
    left: 25%;
    animation: ksapWpParticleFloat 6s infinite alternate;
}

@keyframes ksapWpParticleFloat {
    0% {
        transform: translateY(0);
        opacity: 0.2;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0.8;
    }
}

.ksap-wp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 92, 0.15);
    border: 1px solid rgba(255, 59, 92, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    margin: 0 0 16px 0 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 59, 92, 0.2);
    animation: ksapWpPulseBadge 2.5s infinite;
}

@keyframes ksapWpPulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 59, 92, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 92, 0);
    }
}

.ksap-wp-badge-text {
    color: #ff5e7a;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.ksap-wp-hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    text-align: right;
}

.ksap-wp-hero-text-area {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ksap-wp-hero-title {
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -1px;
    word-break: keep-all;
    background: transparent !important;
}

.ksap-wp-title-sub {
    font-size: 1.6rem;
    font-weight: 600;
    color: #9aa0a6;
    display: inline-block;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.ksap-wp-title-main {
    font-size: 3.2rem;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(255, 59, 92, 0.4);
}

.ksap-wp-text-gradient {
    background: linear-gradient(135deg, #ff3b5c 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ksap-wp-hero-desc {
    font-size: 1.15rem;
    color: #b0b5be;
    line-height: 1.8;
    margin-bottom: 40px;
    word-break: keep-all;
}

.ksap-wp-hero-desc strong {
    color: #ffd166;
    font-weight: 800;
    background: rgba(255, 209, 102, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
}

.ksap-wp-hero-desc span {
    color: white;
    font-weight: 700;
}

.ksap-wp-hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(26, 28, 35, 0.6);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    width: 100%;
}

.ksap-wp-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.ksap-wp-btn-primary {
    background: linear-gradient(135deg, #ff3b5c 0%, #ff8c42 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 59, 92, 0.4);
    position: relative;
    overflow: hidden;
}

.ksap-wp-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: ksapWpShine 3s infinite;
}

@keyframes ksapWpShine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.ksap-wp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 59, 92, 0.5);
    color: white;
}

.ksap-wp-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ksap-wp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.ksap-wp-hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

.ksap-wp-book-cover-wrapper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: ksapWpFloatCover 6s ease-in-out infinite;
    z-index: 2;
}

.ksap-wp-book-cover-wrapper:hover {
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) translateY(-10px) scale(1.02);
}

@keyframes ksapWpFloatCover {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) translateY(-15px);
    }
}

.ksap-wp-book-cover-img {
    width: 100%;
    border-radius: 4px 16px 16px 4px;
    box-shadow: inset 4px 0 10px rgba(255, 255, 255, 0.2);
    display: block;
    position: relative;
    z-index: 3;
    transform: translateZ(20px);
}

.ksap-wp-book-edge {
    position: absolute;
    top: 2%;
    right: -48px;
    width: 50px;
    height: 96%;
    background: linear-gradient(to right, #ccc 0%, #eee 15%, #fff 50%, #e0e0e0 85%, #bbb 100%);
    border-radius: 0 10px 10px 0;
    transform: translateZ(5px);
    z-index: 2;
    background-image: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 3px), linear-gradient(to right, #ccc 0%, #eee 15%, #fff 50%, #e0e0e0 85%, #bbb 100%);
    box-shadow: inset 1px 0 3px rgba(0, 0, 0, 0.4), 20px 20px 40px rgba(0, 0, 0, 0.6);
}

.ksap-wp-book-cover-wrapper::after {
    content: '';
    position: absolute;
    top: 2%;
    right: -50px;
    width: 60px;
    height: 96%;
    background: #111;
    border-radius: 6px;
    transform: translateZ(-2px);
    z-index: 1;
    box-shadow: -15px 25px 40px rgba(0, 0, 0, 0.8);
}

.ksap-wp-book-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: #ff3b5c;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 1;
    animation: ksapWpPulseGlow 4s infinite alternate;
}

@keyframes ksapWpPulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.ksap-wp-floating-badge-1,
.ksap-wp-floating-badge-2,
.ksap-wp-floating-badge-3,
.ksap-wp-floating-badge-4 {
    position: absolute;
    background: rgba(26, 28, 35, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
    transform: translateZ(30px);
}

.ksap-wp-floating-badge-1 {
    top: -5%;
    left: -2%;
    transform: translateZ(40px) rotate(-8deg);
    animation: ksapWpBadgeFloat1 5s infinite ease-in-out;
}

.ksap-wp-floating-badge-2 {
    bottom: 25%;
    right: -15%;
    background: linear-gradient(135deg, #ff3b5c 0%, #ff8c42 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateZ(40px) rotate(6deg);
    animation: ksapWpBadgeFloat2 6s infinite ease-in-out reverse;
}

.ksap-wp-floating-badge-3 {
    top: -5%;
    right: 5%;
    background: #4ade80;
    color: #0d1017;
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateZ(35px) rotate(4deg);
    animation: ksapWpBadgeFloat1 6s infinite ease-in-out 1s;
}

.ksap-wp-floating-badge-4 {
    bottom: 22%;
    left: 4%;
    background: rgba(80, 110, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateZ(50px) rotate(-5deg);
    animation: ksapWpBadgeFloat2 5.5s infinite ease-in-out 0.5s;
}

@keyframes ksapWpBadgeFloat1 {

    0%,
    100% {
        transform: translateZ(40px) rotate(-5deg) translateY(0);
    }

    50% {
        transform: translateZ(40px) rotate(-2deg) translateY(-10px);
    }
}

@keyframes ksapWpBadgeFloat2 {

    0%,
    100% {
        transform: translateZ(40px) rotate(5deg) translateY(0);
    }

    50% {
        transform: translateZ(40px) rotate(8deg) translateY(-8px);
    }
}

/* 반응형 처리 */
@media (max-width: 1024px) {
    .ksap-wp-hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .ksap-wp-hero-text-area {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ksap-wp-hero-highlights {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 680px) {
    .ksap-wp-hero-section {
        padding: 96px 16px 72px;
        max-width: 100%;
        overflow: hidden;
    }

    .ksap-wp-hero-layout {
        gap: 32px !important;
    }

    .ksap-wp-title-sub {
        font-size: 1.05rem;
    }

    .ksap-wp-title-main {
        font-size: clamp(2rem, 9vw, 2.45rem);
        line-height: 1.18;
    }

    .ksap-wp-hero-desc {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    .ksap-wp-hero-image-area {
        max-width: min(78vw, 300px);
        padding: 0 22px;
    }

    .ksap-wp-book-cover-wrapper {
        animation: none;
        transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
    }

    .ksap-wp-book-cover-wrapper:hover {
        transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
    }

    .ksap-wp-book-edge {
        right: -24px;
        width: 26px;
    }

    .ksap-wp-book-cover-wrapper::after {
        right: -26px;
        width: 34px;
    }

    .ksap-wp-floating-badge-1,
    .ksap-wp-floating-badge-2,
    .ksap-wp-floating-badge-3,
    .ksap-wp-floating-badge-4 {
        padding: 7px 10px;
        border-radius: 9px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .ksap-wp-floating-badge-1 {
        top: -4%;
        left: -4%;
    }

    .ksap-wp-floating-badge-2 {
        right: -4%;
        bottom: 18%;
    }

    .ksap-wp-floating-badge-3 {
        top: 5%;
        right: 2%;
    }

    .ksap-wp-floating-badge-4 {
        bottom: 8%;
        left: 0;
    }

    .ksap-wp-cta-group {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 32px !important;
    }

    .ksap-wp-btn {
        width: 100%;
        min-width: 0 !important;
    }

    .ksap-wp-shape-1,
    .ksap-wp-shape-2 {
        width: 260px;
        height: 260px;
        filter: blur(60px);
    }
}
