.rhfm-site-header,
.rhfm-site-header *,
.rhfm-site-footer,
.rhfm-site-footer * {
    box-sizing: border-box;
}

.rhfm-site-header {
    position: relative;
    z-index: 999;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .97);
    color: #0f172a;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
    backdrop-filter: blur(12px);
}

.rhfm-site-header.rhfm-is-sticky {
    position: sticky;
    top: 0;
}

body.admin-bar .rhfm-site-header.rhfm-is-sticky {
    top: 32px;
}

.rhfm-header-inner {
    display: flex;
    width: min(100%, 1180px);
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.rhfm-brand {
    flex: 0 0 auto;
    margin: 0;
    color: #1d4ed8 !important;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-decoration: none !important;
    white-space: nowrap;
}

.rhfm-primary-nav {
    min-width: 0;
}

.rhfm-primary-nav ul,
.rhfm-footer-nav ul {
    display: flex;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 24px;
    list-style: none !important;
}

.rhfm-primary-nav li,
.rhfm-footer-nav li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.rhfm-primary-nav a {
    display: block;
    padding: 10px 0;
    color: #334155 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
    white-space: nowrap;
}

.rhfm-primary-nav a:hover,
.rhfm-primary-nav a:focus-visible {
    color: #1d4ed8 !important;
}

.rhfm-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.rhfm-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: #0f172a;
}

.rhfm-site-footer {
    width: 100%;
    margin: 0;
    padding: 46px 24px 38px;
    background: #0f172a;
    color: #cbd5e1;
}

.rhfm-footer-inner {
    width: min(100%, 1180px);
    margin: 0 auto;
    text-align: center;
}

.rhfm-footer-title {
    margin: 0 !important;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.025em;
}

.rhfm-footer-tagline {
    margin: 8px 0 0 !important;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}

.rhfm-footer-nav {
    margin-top: 24px;
}

.rhfm-footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.rhfm-footer-nav a {
    color: #e2e8f0 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none !important;
}

.rhfm-footer-nav a:hover,
.rhfm-footer-nav a:focus-visible {
    color: #93c5fd !important;
}

.rhfm-copyright-text {
    margin: 25px 0 0 !important;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, .2);
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .rhfm-header-inner {
        min-height: 64px;
        flex-wrap: wrap;
        gap: 0;
        padding: 0 18px;
    }

    .rhfm-menu-toggle {
        display: block;
    }

    .rhfm-primary-nav {
        display: none;
        width: 100%;
        padding: 8px 0 17px;
        order: 3;
    }

    .rhfm-primary-nav.is-open {
        display: block;
    }

    .rhfm-primary-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .rhfm-primary-nav a {
        padding: 11px 12px;
        border-radius: 9px;
        background: #f8fafc;
        white-space: normal;
    }
}

@media (max-width: 782px) {
    body.admin-bar .rhfm-site-header.rhfm-is-sticky {
        top: 46px;
    }
}

@media (max-width: 520px) {
    .rhfm-primary-nav ul {
        grid-template-columns: 1fr;
    }

    .rhfm-brand {
        font-size: 19px;
    }

    .rhfm-site-footer {
        padding-right: 18px;
        padding-left: 18px;
    }
}


/* KakaoTalk channel section */
.rhfm-kakao-section,
.rhfm-kakao-section * {
    box-sizing: border-box;
}

.rhfm-kakao-section {
    width: 100%;
    margin: 0;
    padding: 64px 24px;
    background: #fff8d9;
    color: #111827;
}

.rhfm-kakao-inner {
    display: grid;
    width: min(100%, 1040px);
    margin: 0 auto;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    padding: 38px 42px;
    border: 1px solid #f1d86a;
    border-radius: 26px;
    background: #fffdf3;
    box-shadow: 0 18px 50px rgba(78, 62, 8, .08);
}

.rhfm-kakao-logo-wrap {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border: 1px solid #ead58a;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.rhfm-kakao-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rhfm-kakao-eyebrow {
    margin: 0 0 10px !important;
    color: #8a6510;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.rhfm-kakao-copy h2 {
    margin: 0 !important;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.rhfm-kakao-description {
    max-width: 700px;
    margin: 15px 0 0 !important;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.rhfm-kakao-search {
    display: inline-flex;
    margin: 18px 0 0 !important;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e7cb5f;
    border-radius: 999px;
    background: #fff5b8;
    color: #5f4707;
    font-size: 14px;
}

.rhfm-kakao-search strong {
    color: #111827;
    font-weight: 900;
}

.rhfm-kakao-privacy {
    margin: 14px 0 0 !important;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.rhfm-kakao-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.rhfm-kakao-actions a {
    display: inline-flex;
    min-height: 46px;
    padding: 11px 18px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
    text-decoration: none !important;
}

.rhfm-kakao-primary {
    border: 1px solid #f2d100;
    background: #fee500;
    color: #191919 !important;
}

.rhfm-kakao-primary:hover,
.rhfm-kakao-primary:focus-visible {
    background: #f6dc00;
}

.rhfm-kakao-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155 !important;
}

.rhfm-kakao-secondary:hover,
.rhfm-kakao-secondary:focus-visible {
    border-color: #94a3b8;
    background: #f8fafc;
}

.rhfm-footer-kakao {
    margin: 18px 0 0 !important;
}

.rhfm-footer-kakao a {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid rgba(254, 229, 0, .38);
    border-radius: 999px;
    background: rgba(254, 229, 0, .08);
    color: #fde68a !important;
    font-size: 13px;
    text-decoration: none !important;
}

@media (max-width: 760px) {
    .rhfm-kakao-section {
        padding: 40px 18px;
    }

    .rhfm-kakao-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 26px 22px;
        text-align: center;
    }

    .rhfm-kakao-logo-wrap {
        width: 132px;
        height: 132px;
        margin: 0 auto;
        border-radius: 22px;
    }

    .rhfm-kakao-description {
        font-size: 15px;
    }

    .rhfm-kakao-search {
        justify-content: center;
    }

    .rhfm-kakao-actions {
        justify-content: center;
    }

    .rhfm-kakao-actions a {
        width: 100%;
    }
}
