@charset "UTF-8";

/* ==========================================================================
   KOIMA Index Main Page - KRDS Style Guide
   Width: 1480px (padding 10px 포함)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Container & Inner
   -------------------------------------------------------------------------- */
#container {
    background: #f8f9fa;
}

.inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. Visual Banner (main-vban-wrap) - Full Width Background
   브라우저 기준 100% 너비를 위해 컨테이너 제약을 벗어남
   -------------------------------------------------------------------------- */
/* 메인 페이지 #body .bg 패딩 10px */
.pMain #body .bg {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
    max-width: 1480px !important;
}

#body .main-vban-wrap,
#body .main-vban-wrap.bg,
.main-vban-wrap,
.main-vban-wrap.bg {
    width: 100% !important;
    max-width: 1480px !important;
    margin: 0 auto 24px !important;
    margin-top: 0 !important;
    position: relative;
    background: transparent !important;
    padding: 0 !important;
    box-sizing: border-box;
}

#body .main-vban-wrap .vb-swiper,
.main-vban-wrap .vb-swiper {
    position: relative;
    width: 100% !important;
    max-width: 1480px !important;
    margin: 0 auto;
    padding: 0 !important;
}

.main-vban-wrap.no-gap {
    margin-top: 0;
}

/* 메인 콘텐츠 영역 - 유동적 반응형 */
body {
    min-width: 320px !important;
}

#wrap .bg,
#footer .bg {
    width: 100% !important;
    max-width: 1480px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

#body .bg {
    width: 100% !important;
    max-width: 1480px !important;
    padding-top: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

.main-tit-wrap,
.mBox2.mMain2,
.mBox2.mMainFull,
.main-sect,
.chart-select-mobile {
    max-width: 1480px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

/* gMain1 - #body .bg에 이미 padding 20px가 있으므로 추가 padding 불필요 */
.gMain1 {
    max-width: 1480px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* 지수 그래프 섹션 */
.mBox2.mMainFull {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.main-tit-wrap {
    padding-top: 10px;
}

.main-tit-wrap > .tit,
.main-tit-wrap > div > .tit {
    font-size: 36px !important;
    font-weight: 700;
    margin-bottom: 8px;
}

.main-tit-wrap .tit-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* 차트 컨테이너 가운데 정렬 (데스크탑) */
.mBox2.mMainFull .tabCont {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* 차트 영역 */
#chart {
    width: 100%;
}

.main-sect .main-tit-wrap {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

/* KRDS 탭 스타일 */
.krds-tab-area {
    margin-top: 24px;
}

.krds-tab-area .tab.line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
}

.krds-tab-area .tab.line ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.krds-tab-area .tab.line ul li {
    position: relative;
}

.krds-tab-area .tab.line ul li .btn-tab {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.krds-tab-area .tab.line ul li .btn-tab:hover {
    color: #314597;
}

.krds-tab-area .tab.line ul li.active .btn-tab {
    color: #314597;
    font-weight: 700;
}

.krds-tab-area .tab.line ul li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #314597;
}

/* 탭 콘텐츠 */
.tab-conts-wrap {
    margin-top: 24px;
}

.tab-conts {
    display: none;
}

.tab-conts.active {
    display: block;
}

/* 뉴스 리스트 - KRDS 패턴 */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-list li {
    width: 100%;
}

.news-list li a {
    text-decoration: none;
    display: block;
    width: 100%;
}

.news-list li a:hover .c-tit,
.news-list li a:active .c-tit {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-list .d-card {
    padding: 0;
}

.news-list .d-card.line {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.2s;
}

.news-list .d-card.line:hover {
    border-color: #314597;
    box-shadow: 0 4px 12px rgba(49, 69, 151, 0.1);
}

.news-list .d-card.d-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.news-list .d-card.d-row .in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
}

.news-list .d-card .in > .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-list .d-card .c-tit {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-list .d-card .c-txt {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.news-list .d-card .c-btn {
    flex-shrink: 0;
    margin-left: 16px;
}

.news-list .d-card .c-btn .krds-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.news-list .d-card .c-btn .krds-btn:hover {
    color: #314597;
}

.more-wrap {
    margin-top: 24px;
    text-align: center;
}

.more-wrap .krds-btn {
    color: #666;
}

.more-wrap .krds-btn:hover {
    color: #314597;
}

/* SVG 아이콘 */
.svg-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: contain;
}

.svg-icon.ico-more {
    -webkit-mask-image: url('/lib/krds/img/icon/ico_angle.svg');
    mask-image: url('/lib/krds/img/icon/ico_angle.svg');
    transform: rotate(-90deg);
}

.svg-icon.ico-plus {
    -webkit-mask-image: url('/lib/krds/img/icon/ico_plus.svg');
    mask-image: url('/lib/krds/img/icon/ico_plus.svg');
}

/* Visual Banner Inner - Centered Content */
.main-vban-wrap .inner {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Visual Banner Swiper */
/* Note: max-width: 1440px is set in the earlier rule */

.main-vban-wrap .vb-swiper .swiper {
    overflow: hidden;
    border-radius: 16px;
}

.main-vban-wrap .vb-swiper .swiper-slide {
    height: 320px;
    border-radius: 16px;
    position: relative;
}

/* 이미지 위 어두운 오버레이 */
.main-vban-wrap .vb-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    z-index: 1;
}

.main-vban-wrap .vb-swiper .swiper-slide .in {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 48px;
    height: 100%;
    padding: 0;
}

.main-vban-wrap .vb-swiper .swiper-slide .text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.main-vban-wrap .vb-swiper .swiper-slide .text .tit {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.main-vban-wrap .vb-swiper .swiper-slide .text .txt {
    font-size: 1.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.main-vban-wrap .vb-swiper .swiper-slide .text .krds-btn {
    margin-top: 16px;
}

.main-vban-wrap .vb-swiper .swiper-slide .im {
    flex-basis: 35%;
    flex-shrink: 0;
    text-align: right;
}

.main-vban-wrap .vb-swiper .swiper-slide .im img,
.main-vban-wrap .vb-swiper .swiper-slide .im svg {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
}

/* Visual Banner Swiper Navigation */
.main-vban-wrap .vb-swiper .swiper-button-prev,
.main-vban-wrap .vb-swiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
}

.main-vban-wrap .vb-swiper .swiper-button-prev {
    left: 20px;
}

.main-vban-wrap .vb-swiper .swiper-button-next {
    right: 20px;
}

.main-vban-wrap .vb-swiper .swiper-button-prev:hover,
.main-vban-wrap .vb-swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.main-vban-wrap .vb-swiper .swiper-button-prev::after {
    content: '❮' !important;
    font-size: 20px !important;
    color: #fff !important;
    font-family: inherit !important;
}

.main-vban-wrap .vb-swiper .swiper-button-next::after {
    content: '❯' !important;
    font-size: 20px !important;
    color: #fff !important;
    font-family: inherit !important;
}

/* Visual Banner Swiper Indicator */
.main-vban-wrap .vb-swiper .swiper-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0;
    z-index: 10;
}

.main-vban-wrap .vb-swiper .swiper-indicator .swiper-pagination {
    position: static;
    display: flex;
    gap: 8px;
}

.main-vban-wrap .vb-swiper .swiper-indicator .swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.main-vban-wrap .vb-swiper .swiper-indicator .swiper-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

.main-vban-wrap .vb-swiper .swiper-button-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.main-vban-wrap .vb-swiper .swiper-button-more:hover {
    background: rgba(255, 255, 255, 0.3);
}

.main-box-responsive {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.main-box-responsive .d-auto {
    flex: 1;
    min-width: 0;
}

.main-box-responsive .d-fix {
    width: 360px;
    flex-shrink: 0;
}

.main-box-responsive .d-auto > .in,
.main-box-responsive .d-fix > .in {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    box-sizing: border-box;
}

/* Login Wrap */
.d-login-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.d-login-wrap .txt {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 24px;
}

.d-login-wrap .login-links {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.d-login-wrap .login-links li {
    position: relative;
}

.d-login-wrap .login-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #ddd;
}

/* --------------------------------------------------------------------------
   3. KRDS Buttons
   -------------------------------------------------------------------------- */
.krds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

.krds-btn.xlarge {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.6rem;
    font-weight: 600;
}

.krds-btn.large {
    padding: 14px 20px;
    font-size: 1.5rem;
    font-weight: 500;
}

.krds-btn.medium {
    padding: 10px 16px;
    font-size: 1.4rem;
    font-weight: 500;
}

.krds-btn.small {
    padding: 8px 12px;
    font-size: 1.3rem;
}

.krds-btn.primary {
    background: #314597;
    color: #fff;
}

.krds-btn.primary:hover {
    background: #263a7a;
}

.krds-btn.secondary {
    background: #fff;
    color: #314597;
    border: 1px solid #314597;
}

.krds-btn.secondary:hover {
    background: #f0f3ff;
}

.krds-btn.text {
    background: transparent;
    color: #666;
    padding: 8px 4px;
}

.krds-btn.text:hover {
    color: #314597;
}

.krds-btn .svg-icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   4. Main Section
   -------------------------------------------------------------------------- */
.main-sect {
    padding: 10px 0;
}

.main-sect.bgm {
    background: #fff;
}

.main-tit-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.main-tit-wrap .tit {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   5. Menu List (자주찾는 메뉴 스타일)
   -------------------------------------------------------------------------- */
.menu-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.menu-list .menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-list .menu-item:hover {
    border-color: #314597;
    box-shadow: 0 4px 16px rgba(49, 69, 151, 0.12);
}

.menu-list .menu-item.d-row {
    flex-direction: row;
}

.menu-list .menu-item .ico {
    width: 48px;
    height: 48px;
    background: #eef1ff;
    border-radius: 12px;
    flex-shrink: 0;
}

.menu-list .menu-item .text .tit {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.menu-list .menu-item .text .txt {
    font-size: 1.4rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. Policy List (정책소개 카드 스타일)
   -------------------------------------------------------------------------- */
.policy-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.policy-list > li > a {
    display: block;
    text-decoration: none;
}

.policy-list .d-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
    height: 100%;
}

.policy-list .d-card.line {
    border: 1px solid #e5e5e5;
}

.policy-list .d-card:hover {
    border-color: #314597;
    box-shadow: 0 8px 24px rgba(49, 69, 151, 0.12);
    transform: translateY(-4px);
}

.policy-list .d-card .im {
    height: 160px;
    background: linear-gradient(135deg, #eef1ff 0%, #e0e5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-list .d-card .im img {
    max-width: 80px;
    max-height: 80px;
}

.policy-list .d-card .in {
    padding: 24px;
}

.policy-list .d-card .text {
    margin-bottom: 16px;
}

.policy-list .d-card .c-badge {
    margin-bottom: 12px;
}

.policy-list .d-card .c-tit {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.policy-list .d-card .c-txt {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.policy-list .d-card .c-btn {
    margin: 0;
}

/* --------------------------------------------------------------------------
   7. KRDS Badge
   -------------------------------------------------------------------------- */
.krds-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 4px;
}

.krds-badge.bg-light-primary {
    background: #eef1ff;
    color: #314597;
}

.krds-badge.bg-light-danger {
    background: #fff0f0;
    color: #e03131;
}

/* --------------------------------------------------------------------------
   8. Two Column Layout (원스톱서비스 스타일)
   -------------------------------------------------------------------------- */
.main-box-responsive.type-wrap {
    display: flex;
    gap: 24px;
}

.main-box-responsive.type-wrap > .d-auto {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
}

.main-box-responsive.type-wrap > .d-fix {
    width: 440px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
}

.main-box-responsive.type-wrap .in {
    height: 100%;
}

/* One Stop Service Wrap */
.one-serv-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.one-serv-wrap .main-d-text {
    margin-bottom: 24px;
}

.one-serv-wrap .main-d-text .cate {
    font-size: 1.3rem;
    color: #314597;
    font-weight: 500;
    margin: 0 0 8px;
}

.one-serv-wrap .main-d-text .tit {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 12px;
}

.one-serv-wrap .main-d-text .txt {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.one-serv-wrap .main-d-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   9. Service List (서비스 카드 스타일)
   -------------------------------------------------------------------------- */
.service-list {
    position: relative;
}

.service-list .d-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.2s;
}

.service-list .d-card:hover {
    border-color: #314597;
    box-shadow: 0 4px 16px rgba(49, 69, 151, 0.1);
}

.service-list .d-card.line .in {
    padding: 24px;
}

.service-list .d-card .text {
    margin-bottom: 16px;
}

.service-list .d-card .c-tit {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.service-list .d-card .c-txt {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-list .d-card .c-btn {
    margin: 0;
}

/* Service Grid (no swiper) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-grid .d-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.2s;
}

.service-grid .d-card:hover {
    border-color: #314597;
    box-shadow: 0 4px 16px rgba(49, 69, 151, 0.1);
}

.service-grid .d-card a {
    display: block;
    padding: 24px;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   10. Data Table (테이블 스타일)
   -------------------------------------------------------------------------- */
.data-table-wrap {
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.5rem;
}

.data-table tbody th {
    color: #1a1a1a;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.data-table tbody th:hover {
    color: #314597;
}

.data-table td {
    color: #666;
}

.data-table td.right {
    text-align: right;
}

.data-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 1.4rem;
    color: #555;
}

/* --------------------------------------------------------------------------
   11. Index Card (지수 카드 스타일)
   -------------------------------------------------------------------------- */
.index-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.index-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.index-card:hover {
    border-color: #314597;
    box-shadow: 0 4px 16px rgba(49, 69, 151, 0.12);
    transform: translateY(-2px);
}

.index-card .card-label {
    font-size: 1.4rem;
    color: #888;
    margin: 0 0 8px;
}

.index-card .card-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.index-card .card-change {
    font-size: 1.4rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.index-card .card-change.up {
    color: #e03131;
}

.index-card .card-change.down {
    color: #1971c2;
}

.index-card .card-change.same {
    color: #868e96;
}

/* --------------------------------------------------------------------------
   12. Chart Area
   -------------------------------------------------------------------------- */
.chart-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-wrap .chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-wrap .chart-header .tit {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.chart-wrap .chart-header .date {
    font-size: 1.4rem;
    color: #888;
}

.chart-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chart-tabs .tab-btn {
    padding: 10px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    background: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.chart-tabs .tab-btn:hover {
    border-color: #314597;
    color: #314597;
}

.chart-tabs .tab-btn.selected {
    background: #314597;
    border-color: #314597;
    color: #fff;
}

.chart-area {
    flex: 1;
    min-height: 280px;
}

/* --------------------------------------------------------------------------
   13. Swiper Indicator
   -------------------------------------------------------------------------- */
.swiper-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.swiper-pagination {
    font-size: 1.4rem;
    color: #666;
}

.swiper-pagination-current {
    font-weight: 600;
    color: #314597;
}

.swiper-navigation {
    display: flex;
    gap: 8px;
}

.swiper-button-prev,
.swiper-button-next {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    border-color: #314597;
    background: #314597;
    color: #fff;
}

/* --------------------------------------------------------------------------
   14. GNB Hover Fix for Sub Pages
   -------------------------------------------------------------------------- */
/* 서브 페이지에서 GNB 드롭다운이 #body 콘텐츠 위에 표시되도록 z-index 보장 */
#krds-header {
    z-index: 99999 !important;
    position: relative !important;
}

#krds-header .gnb-toggle-wrap {
    z-index: 100000 !important;
}

/* #body가 GNB 드롭다운을 가리지 않도록 z-index 조정 */
#body {
    position: relative;
    z-index: 1;
}

#wrap {
    position: relative;
}

/* 트리거와 드롭다운 사이 갭 방지 - hover 유지 */
#krds-header .gnb-menu > li {
    position: relative !important;
}

/* 드롭다운 hover 상태 강제 */
#krds-header .gnb-menu > li:hover > .gnb-toggle-wrap {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
}

/* --------------------------------------------------------------------------
   15. Sub Page Title (서브 페이지 타이틀)
   -------------------------------------------------------------------------- */
.mTitle1 {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #1b2a75 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    padding: 48px 0 32px !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
}

/* 서브 페이지 컨테이너 반응형 */
.mBox1,
.mBox2 {
    width: 100% !important;
    max-width: 1480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

/* mSort2 - 검색 영역 flex */
.mSort2 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

/* mCount1 - 기준 문구 (우측 정렬) */
.mCount1 {
    position: static !important;
    display: block !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-bottom: 16px !important;
    font-size: 14px !important;
    color: #3f3f3f !important;
}

/* mSort2 안에 있을 때 */
.mSort2 .mCount1 {
    display: inline-block !important;
    margin-bottom: 0 !important;
}

/* mBoard1 - 게시판 테이블 행 높이 */
.mBoard1 th,
.mBoard1 td {
    padding: 15px 10px !important;
}

/* mGrid1 - 테이블 2열 레이아웃 반응형 */
.mGrid1 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 15px 0 0 0 !important;
}

.mGrid1 .mBoard1 {
    flex: 1 1 calc(50% - 10px) !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    min-width: 300px !important;
}

/* --------------------------------------------------------------------------
   15. Up/Down Colors
   -------------------------------------------------------------------------- */
.up { color: #e03131 !important; }
.down { color: #1971c2 !important; }
.same { color: #868e96 !important; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
/* 브레이크포인트: 1200px */
@media (max-width: 1200px) {
    .main-box-responsive {
        flex-direction: column;
    }

    .main-box-responsive .d-fix {
        width: 100%;
    }

    .index-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .policy-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-box-responsive.type-wrap {
        flex-direction: column;
    }

    .main-box-responsive.type-wrap > .d-fix {
        width: 100%;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* gMain1 2열 배치 */
    .gMain1 .gRight {
        width: 100% !important;
    }
}

/* 브레이크포인트: 1024px */
@media (max-width: 1024px) {
    .main-tit-wrap > .tit {
        font-size: 32px !important;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .text .tit {
        font-size: 28px !important;
    }

    /* 서브 페이지 타이틀 */
    .mTitle1 {
        font-size: 36px !important;
        padding: 40px 20px 28px !important;
    }

    /* gMain1 세로 배치 시작 */
    .gMain1 {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .gMain1 .mBox2.mMain1 {
        width: 100% !important;
        float: none !important;
    }

    .gMain1 .gRight {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
    }

    .gMain1 .gRight .mBox2.mMain3 {
        flex: 1 !important;
    }
}

/* 브레이크포인트: 900px */
@media (max-width: 900px) {
    .gMain1 .gRight {
        flex-direction: column !important;
    }

    .gMain1 .gRight .mBox2.mMain3 {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* 기본 고정 너비 해제 */
    body {
        min-width: 100% !important;
    }

    /* 풋터 텍스트 크기 축소 (공통) */
    #footer, #footer * { font-size: 12px !important; }
    #footer .foot-info { font-size: 11px !important; line-height: 1.6 !important; }

    /* 게시판 공통 - 콘텐츠 영역 하단 여백 */
    .mBox1.type2 { margin-bottom: 100px !important; }

    /* 게시판 공통 - 검색 영역 flexbox 레이아웃 */
    .mSort1 { width: 100% !important; margin-bottom: 16px !important; margin-left: 0 !important; padding-left: 0 !important; }
    .mSort1 .gRt {
        width: 100% !important;
        position: static !important;
        float: none !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        box-sizing: border-box !important;
    }
    .mSort1 .gRt .select {
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .mSort1 .gRt .it {
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .mSort1 .gRt .mBtn1 {
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* 게시판 공통 - 페이징 이전/다음만 표시 */
    #paging.mPag a.first,
    #paging.mPag a.last,
    #paging.mPag a:not(.prev):not(.next):not(.first):not(.last) {
        display: none !important;
    }
    #paging.mPag a.prev,
    #paging.mPag a.next {
        display: inline-flex !important;
    }

    /* 게시판 공통 - 테이블 기본 */
    .mBox1.type2 .mBoard1 table { width: 100% !important; min-width: auto !important; table-layout: fixed !important; }

    /* 게시판 공통 - 제목 한 줄 처리 */
    .mBox1.type2 .mBoard1 td.tit {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 0 !important;
    }
    .mBox1.type2 .mBoard1 td.tit a {
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 상세페이지 공통 - 콘텐츠 영역 하단 여백 */
    .mBox1:not(.type2) { margin-bottom: 100px !important; }

    /* 상세페이지 공통 - 컨테이너 오버플로우 방지 */
    .mView1 {
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 상세페이지 공통 - 테이블 */
    .mView1 .mBoard1 {
        overflow: hidden !important;
    }
    .mView1 .mBoard1 table {
        min-width: auto !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-top: 2px solid #314597 !important;
    }
    .mView1 .mBoard1 table colgroup col {
        width: auto !important;
    }
    .mView1 .mBoard1 table colgroup col:nth-child(1),
    .mView1 .mBoard1 table colgroup col:nth-child(3) {
        width: 70px !important;
    }
    .mView1 .mBoard1 table th {
        width: 70px !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    .mView1 .mBoard1 table td {
        padding: 10px 8px !important;
        font-size: 13px !important;
        word-break: break-all !important;
    }

    /* 상세페이지 공통 - 제목 영역 */
    .mView1 h4 {
        font-size: 18px !important;
        padding: 16px 0 !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
    }

    /* 상세페이지 공통 - 본문 영역 및 이미지 100% */
    .mView1 .article {
        padding: 16px 0 !important;
        overflow: hidden !important;
    }
    .mView1 .article .note-editor {
        border: none !important;
    }
    .mView1 .article .note-editing-area {
        min-height: auto !important;
        height: auto !important;
    }
    .mView1 .article .note-editable {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .mView1 .article img,
    .mView1 .article .note-editable img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 상세페이지 공통 - 버튼 영역 */
    .mButton1.mt1 {
        padding: 16px 0 !important;
    }
    .mButton1.mt1 .rt {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        float: none !important;
    }
    .mButton1.mt1 .rt .mBtn1 {
        flex: 1 1 auto !important;
        min-width: 80px !important;
        text-align: center !important;
    }

    #wrap .bg,
    #footer .bg {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    #body .bg {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px 40px 16px !important;
        box-sizing: border-box !important;
    }

    /* 메인 콘텐츠 영역 반응형 */
    .main-tit-wrap,
    .mBox2.mMain2,
    .mBox2.mMainFull,
    .main-sect,
    .gMain1,
    .chart-select-mobile {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    /* 타이틀 반응형 */
    .main-tit-wrap > .tit,
    .main-tit-wrap > div > .tit {
        font-size: 24px !important;
    }

    .main-tit-wrap .tit-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .main-tit-wrap {
        padding-top: 10px;
    }

    /* 서브 페이지 타이틀 반응형 */
    .mTitle1 {
        font-size: 28px !important;
        padding: 32px 16px 24px !important;
    }

    /* 서브 페이지 컨테이너 반응형 */
    .mBox1,
    .mBox2 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* 검색 영역 반응형 */
    .mSort1,
    .mSort2 {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .mSort2 .select,
    .mSort2 select {
        width: calc(50% - 4px) !important;
        min-width: auto !important;
    }

    .mSort2 .gRadio {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin: 8px 0 !important;
    }

    .mSort2 .mRadio {
        flex: 1 !important;
        min-width: 60px !important;
    }

    .mSort2 .mBtn1 {
        width: 100% !important;
        margin-top: 8px !important;
    }

    /* 테이블 반응형 */
    .mBoard1 {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .mBoard1 table {
        min-width: 500px !important;
    }

    .mBoard1 colgroup {
        display: none;
    }

    .mBoard1 th,
    .mBoard1 td {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    .mBoard1 th:last-child,
    .mBoard1 td:last-child {
        width:100px !important;
    }

    /* 그리드 반응형 - 모바일에서 100% */
    .mGrid1 {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .mGrid1 .mBoard1 {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }

    /* 그래프 영역 반응형 */
    .mGraph2 {
        height: auto !important;
        min-height: 250px !important;
    }

    /* 차트 영역 반응형 */
    #chart {
        min-height: 280px !important;
    }

    .mBox2.mMain2,
    .mBox2.mMainFull {
        width: 100% !important;
    }

    .mTab2 {
        flex-direction: column !important;
    }

    .mTab2 .lst {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .mTab2 .lst a {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    /* gMain1 반응형 - 세로 배치 */
    .gMain1 {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .gMain1 .gRight {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .gMain1 .mBox2.mMain1,
    .gMain1 .mBox2.mMain3 {
        width: 100% !important;
        float: none !important;
    }

    /* Visual Banner Responsive */
    .main-vban-wrap,
    .main-vban-wrap.bg {
        width: 100% !important;
        padding: 0 16px !important;
        margin: 0 auto !important;
    }

    .main-vban-wrap .vb-swiper {
        padding: 0 !important;
    }

    .main-vban-wrap .inner {
        padding: 0 !important;
    }

    .main-vban-wrap .vb-swiper .swiper {
        border-radius: 12px !important;
    }

    .main-vban-wrap .vb-swiper .swiper-slide {
        height: 220px !important;
        border-radius: 12px !important;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .in {
        padding: 0 20px !important;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .text {
        gap: 6px !important;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .text .tit {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .text .txt {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

    /* 좌우 버튼 - 작게 표시 */
    .main-vban-wrap .vb-swiper .swiper-button-prev,
    .main-vban-wrap .vb-swiper .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
    }

    .main-vban-wrap .vb-swiper .swiper-button-prev::after,
    .main-vban-wrap .vb-swiper .swiper-button-next::after {
        font-size: 16px !important;
    }

    .main-vban-wrap .vb-swiper .swiper-indicator {
        bottom: 12px !important;
    }

    /* 뉴스 섹션 반응형 */
    .main-sect .inner {
        padding: 0 16px !important;
    }

    .krds-tab-area .tab.line {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .krds-tab-area .tab.line ul {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .krds-tab-area .tab.line ul li .btn-tab {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .news-list .d-card.d-row .in {
        padding: 16px !important;
    }

    .news-list .d-card .c-tit {
        font-size: 15px !important;
    }

    .news-list .d-card .c-btn {
        display: none !important;
    }

    .main-box-responsive .d-auto > .in,
    .main-box-responsive .d-fix > .in {
        padding: 24px;
    }

    .main-sect {
        padding: 10px 0;
    }

    .main-tit-wrap .tit {
        font-size: 2rem;
    }

    .index-card-grid {
        grid-template-columns: 1fr;
    }

    .menu-list {
        grid-template-columns: 1fr;
    }

    .policy-list {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .chart-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .chart-tabs .tab-btn {
        flex-shrink: 0;
    }

    .main-box-responsive.type-wrap > .d-auto,
    .main-box-responsive.type-wrap > .d-fix {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .main-box-responsive .d-auto > .in,
    .main-box-responsive .d-fix > .in {
        padding: 20px;
        border-radius: 12px;
    }

    .main-vban-wrap {
        padding: 16px 0;
    }

    .d-login-wrap .txt {
        font-size: 1.5rem;
    }

    .krds-btn.xlarge {
        padding: 14px 20px;
        font-size: 1.5rem;
    }

    .index-card .card-value {
        font-size: 2.4rem;
    }
}

/* ==========================================================================
   한국수입협회 배너 섹션
   ========================================================================== */

.banner-section {
    max-width: 1480px !important;
    width: 100% !important;
    margin-bottom: 20px;
    padding-top: 40px;
}

.banner-section .banner-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.banner-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.banner-section .banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    letter-spacing: 2px;
}

.banner-section .banner-link:hover .banner-text {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.banner-section .banner-link:hover img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .banner-section {
        padding: 0 !important;
        margin-bottom: 40px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .banner-section .banner-link {
        border-radius: 8px;
    }

    .banner-section img {
        border-radius: 8px;
    }

    .banner-section .banner-text {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    .banner-section .banner-text {
        font-size: 14px;
    }
}

/* ==========================================================================
   지수 그래프 - 모바일 탭→셀렉트 전환
   ========================================================================== */

/* 데스크탑: 셀렉트 숨김 */
.chart-select-mobile {
    display: none;
}

/* 모바일: 탭 숨김, 셀렉트 표시 */
@media (max-width: 768px) {
    /* 탭 영역 숨김 */
    .mBox2.mMainFull .mTab2 {
        display: none !important;
    }

    /* 커스텀 셀렉트 표시 */
    .chart-select-mobile {
        display: block !important;
        margin: 0 !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* 커스텀 셀렉트 컨테이너 */
    .custom-select {
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }

    /* 트리거 버튼 */
    .custom-select-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
        color: #333;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
        transition: border-color 0.2s;
        box-sizing: border-box;
    }
    .custom-select-trigger:active,
    .custom-select.open .custom-select-trigger {
        border-color: #314597;
    }
    .custom-select.open .custom-select-trigger svg {
        transform: rotate(180deg);
    }
    .custom-select-trigger svg {
        transition: transform 0.2s;
    }

    /* 옵션 리스트 */
    .custom-select-options {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 4px 0 0 0;
        padding: 8px 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        list-style: none;
        box-sizing: border-box;
        z-index: 1000;
        max-height: 240px;
        overflow-y: auto;
    }
    .custom-select.open .custom-select-options {
        display: block;
    }
    .custom-select-options li {
        padding: 10px 16px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        transition: background 0.15s;
    }
    .custom-select-options li:hover {
        background: #f5f5f5;
    }
    .custom-select-options li.selected {
        background: #314597;
        color: #fff;
    }

    /* 차트 영역 */
    .mBox2.mMainFull {
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .mBox2.mMainFull .tabCont {
        width: 100% !important;
        padding: 16px 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    #chart {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    #chart .apexcharts-canvas {
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   로그인/회원가입 페이지 모바일 최적화
   ========================================================================== */

@media (max-width: 768px) {
    /* 로그인 페이지 */
    .mLogin1 {
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
    }
    .mLogin1 .gLeft {
        width: 100% !important;
        float: none !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
    }
    .mLogin1 .gLeft h4 {
        font-size: 20px !important;
    }
    .mLogin1 .gLeft .info {
        font-size: 14px !important;
    }
    .mLogin1 .gRight {
        width: 100% !important;
        max-width: 400px !important;
        float: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    .mLogin1 .gRight fieldset {
        padding: 20px !important;
    }
    .mLogin1 .gRight dl {
        display: block !important;
    }
    .mLogin1 .gRight dl dt {
        width: 100% !important;
        float: none !important;
        text-align: left !important;
        margin-bottom: 8px !important;
        padding: 0 !important;
    }
    .mLogin1 .gRight dl dd {
        width: 100% !important;
        float: none !important;
        margin-bottom: 16px !important;
        padding: 0 !important;
    }
    .mLogin1 .gRight .gIt {
        width: 100% !important;
    }
    .mLogin1 .gRight .gIt .it {
        width: 100% !important;
        height: 44px !important;
        line-height: 44px !important;
        padding: 0 15px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
        border: 1px solid #d3d3d3 !important;
        border-radius: 4px !important;
    }
    .mLogin1 .gRight .btnLogin {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        text-align: center !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .mLogin1 .gRight .button {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 16px !important;
    }
    .mLogin1 .gRight .button .mBtn1 {
        width: 100% !important;
        text-align: center !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    /* 회원가입 페이지 */
    .mBox1.type5 {
        padding: 16px !important;
    }
    .mBox1.type5 .mInfo4 {
        font-size: 14px !important;
        text-align: center !important;
    }
    .mBox1.type5 .mTitle4 {
        font-size: 16px !important;
    }
    .mBox1.type5 .mLaw1 {
        font-size: 13px !important;
        padding: 12px !important;
        max-height: 200px !important;
    }
    .mBox1.type5 .mAgree {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    .mBox1.type5 .mAgree .tit {
        font-size: 14px !important;
        text-align: center !important;
    }
    .mBox1.type5 .mAgree .gRt {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    .mBox1.type5 .mRadio.type2 {
        font-size: 14px !important;
    }

    /* 회원구분 라디오 버튼 */
    .mBox1.type5 .mRadio1 {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }
    .mBox1.type5 .mRadio1 .mRadio {
        width: 100% !important;
        max-width: 300px !important;
    }

    /* 버튼 영역 */
    .mBox1.type5 .mButton1 {
        padding: 16px !important;
    }
    .mBox1.type5 .mButton1 .ct {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .mBox1.type5 .mButton1 .mBtn1 {
        width: 100% !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   리포트 & 카드뉴스 섹션 - 3단 카드 레이아웃
   ========================================================================== */

/* 3단 카드 그리드 컨테이너 */
.card-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    max-width: 1480px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 카드 박스 스타일 */
.card-grid-3col .mBox2 {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.card-grid-3col .mCard-box {
    display: flex;
    flex-direction: column;
}

.card-grid-3col .card-content {
    flex: 1;
    padding: 20px;
}

/* 카드 썸네일 링크 */
.card-thumb-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.card-thumb-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(49, 69, 151, 0.15);
}

/* 카드 썸네일 이미지 */
.card-thumb {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 비율 */
    background: linear-gradient(135deg, #667eea 0%, #4cddf2 100%);
    border-radius: 8px;
    overflow: hidden;
}

.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 썸네일 플레이스홀더 */
.card-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* 카드 정보 */
.card-info {
    padding: 16px 0 0;
    text-align: center;
}

.card-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-thumb-link:hover .card-title {
    color: #314597;
}

.card-date {
    display: block;
    font-size: 13px;
    color: #888;
}

/* 카드 빈 상태 */
.card-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 태블릿 반응형 - 2단 */
@media (max-width: 1024px) {
    .card-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-3col .mCard-box:last-child {
        grid-column: span 2;
    }
}

/* 모바일 반응형 - 1단 */
@media (max-width: 768px) {
    .card-grid-3col {
        grid-template-columns: 1fr;
        padding: 0 !important;
        gap: 16px;
        margin-bottom: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .card-grid-3col .mCard-box:last-child {
        grid-column: auto;
    }

    .card-grid-3col .card-content {
        padding: 16px;
    }

    .card-thumb {
        padding-top: 60%; /* 모바일에서 비율 조정 */
    }

    .card-title {
        font-size: 14px;
    }
}

/* ==========================================================================
   지수 & 시황 섹션 - 2단 차트 레이아웃
   ========================================================================== */

/* 2단 그리드 컨테이너 */
.chart-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    max-width: 1480px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 차트 박스 스타일 */
.chart-grid-2col .mBox2 {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.chart-grid-2col .mChart-box {
    display: flex;
    flex-direction: column;
}

.chart-grid-2col .chart-content {
    flex: 1;
    padding: 20px;
}

/* 태블릿 반응형 - 1단 */
@media (max-width: 900px) {
    .chart-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .chart-grid-2col {
        padding: 0 16px;
        gap: 16px;
        margin-bottom: 20px;
    }

    .chart-grid-2col .chart-content {
        padding: 16px;
    }
}

/* ==========================================================================
   뉴스 & 정보 섹션 - 3단 그리드 레이아웃
   ========================================================================== */

/* 3단 그리드 컨테이너 - #body .bg에 이미 padding 20px가 있으므로 추가 padding 불필요 */
.news-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    max-width: 1480px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2단 그리드 컨테이너 */
.news-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    max-width: 1480px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.news-grid-2col .mBox2 {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.news-grid-2col .mNews-box {
    display: flex;
    flex-direction: column;
}

/* 뉴스 박스 스타일 - mBox2 기본 스타일 덮어쓰기 */
.news-grid-3col .mBox2 {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.news-grid-3col .mNews-box {
    display: flex;
    flex-direction: column;
}

/* 뉴스 박스 더보기 링크 */
.mNews-box .tit .gRt a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.mNews-box .tit .gRt a:hover {
    color: #314597;
}

/* 뉴스 컨텐츠 영역 */
.mNews-box .news-content {
    flex: 1;
    padding: 0;
}

/* 뉴스 리스트 스타일 */
.news-list-simple {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list-simple li {
    border-bottom: 1px solid #f0f0f0;
}

.news-list-simple li:last-child {
    border-bottom: none;
}

.news-list-simple li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.news-list-simple li a:hover {
    background: #f8f9ff;
}

.news-list-simple .news-title {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 16px;
}

.news-list-simple .news-category {
    color: rgb(27, 42, 117);
    font-weight: 500;
    margin-right: 4px;
}

.news-list-simple .news-date {
    color: #888;
    font-size: 12px;
    flex-shrink: 0;
}

.news-list-simple li.no-data {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 태블릿 반응형 - 2단 */
@media (max-width: 1024px) {
    .news-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid-3col .mNews-box:last-child {
        grid-column: span 2;
    }
}

/* 모바일 반응형 - 1단 */
@media (max-width: 768px) {
    .news-grid-3col {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 16px;
        margin-bottom: 20px;
    }

    .news-grid-3col .mNews-box:last-child {
        grid-column: auto;
    }

    .news-grid-2col {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 16px;
        margin-bottom: 20px;
    }

    .mNews-box .mTab2 {
        padding: 14px 16px;
    }

    .mNews-box .mTab2 .tit span {
        font-size: 15px;
    }

    .news-list-simple li a {
        padding: 12px 16px;
    }

    .news-list-simple .news-title {
        font-size: 13px;
    }

    .news-list-simple .news-date {
        font-size: 11px;
    }
}
