/* ===========================
   RESET & BASE
=========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* tránh tràn ngang gây lệch header */
}

body {
    font-family: "Alumni+Sans", system-ui, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Link */
a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   PAGE LAYOUT
=========================== */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
}

.layout {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-inner {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 16px 16px 40px;
}

/* Tablet nhỏ */
@media (min-width: 640px) {
    .layout-inner {
        padding-inline: 32px;
    }
}

/* Tablet ngang */
@media (min-width: 768px) {
    .layout-inner {
        padding-inline: 80px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .layout-inner {
        padding-inline: 160px;
    }
}

/* Khối chính */
.main-content {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px 0 40px;
}

/* ===========================
   BUTTONS
=========================== */

.btn {
    display: inline-flex;
    min-width: 84px;
    max-width: 480px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    height: 40px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #256af4;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background-color: rgba(37, 106, 244, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Chứa link bên trong button */
.btn-primary a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Button "Xem chi tiết" trong job */
.job-apply-btn {
    max-width: 160px;
}

/* Mobile: cho nút full-width nếu thích */
@media (max-width: 480px) {
    .job-apply-btn {
        width: 100%;
        max-width: none;
    }
}

/* ===========================
   HERO
=========================== */

.hero {
    border-radius: 16px;
    min-height: 260px;
    padding: 18px 14px;
    background-image:
        linear-gradient(rgba(16, 22, 34, 0.7) 0%,
            rgba(16, 22, 34, 0.92) 100%),
        url("https://lh3.googleusercontent.com/aida-public/AB6AXuANth3Cik5W73N3uBYItTrDcNbMX0a8xU8Sfcq-FoiOUsp1ql-pCE4kY1a1H4je2OQGXXXDHhY1kpAjSUe2LrJ3cqMKnzkQ-80Ta7tKQD4SZ6Z2OEdbCGDImBvAXWdqVd2fIAtyvgA1qDOI5A-YLukXRvuHWOVwPyVrViMD1CVlkMRj2ma1ngri4LQP17X-tXwkAKCoAr-qjJS3Gfv-gYiih8e-TsMVqU3Jr35P0UYJmgp9e48hODqWrHniBetNDLjsEwU3TcglbeTJ");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    max-width: 680px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title {
    font-size: 1.9rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.033em;
    color: #ffffff;
}

.hero-subtitle {
    margin-top: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Mobile rất nhỏ */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }
}

/* >= 480px */
@media (min-width: 480px) {
    .hero {
        min-height: 340px;
        padding: 24px 18px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* >= 768px */
@media (min-width: 768px) {
    .hero {
        min-height: 420px;
        padding: 28px 24px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===========================
   JOB LIST WRAPPER
=========================== */

.jobs {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
}

/* ===========================
   JOB CARD
=========================== */

.job-card {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease;
}

.job-card:first-child {
    border-top: none;
}

.job-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.job-card--active {
    background-color: #262626;
}

/* Header của job (tiêu đề + meta + icon) */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    cursor: pointer;
    background-color: #262626;
}

.job-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Tiêu đề job */
.job-title {
    font-size: 1rem;
    font-weight: 700;
}

/* Thông tin meta dưới title */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Icon mở rộng */
.job-expand-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.job-card:hover .job-expand-icon {
    color: #ffffff;
}

.job-expand-icon--open {
    transform: rotate(180deg);
    color: #ffffff;
}

/* Mobile: cho header giãn dòng, không dí sát icon */
@media (max-width: 600px) {
    .job-header {
        align-items: flex-start;
    }

    .job-title {
        font-size: 0.98rem;
    }
}

/* Desktop: cho title to hơn chút */
@media (min-width: 900px) {
    .job-title {
        font-size: 1.1rem;
    }
}

/* ===========================
   JOB BODY (EXPANDED CONTENT)
=========================== */

.job-body {
    padding: 0 16px 16px 16px;
    display: none;
    flex-direction: column;
    gap: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    background-color: #262626;
}

/* Khi card active → hiện body */
.job-card--active .job-body {
    display: flex;
}

/* Mỗi block trong body (Nhiệm vụ, Quyền lợi...) */
.job-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-section-title {
    font-weight: 700;
    color: #ffffff;
}

/* List bullet */
.job-list {
    list-style: disc inside;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Khoảng dưới cùng cho nút */
.job-body .btn {
    margin-top: 4px;
}

/* Tablet trở lên: cho padding thoáng hơn */
@media (min-width: 768px) {
    .job-header {
        padding: 22px 24px;
    }

    .job-body {
        padding: 0 24px 24px 24px;
    }
}

/* ===========================
   REVEAL ANIMATION
   (Scroll vào thì trượt / zoom nhẹ)
=========================== */

.reveal,
.reveal--zoom {
    opacity: 0;
    will-change: opacity, transform;
    transition:
        opacity 0.7s cubic-bezier(.15, .75, .35, 1),
        transform 0.7s cubic-bezier(.15, .75, .35, 1);
}

/* Trượt nhẹ từ dưới lên */
.reveal {
    transform: translateY(32px);
}

/* Zoom nhẹ (dùng cho hero) */
.reveal--zoom {
    transform: scale(0.94);
}

/* Khi đã visible (JS thêm class is-visible) */
.reveal.is-visible,
.reveal--zoom.is-visible {
    opacity: 1;
    transform: none;
}