/* K-Digital common styles. Every rule is scoped to .kd-page (never global). */
.section_header_logo .logo {margin-top:0;}
.kd-page {
    font-family: var(--kd-font);
    color: var(--kd-text-900);
    word-break: keep-all;
    letter-spacing: -0.02em;
}
.kd-page *,
.kd-page *::before,
.kd-page *::after {
    box-sizing: border-box;
}
/* Pretendard everywhere inside the page (icons are SVG/pseudo elements and keep their own fonts) */
.kd-page h1, .kd-page h2, .kd-page h3, .kd-page h4, .kd-page h5, .kd-page h6,
.kd-page p, .kd-page li, .kd-page dt, .kd-page dd, .kd-page th, .kd-page td,
.kd-page a, .kd-page span, .kd-page strong, .kd-page b, .kd-page em, .kd-page small, .kd-page label,
.kd-page button, .kd-page input, .kd-page textarea, .kd-page select {
    font-family: var(--kd-font);
}
/* LMS global CSS may set text-align on p/li/etc.: always follow the parent inside K-Digital pages */
.kd-page p,
.kd-page li,
.kd-page dt,
.kd-page dd,
.kd-page summary,
.kd-page h1,
.kd-page h2,
.kd-page h3,
.kd-page h4 {
    text-align: inherit;
}
.kd-page img {
    max-width: 100%;
    height: auto;
}
.kd-page .container {
    width: 100%;
    max-width: var(--kd-container);
    margin: 0 auto;
}
.kd-page .skip-nav {
    position: absolute;
    left: -9999px;
}
.kd-page .skip-nav:focus {
    left: 8px;
    top: 8px;
    z-index: 2000;
    padding: 8px 12px;
    background: #fff;
}

/* Primary button (kd-btn: avoids collision with LMS global .btn-primary) */
.kd-page .kd-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--kd-radius-pill);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kd-page .kd-btn:hover {
    transform: translateY(-2px);
}
.kd-page .kd-btn:focus-visible {
    outline: 3px solid var(--kd-cyan-400);
    outline-offset: 2px;
}
.kd-page .kd-btn-primary {
    background: var(--kd-grad-cta);
    color: #fff;
    box-shadow: var(--kd-shadow-cta);
}
.kd-page .kd-btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: kd-shine 5s ease-in-out infinite;
    pointer-events: none;
}
.kd-page .kd-btn-dark {
    background: var(--kd-navy-600);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
@keyframes kd-shine {
    0%, 70% { left: -60%; }
    100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
    .kd-page .kd-btn-primary::after { animation: none; display: none; }
    .kd-page .kd-btn { transition: none; }
}

/* TEST badge (KD_MODE = test only) */
.kd-page .kd-test-badge {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 3000;
    padding: 4px 10px;
    border-radius: var(--kd-radius-pill);
    background: var(--kd-new);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

/* ---- Sticky CTA bridge ----
   Markup + behavior come from the shared LMS files (inc/sticky-cta.asp, sticky-cta.js, unmodified).
   The shared stylesheet is global and not reliably served, so only the look is mirrored here, scoped to .kd-page. */
.kd-page .sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 1000;
    width: min(960px, calc(100% - 48px));
    transform: translateX(-50%);
    background: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.kd-page .sticky-cta.is-hidden {
    transform: translateX(-50%) translateY(140%);
    opacity: 0;
    pointer-events: none;
}
/* slides down out of view while a section marked data-kd-cta-hide meets it (class set by kd_common.js;
   separate from the shared is-hidden class so the two scripts never fight over one class) */
.kd-page .sticky-cta.kd-cta-away {
    transform: translateX(-50%) translateY(calc(100% + 90px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, visibility 0s linear 0.45s;
}
.kd-page .sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 16px 22px 16px 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}
.kd-page .sticky-cta-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #111827;
    white-space: nowrap;
}
.kd-page .sticky-cta-text strong { font-size: 18px; font-weight: 600; color: #646464; }
.kd-page .sticky-cta-text span { font-size: 20px; font-weight: 700; color: var(--kd-navy-700); }
.kd-page .sticky-cta-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.kd-page .sticky-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 150px;
    height: 50px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kd-page .sticky-cta-btn:hover { transform: translateY(-2px); }
.kd-page .sticky-cta-btn-primary { background: var(--kd-blue-600); color: #fff; box-shadow: 0 8px 18px rgba(0, 92, 254, 0.28); }
.kd-page .sticky-cta-btn-dark { background: #111827; color: #fff; box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22); }
.kd-page .sticky-cta-btn-primary:visited, .kd-page .sticky-cta-btn-dark:visited { color: #fff; }

/* PC fixed header bridge: the LMS PC header (.header) is position:fixed, 115px tall, z-index 1001,
   so page content must start below it and the sticky tab bar must stick under it. */
@media (min-width: 1200px) {
    .kd-page {
        padding-top: var(--kd-header-h, 115px);
    }
}
