/* 데스크탑과 태블릿에서는 br 숨김 (한 줄) */
.mobile_br {
    display: none;
}

/* ===== 지노블 매칭시스템 메인 섹션 ===== */
.matching_main_section {
    position: relative;
    width: 100%;
    height: 580px; /* 데스크탑 기본 높이 */
    margin-top: 70px; /* top_banner 높이만큼 여백 - 기본값 */
    background-image: url('/theme/gnoble/images/matching/main_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.matching_main_container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.matching_main_content {
    text-align: center;
    color: #FFFFFF;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.matching_main_title {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 60px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.matching_navigation {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}

.matching_nav_item {
    flex: 1;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(72, 67, 60, 0.8);
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.matching_nav_item:last-child {
    border-right: none;
}

.matching_nav_item span {
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    display: block;
}

.matching_nav_item.active span {
    color: #D4AF5F;
    font-weight: 600;
}

.matching_nav_item:hover span {
    color: #D4AF5F;
}

.matching_nav_item:hover {
    background: rgba(72, 67, 60, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.matching_nav_item:focus {
    outline: 2px solid #D4AF5F;
    outline-offset: 2px;
}

.matching_nav_item:active {
    transform: translateY(0);
}

/* ===== 반응형 디자인 ===== */

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .matching_main_section {
        height: 580px;
        margin-top: 70px; /* 데스크탑 top_banner 높이 */
    }
    
    .matching_main_title {
        font-size: 40px; /* 데스크탑 */
        margin-bottom: 60px;
    }
    
    .matching_navigation {
        max-width: 1200px;
    }
    
    .matching_nav_item {
        padding: 20px 0;
    }
    
    .matching_nav_item span {
        font-size: 18px; /* 데스크탑 */
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .matching_main_section {
        height: 520px; /* 태블릿 중간값 */
        margin-top: 60px; /* 태블릿 top_banner 높이 */
    }
    
    .matching_main_title {
        font-size: 35px; /* 태블릿 중간값 */
        margin-bottom: 50px;
    }
    
    .matching_navigation {
        max-width: 100%;
    }
    
    .matching_nav_item {
        padding: 18px 0;
    }
    
    .matching_nav_item span {
        font-size: 16px; /* 태블릿 중간값 */
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .matching_main_section {
        height: 480px; /* 모바일 중간값 */
        margin-top: 55px; /* 모바일 top_banner 높이 */
    }
    
    .matching_main_container {
        padding: 0 15px;
    }
    
    .matching_main_title {
        font-size: 32px; /* 모바일 중간값 */
        margin-bottom: 40px;
    }
    
    .matching_navigation {
        display: flex;
        flex-direction: row;
        gap: 0;
    }
    
    .matching_nav_item {
        padding: 15px 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .matching_nav_item span {
        font-size: 15px; /* 모바일 중간값 */
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .matching_main_section {
        height: 435px; /* 작은 모바일 */
        margin-top: 55px; /* 작은 모바일 top_banner 높이 */
    }
    
    .matching_main_container {
        padding: 0 15px;
    }
    
    .matching_main_title {
        font-size: 30px; /* 작은 모바일 */
        margin-bottom: 35px;
    }
    
    .matching_navigation {
        display: flex;
        flex-direction: row;
        gap: 0;
    }
    
    .matching_nav_item {
        padding: 12px 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .matching_nav_item span {
        font-size: 13px; /* 작은 모바일 */
    }
}

/* ===== 매칭시스템 섹션 1 ===== */
.matching_section1 {
    background-image: url('/theme/gnoble/images/matching/match_section01_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0; /* 데스크탑 기본값 */
}

.matching_section1_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.matching_section1_content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.matching_section1_left {
    flex: 1;
}

.matching_section1_title {
    font-family: 'Noto Serif KR', serif;
    font-size: 40px; /* 데스크탑 기본값 */
    font-weight: 700;
    color: #D4AF60;
    margin-bottom: 20px;
    line-height: 1.4;
}

.matching_section1_text {
    margin: 0;
}

.matching_section1_text p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px; /* 데스크탑 기본값 */
    font-weight: 400;
    color: #FFFFFF;
    /* margin: 0 0 15px 0; */
    line-height: 1.6;
}

.matching_section1_text p:last-child {
    margin-bottom: 0;
}

.matching_section1_right {
    flex: 0 0 470px;
}

.matching_section1_right img {
    width: 100%;
    height: auto;
    display: block;
}

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .matching_section1 {
        padding: 60px 0;
    }
    
    .matching_section1_title {
        font-size: 40px; /* 데스크탑 */
    }
    
    .matching_section1_text p {
        font-size: 18px; /* 데스크탑 */
    }
    
    .matching_section1_content {
        gap: 60px;
    }
    
    .matching_section1_right {
        flex: 0 0 470px;
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .matching_section1 {
        padding: 80px 0;
    }
    
    .matching_section1_title {
        font-size: 35px; /* 태블릿 중간값 */
    }
    
    .matching_section1_text p {
        font-size: 16px; /* 태블릿 중간값 */
    }
    
    .matching_section1_content {
        gap: 40px;
    }
    
    .matching_section1_right {
        flex: 0 0 450px;
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .matching_section1 {
        padding: 60px 0;
    }
    
    .matching_section1_container {
        padding: 0 15px;
    }
    
    .matching_section1_content {
        flex-direction: column;
        gap: 60px;
        align-items: flex-start;
    }
    
    .matching_section1_title {
        font-size: 32px; /* 모바일 중간값 */
        margin-bottom: 30px;
    }
    
    .matching_section1_text p {
        font-size: 15px; /* 모바일 중간값 */
    }
    
    .matching_section1_right {
        flex: none;
        width: 100%;
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .matching_section1 {
        padding: 50px 0;
    }
    
    .matching_section1_container {
        padding: 0 15px;
    }
    
    .matching_section1_content {
        flex-direction: column;
        gap: 50px;
        align-items: flex-start;
    }
    
    .matching_section1_title {
        font-size: 30px; /* 작은 모바일 */
        margin-bottom: 25px;
    }
    
    .matching_section1_text p {
        font-size: 13px; /* 작은 모바일 */
    }
    
    .matching_section1_right {
        flex: none;
        width: 100%;
    }
}

/* ===== 매칭시스템 섹션 2 ===== */
.matching_section2 {
    background-color: #FFFCF7;
    padding: 100px 0; /* 데스크탑 기본값 */
}

.matching_section2_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.matching_section2_content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 섹션 2 헤더 (타이틀 영역) */
.matching_section2_header {
    text-align: left;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
}

/* 모바일에서 타이틀 컨텐츠 영역 가운데 정렬, 텍스트는 왼쪽 정렬 */
@media (max-width: 767px) {
    .matching_section2_header {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
}

.matching_section2_brand {
    font-size: 18px;
    color: #D4AF5F;
    margin-bottom: 20px;
    font-weight: 700;
}

/* 태블릿에서 폰트 크기 조정 */
@media (max-width: 991px) {
    .matching_section2_brand {
        font-size: 16px;
    }
}

/* 모바일에서 폰트 크기 조정 */
@media (max-width: 767px) {
    .matching_section2_brand {
        font-size: 15px;
    }
}

/* 작은 모바일에서 폰트 크기 조정 */
@media (max-width: 480px) {
    .matching_section2_brand {
        font-size: 13px;
    }
}

.matching_section2_header_title {
    font-size: 40px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* 상단 4개 이미지 그리드 */
.matching_section2_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.matching_section2_item {
    text-align: center;
}

.matching_section2_item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Swiper 컨테이너 (모바일에서만 표시) */
.matching_section2_swiper_container {
    display: none !important;
}

.matching_section2_swiper {
    display: none !important;
    width: 100%;
    max-width: 400px;
}

.matching_section2_swiper .swiper-slide {
    text-align: center;
}

.matching_section2_swiper .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* Swiper 네비게이션 버튼 스타일 */
.matching_section2_swiper .swiper-button-prev,
.matching_section2_swiper .swiper-button-next {
    color: #333333;
    width: 40px;
    height: 40px;
    margin-top: -20px;
}

.matching_section2_swiper .swiper-button-prev:after,
.matching_section2_swiper .swiper-button-next:after {
    font-size: 20px;
}

/* 모바일에서 버튼 아이콘 크기 조정 */
@media (max-width: 767px) {
    .matching_section2_swiper_container .swiper-button-prev:after,
    .matching_section2_swiper_container .swiper-button-next:after {
        font-size: 20px;
    }
}

/* 모바일에서 Swiper 컨테이너 구조 */
@media (max-width: 767px) {
    .matching_section2_swiper_container {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        max-width: 390px;
        margin: 0 auto;
    }
    
    .matching_section2_swiper {
        display: block !important;
        max-width: 300px;
        flex: 1;
    }
    
    .matching_section2_content {
        align-items: center;
    }
}

/* 작은 모바일에서 슬라이드 컨텐츠 너비 조정 */
@media (max-width: 480px) {
    .matching_section2_swiper_container {
        max-width: 320px;
    }
    
    .matching_section2_swiper {
        max-width: 240px;
    }
    
    .matching_section2_content {
        align-items: center;
    }
}

/* 모바일에서 네비게이션 버튼 위치 조정 */
@media (max-width: 767px) {
    .matching_section2_swiper_container .swiper-button-prev {
        position: absolute;
        left: -60px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 30px;
        height: 30px;
        color: #48433C;
    }
    
    .matching_section2_swiper_container .swiper-button-next {
        position: absolute;
        right: -60px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 30px;
        height: 30px;
        color: #48433C;
    }
}

/* 작은 모바일에서 네비게이션 버튼 위치 조정 */
@media (max-width: 480px) {
    .matching_section2_swiper_container .swiper-button-prev {
        left: -50px;
        width: 25px;
        height: 25px;
    }
    
    .matching_section2_swiper_container .swiper-button-next {
        right: -50px;
        width: 25px;
        height: 25px;
    }
}

/* 하단 영역 */
.matching_section2_bottom {
    display: flex;
    align-items: center;
    gap: 45px;
}

.matching_section2_left {
    flex: 0 0 560px;
}

.matching_section2_left img {
    width: 100%;
    height: auto;
    display: block;
}

.matching_section2_right {
    flex: 1;
}

.matching_section2_title {
    font-size: 40px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.matching_section2_subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 30px;
    color: #D4AF5F;
    margin-bottom: 20px;
    font-weight: 700;
}

.matching_section2_main_stat_container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 40px;
}

.matching_section2_main_stat {
    font-size: 80px;
    font-weight: 700;
    color: #D4AF5F;
    line-height: 1;
}

.matching_section2_stat_note {
    font-size: 18px;
    color: #D4AF5F;
    font-weight: 700;
}

.matching_section2_stats_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.matching_section2_stat_item {
    text-align: center;
}

.matching_section2_stat_circle {
    width: 180px;
    height: 180px;
    border: 2px solid #DDDDDD;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: transparent;
}

.matching_section2_stat_label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    color: #333333;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.4;
}

.matching_section2_stat_value {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #333333;
    text-align: center;
}

.mobile_br {
    display: none;
}

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .matching_section2 {
        padding: 100px 0;
    }
    
    .matching_section2_title {
        font-size: 40px;
    }
    
    .matching_section2_subtitle {
        font-size: 30px;
    }
    
    .matching_section2_main_stat {
        font-size: 80px;
    }
    
    .matching_section2_stat_note {
        font-size: 18px;
    }
    
    .matching_section2_stats_grid {
        gap: 10px;
    }
    
    .matching_section2_stat_circle {
        width: 180px;
        height: 180px;
    }
    
    .matching_section2_stat_label {
        font-size: 16px;
    }
    
    .matching_section2_stat_value {
        font-size: 28px;
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .matching_section2 {
        padding: 80px 0;
    }
    
    .matching_section2_content {
        gap: 40px;
    }
    
    .matching_section2_header_title {
        font-size: 32px;
    }
    
    .matching_section2_left {
        flex: 0 0 450px;
    }
    
    .matching_section2_left img {
        width: 100%;
    }
    
    .matching_section2_title {
        font-size: 32px;
    }
    
    .matching_section2_subtitle {
        font-size: 26px;
    }
    
    .matching_section2_main_stat {
        font-size: 70px;
    }
    
    .matching_section2_stat_note {
        font-size: 16px;
    }
    
    .matching_section2_stat_value {
        font-size: 24px;
    }
    
    .matching_section2_stats_grid {
        gap: 10px;
    }
    
    .matching_section2_stat_circle {
        width: 160px;
        height: 160px;
    }
    
    .matching_section2_stat_label {
        font-size: 14px;
    }
    
    .matching_section2_stat_value {
        font-size: 24px;
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .matching_section2 {
        padding: 60px 0;
    }
    
    .matching_section2_container {
        padding: 0 15px;
    }
    
    .matching_section2_content {
        gap: 40px;
    }
    
    .matching_section2_grid {
        display: none;
    }
    
    .matching_section2_header_title {
        font-size: 28px;
    }
    
    .matching_section2_bottom {
        flex-direction: column;
        gap: 30px;
    }
    
    .matching_section2_left {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .matching_section2_title {
        font-size: 28px;
    }
    
    .matching_section2_subtitle {
        font-size: 24px;
    }
    
    .matching_section2_main_stat {
        font-size: 65px;
    }
    
    .matching_section2_stat_note {
        font-size: 15px;
    }
    
    .matching_section2_stat_value {
        font-size: 22px;
    }
    
    .matching_section2_stats_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .matching_section2_stat_circle {
        width: 140px;
        height: 140px;
    }
    
    .matching_section2_stat_label {
        font-size: 13px;
    }
    
    .matching_section2_stat_value {
        font-size: 22px;
    }
    
    .mobile_br {
        display: block;
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .matching_section2 {
        padding: 50px 0;
    }
    
    .matching_section2_container {
        padding: 0 15px;
    }
    
    .matching_section2_content {
        gap: 30px;
    }
    
    .matching_section2_grid {
        display: none;
    }
    
    .matching_section2_header_title {
        font-size: 22px;
    }
    
    .matching_section2_bottom {
        flex-direction: column;
        gap: 25px;
    }
    
    .matching_section2_left {
        flex: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .matching_section2_title {
        font-size: 22px;
    }
    
    .matching_section2_subtitle {
        font-size: 22px;
    }
    
    .matching_section2_main_stat {
        font-size: 60px;
    }
    
    .matching_section2_stat_note {
        font-size: 13px;
    }
    
    .matching_section2_stat_value {
        font-size: 20px;
    }
    
    .matching_section2_stats_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .matching_section2_stat_circle {
        width: 100px;
        height: 100px;
    }
    
    .matching_section2_stat_label {
        font-size: 12px;
    }
    
    .matching_section2_stat_value {
        font-size: 20px;
    }
    
    .mobile_br {
        display: block;
    }
}

/* ===== 매칭시스템 타이틀 섹션 ===== */
.matching_title_section {
    background-color: #FFFFFF;
    padding: 100px 0 40px 0; /* 데스크탑 기본값 */
}

.matching_title_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.matching_title {
    font-size: 40px; /* 데스크탑 기본값 */
    font-weight: 700;
    color: #333333;
    text-align: left;
    margin: 0;
    line-height: 1.2;
}

/* 1. 데스크탑 (1200px 이상) - 기본 스타일 */
@media (min-width: 1200px) {
    .matching_title_section {
        padding: 100px 0 40px 0; /* 데스크탑 */
    }
    
    .matching_title {
        font-size: 40px; /* 데스크탑 */
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .matching_title_section {
        padding: 87px 0 35px 0; /* 태블릿 중간값 */
    }
    
    .matching_title {
        font-size: 35px; /* 태블릿 중간값 */
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .matching_title_section {
        padding: 81px 0 32px 0; /* 모바일 중간값 */
    }
    
    .matching_title_container {
        padding: 0 15px;
    }
    
    .matching_title {
        font-size: 32px; /* 모바일 중간값 */
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    .matching_title_section {
        padding: 75px 0 30px 0; /* 작은 모바일 */
    }
    
    .matching_title_container {
        padding: 0 15px;
    }
    
    .matching_title {
        font-size: 30px; /* 작은 모바일 */
    }
}
