﻿/* =========================
   상단 필터링 부분
========================= */
.filter_wrap { margin-bottom:20px; }

.filter_line {
    margin-bottom:10px;
}

/* 공통 */
.filter_btn {
    display:inline-block;
    margin:4px 6px 4px 0;
    text-decoration:none;
    transition:all 0.2s ease;
    font-weight:500;
}

/* =========================
   1차 지역
========================= */
.filter_area1 {
    padding:8px 16px;
    border:1px solid #ddd;
    border-radius:25px;
    background:#fff;
    font-size:14px;
}

.filter_area1.active {
    background:#333;
    color:#fff;
    border-color:#333;
}

/* =========================
   2차 지역 (작게)
========================= */
.filter_area2 {
    padding:5px 12px;
    border:1px solid #e5e5e5;
    border-radius:18px;
    background:#fafafa;
    font-size:13px;
    color:#555;
}

.filter_area2.active {
    background:#666;
    color:#fff;
    border-color:#666;
}

/* =========================
   업종 (각진 + 핑크)
========================= */
.filter_category {
    padding:7px 14px;
    border:1px solid #f1f1f1;
    border-radius:6px;   /* 거의 각짐 */
    background:#fff;
    font-size:14px;
}

.filter_category:hover {
    border-color:#ff4d88;
    color:#ff4d88;
}

.filter_category.active {
    background:#ff4d88;
    color:#fff;
    border-color:#ff4d88;
}

.filter_btn.active {
    background:#333;
    color:#fff;
    border-color:#333;
}


/* =========================
   프래티넘, 스페셜, 일반 배너 스타일
========================= */
.ad_section { margin-bottom: 50px; }
.ad_label { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.ad_list { display: flex; flex-wrap: wrap; gap: 20px; }

/* =========================
   플래티넘 (4개)
========================= */
.ad_type_3 .ad_item {
    width: calc(25% - 15px); /* 4개 */
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* =========================
   스페셜 (4개)
========================= */
.ad_type_2 .ad_item {
    width: calc(25% - 15px); /* 4개 */
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* =========================
   일반형 (2개 / 썸네일 제거)
========================= */
.ad_type_1 .ad_item {
    width: calc(50% - 10px);
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px 15px;
	margin-bottom: -10px; /* 카드간 세로 간격 */
    background: #fafafa;
    display: flex;
    justify-content: space-between; /* 정보와 버튼 좌우로 */
    align-items: center;
}

.ad_type_1 .ad_thumb { display: none; }

.ad_type_1 .ad_info {
    display: flex;            /* 가로 정렬 */
    justify-content: space-between; /* 좌우 골고루 */
    align-items: center;      /* 세로 중앙 정렬 */
    padding: 0;
    font-size: 14px;
    flex: 1;                  /* 영역 최대화 */
}

.ad_type_1 .ad_info > div {
    flex: 1; /* 글 영역 넓이 */
}

.ad_type_1 .ad_btn {
    margin-top: 0;
    align-self: auto; /* 가운데로 오지 않음 */
    margin-left: 10px;
}

/* 공통 */
.ad_thumb {
    position: relative;
    aspect-ratio: 4 / 2; /* 높이 조금 낮춤 */
    overflow: hidden;
}

.ad_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad_type_label {
    position: absolute;
    top: 6px;
    left: 6px;
    background: gold;
    color: #fff;
    padding: 3px 7px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.ad_area1 {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 7px;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* 플래티넘 / 스페셜 정보 영역 */
.ad_type_2 .ad_info,
.ad_type_3 .ad_info {
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    padding: 14px;
    font-size: 0.9rem;
}

.ad_type_2 .ad_info .ad_btn,
.ad_type_3 .ad_info .ad_btn {
    align-self: flex-end; /* 오른쪽 */
    margin-top: 0;
}

.ad_subject {
    font-weight: 600;
    margin-bottom: 5px;
    
    /* 2줄로 제한하고 넘으면 ... 처리 */
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* 최대 2줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; /* 너무 긴 단어 줄바꿈 */
}
.ad_location,
.ad_category,
.ad_pay,
.ad_antecedents { margin-bottom: 3px; color: #555; }

.ad_btn {
    display: inline-block;
    padding: 6px 12px;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .ad_type_3 .ad_item,
    .ad_type_2 .ad_item {
        width: calc(50% - 10px); /* 모바일 2개 */
    }
    .ad_type_1 .ad_item {
        width: 100%;
    }
}

.job-seo-title{
    font-size:20px;
    font-weight:700;
    margin-top:40px;
    margin-bottom:10px;
    color:#222;
}

.job-seo-desc{
    font-size:14px;
    line-height:1.7;
    color:#555;
    padding:18px;
    border:1px solid #eee;
    border-radius:6px;
    background:#fafafa;
}

/* 상단 정보 영역 */
.view_top_info {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
    flex-wrap:wrap; /* 모바일에서 줄바꿈 방지 */
}

.view_date {
    font-size:14px;
    color:#666;
}



/* 버튼 영역 */
.view_actions {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.btn_action {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    border:1px solid #ddd;
    border-radius:4px;
    font-size:13px;
    background:#fafafa;
    text-decoration:none;
    color:#333;
    transition:0.2s;
}

.btn_action:hover {
    background:#f0f0f0;
}

/* 기본 숨김 */
#sns-share {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

/* 회색 배경 */
#sns-share .sns_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* 가운데 박스 */
#sns-share .sns_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 320px;
    background: #fff;
    padding: 0; /* 내부 padding은 view.sns.skin.php에서 처리 */
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    text-align: center;
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* active 되면 애니메이션 */
#sns-share.active .sns_box {
    transform: translate(-50%, -50%) scale(1);
}

/* 닫기 버튼 */
.sns_close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* PC 텍스트 / 모바일 아이콘 */
.pc_text { display:inline; }
.mo_icon { display:none; }

/* 모바일 대응 */
@media (max-width:768px) {
    .pc_text { display:none; }
    .mo_icon { display:inline; font-size:18px; }
    .btn_action { padding:6px 8px; min-width:36px; }
}

/* 모바일 공유 모달 수정 */
@media (max-width: 768px) {
    #sns-share {
        max-height: 100vh;
        overflow-y: auto;
    }
}


/* ===== 전체 공통 ===== */
.view-container { max-width:1100px; margin:5px auto; padding:0 8px; }
.view-box { background:#fff; border-radius:14px; padding:25px; margin-bottom:25px; box-shadow:0 4px 15px rgba(0,0,0,0.05); border:1px solid rgba(0,0,0,0.06);}
.box-title { font-size:18px; font-weight:700; color:#2563eb; margin-bottom:15px; padding-bottom:8px; letter-spacing:-0.3px; }
.view-title { font-size:24px; font-weight:600; margin:0; }
.view-content { font-size:16px; line-height:1.7; }

/* 모바일 */
@media (max-width:768px){
    .view-box { padding:18px; border-radius:10px; }
    .box-title { font-size:16px; }
    .view-title { font-size:20px; }
    .view-content { font-size:15px; }
}

/* 모집조건 grid */
.condition-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.condition-item { background:; padding:15px; border-radius:10px; }
.condition-label { font-size:14px; font-weight:700; color:#666; margin-bottom:6px; }
.condition-value { font-size:16px; font-weight:600; color:#222; }
.condition-item:nth-child(3){ grid-column:1/-1; }

/* 근무조건 */
.work-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:25px; }
.work-item { background:; border-radius:12px; padding:15px; }
.work-label { font-weight:600; color:#666; margin-bottom:8px; }
.work-value { font-size:16px; font-weight:600; color:#222; }

/* 태그형 스타일 */
.tag-section { margin-bottom:20px; }
.tag-list { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.tag-item { background:; color:#383535; padding:6px 12px; border:1px solid #948E8D; border-radius:3px; font-size:15px; font-weight:500; }

/* 회사정보 grid */
.company-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.company-item { background:; padding:12px; border-radius:12px; }
.company-item.full { grid-column:span 2; }
.company-label { font-weight:600; color:#666; margin-bottom:6px; }
.company-value { font-size:16px; font-weight:600; color:#222; word-break:break-all; }

/* 모바일 */
@media (max-width:768px){
    .condition-grid, .work-grid, .company-grid { grid-template-columns:1fr; }
    .condition-item:nth-child(3) { grid-column:auto; }
    .company-item.full { grid-column:span 1; }
}

/* ===== 회사 이미지 슬라이더 ===== */
.company-gallery { width:100%; }
.companyMain { width:60%; max-width:800px; margin:0 auto 20px; aspect-ratio:16/9; overflow:hidden; position:relative; }
.companyMain .swiper-wrapper { display:flex !important; }
.companyMain .swiper-slide { flex:0 0 100% !important; width:100% !important; }
.companyMain .swiper-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.companyThumb { height:90px; margin-top:10px; }
.companyThumb .swiper-slide { height:100%; opacity:0.5; cursor:pointer; }
.companyThumb .swiper-slide-thumb-active { opacity:1; }
.companyThumb .swiper-slide img { width:100%; height:100%; object-fit:cover; }

/* 관련 링크 박스 */
.related-links-box {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 버튼 공통 */
.related-btn {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

/* 같은 지역 */
.related-btn.region {
    background: #f1f5f9;
    color: #0f172a;
}

/* 같은 업종 */
.related-btn.category {
    background: #e0f2fe;
    color: #075985;
}

/* hover 효과 */
.related-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 클릭 느낌 */
.related-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .related-btn {
        font-size: 13px;
        padding: 12px 14px;
    }
}