
/* 히어로 섹션 */
.header-container.hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: url('/assets/image/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6.25rem 1.25rem;
    gap: 3.75rem;
    box-sizing: border-box;
    overflow: visible;
}

.header-container.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
}

.hero-description {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.header-container.hero-section .search-bar-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 940px;

}

.header-container.hero-section .search-bar-container .search-bar {
    padding: 1rem 1.25rem;
}

.header-container.hero-section .search-bar-container .search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #e5e7eb;
    padding: 0 1rem;
}
.header-container.hero-section .search-bar-container .search-field:first-child,
.header-container.hero-section .search-bar-container .search-field:nth-child(2){
    width:8rem;
}

.header-container.hero-section .search-bar-container .search-field:nth-child(3){
    flex:1;
    border-right: none;
}   


/* 슬라이더 컨테이너 */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slider-section .slider-wrapper .layout {
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.slider-section .slider-wrapper {
    max-width: 1060px;
    margin: 0 auto;
}

/* 트랙: 카드들을 가로로 배치 */
.slider-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* 슬라이드 각 카드 */
.slide {
    box-sizing: border-box;
    padding: 0.3125rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    /* 너비는 JavaScript에서 동적으로 설정됨 */
}

/* 카드 스타일은 common.css로 이동됨 */

/* 구인 정보 그리드 레이아웃 */
.job-grid-container {
    max-width: 1060px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.job-grid-slider-track {
    display: flex;
    transition: transform 0.4s ease;
    width: auto;
    box-sizing: border-box;
    will-change: transform;
}

.job-grid-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}


.job-grid-item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* 구인 정보 카드 스타일 (가로 레이아웃) */
.job-card-item {
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}



.job-card-item .job-card-img {
    width: 7.875rem;
    min-width: 7.875rem;
    height: 6.25rem;
    aspect-ratio: 63 / 50;
    border-radius: 10px;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

.job-card-item .job-card-img::after {
    display: none;
}

.job-card-item .job-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.job-card-content {
    flex: 1;
    padding: 0.5rem 0.5rem 0.5rem 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
}

.job-card-content .card-company {
    font-size: 0.8125rem;
    margin: 0;
}

.job-card-location {
    font-size: 0.8125rem;
    color: #666;
    margin: 0;
}

/* 화살표 버튼 CSS */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111;
    font-size: 0.875rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}



.slider-section .slider-container .slider-btn.prev {
    left: calc((100% - 1060px) / 2 - 20px);
}

.slider-section .slider-container .slider-btn.next {
    right: calc((100% - 1060px) / 2 - 20px);
}

.slider-btn:hover:not(:disabled) {
    background-color: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* card-link 스타일은 common.css로 이동됨 */

.view-all-btn {
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-decoration: none;
    background: #f3f3f3;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.view-all-btn:hover {
    background: #e7e7e7;
}


/* 슬라이더 섹션 */
.slider-section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 0;
}
.slider-section.tools {
    padding: 0;
}

.slider-section .layout {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 섹션 헤더 */
.section-header {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.section-header-content {
    flex: 1;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.section-description {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.section-view-all {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.section-view-all:hover {
    color: #4169E1;
}

.article .section-header {
    padding: 1.875rem 1.25rem;
}

/* 빈 상태 메시지 */
.empty-message {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: #777;
    font-size: 0.9375rem;
    margin: 0;
}

/* 이용후기 섹션 */
.slider-section.review {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.review-section-header {
    text-align: center;
    margin-bottom: 3.125rem;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.review-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    font-weight: 400;
}

.review-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.4;
}

.review-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.review-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.review-slider-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
    will-change: transform;
}

.review-slide {
    flex: 0 0 22.22%;
    min-width: 22.22%;
    max-width: 22.22%;
    box-sizing: border-box;
    padding: 0.625rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.review-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.125rem;
    position: relative;
    min-height: 10.125rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.review-quote {
    color: #4169E1;
    line-height: 1;
    display: flex;
    align-items: flex-start;
}

.review-quote i {
    font-size: 40px;
    line-height: 1;
}

.review-title-text {
    font-size: 1rem;
    font-weight: 500;
    margin: 0.75rem 0 0.25rem;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    min-width: 0;
}

.review-content {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
    margin: 0 0 2rem 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    min-width: 0;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
}

.review-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: #444;
}

.review-company {
    font-size: 0.8125rem;
    color: #666;
}

.review-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* 공지사항 + 고객센터 섹션 */
.notice-customer-section {
    width: 100%;
    background-color: #ffffff;
    padding: 3.75rem 0;
}

.notice-customer-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 3.75rem;
}

.notice-box {
    flex: 1;
    background: #ffffff;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notice-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111;
    margin: 0;
}

.notice-view-all {
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.notice-view-all:hover {
    color: #4169E1;
}

.notice-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 20px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-link {
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    flex: 1;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.notice-link:hover {
    color: #4169E1;
}

.notice-date {
    font-size: 0.875rem;
    color: #666;
    margin-left: 1rem;
    white-space: nowrap;
}

.notice-empty {
    color: #777;
    font-size: 14px;
    padding: 1.25rem 0;
    margin: 0;
}

.customer-center-box {
    flex: 1;
    background: #ffffff;
}

.customer-center-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111;
    margin: 0 0 1.25rem 0;
}

.customer-phone {
    font-size: 1.5rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 1rem;
}

.customer-hours {
    margin-bottom: 1rem;
}

.customer-hours p {
    font-size: 0.875rem;
    color: #666;
    margin: 0.25rem 0;
    line-height: 1.6;
}

.customer-email {
    margin-bottom: 20px;
}

.customer-email a {
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
}

.customer-email a:hover {
    text-decoration: underline;
}

.customer-center-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    text-align: center;
}

.customer-center-btn:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}


/* ========================================================= */
/* 반응형 스타일 */
/* ========================================================= */




/* 히어로 섹션 & 검색 바 */
@media (max-width: 1060px) {
    .header-container.hero-section {
        margin-top: 60px;
    }
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .header-container.hero-section {
        min-height: 60vh;
        padding: 80px 20px;
        gap: 30px;
    }
    
    .header-container.hero-section .search-bar-container {
        max-width: 480px;
        padding: 0 10px;
        margin: 0;
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    
    
    .header-container.hero-section .search-bar-container .search-field:first-child,
    .header-container.hero-section .search-bar-container .search-field:nth-child(2),
    .header-container.hero-section .search-bar-container .search-field:last-of-type {
        width:100%;
        padding: 0;
        border-right:none;
    }
    
    .slider-section .slider-wrapper .layout{
        overflow: visible;
        padding:0 20px;
    }
    /* 구인 정보 그리드 */
    .job-grid-container {
        padding: 0 15px;
    }
}



@media (min-width: 601px) and (max-width: 1060px) {
    .job-grid-page {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(3, auto) !important;
        gap: 1.25rem;
    }
    
    .job-grid-item {
        width: 100%;
        min-width: 0;
        flex-shrink: 0;
    }
    
    .job-card-item {
        flex-direction: row !important;
        gap: 12px;
        width: 100%;
    }
    
    .job-card-item .job-card-img {
        width: 126px !important;
        min-width: 126px !important;
        height: 100px;
        aspect-ratio: 63 / 50;
    }
    
    .job-card-content {
        padding: 8px 8px 8px 0 !important;
        width: 100%;
    }
    

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .header-container.hero-section {
        min-height: 55vh;
        padding: 60px 15px;
        gap: 20px;
    }
    
 

    .header-container.hero-section .search-bar-container .search-bar {
        padding: 16px;
        gap: 8px;
    }
    
    .header-container.hero-section .search-bar-container .search-field {
        gap: 4px;
    }
    
    /* 섹션 헤더 */
    .section-header {
        padding: 0 15px;
        margin-bottom: 10px;
    }
    .section-description,
    .review-subtitle {
        display: none;
    }
    
    .section-title {
        margin: 0;
    }
    
    .section-view-all {
        padding: 0;
    }
    
    .slider-section .slider-wrapper .layout {
        width: calc(100% - 30px);
        padding: 0;
    }
    
    .notice-customer-container{
        flex-direction: column !important;
        padding: 0 15px;
    }

    .job-grid-page {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
        padding: 0;
        height: auto;
        overflow: hidden;
    }
}
