﻿:root {
    --kf-navy: #061a3a;
    --kf-navy-2: #0b2b63;
    --kf-blue: #1d56b3;
    --kf-gold: #d9a441;
    --kf-white: #ffffff;
    --kf-light: #f5f7fb;
    --kf-text: #172033;
    --kf-muted: #647087;
    --kf-border: #e3e8f2;
    --kf-shadow: 0 18px 45px rgba(6, 26, 58, 0.12);
    --kf-radius: 20px;
    --kf-container: 1180px;
    --kf-hero-image: url("/iBoard/Theme/NZFR/images/kfranchise-hero.jpg");
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body.kf-modal-open {
    overflow: hidden;
}

.kf-page,
.kf-wrap,
.kf-main {
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

.kf-container {
    width: min(var(--kf-container), calc(100% - 40px));
    margin: 0 auto;
}

.kf-site,
.kf-header,
.kf-footer,
.kf-modal {
    font-family: Arial, "Helvetica Neue", sans-serif;
    color: var(--kf-text);
    box-sizing: border-box;
}

.kf-site *,
.kf-header *,
.kf-footer *,
.kf-modal * {
    box-sizing: border-box;
}

.kf-site a,
.kf-header a,
.kf-footer a {
    text-decoration: none;
}

/* Header */
.kf-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(6, 26, 58, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kf-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.kf-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.kf-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--kf-white);
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.kf-logo img {
    max-height: 42px;
    width: auto;
    display: block;
}

.kf-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    background: var(--kf-gold);
    color: var(--kf-navy);
    font-weight: 900;
}

.kf-logo-text {
    color: var(--kf-white);
}

.kf-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.kf-menu a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.kf-menu a:hover {
    color: var(--kf-gold);
}

.kf-nav-cta {
    border: 0;
    background: var(--kf-gold);
    color: var(--kf-navy);
    padding: 7px 18px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.kf-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    margin-left: auto;
}

.kf-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--kf-white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.kf-menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.kf-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.kf-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Common */
.kf-section {
    padding: 96px 0;
}

.kf-section-light {
    background: var(--kf-light);
}

.kf-eyebrow {
    margin: 0 0 12px;
    color: var(--kf-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kf-section-head {
    max-width: 760px;
    margin-bottom: 42px;
}

.kf-section-head h2,
.kf-two-col h2,
.kf-opportunity h2,
.kf-members h2,
.kf-event-notice h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.05em;
    color: var(--kf-navy);
}

.kf-section-head p,
.kf-two-col p,
.kf-opportunity p,
.kf-members p,
.kf-event-notice p {
    color: var(--kf-muted);
    font-size: 16px;
    line-height: 1.8;
}

.kf-section-head-row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.kf-small-link,
.kf-text-link {
    color: var(--kf-blue);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.kf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kf-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--kf-shadow);
}

.kf-btn-primary {
    background: var(--kf-navy);
    color: var(--kf-white);
}

.kf-btn-outline {
    background: var(--kf-white);
    color: var(--kf-navy);
    border-color: var(--kf-navy);
}

.kf-btn-light {
    background: var(--kf-white);
    color: var(--kf-navy);
}

/* Hero */
.kf-hero {
    position: relative;
    min-height: calc(100vh - 78px);
    padding: 120px 0 72px;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(245, 247, 251, 0.92) 0%,
            rgba(245, 247, 251, 0.78) 30%,
            rgba(245, 247, 251, 0.34) 56%,
            rgba(6, 26, 58, 0.08) 100%
        ),
        var(--kf-hero-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.kf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 28%, rgba(217, 164, 65, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.18) 100%);
    z-index: 0;
}

.kf-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 247, 251, 0.72) 100%);
    z-index: 0;
}

.kf-hero .kf-container {
    position: relative;
    z-index: 2;
}

.kf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 650px);
    gap: 0;
    align-items: center;
}

.kf-hero-copy {
    max-width: 650px;
    padding: 42px 0;
}

.kf-hero-copy h1 {
    margin: 0 0 24px;
    color: var(--kf-navy);
    font-size: clamp(46px, 6vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.075em;
    text-shadow: 0 16px 38px rgba(255, 255, 255, 0.62);
}

.kf-hero-desc {
    max-width: 610px;
    color: #34435c;
    font-size: 18px;
    line-height: 1.85;
    font-weight: 500;
}

.kf-hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.kf-hero-visual {
    display: none;
}

.kf-hero-photo {
    display: none;
}

.kf-hero-card {
    display: none;
}

/* Hero Quick Stats - Updated */
.kf-quick-stats {
    position: relative;
    z-index: 3;
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 70px rgba(6, 26, 58, 0.18);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.kf-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 150px;
    padding: 34px 28px;
    text-align: left;
    border-right: 1px solid rgba(203, 213, 225, 0.7);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.72) 0%,
            rgba(255, 255, 255, 0.42) 100%
        );
    transition: background 0.22s ease, transform 0.22s ease;
}

.kf-stat:last-child {
    border-right: 0;
}

.kf-stat::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            rgba(29, 86, 179, 0),
            rgba(29, 86, 179, 0.85),
            rgba(217, 164, 65, 0.85),
            rgba(29, 86, 179, 0)
        );
    opacity: 0;
    transition: opacity 0.22s ease;
}

.kf-stat:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-2px);
}

.kf-stat:hover::before {
    opacity: 1;
}

.kf-stat-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #061a3a 0%, #0b2b63 100%);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 16px 32px rgba(6, 26, 58, 0.24);
}

.kf-stat-body {
    min-width: 0;
}

.kf-stat-body strong {
    display: block;
    margin-bottom: 8px;
    color: var(--kf-navy);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.kf-stat-body span {
    display: block;
    color: #647087;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

/* Opportunity */
.kf-opportunity {
    padding-top: 56px;
}

.kf-split-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 40px;
    border-radius: var(--kf-radius);
    background: var(--kf-white);
    box-shadow: var(--kf-shadow);
}

.kf-split-card a {
    color: var(--kf-blue);
    font-weight: 800;
}

.kf-split-action {
    display: flex;
    justify-content: flex-end;
}

/* Two column */
.kf-two-col {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 54px;
    align-items: center;
}

.kf-video-box {
    min-height: 360px;
    border-radius: 26px;
    background: var(--kf-light);
    box-shadow: var(--kf-shadow);
    overflow: hidden;
}

/* Services */
.kf-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.kf-service-card {
    min-height: 250px;
    padding: 30px;
    border-radius: var(--kf-radius);
    background: var(--kf-white);
    box-shadow: 0 10px 32px rgba(6, 26, 58, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kf-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--kf-shadow);
}

.kf-service-icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(29, 86, 179, 0.1);
    color: var(--kf-blue);
    font-size: 24px;
    margin-bottom: 18px;
}

.kf-service-card h3 {
    margin: 0 0 12px;
    color: var(--kf-navy);
    font-size: 20px;
    letter-spacing: -0.03em;
}

.kf-service-card p {
    margin: 0;
    color: var(--kf-muted);
    line-height: 1.7;
}

/* Events */
.kf-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.kf-event-card {
    display: block;
    border-radius: var(--kf-radius);
    overflow: hidden;
    background: var(--kf-white);
    box-shadow: 0 10px 32px rgba(6, 26, 58, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kf-event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--kf-shadow);
}

.kf-event-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #0f172a;
}

.kf-event-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.kf-event-card:hover .kf-event-thumb img {
    transform: scale(1.06);
    filter: brightness(0.88);
}

.kf-event-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.72) 100%);
    pointer-events: none;
}

.kf-event-thumb span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
}

.kf-event-body {
    padding: 22px;
}

.kf-event-body small {
    color: var(--kf-blue);
    font-weight: 900;
    text-transform: uppercase;
}

.kf-event-body h3 {
    margin: 10px 0;
    color: var(--kf-navy);
    line-height: 1.35;
}

.kf-event-body p {
    margin: 0;
    color: var(--kf-muted);
    line-height: 1.6;
}

.kf-articles {
    margin-top: 52px;
    padding: 34px;
    border-radius: var(--kf-radius);
    background: var(--kf-light);
}

.kf-articles h3 {
    margin: 0 0 18px;
    color: var(--kf-navy);
}

.kf-article-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.kf-article-list a {
    padding: 16px;
    border-radius: 14px;
    background: var(--kf-white);
    color: var(--kf-navy);
    font-weight: 800;
    border: 1px solid var(--kf-border);
}

/* Partners */
.kf-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.kf-logo-card {
    min-height: 130px;
    padding: 20px 14px;
    border-radius: 18px;
    background: var(--kf-white);
    border: 1px solid var(--kf-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
}

.kf-logo-card strong {
    color: var(--kf-navy);
    font-size: 18px;
}

.kf-logo-card span {
    color: var(--kf-muted);
    font-size: 13px;
    line-height: 1.5;
}

.kf-partner-cta {
    margin-top: 34px;
    padding: 40px;
    border-radius: var(--kf-radius);
    background: var(--kf-navy);
    color: var(--kf-white);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.kf-partner-cta h3 {
    margin: 0 0 12px;
    font-size: 28px;
}

.kf-partner-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

/* Members */
.kf-members {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(6, 26, 58, 0.96) 0%,
            rgba(6, 26, 58, 0.88) 38%,
            rgba(6, 26, 58, 0.48) 68%,
            rgba(6, 26, 58, 0.2) 100%
        ),
        url("/iBoard/Theme/NZFR/images/kfranchise-members.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.kf-members::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 28%, rgba(217, 164, 65, 0.22), transparent 30%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.28) 100%);
    z-index: 0;
}

.kf-members::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(217, 164, 65, 0.16);
    filter: blur(10px);
    z-index: 0;
}

.kf-members .kf-container {
    position: relative;
    z-index: 2;
}

.kf-members-box {
    max-width: 720px;
    color: var(--kf-white);
    padding: 58px 0;
}

.kf-members-box .kf-eyebrow {
    color: var(--kf-gold);
}

.kf-members-box h2 {
    margin: 0 0 18px;
    color: var(--kf-white);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.kf-members-box p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.kf-members-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 34px;
}

.kf-members-points span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.kf-members .kf-btn-light {
    background: #ffffff;
    color: var(--kf-navy);
    border-color: #ffffff;
}

.kf-members .kf-btn-light:hover {
    background: var(--kf-gold);
    border-color: var(--kf-gold);
    color: var(--kf-navy);
}

/* Event Notice */
.kf-event-notice {
    padding: 70px 40px;
    border-radius: 28px;
    text-align: center;
    background: var(--kf-light);
    border: 1px solid var(--kf-border);
}

.kf-event-notice strong {
    display: inline-block;
    margin-top: 12px;
    color: var(--kf-blue);
    font-size: 28px;
}

/* Footer */
.kf-footer {
    background: #041127;
    color: rgba(255, 255, 255, 0.74);
}

.kf-footer-grid {
    padding: 56px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.kf-footer-logo {
    display: inline-block;
    color: var(--kf-white);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 14px;
}

.kf-footer h4 {
    margin: 0 0 14px;
    color: var(--kf-white);
}

.kf-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 9px;
}

.kf-footer a:hover {
    color: var(--kf-gold);
}

.kf-footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.kf-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
}

.kf-modal.is-open {
    display: block;
}

.kf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 24, 0.72);
    backdrop-filter: blur(8px);
}

.kf-modal-panel {
    position: relative;
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    padding: 38px;
    border-radius: 24px;
    background: var(--kf-white);
    box-shadow: var(--kf-shadow);
}

.kf-modal-panel h2 {
    margin: 0 0 14px;
    color: var(--kf-navy);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.05em;
}

.kf-modal-panel p {
    color: var(--kf-muted);
    line-height: 1.75;
}

.kf-modal-panel a {
    color: var(--kf-blue);
    font-weight: 800;
}

.kf-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--kf-light);
    color: var(--kf-navy);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.kf-form {
    display: grid;
    gap: 16px;
}

.kf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kf-form label {
    display: grid;
    gap: 8px;
    color: var(--kf-navy);
    font-weight: 800;
    font-size: 14px;
}

.kf-form input,
.kf-form select,
.kf-form textarea {
    width: 100%;
    border: 1px solid var(--kf-border);
    border-radius: 12px;
    padding: 14px 14px;
    font: inherit;
    color: var(--kf-text);
    outline: none;
}

.kf-form input:focus,
.kf-form select:focus,
.kf-form textarea:focus {
    border-color: var(--kf-blue);
    box-shadow: 0 0 0 4px rgba(29, 86, 179, 0.12);
}

.kf-form-status {
    margin: 0;
    font-weight: 800;
}

.kf-form-status.is-success {
    color: #138a4a;
}

.kf-form-status.is-error {
    color: #b42318;
}

[hidden] {
    display: none !important;
}

/* Scroll reveal */
.kf-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.kf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video */
.kf-video-box {
    width: 100%;
}

.kf-video-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.kf-video-player-wrap {
    position: relative;
    width: 100%;
    min-height: 350px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3, 27, 78, 0.18), rgba(3, 27, 78, 0.78)),
        url("/iBoard/Theme/NZFR/images/who_we_are.jpg") center center / cover no-repeat;
    box-shadow: 0 24px 60px rgba(3, 27, 78, 0.22);
}

.kf-video-player {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: none;
    object-fit: cover;
    background: #000;
}

.kf-video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 36%),
        rgba(3, 27, 78, 0.28);
}

.kf-play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #031b4e;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.kf-video-placeholder strong {
    display: block;
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.kf-video-placeholder p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.65;
}

.kf-video-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.kf-video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kf-video-btn-primary {
    background: #14213d;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(20, 33, 61, 0.2);
}

.kf-video-btn-primary:hover {
    background: #0b162d;
    color: #ffffff;
    transform: translateY(-1px);
}

.kf-video-btn-outline {
    background: #ffffff;
    color: #14213d;
    border-color: rgba(20, 33, 61, 0.18);
}

.kf-video-btn-outline:hover {
    background: #f8fafc;
    border-color: rgba(20, 33, 61, 0.32);
    transform: translateY(-1px);
}

.kf-video-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #9a6a1f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.kf-video-link:hover {
    color: #70470d;
    text-decoration: underline;
}

/* Popup */
.kf-video-modal-dialog {
    max-width: 980px;
    width: calc(100% - 30px);
}

.kf-video-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #0b1220;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.kf-video-modal-header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f172a;
    color: #ffffff;
}

.kf-video-modal-header .modal-title {
    font-size: 17px;
    font-weight: 700;
}

.kf-video-modal-close {
    color: #ffffff;
    text-shadow: none;
    opacity: 0.8;
}

.kf-video-modal-close:hover {
    color: #ffffff;
    opacity: 1;
}

.kf-video-modal-body {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    background: #000000;
}

.kf-popup-placeholder {
    background:
        linear-gradient(135deg, rgba(7, 19, 38, 0.96), rgba(21, 34, 61, 0.95)),
        radial-gradient(circle at top right, rgba(197, 164, 95, 0.25), transparent 36%);
}

/* Partners Section */
.kf-partners-section {
    padding: 80px 20px;
    background: #f5f7fb;
    font-family: Arial, Helvetica, sans-serif;
}

.kf-partners-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.kf-partners-header {
    max-width: 860px;
    margin-bottom: 34px;
}

.kf-partners-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #5b6b88;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kf-partners-header h2 {
    margin: 0 0 18px;
    color: #031b4e;
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.06;
    font-weight: 300;
    letter-spacing: -0.04em;
}

.kf-partners-header p {
    margin: 0;
    max-width: 980px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.8;
}

.kf-partners-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 42px;
}

.kf-partner-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 170px;
    padding: 24px 18px;
    border: 1px solid #dbe2ec;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kf-partner-card:hover {
    transform: translateY(-4px);
    border-color: #bfd0ea;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
    text-decoration: none;
}

.kf-partner-logo {
    position: relative;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.kf-partner-logo img {
    max-width: 130px;
    max-height: 72px;
    object-fit: contain;
    display: block;
}

.kf-partner-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    color: #031b4e;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.kf-partner-info strong {
    display: block;
    margin-bottom: 10px;
    color: #031b4e;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.kf-partner-info span {
    display: block;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.kf-partner-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: center;
    padding: 42px 50px;
    border-radius: 30px;
    background: #031b4e;
    color: #ffffff;
    box-shadow: 0 24px 50px rgba(3, 27, 78, 0.18);
}

.kf-partner-cta-text h3 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 35px);
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.kf-partner-cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.8;
}

.kf-partner-cta-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.kf-partner-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 16px;
    background: #ffffff;
    color: #031b4e;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kf-partner-cta-btn:hover {
    transform: translateY(-2px);
    color: #031b4e;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

/* Responsive */
@media (max-width: 1200px) {
    .kf-partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .kf-hero {
        min-height: auto;
        padding: 96px 0 56px;
        background:
            linear-gradient(
                90deg,
                rgba(245, 247, 251, 0.98) 0%,
                rgba(245, 247, 251, 0.9) 58%,
                rgba(245, 247, 251, 0.62) 100%
            ),
            var(--kf-hero-image);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .kf-hero-grid,
    .kf-two-col {
        grid-template-columns: 1fr;
    }

    .kf-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kf-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .kf-article-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .kf-partner-cta,
    .kf-split-card {
        grid-template-columns: 1fr;
    }

    .kf-split-action {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .kf-nav {
        min-height: 68px;
    }

    .kf-menu-btn {
        display: block;
    }

    .kf-menu {
        position: absolute;
        top: 68px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: var(--kf-white);
        box-shadow: var(--kf-shadow);
    }

    .kf-menu.is-open {
        display: flex;
    }

    .kf-menu a {
        color: var(--kf-navy);
        padding: 14px 12px;
        border-radius: 12px;
    }

    .kf-menu a:hover {
        background: var(--kf-light);
        color: var(--kf-blue);
    }

    .kf-nav-cta {
        display: none;
    }

    .kf-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .kf-stat {
        min-height: 132px;
        padding: 28px 22px;
    }

    .kf-stat:nth-child(2) {
        border-right: 0;
    }

    .kf-stat:nth-child(1),
    .kf-stat:nth-child(2) {
        border-bottom: 1px solid rgba(203, 213, 225, 0.7);
    }
}

@media (max-width: 768px) {
    .kf-video-player-wrap,
    .kf-video-player {
        min-height: 300px;
    }

    .kf-video-placeholder strong {
        font-size: 24px;
    }

    .kf-play-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .kf-partners-section {
        padding: 56px 16px;
    }

    .kf-partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .kf-partner-cta {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .kf-partner-cta-action {
        justify-content: flex-start;
    }

    .kf-partners-header h2 {
        font-size: 40px;
    }

    .kf-event-thumb {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .kf-container {
        width: min(100% - 28px, var(--kf-container));
    }

    .kf-section {
        padding: 70px 0;
    }

    .kf-hero {
        padding: 72px 0 42px;
        background:
            linear-gradient(
                180deg,
                rgba(245, 247, 251, 0.98) 0%,
                rgba(245, 247, 251, 0.92) 52%,
                rgba(245, 247, 251, 0.78) 100%
            ),
            var(--kf-hero-image);
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .kf-hero-copy {
        padding: 26px 0;
    }

    .kf-hero-copy h1 {
        font-size: clamp(40px, 13vw, 62px);
    }

    .kf-hero-desc {
        font-size: 16px;
    }

    .kf-hero-actions {
        display: grid;
    }

    .kf-btn {
        width: 100%;
    }

    .kf-quick-stats {
        grid-template-columns: 1fr;
        margin-top: 44px;
        border-radius: 22px;
    }

    .kf-stat {
        min-height: auto;
        padding: 24px 22px;
        border-right: 0;
        border-bottom: 1px solid rgba(203, 213, 225, 0.7);
    }

    .kf-stat:last-child {
        border-bottom: 0;
    }

    .kf-stat-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 20px;
    }

    .kf-card-grid,
    .kf-service-grid,
    .kf-logo-grid,
    .kf-article-list,
    .kf-footer-grid,
    .kf-form-grid {
        grid-template-columns: 1fr;
    }

    .kf-section-head-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .kf-modal-panel {
        padding: 30px 20px;
    }

    .kf-logo-text {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .kf-video-card {
        padding: 12px;
        border-radius: 18px;
    }

    .kf-video-player-wrap {
        border-radius: 16px;
    }

    .kf-video-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .kf-video-btn,
    .kf-video-link {
        width: 100%;
        justify-content: center;
    }

    .kf-video-placeholder strong,
    .kf-popup-placeholder strong {
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .kf-partners-grid {
        grid-template-columns: 1fr;
    }

    .kf-partner-card {
        min-height: 150px;
    }
}

/* =========================================================
   HERO QUICK STATS - FINAL OVERRIDE
   화면 전체로 퍼지는 문제 수정 + 고급 카드형 디자인
========================================================= */

.kf-hero {
    min-height: auto;
    padding: 105px 0 95px;
}

.kf-hero .kf-container {
    position: relative;
    z-index: 2;
}

.kf-hero-grid {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 620px);
}

.kf-hero-copy {
    max-width: 620px;
    padding: 24px 0 0;
}

.kf-hero-copy h1 {
    max-width: 620px;
    font-size: clamp(48px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.075em;
}

.kf-hero-desc {
    max-width: 590px;
}

/* 핵심 수정: 부모 컨테이너가 깨져도 카드 폭을 직접 제한 */
.kf-quick-stats {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    margin: 74px auto 0 !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;

    padding: 12px !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 28px 70px rgba(6, 26, 58, 0.18) !important;
    backdrop-filter: blur(20px) !important;
    overflow: visible !important;
}

/* 각 카드 */
.kf-stat {
    min-height: 118px !important;
    padding: 24px 22px !important;

    display: flex !important;
    align-items: center !important;
    gap: 16px !important;

    text-align: left !important;
    border-right: 0 !important;
    border-bottom: 0 !important;

    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 10px 26px rgba(6, 26, 58, 0.06) !important;

    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
}

.kf-stat::before {
    display: none !important;
}

.kf-stat:hover {
    transform: translateY(-4px) !important;
    background: #ffffff !important;
    box-shadow: 0 20px 44px rgba(6, 26, 58, 0.14) !important;
}

/* 아이콘 */
.kf-stat-icon {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    border-radius: 17px !important;
    background: linear-gradient(135deg, #061a3a 0%, #0b2b63 100%) !important;
    color: #ffffff !important;
    font-size: 21px !important;
    box-shadow: 0 14px 26px rgba(6, 26, 58, 0.22) !important;
}

/* 텍스트 */
.kf-stat-body {
    min-width: 0 !important;
}

.kf-stat-body strong,
.kf-stat strong {
    display: block !important;
    margin: 0 0 7px !important;

    color: var(--kf-navy) !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
}

.kf-stat-body span {
    display: block !important;
    max-width: 230px !important;

    color: #5f6d83 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

/* 1200 이하 */
@media (max-width: 1200px) {
    .kf-quick-stats {
        width: min(100% - 40px, 1040px) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* 태블릿 */
@media (max-width: 768px) {
    .kf-hero {
        padding: 78px 0 58px;
    }

    .kf-hero-grid {
        width: min(100% - 32px, 720px);
    }

    .kf-quick-stats {
        width: min(100% - 32px, 720px) !important;
        margin-top: 46px !important;
        grid-template-columns: 1fr !important;
        padding: 10px !important;
        border-radius: 24px !important;
    }

    .kf-stat {
        min-height: auto !important;
        padding: 20px 18px !important;
        border-radius: 18px !important;
    }
}

/* 모바일 */
@media (max-width: 520px) {
    .kf-hero-copy h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .kf-hero-actions {
        display: grid;
        gap: 12px;
    }

    .kf-stat-icon {
        flex-basis: 50px !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 15px !important;
        font-size: 19px !important;
    }

    .kf-stat-body strong,
    .kf-stat strong {
        font-size: 16px !important;
    }

    .kf-stat-body span {
        font-size: 12.5px !important;
    }
}

/* =========================================================
   VIDEO POPUP SIZE FIX
========================================================= */

.kf-video-modal .modal-dialog,
.kf-video-modal-dialog {
    width: min(92vw, 860px) !important;
    max-width: 860px !important;
    margin: 30px auto !important;
}

.kf-video-modal-content {
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #0b1220 !important;
}

.kf-video-modal-header {
    min-height: 48px !important;
    padding: 12px 18px !important;
    background: #0f172a !important;
    color: #ffffff !important;
}

.kf-video-modal-header .modal-title {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.kf-video-modal-close {
    color: #ffffff !important;
    opacity: 0.9 !important;
    text-shadow: none !important;
    outline: none !important;
}

.kf-video-modal-body {
    position: relative !important;
    width: 100% !important;
    height: min(72vh, 520px) !important;
    max-height: 520px !important;
    padding: 0 !important;
    background: #000000 !important;
    overflow: hidden !important;
    aspect-ratio: auto !important;
}

/* 핵심: 영상이 모달 안에서만 보이게 제한 */
.kf-popup-video,
#kfPopupVideo {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    background: #000000 !important;
}

/* Placeholder도 같은 크기로 맞춤 */
.kf-popup-placeholder,
#kfPopupPlaceholder {
    position: absolute !important;
    inset: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px !important;
    text-align: center;
    color: #ffffff !important;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 36%),
        linear-gradient(135deg, rgba(7, 19, 38, 0.96), rgba(21, 34, 61, 0.95)) !important;
}

.kf-popup-placeholder span {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #061a3a;
    font-size: 24px;
    font-weight: 900;
}

.kf-popup-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1.25;
    font-weight: 900;
}

.kf-popup-placeholder p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 14px;
    line-height: 1.6;
}

/* 작은 화면 */
@media (max-width: 768px) {
    .kf-video-modal .modal-dialog,
    .kf-video-modal-dialog {
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin: 18px auto !important;
    }

    .kf-video-modal-body {
        height: min(70vh, 460px) !important;
        max-height: 460px !important;
    }
}

@media (max-width: 480px) {
    .kf-video-modal-body {
        height: 62vh !important;
        max-height: 420px !important;
    }

    .kf-video-modal-header {
        padding: 10px 14px !important;
    }

    .kf-video-modal-header .modal-title {
        font-size: 14px !important;
    }
}


/* =========================================================
   NEWS & EVENTS BACKGROUND IMAGE
========================================================= */
#news-events.kf-news-bg {
    position: relative;
    overflow: hidden;
    padding: 110px 0 100px;
    background: #ffffff;
}

/* 선명한 배경 이미지 */
#news-events.kf-news-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image: url("/iBoard/Theme/NZFR/images/latest-updates-bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0.82; /* 이미지 선명도 유지 + 살짝 약하게 */
    z-index: 0;
}

/* 이미지 위에 아주 얇은 흰색 레이어 */
#news-events.kf-news-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(255, 255, 255, 0.24) 35%,
            rgba(255, 255, 255, 0.12) 65%,
            rgba(255, 255, 255, 0.06) 100%
        );

    z-index: 1;
}

#news-events.kf-news-bg .kf-container {
    position: relative;
    z-index: 2;
}

/* 제목 가독성 */
#news-events.kf-news-bg .kf-section-head {
    margin-bottom: 46px;
}

#news-events.kf-news-bg .kf-eyebrow {
    color: #52617a;
}

#news-events.kf-news-bg h2 {
    color: #061a3a;
    text-shadow: 0 12px 30px rgba(255, 255, 255, 0.75);
}

/* 카드가 배경 위에서 더 선명하게 보이도록 */
#news-events.kf-news-bg .kf-event-card {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(6, 26, 58, 0.12);
    backdrop-filter: blur(6px);
}

/* Articles 박스도 배경 위에서 정리 */
#news-events.kf-news-bg .kf-articles {
    background: rgba(245, 247, 251, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 42px rgba(6, 26, 58, 0.10);
    backdrop-filter: blur(10px);
}

/* 모바일 */
@media (max-width: 768px) {
    #news-events.kf-news-bg {
        padding: 78px 0 76px;

        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.88) 48%,
                rgba(255, 255, 255, 0.94) 100%
            ),
            url("/iBoard/Theme/NZFR/images/latest-updates-bg.jpg");

        background-position: center top;
    }
}

/* =========================================================
   OUR SERVICES - MODERN BACKGROUND DESIGN
========================================================= */

.kf-services-bg {
    position: relative;
    overflow: hidden;
    padding: 112px 0 118px;
    background:
        radial-gradient(circle at 12% 18%, rgba(217, 164, 65, 0.16), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(29, 86, 179, 0.14), transparent 30%),
        linear-gradient(180deg, #f8fafd 0%, #eef3f9 100%);
}

.kf-services-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.34) 100%);
    z-index: 0;
}

.kf-services-bg .kf-container {
    position: relative;
    z-index: 2;
}

/* subtle grid background */
.kf-services-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(6, 26, 58, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 26, 58, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
    z-index: 1;
}

/* decorative shapes */
.kf-services-bg-shape {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    z-index: 1;
}

.kf-services-bg-shape-1 {
    width: 420px;
    height: 420px;
    left: -180px;
    top: 80px;
    background: rgba(217, 164, 65, 0.12);
    filter: blur(2px);
}

.kf-services-bg-shape-2 {
    width: 520px;
    height: 520px;
    right: -240px;
    bottom: -160px;
    background: rgba(6, 26, 58, 0.10);
    filter: blur(2px);
}

/* Header */
.kf-services-header {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 46px;
}

.kf-services-header .kf-eyebrow {
    margin-bottom: 14px;
    color: var(--kf-blue);
}

.kf-services-header h2 {
    margin: 0;
    color: var(--kf-navy);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.kf-services-header p {
    margin: 0;
    color: #5f6d83;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 600;
}

/* Grid */
.kf-service-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

/* Card */
.kf-service-card-modern {
    position: relative;
    min-height: 285px;
    padding: 34px 30px 32px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 40px rgba(6, 26, 58, 0.08);
    backdrop-filter: blur(14px);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.kf-service-card-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(6, 26, 58, 0.06), transparent 48%),
        radial-gradient(circle at 90% 12%, rgba(217, 164, 65, 0.18), transparent 26%);
    opacity: 0;
    transition: opacity 0.24s ease;
    pointer-events: none;
}

.kf-service-card-modern::after {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--kf-blue), var(--kf-gold));
    opacity: 0.78;
}

.kf-service-card-modern:hover {
    transform: translateY(-7px);
    border-color: rgba(217, 164, 65, 0.42);
    box-shadow: 0 26px 62px rgba(6, 26, 58, 0.16);
}

.kf-service-card-modern:hover::before {
    opacity: 1;
}

.kf-service-number {
    position: absolute;
    top: 24px;
    right: 26px;
    color: rgba(6, 26, 58, 0.08);
    font-size: 54px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.07em;
}

.kf-service-card-modern .kf-service-icon {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #061a3a 0%, #0b2b63 100%);
    color: #ffffff;
    font-size: 23px;
    box-shadow: 0 16px 34px rgba(6, 26, 58, 0.22);
}

.kf-service-card-modern h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 14px;
    color: var(--kf-navy);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.kf-service-card-modern p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #5f6d83;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1080px) {
    .kf-services-header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kf-service-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .kf-services-bg {
        padding: 76px 0 82px;
    }

    .kf-services-header {
        margin-bottom: 32px;
    }

    .kf-services-header h2 {
        font-size: clamp(36px, 12vw, 52px);
    }

    .kf-services-header p {
        font-size: 15px;
    }

    .kf-service-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .kf-service-card-modern {
        min-height: auto;
        padding: 30px 24px 30px;
        border-radius: 24px;
    }

    .kf-service-number {
        top: 22px;
        right: 22px;
        font-size: 46px;
    }

    .kf-service-card-modern .kf-service-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 21px;
    }
}

/* =========================================================
   UPCOMING EVENTS - CLEAN PREVIEW DESIGN
========================================================= */

.kf-event-preview-section {
    position: relative;
    overflow: hidden;
    padding: 88px 0 92px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.kf-event-preview-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(217, 164, 65, 0.10), transparent 26%),
        radial-gradient(circle at 88% 82%, rgba(29, 86, 179, 0.10), transparent 30%);
    z-index: 0;
}

.kf-event-preview-section .kf-container {
    position: relative;
    z-index: 2;
}

/* Header */
.kf-event-preview-head {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
    gap: 44px;
    align-items: end;
    margin-bottom: 34px;
}

.kf-event-preview-head h2 {
    margin: 0;
    color: var(--kf-navy);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.065em;
}

.kf-event-preview-head > p {
    margin: 0;
    color: #647087;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 600;
}

/* Main Panel */
.kf-event-preview-panel {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 22px 54px rgba(6, 26, 58, 0.10);
}

/* Status Bar */
.kf-event-preview-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 0 30px;
    background:
        linear-gradient(90deg, #061a3a 0%, #0b2b63 72%, #123a7a 100%);
    color: #ffffff;
}

.kf-event-preview-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #d9a441;
    box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.18);
}

.kf-event-preview-status strong {
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.kf-event-preview-status em {
    margin-left: auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

/* Item List */
.kf-event-preview-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kf-event-preview-item {
    position: relative;
    display: flex;
    gap: 16px;
    min-height: 150px;
    padding: 28px 26px;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 253, 0.72));
}

.kf-event-preview-item:last-child {
    border-right: 0;
}

.kf-event-preview-item::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--kf-blue), var(--kf-gold));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kf-event-preview-item:hover::after {
    opacity: 1;
}

.kf-event-preview-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(6, 26, 58, 0.07);
    color: var(--kf-navy);
    font-size: 18px;
}

.kf-event-preview-item strong {
    display: block;
    margin: 2px 0 8px;
    color: var(--kf-navy);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.kf-event-preview-item p {
    margin: 0;
    color: #647087;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
    .kf-event-preview-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kf-event-preview-list {
        grid-template-columns: 1fr;
    }

    .kf-event-preview-item {
        border-right: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    }

    .kf-event-preview-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    .kf-event-preview-section {
        padding: 72px 0 76px;
    }

    .kf-event-preview-panel {
        border-radius: 22px;
    }

    .kf-event-preview-status {
        min-height: auto;
        padding: 20px;
        flex-wrap: wrap;
    }

    .kf-event-preview-status em {
        margin-left: 0;
    }

    .kf-event-preview-item {
        padding: 24px 20px;
    }

    .kf-event-preview-head h2 {
        font-size: clamp(34px, 12vw, 48px);
    }

    .kf-event-preview-head > p {
        font-size: 15px;
    }
}

/* =========================================================
   FOOTER - COMPACT MODERN DESIGN
========================================================= */

.kf-footer-compact {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(217, 164, 65, 0.13), transparent 28%),
        linear-gradient(180deg, #061a3a 0%, #041127 100%);
    color: rgba(255, 255, 255, 0.72);
}

.kf-footer-compact::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.45;
}

.kf-footer-compact .kf-container {
    position: relative;
    z-index: 2;
}

.kf-footer-compact-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 1.7fr;
    gap: 56px;
    padding: 46px 0 38px;
}

.kf-footer-brand-compact {
    max-width: 420px;
}

.kf-footer-logo-compact {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none !important;
}

.kf-footer-brand-compact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.7;
}

.kf-footer-links-compact {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.7fr;
    gap: 34px;
}

.kf-footer-links-compact h4 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.kf-footer-links-compact a {
    display: block;
    width: fit-content;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.66) !important;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.kf-footer-links-compact a:hover {
    color: var(--kf-gold) !important;
    transform: translateX(3px);
}

.kf-footer-bottom-compact {
    position: relative;
    z-index: 2;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(4, 17, 39, 0.46);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 860px) {
    .kf-footer-compact-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 42px 0 34px;
    }

    .kf-footer-links-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .kf-footer-compact-inner {
        padding: 38px 0 30px;
    }

    .kf-footer-links-compact {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .kf-footer-logo-compact {
        font-size: 22px;
    }

    .kf-footer-bottom-compact {
        padding: 14px 0;
        font-size: 12px;
    }
}

/* =========================================================
   FOOTER LOGO IMAGE SIZE
========================================================= */

.kf-footer-compact .kf-footer-logo-compact {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    text-decoration: none !important;
}

.kf-footer-compact .kf-footer-logo-compact .kf-logo-image {
    display: block;
    width: auto;
    height: 54px;
    max-width: 260px;
    object-fit: contain;
}

/* 로고가 너무 밝거나 어두울 때 살짝 정리 */
.kf-footer-compact .kf-footer-logo-compact img {
    vertical-align: middle;
}

/* 모바일 */
@media (max-width: 640px) {
    .kf-footer-compact .kf-footer-logo-compact .kf-logo-image {
        height: 44px;
        max-width: 220px;
    }
}

/* =========================================================
   FRANCHISE BRAND SLIDER - PREMIUM
   Upcoming Events 아래 브랜드 로고 슬라이더
========================================================= */

.kf-franchise-slider {
    /* width: min(1180px, calc(100% - 40px));*/
    margin: 46px auto 0;
    padding: 44px 20px 0;
}

.kf-franchise-slider-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.85fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 28px;
}

.kf-franchise-slider-head .kf-eyebrow {
    margin-bottom: 10px;
    color: var(--kf-blue);
}

.kf-franchise-slider-head h3 {
    margin: 0;
    color: var(--kf-navy);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.kf-franchise-slider-head p {
    margin: 0;
    max-width: 620px;
    color: #56657d;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 700;
}

/* Slider shell */
.kf-franchise-slider-shell {
    position: relative;
    overflow: hidden;
    padding: 24px 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 8% 20%, rgba(217, 164, 65, 0.08), transparent 28%),
        radial-gradient(circle at 94% 76%, rgba(29, 86, 179, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border: 1px solid rgba(219, 226, 236, 0.95);
    box-shadow: 0 24px 60px rgba(6, 26, 58, 0.10);
}

/* Left and right fade */
.kf-franchise-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 4;
    pointer-events: none;
}

.kf-franchise-fade-left {
    left: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.kf-franchise-fade-right {
    right: 0;
    background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

/* Track */
.kf-franchise-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: max-content;
    padding: 6px 22px;
    animation: kfFranchiseSlide 62s linear infinite;
}

.kf-franchise-slider-shell:hover .kf-franchise-track {
    animation-play-state: paused;
}

/* Brand card */
.kf-franchise-card {
    position: relative;
    flex: 0 0 205px;
    height: 168px;

    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;

    padding: 20px 18px 16px;
    border-radius: 26px;
    overflow: hidden;

    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(219, 226, 236, 0.96);
    box-shadow:
        0 12px 26px rgba(6, 26, 58, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    text-align: center;
    text-decoration: none;

    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease;
}

.kf-franchise-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 10%, rgba(217, 164, 65, 0.12), transparent 42%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.kf-franchise-card::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--kf-blue), var(--kf-gold));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.kf-franchise-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 164, 65, 0.55);
    background: #ffffff;
    box-shadow:
        0 24px 50px rgba(6, 26, 58, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    text-decoration: none;
}

.kf-franchise-card:hover::before,
.kf-franchise-card:hover::after {
    opacity: 1;
}

/* Logo */
.kf-franchise-card img {
    position: relative;
    z-index: 2;

    max-width: 165px;
    max-height: 88px;
    width: auto;
    height: auto;

    display: block;
    object-fit: contain;
    margin: 0 auto;

    filter: saturate(1.02) contrast(1.05);
    transition: transform 0.24s ease, filter 0.24s ease;
}

.kf-franchise-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.08);
}

/* Brand name */
.kf-franchise-card strong {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    max-width: 100%;
    margin-top: 14px;
    padding: 0 8px;

    color: var(--kf-navy);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.025em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Small logo correction */
.kf-franchise-card img[src*="Kyochon"],
.kf-franchise-card img[src*="OhKdog"],
.kf-franchise-card img[src*="WaffleUniv"],
.kf-franchise-card img[src*="Seesun"],
.kf-franchise-card img[src*="SengHwal"] {
    transform: scale(1.18);
}

.kf-franchise-card:hover img[src*="Kyochon"],
.kf-franchise-card:hover img[src*="OhKdog"],
.kf-franchise-card:hover img[src*="WaffleUniv"],
.kf-franchise-card:hover img[src*="Seesun"],
.kf-franchise-card:hover img[src*="SengHwal"] {
    transform: scale(1.27);
}

/* Infinite animation */
@keyframes kfFranchiseSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 980px) {
    .kf-franchise-slider {
        width: min(100% - 32px, 760px);
    }

    .kf-franchise-slider-head {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .kf-franchise-card {
        flex-basis: 185px;
        height: 154px;
    }

    .kf-franchise-card img {
        max-width: 148px;
        max-height: 76px;
    }
}

@media (max-width: 640px) {
    .kf-franchise-slider {
        width: min(100% - 28px, 520px);
        margin-top: 34px;
        padding-top: 32px;
    }

    .kf-franchise-slider-shell {
        border-radius: 24px;
        padding: 18px 0;
    }

    .kf-franchise-fade {
        width: 64px;
    }

    .kf-franchise-track {
        gap: 14px;
        padding: 4px 16px;
        animation-duration: 44s;
    }

    .kf-franchise-card {
        flex-basis: 158px;
        height: 136px;
        padding: 18px 14px 14px;
        border-radius: 22px;
    }

    .kf-franchise-card img {
        max-width: 126px;
        max-height: 62px;
    }

    .kf-franchise-card strong {
        margin-top: 10px;
        font-size: 13px;
    }
}

.kf-franchise-card {
    flex: 0 0 220px !important;
    height: 180px !important;
    padding: 16px 16px 14px !important;
}

.kf-franchise-card img {
    max-width: none !important;
    max-height: none !important;

    width: 175px !important;
    height: 105px !important;

    object-fit: contain !important;
    object-position: center center !important;

    display: block !important;
    margin: 0 auto !important;
}

/* 브랜드명 공간 */
.kf-franchise-card strong {
    margin-top: 10px !important;
    font-size: 14px !important;
}

/* 이미지 파일 자체에 여백이 많은 로고들 더 확대 */
.kf-franchise-card img[src*="Kyochon"],
.kf-franchise-card img[src*="OhKdog"],
.kf-franchise-card img[src*="WaffleUniv"],
.kf-franchise-card img[src*="Seesun"],
.kf-franchise-card img[src*="SengHwal"],
.kf-franchise-card img[src*="TousLesJours"],
.kf-franchise-card img[src*="Vons"] {
    transform: scale(1.45) !important;
}

.kf-franchise-card:hover img[src*="Kyochon"],
.kf-franchise-card:hover img[src*="OhKdog"],
.kf-franchise-card:hover img[src*="WaffleUniv"],
.kf-franchise-card:hover img[src*="Seesun"],
.kf-franchise-card:hover img[src*="SengHwal"],
.kf-franchise-card:hover img[src*="TousLesJours"],
.kf-franchise-card:hover img[src*="Vons"] {
    transform: scale(1.55) !important;
}

/* 일반 로고 hover */
.kf-franchise-card:hover img {
    transform: scale(1.08);
}

/* 위의 특정 로고 scale이 hover에서 덮이지 않도록 보정 */
.kf-franchise-card:hover img[src*="Kyochon"],
.kf-franchise-card:hover img[src*="OhKdog"],
.kf-franchise-card:hover img[src*="WaffleUniv"],
.kf-franchise-card:hover img[src*="Seesun"],
.kf-franchise-card:hover img[src*="SengHwal"],
.kf-franchise-card:hover img[src*="TousLesJours"],
.kf-franchise-card:hover img[src*="Vons"] {
    transform: scale(1.55) !important;
}

@media (max-width: 640px) {
    .kf-franchise-card {
        flex: 0 0 176px !important;
        height: 150px !important;
    }

    .kf-franchise-card img {
        width: 138px !important;
        height: 82px !important;
    }

    .kf-franchise-card img[src*="Kyochon"],
    .kf-franchise-card img[src*="OhKdog"],
    .kf-franchise-card img[src*="WaffleUniv"],
    .kf-franchise-card img[src*="Seesun"],
    .kf-franchise-card img[src*="SengHwal"],
    .kf-franchise-card img[src*="TousLesJours"],
    .kf-franchise-card img[src*="Vons"] {
        transform: scale(1.35) !important;
    }
}

/* =========================================================
   HEADER LANGUAGE SELECT - SAFE VERSION
   기존 header / menu / cta 구조를 깨지 않도록 최소 스타일만 적용
========================================================= */

.kf-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.kf-lang-select {
    position: relative;
    flex: 0 0 auto;
}

.kf-lang-select summary {
    list-style: none;
    height: 40px;
    min-width: 82px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(217, 164, 65, 0.38);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.kf-lang-select summary::-webkit-details-marker {
    display: none;
}

.kf-lang-select summary:hover {
    background: rgba(217, 164, 65, 0.12);
    border-color: rgba(217, 164, 65, 0.72);
    color: #ffffff;
}

.kf-lang-globe {
    width: 16px;
    height: 16px;
    color: var(--kf-gold);
    display: inline-flex;
}

.kf-lang-globe svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kf-lang-arrow {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    margin-top: -1px;
}

.kf-lang-select[open] .kf-lang-arrow {
    transform: rotate(180deg);
}

.kf-lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 150px;
    padding: 7px;
    border-radius: 14px;
    background: #061a3a;
    border: 1px solid rgba(217, 164, 65, 0.32);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    z-index: 999;
}

.kf-lang-dropdown a {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.kf-lang-dropdown a strong {
    color: var(--kf-gold);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.kf-lang-dropdown a:hover,
.kf-lang-dropdown a.active {
    background: rgba(217, 164, 65, 0.14);
    color: #ffffff;
}

/* 기존 CTA 크기를 강제로 바꾸지 않음 */
.kf-header-right .kf-nav-cta {
    flex: 0 0 auto;
}

/* Tablet / Mobile */
@media (max-width: 860px) {
    .kf-header-right {
        margin-left: auto;
    }

    .kf-header-right .kf-nav-cta {
        display: none;
    }

    .kf-lang-select summary {
        height: 38px;
        min-width: 76px;
        padding: 0 10px;
    }

    .kf-lang-dropdown {
        right: 0;
    }
}


.kf-video-player-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    background: #050b18;
    border-radius: 18px;
    overflow: hidden;
}

.kf-video-player {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #000;
    border-radius: 18px;
}

.kf-video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, rgba(8, 16, 32, 0.9), rgba(16, 32, 64, 0.85));
    color: #fff;
    cursor: pointer;
    border-radius: 18px;
}

.kf-video-placeholder.is-hidden {
    display: none !important;
}

/* Floating Quick Menu */
.kf-floating-menu {
    position: fixed;
    right: 28px;
    bottom: 34px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kf-floating-item {
    position: relative;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: #09254d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(5, 22, 48, 0.24);
    transition: all 0.25s ease;
}

.kf-floating-item:hover {
    width: 138px;
    justify-content: flex-start;
    padding-left: 20px;
    background: #d9a441;
    color: #061a38;
    text-decoration: none;
    transform: translateX(-4px);
}

.kf-floating-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.kf-floating-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-left: 0;
    transition: all 0.25s ease;
}

.kf-floating-item:hover .kf-floating-text {
    max-width: 80px;
    opacity: 1;
    margin-left: 10px;
}

.kf-floating-top {
    background: #ffffff;
    color: #09254d;
    border: 2px solid #d9a441;
}

.kf-floating-top:hover {
    background: #d9a441;
    color: #061a38;
}

/* Mobile */
@media (max-width: 768px) {
    .kf-floating-menu {
        right: 16px;
        bottom: 18px;
        gap: 10px;
    }

    .kf-floating-item {
        width: 50px;
        height: 50px;
    }

    .kf-floating-item:hover {
        width: 50px;
        padding-left: 0;
        justify-content: center;
        transform: none;
    }

    .kf-floating-text {
        display: none;
    }
}

/* =========================================================
   MOBILE HEADER FIX
   로고 / 언어 / 메뉴 버튼 짤림 방지 + 모바일 메뉴 표시 보정
========================================================= */

@media (max-width: 860px) {
    .kf-header {
        overflow: visible !important;
    }

    .kf-nav {
        position: relative;
        min-height: 68px !important;
        width: 100%;
        gap: 8px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    /* 로고가 너무 넓어서 오른쪽 버튼들을 밀어내는 문제 해결 */
    .kf-logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 132px) !important;
        overflow: hidden !important;
    }

    .kf-logo-image,
    .kf-logo img {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 100% !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* 모바일에서는 오른쪽 영역을 언어 선택만 남김 */
    .kf-header-right {
        order: 2 !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .kf-header-right .kf-nav-cta {
        display: none !important;
    }

    /* 언어 선택 버튼 작게 */
    .kf-lang-select summary {
        height: 38px !important;
        min-width: 64px !important;
        padding: 0 9px !important;
        gap: 5px !important;
        font-size: 12px !important;
    }

    .kf-lang-globe {
        width: 14px !important;
        height: 14px !important;
    }

    .kf-lang-arrow {
        display: none !important;
    }

    .kf-lang-dropdown {
        right: 0 !important;
        top: calc(100% + 9px) !important;
        z-index: 2000 !important;
    }

    /* 메뉴 버튼 */
    .kf-menu-btn {
        order: 3 !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        display: block !important;
        margin-left: 0 !important;
        z-index: 1201 !important;
    }

    /* 모바일 메뉴 */
    .kf-menu {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0 !important;
        right: 0 !important;

        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;

        width: 100% !important;
        margin-left: 0 !important;
        padding: 10px !important;

        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22) !important;
        z-index: 1200 !important;
    }

    .kf-menu.is-open {
        display: flex !important;
    }

    .kf-menu a {
        display: block !important;
        width: 100% !important;
        color: var(--kf-navy) !important;
        padding: 15px 14px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    .kf-menu a:hover,
    .kf-menu a:focus {
        background: var(--kf-light) !important;
        color: var(--kf-blue) !important;
    }
}

@media (max-width: 420px) {
    .kf-container {
        width: calc(100% - 24px) !important;
    }

    .kf-logo {
        max-width: calc(100% - 120px) !important;
    }

    .kf-logo-image,
    .kf-logo img {
        height: 34px !important;
        max-height: 34px !important;
    }

    .kf-menu-btn {
        flex-basis: 42px !important;
        width: 42px !important;
        height: 42px !important;
    }

    .kf-lang-select summary {
        min-width: 58px !important;
        height: 36px !important;
        padding: 0 8px !important;
    }
}

/* =========================================================
   MOBILE MENU FORCE FIX
   모바일 메뉴 클릭 안 되는 문제 강제 해결
========================================================= */

@media (max-width: 860px) {
    .kf-header {
        position: sticky !important;
        overflow: visible !important;
        z-index: 9999 !important;
    }

    .kf-header .kf-container,
    .kf-nav {
        position: relative !important;
        overflow: visible !important;
    }

    .kf-nav {
        min-height: 68px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .kf-logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 122px) !important;
        overflow: hidden !important;
    }

    .kf-logo img,
    .kf-logo-image {
        height: 36px !important;
        max-height: 36px !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .kf-header-right {
        order: 2 !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        z-index: 10002 !important;
    }

    .kf-header-right .kf-nav-cta {
        display: none !important;
    }

    .kf-lang-select summary {
        height: 36px !important;
        min-width: 60px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }

    .kf-lang-arrow {
        display: none !important;
    }

    .kf-menu-btn {
        order: 3 !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;

        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        margin-left: 0 !important;

        border: 1px solid rgba(255, 255, 255, 0.28) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 12px !important;
        cursor: pointer !important;

        z-index: 10003 !important;
        pointer-events: auto !important;
    }

    .kf-menu-btn span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        margin: 3px 0 !important;
        background: #ffffff !important;
        border-radius: 999px !important;
        pointer-events: none !important;
    }

    .kf-menu {
        position: absolute !important;
        top: 76px !important;
        left: 0 !important;
        right: 0 !important;

        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;

        background: #ffffff !important;
        border-radius: 18px !important;
        box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28) !important;

        z-index: 10001 !important;
    }

    .kf-menu.is-open,
    body.kf-mobile-menu-open .kf-menu {
        display: flex !important;
    }

    .kf-menu a {
        display: block !important;
        width: 100% !important;
        padding: 15px 14px !important;
        color: #061a3a !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
        text-decoration: none !important;
    }

    .kf-menu a:hover,
    .kf-menu a:focus {
        background: #f5f7fb !important;
        color: #1d56b3 !important;
    }

    .kf-menu-btn.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .kf-menu-btn.is-open span:nth-child(2) {
        opacity: 0 !important;
    }

    .kf-menu-btn.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }
}

/* Contact / Lead Modal Fix */
#kfLeadModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#kfLeadModal.is-open {
    display: flex;
}

#kfLeadModal .kf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 40, 0.72);
    backdrop-filter: blur(8px);
}

#kfLeadModal .kf-modal-panel {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-width: 560px;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 48px);
    overflow: visible;
    background: #ffffff;
    border-radius: 28px;
    padding: 42px 46px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

#kfLeadModal .kf-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #f4f6fb;
    color: #061a3a;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

#kfLeadModal .kf-modal-step {
    display: block;
}

#kfLeadModal .kf-eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: #6d7a91;
    text-transform: uppercase;
}

#kfLeadModal h2 {
    margin: 0 0 24px;
    max-width: 460px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 500;
    color: #061a3a;
}

#kfLeadModal p {
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.75;
    color: #53627a;
}

#kfLeadModal p a {
    color: #1557b7;
    font-weight: 800;
    text-decoration: none;
}

#kfLeadModal .kf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 14px;
    background: #061a3a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

body.kf-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    #kfLeadModal {
        padding: 18px;
    }

    #kfLeadModal .kf-modal-panel {
        width: 100%;
        padding: 34px 26px 30px;
        border-radius: 24px;
    }

    #kfLeadModal h2 {
        font-size: 32px;
    }

    #kfLeadModal .kf-modal-close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 26px;
    }
}

/* =========================================================
   FRANCHISE BRAND TITLE + VIEW ALL BUTTON FIX
========================================================= */

.kf-franchise-slider-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin-bottom: 28px !important;
}

.kf-franchise-slider-head h3 {
    margin: 0 !important;
    color: var(--kf-navy) !important;
    font-size: clamp(34px, 4vw, 48px) !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    letter-spacing: -0.06em !important;
}

.kf-franchise-view-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 20px;

    border-radius: 999px;
    background: rgba(29, 86, 179, 0.08);
    border: 1px solid rgba(29, 86, 179, 0.22);

    color: var(--kf-blue) !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none !important;

    transition: all 0.22s ease;
}

.kf-franchise-view-link:hover {
    background: var(--kf-navy);
    border-color: var(--kf-navy);
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

@media (max-width: 640px) {
    .kf-franchise-slider-head {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    .kf-franchise-slider-head h3 {
        font-size: clamp(32px, 11vw, 44px) !important;
    }

    .kf-franchise-view-link {
        min-height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }
}
