@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

/* ==========================================================================
   Kolive Design System v2.0 (Theme: kolive_new)
   ========================================================================== */

:root {
    /* Colors */
    --primary: #2C3E50;
    /* Dark Navy */
    --primary-light: #34495E;
    --accent: #3498DB;
    /* Soft Blue */
    --accent-hover: #2980B9;

    --bg-body: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-light: #F3F4F6;

    --text-main: #111827;
    --text-sub: #4B5563;
    --text-muted: #9CA3AF;

    --border: #E5E7EB;

    /* Spacing & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* Reset & Base */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-sub);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.btn-sm {
    font-size: 13px;
    padding: 6px 12px;
}

/* Components: Header */
.kol-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.kol-header-top {
    height: 64px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.kol-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
}

.kol-logo svg {
    border-radius: 6px;
}

.kol-header-sch {
    flex: 1;
    max-width: 480px;
    margin: 0 40px;
}

.sch-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 24px;
    padding: 2px 4px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.sch-input-wrap:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1);
}

.sch-input-wrap input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.sch-input-wrap button {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.sch-input-wrap button:hover {
    transform: scale(1.05);
}

.kol-header-actions .btn-all-services-icon {
    background: none;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.kol-header-actions .btn-all-services-icon:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* Shortcuts Slim */
.kol-header-shortcuts-slim {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
}

.shortcut-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
    white-space: nowrap;
}

.shortcut-item:hover {
    color: var(--primary);
}

.shortcut-item i {
    color: var(--accent);
    font-size: 14px;
}

/* Components: Footer */
.kol-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    margin-top: 80px;
    color: var(--text-main);
    display: block !important;
    position: relative;
    z-index: 10;
}

.kol-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.kol-footer-brand .kol-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kol-footer-brand .desc {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.kol-social {
    display: flex;
    gap: 15px;
}

.kol-social a {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
}

.kol-footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.kol-footer-links ul li {
    margin-bottom: 12px;
}

.kol-footer-links ul li a {
    font-size: 14px;
    color: var(--text-sub);
}

.kol-footer-links ul li a:hover {
    color: var(--accent);
}

.kol-footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* Page: Home (Dio Style) */
.home-hero {
    background-color: #F8FAFC;
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
    margin-bottom: 60px;
}

.home-hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #111;
    letter-spacing: -1px;
}

.home-hero p {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 32px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title a {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-img {
    height: 160px;
    background: #eee;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-body {
    padding: 20px;
}

.feature-tag {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.feature-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.5;
}

/* Feed Layout (Mixed) */
.feed-section {
    margin-bottom: 80px;
}

.feed-layout {
    display: flex;
    gap: 32px;
}

.feed-highlight {
    flex: 7;
}

.feed-sidebar {
    flex: 5;
}

/* Highlight Card */
.hl-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: white;
    height: 420px;
    box-shadow: var(--shadow-md);
}

.hl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hl-card:hover .hl-img {
    transform: scale(1.05);
}

.hl-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 32px;
}

.hl-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hl-meta {
    font-size: 14px;
    opacity: 0.9;
}

/* List Items */
.feed-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px 0;
}

.feed-row {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.feed-row:last-child {
    border-bottom: none;
}

.feed-row:hover {
    background: var(--bg-light);
}

.feed-row-rank {
    font-weight: 700;
    color: var(--accent);
    width: 24px;
    font-size: 16px;
    margin-right: 12px;
}

.feed-row-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.feed-row-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feed-layout {
        flex-direction: column;
    }

    .header-gnb {
        display: none;
    }

    /* Mobile Menu implementation needed later */

}

/* Utilities */
.sound_only {
    display: inline-block !important;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    border: 0;
    overflow: hidden;
}

/* ==========================================================================
   Board Layout & Sidebar (Added for Subpages)
   ========================================================================== */

/* Subpage Layout Container */
#wrapper>.container {
    display: flex !important;
    gap: 40px !important;
    align-items: flex-start !important;
    padding-top: 40px;
    padding-bottom: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Content Area */
#main_content {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

/* Sidebar Styling */
#aside {
    width: 300px;
    /* var(--sidebar-width) replacement */
    flex-shrink: 0;
    display: block;
}

.aside_widget {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.aside_title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.aside_links li {
    margin-bottom: 10px;
}

.aside_links a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-sub);
    transition: all 0.2s;
    background: var(--bg-light);
}

.aside_links a:hover {
    background: var(--primary);
    color: white;
}

/* Board Table Styling (tbl_head01) */
.tbl_head01 {
    margin-bottom: 20px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.tbl_head01 table {
    width: 100%;
    border-top: 2px solid var(--primary);
}

.tbl_head01 th {
    padding: 16px 10px;
    border-bottom: 1px solid var(--border);
    background: #F8FAFC;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
}

.tbl_head01 td {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
    color: var(--text-sub);
    font-size: 14px;
    text-align: center;
}

.tbl_head01 td.td_subject {
    text-align: left;
}

.tbl_head01 tr:hover td {
    background: #fafafa;
}

/* Responsive Board Layout */
@media (max-width: 991px) {
    #wrapper>.container {
        flex-direction: column !important;
        padding-left: 16px;
        padding-right: 16px;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    #wrapper {
        min-width: 0 !important;
    }

    #aside {
        width: 100% !important;
        margin-top: 40px;
    }

    /* Global Responsive Reset */
    .container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    #ft,
    #hd {
        min-width: 0 !important;
        width: 100% !important;
    }

    #hd_wrapper,
    #gnb {
        min-width: 0 !important;
        width: 100% !important;
    }

    .gnb_wrap {
        overflow-x: auto;
        white-space: nowrap;
    }

    #gnb ul {
        display: inline-block;
        white-space: nowrap;
    }

    img {
        max-width: 100% !important;
        height: auto;
    }

    #main_content {
        width: 100%;
        padding: 0;
    }

    .tbl_head01 {
        overflow-x: auto;
        display: block;
    }

    .frm_input {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Page: Login (MB Skin) */
#mb_login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 40px 0;
}

.mbskin_box {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.mbskin_box h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mb_log_cate {
    display: none; /* Clean up old UI */
}

#login_fs {
    border: none;
    padding: 0;
    margin: 0;
}

#login_fs .frm_input {
    width: 100%;
    height: 52px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

#login_fs .frm_input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.05);
}

#login_fs .btn_submit {
    width: 100%;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

#login_fs .btn_submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

#login_info {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-sub);
}

.social_login_wrap {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

/* Shop List Refinement (Anti-Frantic) */
#sct {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    padding: 20px 0 !important;
}

.sct_li {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

.sct_li:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.sct_img {
    aspect-ratio: 1/1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sct_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sct_txt {
    padding: 20px;
}

.sct_txt .sct_subject {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
}

.sct_cost {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.sct_icon {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.sct_icon img {
    height: 16px;
}

@media (max-width: 1024px) {
    #sct { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    #sct { grid-template-columns: repeat(2, 1fr) !important; }
}

/* All Services Overlay Grid Fix */
.service-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px 0;
}

.mega-column h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.mega-column ul li {
    margin-bottom: 15px;
}

.mega-column .m-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    display: block;
    margin-bottom: 8px;
}

.mega-column .m-small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.mega-column .m-small a {
    font-size: 13px;
    color: #64748b;
}

.mega-column .m-small a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Personalization UI Styles */
.personalization-box {
    background: #f8fbff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e1e8f0;
}
.personalization-box h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 18px;
}
.personal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.slider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.slider-item span {
    width: 80px;
    font-size: 13px;
    color: #555;
}
.slider-item input[type="range"] {
    flex: 1;
}
.slider-item output {
    width: 30px;
    font-size: 13px;
    font-weight: bold;
    color: var(--primary);
    text-align: right;
}
.lifestage-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 768px) {
    .personal-grid {
        grid-template-columns: 1fr;
    }
}

/* GNB Submenu Styles */
.kol-gnb-item {
    position: relative;
    height: 100%;
}
.gnb-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    border-top: 2px solid var(--primary);
    display: none;
    flex-direction: column;
    padding: 15px 0;
    z-index: 1100;
}
.kol-gnb-item:hover .gnb-submenu {
    display: flex;
}
.gnb-sub-group {
    padding: 10px 20px;
    border-bottom: 1px solid #f9f9f9;
}
.gnb-sub-group:last-child {
    border-bottom: none;
}
.gnb-sub-group .sub-title {
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}
.gnb-small-list {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}
.gnb-small-list a {
    padding: 4px 0 !important;
    font-size: 13px !important;
    color: #777 !important;
}
.gnb-small-list a:hover {
    color: var(--primary) !important;
    background: none !important;
}
.all-services-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.all-services-overlay.active {
    display: flex;
}
.overlay-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: fadeInScale 0.3s ease-out;
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.overlay-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.overlay-header h2 { font-size: 20px; margin: 0; }
.btn-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.overlay-body { padding: 30px; overflow-y: auto; }

.service-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.mega-column h3 { font-size: 16px; margin-bottom: 15px; border-bottom: 2px solid var(--primary); padding-bottom: 5px; }
.mega-column ul { list-style: none; padding: 0; }
.mega-column li { margin-bottom: 15px; }
.m-title { font-weight: 700; color: #333; font-size: 14px; display: block; margin-bottom: 5px; }
.m-small { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.m-small a { font-size: 12px; color: #888; }
.m-small a:hover { color: var(--primary); }

/* Slim Shortcut Menu (Top Bar) */
.kol-header-shortcuts-slim {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
}
.kol-header-shortcuts-slim .shortcut-scroll {
    display: flex;
    justify-content: center;
    gap: 25px;
    overflow-x: auto;
    scrollbar-width: none;
}
.kol-header-shortcuts-slim .shortcut-scroll::-webkit-scrollbar { display: none; }
.kol-header-shortcuts-slim .shortcut-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
    white-space: nowrap;
}
.kol-header-shortcuts-slim .shortcut-item i {
    font-size: 14px;
    color: var(--primary);
}
.kol-header-shortcuts-slim .shortcut-item:hover {
    color: var(--primary);
}

/* Removal of old bulky shortcut styles */
.kol-header-shortcuts.is-index, .kol-header-shortcuts.is-sub { display: none !important; }

/* Responsive Grid for Creator Section */
.creator-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* PC Default */
    gap: 20px;
}
@media (max-width: 1200px) { .creator-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .creator-list { grid-template-columns: repeat(2, 1fr); } } /* Mobile 2 per row */
/* Portal Breadcrumb & Common Header */
.portal-breadcrumb {
    background: #f1f5f9;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}
.portal-breadcrumb .container { display: flex; align-items: center; gap: 10px; }
.portal-breadcrumb a { color: #475569; text-decoration: none; font-weight: 500; }
.portal-breadcrumb a:hover { color: var(--primary); }

.k-life-header {
    padding: 60px 0 40px;
    text-align: center;
}
.k-life-header h1 { font-size: 2.5rem; font-weight: 900; color: #1e293b; margin-bottom: 15px; }
.k-life-header h1 .sub-title { font-size: 1.1rem; color: var(--primary); font-weight: 700; display: block; margin-top: 5px; }
.k-life-header p { font-size: 1.1rem; color: #64748b; }

/* Expert CTA Compact Style */
.expert-cta-compact {
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
}
.expert-cta-compact .cta-text strong { display: block; font-size: 1.2rem; color: #1e293b; margin-bottom: 5px; }
.expert-cta-compact .cta-text span { color: #64748b; font-size: 0.95rem; }
.expert-cta-compact .btn-expert-call {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
}
.expert-cta-compact .btn-expert-call:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Open Market (Shop) Layout System */
.shop-hero-banner {
    background: #1e293b;
    height: 400px;
    border-radius: 24px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    padding: 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}
.shop-hero-content { z-index: 2; max-width: 500px; }
.shop-hero-content h2 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; line-height: 1.1; }
.shop-hero-content p { font-size: 1.2rem; opacity: 0.8; margin-bottom: 30px; }

.shop-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}
.shop-section-title h3 { font-size: 1.8rem; font-weight: 800; color: #1e293b; }
.shop-section-title a { color: #94a3b8; text-decoration: none; font-weight: 600; }

.market-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.market-item-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}
.market-item-card:hover { transform: translateY(-8px); box-shadow: 0 20px 30px rgba(0,0,0,0.08); border-color: var(--primary); }
.market-item-thumb { aspect-ratio: 1/1; background: #f8fafc; overflow: hidden; position: relative; }
.market-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.market-item-badge { position: absolute; top: 12px; left: 12px; background: #ef4444; color: white; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; }

.market-item-info { padding: 20px; }
.market-item-name { font-size: 1rem; font-weight: 700; color: #334155; margin-bottom: 12px; height: 2.8rem; overflow: hidden; line-height: 1.4; }
.market-item-price-wrap { display: flex; flex-direction: column; gap: 4px; }
.market-item-price { font-size: 1.4rem; font-weight: 900; color: #111; }
.market-item-cust { font-size: 0.9rem; color: #94a3b8; text-decoration: line-through; }

.market-item-meta { margin-top: 15px; padding-top: 15px; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; font-size: 12px; }
.badge-shipping { color: #10b981; font-weight: 800; }
.badge-rating { color: #f59e0b; font-weight: 800; }

@media (max-width: 1200px) { .market-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }

/* Shop Layout Critical Fix - Center All Shop Pages */
#container .shop-content,
#container .shop-main,
#container .shop-item,
#container .shop-list {
    max-width: 1200px;
    margin: 0 auto !important;
    float: none !important;
    padding: 40px 0;
}
#container_wr { margin-left: 0 !important; } /* Remove any left-skewing margins */

#idx_hit, .sct_wrap {
    margin: 0 auto !important;
    width: 100% !important;
}
.sct {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* Ensure subpages don't have conflicting margins */
#container {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    margin: 0 auto !important;
}

/* K-Life & News Board Custom Styling */
.k-life-filter-wrap { margin-bottom: 30px; display: flex; justify-content: center; gap: 12px; overflow-x: auto; padding: 10px 0; }
.k-life-filter-item { text-decoration: none; padding: 10px 22px; border-radius: 12px; background: #f1f5f9; color: #64748b; font-weight: 700; font-size: 0.9rem; white-space: nowrap; transition: 0.2s; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 8px; }
.k-life-filter-item.active { background: #111; color: #fff; border-color: #111; }
.k-life-filter-item:hover { background: #e2e8f0; }

.expert-cta-banner { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-radius: 20px; padding: 25px; margin-bottom: 40px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #bae6fd; }
.expert-cta-icon-box { width: 55px; height: 55px; background: #fff; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #0ea5e9; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1); }
.expert-cta-content h4 { margin: 0; font-size: 1.15rem; font-weight: 800; color: #0369a1; }
.expert-cta-content p { margin: 5px 0 0; color: #0ea5e9; font-size: 0.95rem; font-weight: 600; }
.expert-cta-btn { background: #1e293b; color: #fff; text-decoration: none; padding: 14px 28px; border-radius: 12px; font-weight: 800; font-size: 0.95rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: 0.2s; }
.expert-cta-btn:hover { background: #0f172a; transform: translateY(-2px); }

/* Category Specific Colors (Classes instead of inline styles) */
.k-life-filter-item.cat-realestate.active { background: #0ea5e9; border-color: #0ea5e9; }
.k-life-filter-item.cat-tax.active { background: #10b981; border-color: #10b981; }
.k-life-filter-item.cat-labor.active { background: #6366f1; border-color: #6366f1; }
.k-life-filter-item.cat-civil.active { background: #f59e0b; border-color: #f59e0b; }
.k-life-filter-item.cat-criminal.active { background: #ef4444; border-color: #ef4444; }

