/* =========================================================
   공공기관우선구매제도 (mro-01.html) 전용 스타일
   ========================================================= */

.mro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

/* 1. 상단 메인 배너 */
.mro-intro-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.mro-intro-badge {
    display: inline-block;
    background: #f4e58e; /* 서브메뉴 컬러 (#f4e58e) */
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.mro-intro-banner h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #ffffff;
}
.mro-intro-banner .sub-title {
    font-size: 18px;
    font-weight: 700;
    color: #f4e58e;
    margin-bottom: 14px;
}
.mro-intro-banner p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
    color: #e53935 !important; /* 선명하고 세련된 레드 컬러 (#e53935) */
}

/* 드롭다운 메뉴 항목 호버 시에도 빨간색 통일 */
.dropdown-menu a:hover {
    color: #e53935 !important;
    background-color: #fef2f2 !important; /* 연한 붉은빛 배경 */
}

/* 2. 섹션 공통 제목 */
.mro-section-header {
    margin-bottom: 25px;
    text-align: left;
}
.mro-section-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.mro-section-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #0284c7;
    border-radius: 2px;
}
.mro-section-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* 3. 인증별 혜택 요약 테이블 */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 50px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}
.mro-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 15px;
}
.mro-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 12px;
    font-weight: 700;
    border-bottom: 2px solid #334155;
    white-space: nowrap;
}
.mro-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.5;
}
.mro-table tr:nth-child(even) {
    background-color: #f8fafc;
}
.mro-table tr:last-child td {
    border-bottom: none;
}
.mro-table .cert-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    background: #eff6ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.mro-table .limit-highlight {
    font-weight: 700;
    color: #0284c7;
}

/* 4. 큐엔큐 거래 시 메리트 3대 카드 (3열) */
.mro-merit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.merit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}
.merit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: #0284c7;
    border-radius: 12px 12px 0 0;
}
.merit-icon {
    font-size: 32px;
    margin-bottom: 14px;
}
.merit-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}
.merit-desc {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* 5. 3대 핵심 혜택 박스 (1열) */
.mro-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}
.benefit-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.benefit-card-header {
    background: #f8fafc;
    padding: 20px 28px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.benefit-card-num {
    background: #0f172a;
    color: #f4e58e;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}
.benefit-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.benefit-card-body {
    padding: 28px;
}
.benefit-quote-box {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
}
.benefit-quote-text {
    font-size: 15px;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.5;
    margin: 0;
}
.benefit-main-text {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}
.benefit-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.benefit-bullet-list li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}
.benefit-bullet-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #0284c7;
    font-weight: 800;
}
.benefit-bullet-list li strong {
    color: #0f172a;
}

/* 6. 우선구매 근거 법령 상세 박스 */
.mro-law-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}
.law-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.law-item-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}
.law-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.law-card-title .law-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.law-name {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 10px;
}
.law-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.law-details li {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    position: relative;
    padding-left: 14px;
}
.law-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #0284c7;
    font-weight: bold;
}

@media (max-width: 992px) {
    .mro-merit-grid {
        grid-template-columns: 1fr;
    }
    .law-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   2. 모바일 반응형 최적화 (992px 이하)
   ========================================================= */
@media (max-width: 992px) {
    /* 모바일 헤더 패딩: 좌우 여백을 14px로 미세 조정하여 메뉴 공간 추가 확보 */
    .header-top {
        padding: 10px 14px;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 10px 14px !important;
    }
    
    .logo-img {
        height: 35px;
        margin-bottom: 12px;
    }
    
    /* GNB 컨테이너: 1행 4개 메뉴 간격을 균등하게 분배 */
    .nav-list {
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between !important; /* 모든 메뉴 사이 간격을 균등 배치 */
        align-items: center;
    }
    
    /* ★ 1행 4개 메뉴: 고정 25% 해제 -> 글자 크기에 맞추고 균등 간격 배치 */
    .nav-item:not(.nav-btn-wrap) {
        flex: 0 0 auto !important; /* 고정 25% 제거 */
        max-width: none !important;
        text-align: center;
    }
    
    .nav-link {
        font-size: 13px !important;       /* 모바일 최적 글꼴 크기 */
        letter-spacing: -0.6px;           /* 자간을 살짝 조여 긴 글자 폭 압축 */
        padding: 8px 2px !important;
        text-align: center;
        white-space: nowrap;
    }
    
    /* ★ 2행 상담문의 버튼: 100% 가로 확장 유지 */
    .nav-btn-wrap {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 12px;
    }
    
    .nav-list .btn-contact {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 0;
    }

    /* 모바일 드롭다운 숨김 유지 */
    .dropdown-menu,
    .nav-item:hover .dropdown-menu {
        display: none !important;
    }
}