﻿/* ==================== RECRUITMENT PAGE - TRANG TUYỂN DỤNG ==================== */
/* Design: HEADER ĐẸP - CHUYÊN NGHIỆP - CÓ ĐIỂM NHẤN */
/* ✅ SỬ DỤNG CSS VARIABLES TỪ SETTING DATABASE */

/* ==================== PAGE LAYOUT ==================== */
.recruitment-page-content {
    padding: 30px 0 50px;
    background: #f8f9fa;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.recruitment-page-content p,
.recruitment-page-content li,
.recruitment-page-content span,
.recruitment-page-content a {
    font-size: 14px;
    line-height: 1.7;
}

.recruitment-page-content h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 15px; font-family: 'Plus Jakarta Sans', sans-serif; }
.recruitment-page-content h2 { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; font-family: 'Plus Jakarta Sans', sans-serif; }
.recruitment-page-content h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; font-family: 'Plus Jakarta Sans', sans-serif; }
.recruitment-page-content h4 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; font-family: 'Plus Jakarta Sans', sans-serif; }
.recruitment-page-content h5 { font-size: 15px; font-weight: 600; line-height: 1.4; font-family: 'Plus Jakarta Sans', sans-serif; }
.recruitment-page-content h6 { font-size: 14px; font-weight: 600; line-height: 1.4; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ==================== SECTION HEADER - BEAUTIFUL DESIGN ==================== */
.recruitment-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(3, 78, 162, 0.08);
}

/* ⭐ Decorative Background Pattern */
.recruitment-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.03) 0%, rgba(236, 32, 40, 0.03) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

/* ⭐ Accent Line */
.recruitment-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ashico-red, #ec2028) 0%, var(--ashico-blue, #034ea2) 50%, var(--ashico-red, #ec2028) 100%);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.recruitment-section-header__company {
    text-align: left;
    position: relative;
    z-index: 1;
}

.recruitment-section-header__logo {
    display: none;
}

.recruitment-section-header__info {
    display: block;
}

.recruitment-section-header__company-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: var(--ashico-blue, #034ea2);
    position: relative;
    display: inline-block;
}

.recruitment-section-header__company-name .letter-a {
    color: var(--ashico-red, #ec2028);
    position: relative;
}

/* ⭐ Subtle glow effect on A */
.recruitment-section-header__company-name .letter-a::after {
    content: 'A';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ashico-red, #ec2028);
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
}

.recruitment-section-header__company-dots {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    align-items: center;
}

.recruitment-section-header__company-dots span {
    width: 8px;
    height: 8px;
    background: var(--ashico-red, #ec2028);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.recruitment-section-header__company-dots span:nth-child(2) {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), var(--ashico-red, #ec2028));
}

.recruitment-section-header:hover .recruitment-section-header__company-dots span {
    transform: scale(1.2);
}

.recruitment-section-header:hover .recruitment-section-header__company-dots span:nth-child(1) {
    animation: dotPulse 0.5s ease 0s;
}

.recruitment-section-header:hover .recruitment-section-header__company-dots span:nth-child(2) {
    animation: dotPulse 0.5s ease 0.1s;
}

.recruitment-section-header:hover .recruitment-section-header__company-dots span:nth-child(3) {
    animation: dotPulse 0.5s ease 0.2s;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.recruitment-section-header__company-fullname {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    color: #555;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    max-width: 240px;
    line-height: 1.5;
    padding-left: 2px;
    border-left: 2px solid var(--ashico-red, #ec2028);
    padding-left: 10px;
}

.recruitment-section-header__title {
    text-align: right;
    position: relative;
    z-index: 1;
}

.recruitment-section-header__title h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ashico-blue, #034ea2);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.08) 0%, rgba(236, 32, 40, 0.05) 100%);
    border-radius: 6px;
    border: 1px solid rgba(3, 78, 162, 0.15);
}

.recruitment-section-header__title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--ashico-red, #ec2028);
    border-radius: 2px;
}

/* ==================== STATS BAR ==================== */
.recruitment-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.recruitment-stats__item {
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.recruitment-stats__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #ddd, transparent);
}

.recruitment-stats__number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ashico-red, #ec2028);
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.recruitment-stats__number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--ashico-blue, #034ea2);
    border-radius: 2px;
}

.recruitment-stats__label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* ==================== JOB GRID ==================== */
.recruitment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

/* ==================== JOB CARD ==================== */
.job-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.job-card:hover::before {
    background: linear-gradient(to bottom, var(--ashico-blue, #034ea2), var(--ashico-red, #ec2028));
}

.job-card__img {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #0256b8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.job-card__img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.job-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.job-card:hover .job-card__img img {
    transform: scale(1.1);
}

.job-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.job-card__badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.job-card__badge {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.job-card__badge--urgent {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(238, 90, 90, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(238, 90, 90, 0); }
}

.job-card__badge--hot {
    background: linear-gradient(135deg, #ffa502, #ff7f00);
    color: #fff;
}

.job-card__badge--type {
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #0256b8);
    color: #fff;
}

.job-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-card__title a:hover {
    color: var(--ashico-blue, #034ea2);
}

.job-card__info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.job-card__info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.job-card__info i {
    color: var(--ashico-blue, #034ea2);
    font-size: 11px;
}

.job-card__salary {
    font-size: 13px;
    font-weight: 700;
    color: var(--ashico-red, #ec2028);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-card__salary i {
    font-size: 12px;
}

.job-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    gap: 8px;
}

.job-card__date {
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-card__deadline {
    color: var(--ashico-red, #ec2028);
    font-weight: 600;
    background: rgba(236, 32, 40, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.job-card__apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #0256b8);
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.job-card__apply-btn:hover {
    background: linear-gradient(135deg, var(--ashico-red, #ec2028), #c41e22);
    color: #fff;
    transform: translateX(2px);
}

.job-card__apply-btn i {
    font-size: 9px;
    transition: transform 0.3s ease;
}

.job-card__apply-btn:hover i {
    transform: translateX(3px);
}

/* ==================== PAGINATION ==================== */
.recruitment-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.recruitment-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
}

.recruitment-pagination__btn:hover:not(.disabled):not(.active) {
    border-color: var(--ashico-blue, #034ea2);
    color: var(--ashico-blue, #034ea2);
    background: rgba(3, 78, 162, 0.05);
}

.recruitment-pagination__btn.active {
    background: linear-gradient(135deg, var(--ashico-red, #ec2028), #c41e22);
    border-color: var(--ashico-red, #ec2028);
    color: #fff;
    box-shadow: 0 4px 12px rgba(236, 32, 40, 0.3);
}

.recruitment-pagination__btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* ==================== CTA SECTION ==================== */
.recruitment-cta {
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2) 0%, #0256b8 50%, var(--ashico-blue, #034ea2) 100%);
    background-size: 200% 100%;
    animation: ctaGradient 5s ease infinite;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

@keyframes ctaGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.recruitment-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.recruitment-cta__content {
    position: relative;
    z-index: 1;
}

.recruitment-cta h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.recruitment-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 18px;
    color: #fff;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.recruitment-cta .thm-btn {
    background: #fff;
    color: var(--ashico-blue, #034ea2);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.recruitment-cta .thm-btn:hover {
    background: var(--ashico-red, #ec2028);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.recruitment-cta .thm-btn i {
    transition: transform 0.3s ease;
}

.recruitment-cta .thm-btn:hover i {
    transform: translateX(3px);
}

/* ==================== EMPTY STATE ==================== */
.recruitment-empty {
    text-align: center;
    padding: 70px 30px;
    background: #fff;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px dashed #ddd;
}

.recruitment-empty__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.1) 0%, rgba(236, 32, 40, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.recruitment-empty__icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(3, 78, 162, 0.2);
    border-radius: 50%;
    animation: emptyRotate 10s linear infinite;
}

@keyframes emptyRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.recruitment-empty__icon i {
    font-size: 32px;
    color: var(--ashico-blue, #034ea2);
}

.recruitment-empty h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.recruitment-empty p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */

/* Full HD (≥1920px) */
@media (min-width: 1920px) {
    .recruitment-section-header {
        padding: 30px 35px;
    }
    
    .recruitment-section-header__company-name {
        font-size: 2.1rem;
    }
    
    .recruitment-section-header__title h2 {
        font-size: 1.3rem;
    }
    
    .recruitment-stats__number {
        font-size: 32px;
    }
}

/* Laptop (992-1365px) */
@media (min-width: 992px) and (max-width: 1365px) {
    .recruitment-section-header__company-name {
        font-size: 1.6rem;
    }
    
    .recruitment-section-header__title h2 {
        font-size: 1rem;
    }
    
    .recruitment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recruitment-stats {
        gap: 30px;
    }
}

/* Tablet (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .recruitment-section-header {
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }
    
    .recruitment-section-header__title {
        text-align: left;
    }
    
    .recruitment-section-header__company-name {
        font-size: 1.5rem;
    }
    
    .recruitment-section-header__company-fullname {
        max-width: 100%;
    }
    
    .recruitment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recruitment-stats {
        gap: 25px;
        padding: 18px;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .recruitment-section-header {
        flex-direction: column;
        gap: 15px;
        padding: 18px;
    }
    
    .recruitment-section-header::before {
        display: none;
    }
    
    .recruitment-section-header__title {
        text-align: left;
    }
    
    .recruitment-section-header__company-name {
        font-size: 1.4rem;
    }
    
    .recruitment-section-header__company-fullname {
        max-width: 100%;
        font-size: 0.65rem;
    }
    
    .recruitment-section-header__title h2 {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .recruitment-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }
    
    .recruitment-stats__item {
        flex: 1;
        min-width: 80px;
        padding: 0 10px;
    }
    
    .recruitment-stats__item:not(:last-child)::after {
        display: none;
    }
    
    .recruitment-stats__number {
        font-size: 22px;
    }
    
    .recruitment-stats__label {
        font-size: 9px;
    }
    
    .recruitment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-card {
        flex-direction: column;
        padding: 15px;
    }
    
    .job-card__img {
        width: 100%;
        height: 160px;
    }
    
    .recruitment-pagination__btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .recruitment-cta {
        padding: 25px 18px;
    }
    
    .recruitment-cta h3 {
        font-size: 18px;
    }
    
    .recruitment-cta p {
        font-size: 13px;
    }
}

/* Extra Small (≤480px) */
@media (max-width: 480px) {
    .recruitment-section-header__company-name {
        font-size: 1.25rem;
    }
    
    .recruitment-section-header__title h2 {
        font-size: 0.85rem;
    }
    
    .recruitment-stats__number {
        font-size: 20px;
    }
    
    .job-card__img {
        height: 140px;
    }
    
    .job-card__title {
        font-size: 13px;
    }
}