@charset "UTF-8";

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

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

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

/* --------------------------------------------------------------------------
   2. Visual Banner (main-vban-wrap) - Full Width Background
   -------------------------------------------------------------------------- */
.main-vban-wrap {
    width: 100%;
    background: #d8e4f2;
}

.main-vban-wrap,
.main-vban-wrap.bg {
    width: 100%;
    margin-top: 0 !important;
    background-image: url('/images/koimaindex/kolonabaileoseulo-inhan-geum-yung-wigie-daehan-deiteoleul-boyeojuneun-hwamyeon.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.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: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

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

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

/* 지수 그래프 섹션 */
.main-tit-wrap {
    padding-top: 48px;
}

.main-tit-wrap > .tit {
    font-size: 36px !important;
    font-weight: 700;
}

/* 차트 영역 높이 */
#chart {
    min-height: 400px !important;
}

.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;
}

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

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

.news-list .d-card.line {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    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 .text .c-tit {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.5;
}

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

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

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

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

/* Visual Banner Inner - Centered Content */
.main-vban-wrap .inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Visual Banner Swiper */
.main-vban-wrap .vb-swiper {
    position: relative;
    padding: 0 102px;
}

.main-vban-wrap .vb-swiper .swiper {
    overflow: hidden;
}

.main-vban-wrap .vb-swiper .swiper-slide {
    height: 300px;
}

.main-vban-wrap .vb-swiper .swiper-slide .in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 48px;
    height: 100%;
    padding: 40px 0;
}

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

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

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

.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 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 40px;
}

.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: 48px 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. 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;
    }

    /* 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;
    }

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

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

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

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

    /* 차트 영역 반응형 */
    #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;
    }

    .main-vban-wrap .vb-swiper {
        padding: 30px 16px !important;
    }

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

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

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

    /* 좌우 버튼 숨김 */
    .main-vban-wrap .vb-swiper .swiper-button-prev,
    .main-vban-wrap .vb-swiper .swiper-button-next {
        display: none !important;
    }

    .main-vban-wrap .vb-swiper .swiper-slide {
        height: auto;
        padding: 0 16px;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .in {
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .text {
        gap: 12px;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .text .tit {
        font-size: 2.4rem;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .text .txt {
        font-size: 1.4rem;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .im {
        width: 100%;
        text-align: center;
    }

    .main-vban-wrap .vb-swiper .swiper-slide .im img,
    .main-vban-wrap .vb-swiper .swiper-slide .im svg {
        max-height: 160px;
    }

    .main-vban-wrap .vb-swiper .swiper-button-prev,
    .main-vban-wrap .vb-swiper .swiper-button-next {
        display: none;
    }

    .main-vban-wrap .vb-swiper .swiper-indicator {
        padding: 16px 0 24px;
    }

    .main-vban-wrap .vb-swiper .swiper-indicator .swiper-button-prev,
    .main-vban-wrap .vb-swiper .swiper-indicator .swiper-button-next {
        display: flex;
        position: static;
        transform: none;
        width: 36px;
        height: 36px;
    }

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

    .main-sect {
        padding: 32px 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;
    }
}
