/* 데이터개방포털 메인 (퍼블리싱 v5 index.css 기준, pt-mn- 접두어) */
.pt-mn-inner { max-width: 1236px; margin: 0 auto; }
.pt-mn-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pt-mn-block-head h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: normal; color: #09090B; }
.pt-mn-meta { font-size: 12px; font-weight: 500; line-height: normal; color: #71717B; }
.pt-mn-more { margin-left: 10px; color: #2563EB; font-weight: 700; text-decoration: none; }
.pt-mn-more:hover { text-decoration: underline; }

/* ---------- 첫 화면 ---------- */
.pt-mn-hero {
    display: grid;
    grid-template-columns: minmax(0, calc((100vw - 1236px) / 2 + 672px)) 1fr;
    gap: 32px;
    min-height: 507px;
    overflow: hidden;
    background: #fff;
}
.pt-mn-hero-text {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 0 77px max(20px, calc((100vw - 1236px) / 2));
}
.pt-mn-hero-content { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 672px; }
.pt-mn-hero-content h1 {
    margin: 0;
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 54px;
    font-weight: 700;
    line-height: normal;
    color: #000;
}
.pt-mn-hero-desc { display: flex; flex-direction: column; gap: 6px; }
.pt-mn-hero-desc p { margin: 0; font-size: 24px; line-height: normal; color: #000; }
.pt-mn-hero-desc .pt-mn-sub { opacity: .5; }
.pt-mn-hero-img { display: flex; align-items: center; padding: 65px 0; }
.pt-mn-hero-img img {
    width: 100%;
    height: 355px;
    object-fit: cover;
    border-top-left-radius: 188.5px;
    border-bottom-left-radius: 4px;
}

.pt-mn-quick { display: flex; gap: 32px; margin-top: 41px; }
.pt-mn-quick-item {
    width: 144px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-radius: 4px;
    background: #EFF6FF;
    text-decoration: none;
    transition: all .3s;
}
.pt-mn-quick-notice { border-radius: 4px 34px 4px 4px; }
.pt-mn-quick-item:hover { background: #DBEAFE; transform: translateY(-2px); }
.pt-mn-quick-item img { width: 64px; height: 64px; }
.pt-mn-quick-item span { font-size: 16px; font-weight: 700; line-height: normal; color: #2563EB; }

/* ---------- 데이터 검색 ---------- */
.pt-mn-search {
    position: relative;
    padding: 68px 0 45px;
    overflow: hidden;
    background: #FAFAFA url('../../images/portal/main/search-bg.jpg') center / cover;
}
.pt-mn-search::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .2); }
.pt-mn-search-inner {
    position: relative;
    z-index: 2;
    max-width: 689px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.pt-mn-search-inner h2 { margin: 0 0 11px; font-size: 40px; font-weight: 700; line-height: normal; color: #fff; }
.pt-mn-search-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 999px;
    background: #fff;
}
.pt-mn-search-btn { display: flex; padding: 0; border: 0; background: none; cursor: pointer; }
.pt-mn-search-btn img { width: 24px; height: 24px; }
.pt-mn-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #27272A;
    background: transparent;
}
.pt-mn-search-box input::placeholder { color: #71717B; }
.pt-mn-filters {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(244, 244, 245, .1);
    backdrop-filter: blur(16px);
}
.pt-mn-filter {
    display: flex;
    align-items: flex-end;
    gap: 11px;
    padding: 10px 14px;
    border-right: 1px solid rgba(255, 255, 255, .3);
    cursor: pointer;
}
.pt-mn-filter:last-child { border-right: 0; }
.pt-mn-filter span { font-size: 12px; font-weight: 500; line-height: normal; color: #D4D4D8; }
.pt-mn-filter select {
    min-width: 106px;
    padding: 0 20px 0 0;
    border: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    color: #fff;
    cursor: pointer;
    background: transparent url('../../images/portal/caret-down.svg') right center / 12px 12px no-repeat;
}
.pt-mn-filter select option { color: #09090B; background: #fff; }

/* ---------- 데이터 수집 현황 ---------- */
.pt-mn-stats { padding: 70px 0; background: #fff; }
.pt-mn-stats .pt-mn-inner { display: flex; flex-direction: column; gap: 32px; }
.pt-mn-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pt-mn-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 156px;
    padding: 16px 14px;
    border: 2px solid #2563EB;
    border-radius: 4px;
    background: #fff;
}
.pt-mn-stat-icon { width: 48px; height: 48px; }
.pt-mn-stat-info { display: flex; flex-direction: column; gap: 4px; }
.pt-mn-stat-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pt-mn-stat-label { font-size: 16px; font-weight: 600; line-height: normal; color: #09090B; }
.pt-mn-stat-value { font-size: 24px; font-weight: 700; line-height: normal; color: #09090B; }
.pt-mn-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; line-height: normal; color: #A1A1AA; }
.pt-mn-badge.is-up,
.pt-mn-badge.is-down { color: #2563EB; }
.pt-mn-badge.is-up::before,
.pt-mn-badge.is-down::before {
    content: '';
    width: 12px;
    height: 12px;
    background: url('../../images/portal/main/triangle-up.svg') center / contain no-repeat;
}
.pt-mn-badge.is-down { color: #E11D48; }
.pt-mn-badge.is-down::before { transform: rotate(180deg); filter: hue-rotate(140deg) saturate(3); }

/* ---------- 최신소식 + 연계 서비스 ---------- */
.pt-mn-news { padding: 70px 0 105px; background: #FAFAFA; }
.pt-mn-news-inner { display: flex; gap: 64px; }
.pt-mn-news-card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pt-mn-news-box { overflow: hidden; border: 1px solid #D4D4D8; border-radius: 4px; background: #fff; }
.pt-mn-tabs { display: flex; }
.pt-mn-tab {
    flex: 1;
    padding: 12px;
    border: 0;
    border-bottom: 2px solid #D4D4D8;
    font-size: 16px;
    font-weight: 600;
    color: #9F9FA9;
    background: #fff;
    cursor: pointer;
    transition: all .3s;
}
.pt-mn-tab.is-active { color: #2563EB; border-bottom-color: #2563EB; }
.pt-mn-news-list { display: flex; flex-direction: column; }
.pt-mn-news-list.is-hidden { display: none; }
.pt-mn-news-item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 12px;
    border-bottom: 1px solid #D4D4D8;
    text-decoration: none;
    transition: background .3s;
}
.pt-mn-news-item:hover { background: #F4F4F5; }
.pt-mn-news-item img { width: 24px; height: 24px; flex-shrink: 0; }
.pt-mn-news-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pt-mn-news-info strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    color: #000;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pt-mn-news-date { font-size: 14px; line-height: normal; color: #000; }
.pt-mn-news-empty { margin: 0; padding: 40px 12px; text-align: center; font-size: 14px; color: #71717B; border-bottom: 1px solid #D4D4D8; }
.pt-mn-news-all { display: block; padding: 12px; text-align: center; font-size: 14px; font-weight: 600; color: #52525C; text-decoration: none; }
.pt-mn-news-all:hover { color: #2563EB; }

.pt-mn-promo {
    height: 278px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 40px 59px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(rgba(59, 130, 246, .2), rgba(255, 255, 255, 0)),
                linear-gradient(90deg, rgba(39, 39, 42, .55), rgba(39, 39, 42, .55)),
                url('../../images/portal/main/news-bg.jpg') center / cover;
}
.pt-mn-promo-title { font-size: 36px; font-weight: 300; line-height: normal; }
.pt-mn-promo-title b { font-weight: 700; }
.pt-mn-promo-text { font-size: 18px; line-height: 26px; }
.pt-mn-promo-btn {
    align-self: flex-start;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s;
}
.pt-mn-promo:hover .pt-mn-promo-btn { color: #2563EB; background: #fff; }

/* ---------- 반응형 ---------- */
@media (max-width: 1280px) {
    .pt-mn-inner { padding: 0 20px; }
}
@media (max-width: 768px) {
    .pt-mn-hero { display: flex; flex-direction: column-reverse; min-height: auto; gap: 0; }
    .pt-mn-hero-img { align-self: flex-end; width: 83%; padding: 0; }
    .pt-mn-hero-img img { height: 160px; border-radius: 0 0 0 80px; }
    .pt-mn-hero-text { justify-content: center; padding: 24px 17px 36px; }
    .pt-mn-hero-content { align-items: center; gap: 22px; text-align: center; }
    .pt-mn-hero-content h1 { font-size: 24px; }
    .pt-mn-hero-desc { gap: 4px; }
    .pt-mn-hero-desc p { font-size: 14px; color: #27272A; }
    .pt-mn-quick { justify-content: center; gap: 8px; width: 100%; margin-top: 0; }
    .pt-mn-quick-item { width: 84px; gap: 10px; padding: 14px 0; }
    .pt-mn-quick-notice { border-radius: 4px; }
    .pt-mn-quick-item img { width: 30px; height: 30px; }
    .pt-mn-quick-item span { font-size: 12px; font-weight: 500; }

    .pt-mn-search { padding: 43px 0; }
    .pt-mn-search::before { display: none; }
    .pt-mn-search-inner { gap: 12px; padding: 0 20px; }
    .pt-mn-search-inner h2 { margin-bottom: 6px; font-size: 24px; }
    .pt-mn-search-box { padding: 12px 16px; }
    .pt-mn-search-btn img { width: 20px; height: 20px; }
    .pt-mn-search-box input { font-size: 14px; }
    .pt-mn-filters { width: 100%; flex-direction: column; gap: 4px; padding: 0; border: 0; border-radius: 0; background: transparent; }
    .pt-mn-filter { width: 100%; align-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; background: rgba(244, 244, 245, .1); }
    .pt-mn-filter:last-child { border-right: 1px solid rgba(255, 255, 255, .3); }
    .pt-mn-filter select { flex: 1; min-width: 0; }

    .pt-mn-stats { padding: 44px 0 64px; }
    .pt-mn-stats .pt-mn-inner { gap: 16px; }
    .pt-mn-block-head h3 { font-size: 18px; }
    .pt-mn-stat-grid { grid-template-columns: 1fr; gap: 0; overflow: hidden; border: 1px solid #F4F4F5; border-radius: 4px; }
    .pt-mn-stat { min-height: 0; flex-direction: row; align-items: center; padding: 12px; border: 0; border-bottom: 1px solid #F4F4F5; border-radius: 0; }
    .pt-mn-stat:last-child { border-bottom: 0; }
    .pt-mn-stat-icon { display: none; }
    .pt-mn-stat-info { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
    .pt-mn-stat-label { font-size: 14px; font-weight: 400; color: #71717B; }
    .pt-mn-stat-value { font-size: 16px; font-weight: 600; }

    .pt-mn-news { padding: 0 0 64px; background: #fff; }
    .pt-mn-news-inner { flex-direction: column; gap: 48px; }
    .pt-mn-news-info strong { font-size: 15px; }
    .pt-mn-news-date { font-size: 12px; }
    .pt-mn-promo { height: auto; gap: 14px; padding: 28px 24px; }
    .pt-mn-promo-title { font-size: 24px; }
    .pt-mn-promo-text { font-size: 14px; line-height: 22px; }
    .pt-mn-promo-text br { display: none; }
}
