/* =========================================================
   주요취급품목 (mro-02.html) 전용 스타일
   ========================================================= */

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

/* 상단 메인 배너 */
.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; /* 서브메뉴 노란색(#f4e58e)으로 변경 */
    margin-bottom: 14px;
}
.mro-intro-banner p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 4대 핵심 품목 그리드 (1열 구조) */
.mro-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1열 그리드로 변경 */
    gap: 30px;
    margin-bottom: 40px;
}
.mro-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

/* 1200x400 비율 이미지 스타일 */
.mro-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 400;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
}

.mro-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.mro-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}
.mro-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mro-card-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* 대표 문구 박스 */
.mro-quote-box {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
}
.mro-quote-text {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.5;
    margin: 0;
}

.mro-item-desc {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
}
.mro-item-desc strong {
    color: #0f172a;
}

/* 태그 리스트 */
.mro-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.mro-tag {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   1. GNB 네비게이션 마우스 오버 시 강조색 (빨간색 적용)
   ========================================================= */
.nav-link:hover,
.nav-item:hover > .nav-link {
    color: #e53935 !important; /* 선명하고 세련된 레드 컬러 (#e53935) */
}

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

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