/* 섹션 스타일 */
.stwrp {
    padding: 60px 0;
    background-color: #f5f5f5;
}
.stwrp.grey {
    background-color: #fafafa;
}
.stwrp section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 타이틀 스타일 */
.midlgtitle {
    text-align: center;
    margin-bottom: 50px;
}
.midlgtitle img {
    margin: 0 auto 20px;
    display: block;
}
.midlgtitle h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.midlgtitle p {
    font-size: 16px;
    color: #666;
}

/* 탭 래퍼 */
.tabwrp {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 탭 헤더 */
.tabhd {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}
.tabhd .item {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.tabhd .item:hover {
    background: rgba(35, 145, 222, 0.05);
    color: #2391de;
}
.tabhd .item.active {
    color: #2391de;
    background: white;
    border-bottom-color: #2391de;
}

/* 탭 바디 */
.tabbd {
    display: none;
    padding: 40px 30px;
}
.tabbd.active {
    display: block;
}

/* 탭 안 이미지 반응형 */
.tabbd img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 크로스 이미지 */
.tabbd .cross_img {
    width: 100%;
 /*   margin: 20px 0; */
}
.tabbd .cross_img img {
    width: 100%;
    height: auto;
}

/* PC/모바일 분기 이미지 */
.tabbd .pc_only {
    display: block;
}
.tabbd .mobile_only {
    display: none;
}

/* 타임라인 이미지 */
.tabbd .timeline img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

/* 비디오 컨테이너 */
.tabbd .video {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
}
.tabbd .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
}
.tabbd .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 기타 탭 콘텐츠 이미지 */
.tabbd .other_type img {
    max-width: 100%;
    height: auto;
}

/* 탭 타이틀 */
.tabtitle {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}
.tabtitle .stlabel {
    display: inline-block;
    background: linear-gradient(135deg, #2391de 0%, #1e7bc5 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

/* 중간 타이틀 */
.tabmidtitle h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tabmidtitle h3 svg {
    width: 24px;
    height: 24px;
    color: #2391de;
}

/* 설명 영역 */
.tabwrp .tabbd .desc {
    margin: 30px 0;
    color: #555;
}
.tabwrp .tabbd .desc p {
    color: #555;
    margin: 10px 0;
}
.tabwrp .tabbd .desc ul {
    list-style-type: none;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
    padding: 0;
}
.tabwrp .tabbd .desc ul li {
    text-indent: -30px;
    padding-left: 30px;
    margin: 8px 0;
    word-break: keep-all;
}
.tabwrp .tabbd .desc ul li .icon {
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #2391de;
    margin-top: 2px;
    margin-right: 8px;
}
.tabwrp .tabbd .desc ul li .icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.tabwrp .tabbd .desc ul li svg {
    height: 14px;
    width: auto;
    position: relative;
    top: -2px;
    margin: 0 4px;
    color: #2391de;
}
.tabwrp .tabbd .desc ul li .foc {
    font-weight: 700;
    color: #2391de;
}
.tabwrp .tabbd .desc ul li a {
    text-decoration: underline;
}

/* 테이블 오버플로우 */
.ovw {
    overflow-x: auto;
    margin: 20px 0;
}

/* 테이블 스타일 */
.internet_table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}
.internet_table thead {
    background: linear-gradient(135deg, #2391de 0%, #1e7bc5 100%);
    color: white;
}
.internet_table th {
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.internet_table td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}
.internet_table tbody tr:hover {
    background: #f8f9fa;
}
.internet_table .t-bgGray {
    background: #f5f5f5;
}
.internet_table .t-font-gray {
    color: #999;
}
.internet_table .t-font-black {
    color: #333;
    font-weight: 600;
}
.internet_table .t-cashBonus {
    color: #e74c3c;
    font-weight: 700;
}
.internet_table .t-channelBadge {
    display: inline-block;
    background: #2391de;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 5px;
}
.internet_table .th-sub {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
}
.internet_table .carrierBg {
    background: #e8f4fd;
}

/* 추천 상품 스타일 */
.internet_table tbody tr.recommend td:first-child,
.internet_table tbody td.recommend {
    position: relative;
}
.internet_table tbody tr.recommend td:first-child:after,
.internet_table tbody td.recommend:after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    z-index: 2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M20 6L9 17L4 12" stroke="%23007aff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
}
.internet_table tbody tr.recommend {
    border: 3px solid #007aff !important;
}
.internet_table tbody tr.recommend td {
    border-top: 3px solid #007aff;
    border-bottom: 3px solid #007aff;
}
.internet_table tbody tr.recommend td:first-child {
    border-left: 3px solid #007aff;
}
.internet_table tbody tr.recommend td:last-child {
    border-right: 3px solid #007aff;
}

/* 직접 문의 영역 */
.directcontactinfo {
    margin-top: 60px;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.directcontactinfo h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}
.directcontactinfo p {
    color: #666;
    margin-bottom: 25px;
}
.directcontactinfo .bts {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.directcontactinfo .bt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.directcontactinfo .bt.pri {
    background: #2391de;
    color: white;
}
.directcontactinfo .bt.pri:hover {
    background: #1e7bc5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35,145,222,0.3);
}
.directcontactinfo .bt.kko {
    background: #FEE500;
    color: #000;
    position: relative;
}
.directcontactinfo .bt.kko:hover {
    background: #FDD800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254,229,0,0.4);
}
.directcontactinfo .bt svg {
    width: 20px;
    height: 20px;
}
.directcontactinfo .bt.kko svg {
    width: 18px;
    height: 18px;
}

/* 반응형 */
@media (max-width: 768px) {
    .stwrp {
        padding: 40px 0;
    }
    .midlgtitle h2 {
        font-size: 24px;
    }
    .tabhd {
        flex-wrap: wrap;
    }
    .tabhd .item {
        flex: 1 1 50%;
        font-size: 14px;
        padding: 14px 10px;
    }
    .tabbd {
        padding: 25px 15px;
    }
    .tabtitle {
        font-size: 20px;
    }
    
    /* 모바일 이미지 분기 */
    .tabbd .pc_only {
        display: none;
    }
    .tabbd .mobile_only {
        display: block;
    }
    
    /* 타임라인 이미지 모바일 */
    .tabbd .timeline img {
        margin: 10px 0;
    }
    
    /* 비디오 모바일 */
    .tabbd .video {
        margin: 20px 0;
    }
    
    /* 크로스 이미지 모바일 */
    .tabbd .cross_img {
        margin: 15px 0;
    }
    
    .internet_table {
        font-size: 13px;
    }
    .internet_table th,
    .internet_table td {
        padding: 10px 6px;
    }
    .internet_table tbody tr.recommend td:first-child:after,
    .internet_table tbody td.recommend:after {
        top: 4px;
        right: 4px;
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }
    .directcontactinfo h3 {
        font-size: 20px;
    }
    .directcontactinfo .bts {
        flex-direction: column;
    }
    .directcontactinfo .bt {
        width: 100%;
        justify-content: center;
    }
}
