/* HR Page Styles */

/* Hero Section */
.hr-hero {
    position: relative;
    height: 370px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.hr-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: white;
}

.hr-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hr-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hr-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hr-hero .hero-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hr-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hr-hero .hero-description {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.hr-hero .scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hr-hero .scroll-arrow {
    width: 45px;
    height: 45px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.hr-hero .scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Main Content */
.hr-content {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Content Intro Section */
.content-intro {
    text-align: center;
    margin-bottom: 60px; /* 전체 아래 간격 소폭 축소 */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-subtitle {
    font-size: 1.7rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-title {
    font-size: 2rem; /* 폰트 소폭 축소 */
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px; /* 아래 마진 소폭 축소 */
}

.intro-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* HR 페이지: 인트로 서브타이틀만 중앙정렬 */
.hr-content .intro-subtitle { text-align: center !important; }

/* Talent Cards */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.talent-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.talent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.talent-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.talent-card:hover .card-icon {
    transform: scale(1.1);
}

.talent-card .card-icon i {
    font-size: 2rem;
    color: white;
}

.talent-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.talent-card p {
    color: #666;
    line-height: 1.6;
}

/* Talent horizontal rows */
.talent-rows {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.talent-row {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 20px 10px;
}

/* Left circular symbol */
.trait-symbol {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.trait-orange { background: #ff6b35; }
.trait-red { background: #e53935; }
.trait-blue { background: #2d7efb; }
.trait-green { background: #27ae60; }

/* Right content */
.trait-content { flex: 1; }
.trait-content h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #333;
    line-height: 1.35;
    margin: 0 0 14px;
}
.trait-content p {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 14px;
    line-height: 1.8;
}
.trait-content ul {
    margin: 0;
    padding-left: 18px;
    color: #666;
}
.trait-content ul li { 
    margin: 6px 0; 
    line-height: 1.7;
}

/* Benefits Categories */
.benefits-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.category-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.category-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
}

.category-section h3 i {
    color: #007bff;
    margin-right: 10px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.benefit-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.benefit-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Recruitment Process */
.recruitment-process {
    margin: 80px 0;
}

.recruitment-process h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    line-height: 1.5;
}

/* Current Job Openings */
.current-openings {
    margin-top: 80px;
}

.current-openings h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.job-listings {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.job-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.job-item:hover {
    transform: translateY(-3px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.job-header h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.job-type {
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.job-details {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.job-details p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.job-details i {
    color: #007bff;
    margin-right: 8px;
}

.job-description p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Benefits Grid Styles (moved from sub-page.css) */
.benefits-grid-section {
    padding: 70px 0 90px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 36px; /* row gap, column gap */
}

.benefit-card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 16px;
}

.benefit-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f2f2f2;
    border-radius: 6px;
    overflow: hidden;
}

.benefit-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.benefit-text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #222;
    margin: 4px 0 10px;
    letter-spacing: -0.2px;
}

.benefit-text h3 .num {
    color: #ff4d3a; /* 빨간 포인트 번호 */
    margin-right: 8px;
}

.benefit-text p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.98rem;
}

/* Recruitment Guide Styles */
.section-title {
    font-size: 1.45rem;
    font-weight: 500;
    color: #222;
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e4007f, #3e2b97);
    display: inline-block;
}

.recruitment-guide-section { margin-bottom: 36px; }

.recruitment-guide .guide-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.recruitment-guide .guide-table thead th {
    background: #3e2b97; /* 남색 헤더 */
    color: #fff;
    font-weight: 600;
    padding: 18px 16px;
    font-size: 1rem;
    border-right: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}
.recruitment-guide .guide-table thead th:last-child { border-right: none; }
.recruitment-guide .guide-table tbody td {
    padding: 24px 18px;
    color: #444;
    border-top: 1px solid #eee;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
    text-align: center; /* 표 본문 중앙 정렬 */
}
.recruitment-guide .guide-table tbody td:last-child { border-right: none; }
.recruitment-guide .guide-table .muted { color: #777; }

.apply-actions { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.btn-apply {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, #5a46da, #e4007f);
    color: #fff;
    border-radius: 22px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(90,70,218,0.25);
}
.btn-apply:hover { filter: brightness(1.05); }
.apply-link a { color: #5a46da; font-size: 0.9rem; word-break: break-all; }

/* Recruitment Flow Styles */
.recruitment-flow-section { margin: 48px 0 14px; }
.process-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 26px 0 70px;
}
.flow-item { display: flex; justify-content: center; }
.flow-arrow { color: #888; font-size: 28px; line-height: 1; text-align: center; }

.circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    flex-direction: column; /* 소제목을 다음 줄로 */
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    color: #333;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    position: relative;
}
.circle small {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    margin-top: 6px;
}
.circle-blue { border: 6px solid #5a46da; color: #2c2c2c; background: #fff; }
.circle-purple { border: 6px solid #5a46da; background: #fff; }
.circle-red { border: 6px solid #e93e63; background: #fff; }
.circle-gradient { background: linear-gradient(135deg, #5a46da, #e4007f); color: #fff; border: none; }

.flow-note {
    color: #555;
    font-size: 0.95rem;
    margin-top: 18px;
}

/* Responsive */
@media (max-width: 1199px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 28px;
    }
}

@media (max-width: 991px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 22px;
    }

    .benefit-text h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .benefits-grid-section {
        padding: 40px 0 60px;
    }
}

@media (max-width: 992px) {
    .talent-row { gap: 30px; }
    .trait-symbol { flex-basis: 180px; width: 180px; height: 180px; font-size: 1.3rem; }
    .trait-content h3 { font-size: 1.6rem; }
}
@media (max-width: 768px) {
    .talent-row { flex-direction: column; align-items: center; text-align: center; }
    .trait-content { text-align: left; width: 100%; }
}

@media (max-width: 768px) {
    .hr-hero {
        height: 28vh;
        margin-bottom: 40px;
        margin-top: -12px;
    }
    .scroll-indicator {
        bottom: 10px;
    }
    .scroll-arrow {
        width: 35px;
        height: 35px;
        border-width: 1.5px;
        font-size: 1rem;
    }
    
    .hr-hero .hero-title {
        font-size: 2rem;
    }
    .hr-hero .hero-description { font-size: 0.9rem; }
    
    .hr-content {
        padding: 60px 0;
    }
    
    .intro-title {
        font-size: 1.7rem;
    }
    
    .talent-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefits-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .job-details {
        flex-direction: column;
        gap: 10px;
    }
    
    /* 히어로 텍스트를 살짝 위로 이동 (우선순위 강제) */
    .hr-hero .hero-content { transform: translateY(-14px) !important; }
}

@media (max-width: 480px) {
    .hr-hero .hero-content { padding: 0 15px; }
    .hr-hero .hero-title { font-size: 1.5rem; }
    .hr-hero .hero-description { font-size: 0.85rem; }


    .intro-title {
        font-size: 1.1rem;
    }
    
    .talent-card,
    .category-section,
    .process-step,
    .job-item {
        padding: 25px;
    }
    
    /* 초소형에서는 텍스트를 조금 더 위로 */
    .hr-hero .hero-content { transform: translateY(-16px) !important; }
}

@media (max-width: 1100px) {
    .circle { width: 150px; height: 150px; }
}
@media (max-width: 992px) {
    .process-flow { grid-template-columns: 1fr; gap: 18px; }
    .flow-arrow { display: none; }
}
@media (max-width: 576px) {
    .circle { width: 160px; height: 160px; font-size: 0.95rem; }
    .hr-content .section-title {font-size: 1.1rem !important; } 
    .hr-content .intro-subtitle {font-size: 1.5rem !important; }
    .hr-content .guide-table {font-size: 0.9rem !important; } 
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}