/* 여기에 작업 또는 수정할 당신의 css style을 설정하세요. (customizations) */

/* ============================================================
   Web Font — Noto Sans KR (본고딕)
   ============================================================ */
@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');

body, input, textarea, select, button, h1, h2, h3, h4, h5, h6 {
    font-family: 'NanumSquare', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
}

/* ============================================================
   Header Auth Buttons — Clean Login / Sign Up
   ============================================================ */

/* Top bar auth nav alignment */
.hd-auth-nav {
    display: flex !important;
    align-items: center;
    gap: 4px;
}
.hd-auth-nav li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Login text link */
.hd-btn-login {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.85) !important;
    letter-spacing: 0.3px;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
}
.hd-btn-login:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

/* Sign Up pill button */
.hd-btn-signup {
    display: inline-block;
    padding: 5px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 0.3px;
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 20px;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
}
.hd-btn-signup:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.75);
    color: #fff !important;
}

/* Top bar plain links (My Page, Logout, Admin) */
.hd-top-link {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.7) !important;
    border-radius: 4px;
    text-decoration: none !important;
    transition: color 0.2s;
    white-space: nowrap;
}
.hd-top-link:hover {
    color: #fff !important;
}

/* More / ellipsis button */
.hd-more-wrap { margin-left: 4px; }
.hd-more-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: rgba(255,255,255,0.6) !important;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
}
.hd-more-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

/* ============================================================
   Header Middle — User Icon Buttons
   ============================================================ */

/* Wrapper for icon buttons */
.hd-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s;
    position: relative;
    color: inherit;
}
.hd-icon-btn:hover {
    background: rgba(128,128,128,0.12);
}

/* User circle icon */
.hd-user-icon {
    font-size: 22px;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}
.hd-icon-btn:hover .hd-user-icon { color: #fff; }

/* User nick text */
.hd-user-nick {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Chevron */
.hd-caret {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-left: -2px;
}

/* User dropdown */
.hd-user-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.2s;
}
.hd-user-toggle:hover { background: rgba(128,128,128,0.12); }
.hd-user-toggle::after { display: none !important; } /* hide default bs caret */

/* Notification icon buttons */
.hd-notif-btn {
    padding: 6px 8px;
    font-size: 17px;
    color: rgba(255,255,255,0.65) !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none !important;
    position: relative;
}
.hd-notif-btn:hover {
    color: #fff !important;
    background: rgba(128,128,128,0.12);
}

/* Notification badge */
.hd-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    background: #e53935;
    color: #fff;
}

/* User dropdown menu */
.hd-user-dropdown {
    min-width: 200px;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    margin-top: 6px !important;
}

/* Show h6 labels under header icon buttons */
.header-title-btn h6 {
    display: block !important;
    font-size: 10px;
    font-weight: 500;
    margin: 2px 0 0 0;
    color: inherit;
    line-height: 1;
}

/* header-title-btn-wrap layout */
.header-title-btn-wrap {
    display: flex !important;
    align-items: center;
    gap: 4px;
}
.header-title-btn-wrap .btn-group {
    display: inline-flex;
    align-items: center;
}

/* Show badges on header icon buttons */
.header-title-btn .badge { display: inline-block !important; }

/* ============================================================
   Unified header background — top bar + logo row + nav bar
   all the same single dark colour (matches .nav-wrap)
   ============================================================ */
/* ============================================================
   UNIFIED HEADER — single dark background across all 3 rows
   Using !important + high-specificity selectors to override theme
   ============================================================ */
html body .header-wrap .top-header,
html body .header-wrap .header-title,
html body .top-header,
html body .header-title,
.header-wrap > .top-header,
.header-wrap > .header-title {
    background-color: #1a1d2b !important;
    background-image: none !important;
    background: #1a1d2b !important;
}

/* Top-bar links/text colour on dark background */
html body .top-header,
html body .top-header a { color: rgba(255,255,255,0.8) !important; }

/* Remove ALL borders and shadows from top-bar */
html body .top-header {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Also unify nav-wrap to same colour */
html body .nav-wrap,
html body .nav-wrap .navbar {
    background-color: #1a1d2b !important;
    background: #1a1d2b !important;
}

/* Search input on dark background */
.header-title .sch_stx,
.header-title input[type=text] {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.header-title .sch_stx::placeholder,
.header-title input[type=text]::placeholder { color: rgba(255,255,255,0.45) !important; }

/* ============================================================
   Nav — remove separator lines & bottom border
   ============================================================ */
/* Only hide actual divider <li> elements, NOT the whole nav-right */
.nav-wrap li.nav-divider { display: none !important; }

/* Remove any border-left used as the | separator */
.nav-wrap .navbar-right { border-left: none !important; }
.nav-wrap .nav-right    { border-left: none !important; }

/* Remove ALL borders / shadows from nav and header */
html body .nav-wrap,
html body .nav-wrap .navbar,
html body .nav-wrap .sidebar-left,
html body .header-wrap,
html body .header-wrap .top-header,
html body .header-wrap .header-title {
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove the visual line between nav-bar and headline ticker */
html body .main-section-wide,
html body .main-section-wide .main-headline,
html body .main-contents,
html body .main-wrap {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Kill the ::after / ::before pseudo-element lines */
html body .nav-wrap::after,
html body .nav-wrap::before,
html body .navbar::after,
html body .navbar::before { display: none !important; border: none !important; }

/* ============================================================
   Nav-bar right — Login / My Reactions / Messages icons
   ============================================================ */
.nav-right-icons {
    gap: 2px;
    flex-shrink: 0;
}
.nav-right-icons .header-title-btn,
.nav-right-icons .nav-right-btn {
    color: rgba(255,255,255,0.8) !important;
    text-align: center;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
}
.nav-right-icons .header-title-btn:hover,
.nav-right-icons .nav-right-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}
.nav-right-icons .header-title-btn h6,
.nav-right-icons h6 {
    display: block !important;
    font-size: 10px !important;
    margin: 2px 0 0 0 !important;
    color: inherit !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

/* ============================================================
   Dark mode moon/sun icon in thn-end — icon only, hide text
   Eyoom JS auto-injects <span>Dark Mode</span>/<span>Light Mode</span>
   into any .dark-mode-btn; we hide that span here.
   ============================================================ */
.hd-darkmode-icon {
    font-size: 15px;
    padding: 5px 8px !important;
}
.hd-darkmode-icon i { pointer-events: none; }
/* Hide "Dark Mode" / "Light Mode" label — Eyoom JS injects a <span> into
   every .dark-mode-btn; collapse it to zero size so only the icon shows */
.dark-mode-btn span {
    font-size: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
}
.hd-darkmode-icon span,
.hd-darkmode-item span { font-size: 0 !important; width: 0 !important; overflow: hidden !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
    .hd-user-nick { display: none; }
    .hd-caret { display: none; }
}
@media (max-width: 991px) {
    .hd-auth-nav { display: none !important; }
}





/* ============================================================


   Width alignment fix: nav-wrap navbar <-> main-headline ticker


   The navbar inside .nav-wrap > .container appears full-width


   because .navbar has padding:0. The .main-headline ticker


   inside .main-section-wide > .container was constrained by


   Bootstrap container padding (~15px each side), making it


   appear narrower. This fix removes horizontal padding from


   that specific container so the ticker bar width matches the


   navbar visually.


   ============================================================ */


/* full-width: container removed from index.html.php */
.main-headline {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Force main slider to full width */
.main-section-wide [class*="maga005-ms-wrap"],
.main-section-wide .eb-latest-wrap,
.main-section-wide .eb_latest_wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.maga005-ms-wrap .ms-img,
.maga005-ms-wrap .ms-item-in {
    background-size: cover !important;
    background-position: center !important;
}

.maga005-ms-wrap .swiper-pb-wrap {
    width: 100% !important;
}





/* Cancel the mobile-only negative margin rule from style.css


   (no longer needed since we handle width at container level) */


@media (max-width: 576px) {
    .main-headline { margin: 0; }
}




/* ============================================================
   Header — Login / Sign Up plain text links (logged-out state)
   These live in header-title-btn-wrap beside the dark toggle
   ============================================================ */
.hd-plain-link {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.82) !important;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: color 0.2s;
}
.hd-plain-link:hover { color: #fff !important; }

.hd-plain-signup {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: color 0.2s;
}
.hd-plain-signup:hover { color: #fff !important; }

/* ============================================================
   Header — Dark mode toggle switch in header-title-btn-wrap
   ============================================================ */
.hd-darkmode-toggle {
    display: inline-flex !important;
    align-items: center;
    margin-left: 6px;
}
.hd-darkmode-toggle .toggle {
    margin: 0 !important;
}

/* ============================================================
   Nav — Remove vertical separator line before nav-right items
   ============================================================ */
/* Hide the leading pipe/border on the nav-right section */
.nav-wrap .navbar-right,
.nav-wrap .nav-right {
    border-left: none !important;
}
.nav-wrap .navbar-right::before,
.nav-wrap .nav-right::before {
    display: none !important;
}
/* Remove separator on darkmode-menu and any bordered nav item */
.nav-wrap .darkmode-menu,
.nav-wrap li.nav-divider {
    display: none !important;
}

/* ============================================================
   Page title section — clean black bar (no extra borders)
   ============================================================ */
.page-title-wrap {
    border-top: none !important;
    border-bottom: none !important;
}

/* ============================================================
   Logo version switching
   logo_light.svg = for light backgrounds (dark text/icons)
   logo_dark.svg  = for dark  backgrounds (light text/icons)
   ============================================================ */

/* Logo version switching */
.logo-light-ver { display: block !important; }
.logo-dark-ver  { display: none  !important; }

/* When header has dark background, switch to dark logo */
#header.header-dark .logo-light-ver,
#header.dark .logo-light-ver,
.header-dark .logo-light-ver { display: none  !important; }
#header.header-dark .logo-dark-ver,
#header.dark .logo-dark-ver,
.header-dark .logo-dark-ver  { display: block !important; }

/* ============================================================
   Footer — always dark blue (light + dark mode unified #283457)
   ============================================================ */
html body .footer-cont-info,
html body.dark-mode .footer-cont-info {
    background-color: #283457 !important;
    background: #283457 !important;
    border-top: 5px solid #3f4678 !important;
}
html body .footer-cont-info .footer-info {
    border-bottom-color: #374778 !important;
}
html body .footer-cont-info .footer-info strong { color: #fff !important; }
html body .footer-cont-info .footer-info span   { color: #b5b5b5 !important; }
html body .footer-cont-info .footer-info span.info-divider { color: #374778 !important; }
html body .footer-cont-info .footer-info a      { color: #b5b5b5 !important; }
html body .footer-cont-info .footer-info a:hover{ color: #fff !important; }
html body .footer-bottom {
    background-color: #1e2540 !important;
    background: #1e2540 !important;
    border-bottom-color: #374778 !important;
}
html body .footer-bottom .footer-nav a,
html body .footer-bottom .footer-right-nav a {
    color: rgba(255,255,255,0.65) !important;
}
html body .footer-bottom .footer-nav a:hover,
html body .footer-bottom .footer-right-nav a:hover {
    color: #fff !important;
}
html body .footer-copyright {
    background-color: #17171a !important;
    background: #17171a !important;
    color: #656565 !important;
}
html body .footer-copyright .text-black {
    color: #b5b5b5 !important;
}

/* ============================================================
   EB Slider maga005_main_2 — fit height to image, no gray space
   ============================================================ */
[class^="ebs-maga005-m2-wrap-"],
[class*=" ebs-maga005-m2-wrap-"] {
    background: transparent !important;
}
.ebs-maga005-m2 .swiper,
.ebs-maga005-m2 .swiper-wrapper,
.ebs-maga005-m2 .swiper-slide {
    height: auto !important;
    background: transparent !important;
}
.ebs-maga005-m2 .swiper-slide img {
    height: auto !important;
    width: 100% !important;
    display: block !important;
}

/* ============================================================
   Dark mode toggle icon — always visible on nav bar
   Default state = same colour as hover state (white/near-white)
   ============================================================ */
.darkmode-menu .dark-mode-btn,
.darkmode-menu .dark-mode-btn i,
.nav-wrap .darkmode-menu .nav-link,
.nav-wrap .darkmode-menu .nav-link i {
    color: rgba(255,255,255,0.85) !important;
    opacity: 1 !important;
}
.darkmode-menu .dark-mode-btn:hover,
.darkmode-menu .dark-mode-btn:hover i {
    color: #fff !important;
}

/* ============================================================
   Light mode — page content text color fix
   .basic-body-main 하위 모든 요소 (provision, privacy 등)
   ============================================================ */
html body:not(.dark-mode) .basic-body-main *,
html body:not(.dark-mode) .contents-box-inner * {
    color: #333 !important;
}
html body:not(.dark-mode) .basic-body-main h1,
html body:not(.dark-mode) .basic-body-main h2,
html body:not(.dark-mode) .basic-body-main h3,
html body:not(.dark-mode) .basic-body-main h4,
html body:not(.dark-mode) .basic-body-main h5,
html body:not(.dark-mode) .basic-body-main h6,
html body:not(.dark-mode) .basic-body-main strong {
    color: #111 !important;
}
html body:not(.dark-mode) .basic-body-main a,
html body:not(.dark-mode) .contents-box-inner a {
    color: #1a56c4 !important;
}
html body:not(.dark-mode) .basic-body-main a:hover {
    color: #0a3d99 !important;
}
