/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Tạo khoảng trống khi scroll đến anchor để không bị navbar che */
    scroll-padding-top: 120px; /* 30px (top) + 70px (navbar height) + 20px (extra space) */
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #d8eefe 0%, #f7fafd 100%);
    min-height: 100vh;
    font-family: 'Bitter', Arial, sans-serif;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
    color: #374151;
}

.main-background {
    max-width: 100vw;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    width: 60vw;
    max-width: min(1200px, calc(100vw - 40px));
    min-width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 45px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    animation: navbarFadeIn 1.0s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #094067;
    font-size: 25px;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu a.menu-link.active {
    font-weight: bold;
    color: #094067;
    font-size: 15px;
}

.menu a.disabled {
    color: #094067;
    pointer-events: none;
    font-size: 20px;
}

/* ===== BUTTON ===== */
.button {
    position: relative;
    transition: all 0.3s ease-in-out;
    padding: 0.75rem 1.25rem;
    background-color: #094067;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    gap: 5px;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.3);
    outline: none;
    overflow: hidden;
    font-size: 15px;
    cursor: pointer;
}

.icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.button:hover .icon {
    transform: translate(4px);
}

.button:hover::before {
    animation: shine 1.5s ease-out infinite;
}

.button::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0) 70%);
    top: 0;
    left: -100px;
    opacity: 0.6;
}

@keyframes shine {
    0% { left: -100px; }
    60%, 100% { left: 100%; }
}

/* ===== HERO SECTION ===== */
.recruitment-hero {
    width: 100%;
    padding: 180px 40px 80px;
    background: linear-gradient(135deg, rgba(9, 64, 103, 0.05) 0%, rgba(60, 145, 230, 0.05) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    color: #094067;
    margin-bottom: 20px;
    animation: slideIn 0.8s ease-out 0.2s both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    animation: slideIn 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
    padding: 20px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(9, 64, 103, 0.08);
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.6s; }
.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.8s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(9, 64, 103, 0.15);
}

.stat-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #094067 0%, #3c91e6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #094067;
    line-height: 1;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation khi scroll đến */
.stat-number.count-animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 6px;
    font-weight: 500;
}

/* ===== SECTIONS ===== */
section {
    width: 100%;
    padding: 80px 40px;
    /* Tạo khoảng trống khi scroll đến section để không bị navbar che */
    scroll-margin-top: 120px; /* 30px (top) + 70px (navbar height) + 20px (extra space) */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Class được thêm khi scroll đến */
.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: 2.5rem;
    color: #094067;
    margin-bottom: 15px;
    font-weight: bold;
}

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== POSITIONS SECTION ===== */
.positions-section {
    background: white;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

/* Class được thêm khi scroll đến */
.positions-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.position-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 40px 35px;
    /* Transition MẶC ĐỊNH cho hover - nhanh và không delay */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: visible;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    /* Tạo khoảng trống khi scroll đến card để không bị navbar che */
    scroll-margin-top: 120px; /* 30px (top) + 70px (navbar height) + 20px (extra space) */
}

/* Class được thêm khi scroll đến */
.position-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Transition cho scroll animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Hover animation - Override transition cho hover */
.position-card:hover {
    transform: translateY(-8px) scale(1) !important;
    box-shadow: 0 12px 35px rgba(9, 64, 103, 0.15) !important;
    border-color: #094067 !important;
    /* FORCE transition nhanh cho hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    transition-delay: 0s !important;
}

.position-card.featured {
    border-color: #ef4565;
    background: linear-gradient(135deg, rgba(239, 69, 101, 0.02) 0%, rgba(60, 145, 230, 0.02) 100%);
}

.card-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: #6c757d;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.card-badge.featured-badge {
    background: linear-gradient(135deg, #ef4565 0%, #ff6b8a 100%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-badge svg {
    width: 16px;
    height: 16px;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.card-icon.admin {
    background: linear-gradient(135deg, #094067 0%, #3c91e6 100%);
}

.card-icon.member {
    background: linear-gradient(135deg, #3c91e6 0%, #6db3f2 100%);
}

.card-icon.collaborator {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.card-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.position-card h3 {
    font-size: 1.6rem;
    color: #094067;
    margin-bottom: 15px;
    text-align: center;
}

.position-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.responsibilities {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.responsibilities li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}

.responsibilities svg {
    width: 20px;
    height: 20px;
    color: #28a745;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-footer {
    margin-top: 30px;
    text-align: center;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #094067 0%, #3c91e6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.apply-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.apply-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(9, 64, 103, 0.3);
}

.apply-btn:hover svg {
    transform: translateX(5px);
}

.apply-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.apply-btn:hover::before {
    left: 100%;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    background: linear-gradient(135deg, rgba(9, 64, 103, 0.03) 0%, rgba(60, 145, 230, 0.03) 100%);
    /* Animation initial state */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

/* Class được thêm khi scroll đến */
.benefits-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 35px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(9, 64, 103, 0.08);
    /* Transition MẶC ĐỊNH cho hover - nhanh và không delay */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* Class được thêm khi scroll đến */
.benefit-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Transition cho scroll animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Hover animation - Override transition cho hover */
.benefit-card:hover {
    transform: translateY(-8px) scale(1) !important;
    box-shadow: 0 8px 30px rgba(9, 64, 103, 0.15) !important;
    /* FORCE transition nhanh cho hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    transition-delay: 0s !important;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #094067 0%, #3c91e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.benefit-card h4 {
    font-size: 1.3rem;
    color: #094067;
    margin-bottom: 12px;
}

.benefit-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: #ffffff;
    color: #094067;
    text-align: center;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    margin: 0;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

/* Class được thêm khi scroll đến */
.cta-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Decoration tương tự footer */
.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cta-decoration .decoration-sphere {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(9, 64, 103, 0.05), rgba(239, 69, 101, 0.05));
    animation: float 6s ease-in-out infinite;
}

.cta-decoration .decoration-sphere.sphere-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.cta-decoration .decoration-sphere.sphere-2 {
    width: 180px;
    height: 180px;
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.cta-decoration .decoration-sphere.sphere-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 70%;
    animation-delay: 4s;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

/* Class được thêm khi scroll đến */
.cta-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #094067;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #5f6c7b;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn svg {
    width: 22px;
    height: 22px;
}

.cta-btn.primary {
    background: white;
    color: #094067;
    border: 2px solid #094067;
}

.cta-btn.primary:hover {
    background: #094067;
    color: white;
    border-color: #094067;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 64, 103, 0.3);
}

.cta-btn.secondary {
    background: #094067;
    color: white;
    border: 2px solid #094067;
}

.cta-btn.secondary:hover {
    background: white;
    color: #094067;
    border-color: #094067;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 64, 103, 0.3);
}

/* ===== FOOTER ===== */
.modern-footer {
    background: #094067;
    margin: 0;
    margin-top: 0;
    padding: 40px 40px 30px;
    position: relative;
    overflow: hidden;
    /* Transition mượt từ cta-section */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-sphere {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(60, 145, 230, 0.1), rgba(239, 69, 101, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.decoration-sphere.sphere-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.decoration-sphere.sphere-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.decoration-sphere.sphere-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 60%;
    animation-delay: 4s;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
}

.brand-text {
    text-align: left;
}

.brand-text h4 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.brand-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-style: italic;
}

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 30px 0;
}

.footer-credits {
    text-align: center;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.designer-credit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.designer-link {
    color: #3c91e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: #ef4565;
}

.heart {
    color: #ef4565;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .navbar {
        max-width: calc(100vw - 40px);
        width: 80%;
        padding: 10px 15px;
        top: 20px;
        flex-direction: row;
        text-align: left;
        overflow: hidden;
        box-sizing: border-box;
        flex-wrap: nowrap;
    }

    .logo {
        justify-content: flex-start;
        margin-bottom: 0;
        flex-shrink: 0;
        font-size: 15px;
    }

    .logo img {
        height: 40px;
        margin-right: 8px;
    }

    .menu {
        justify-content: center;
        flex-wrap: wrap;
        order: 2;
        gap: 2px;
        flex: 1;
        overflow: hidden;
    }

    .menu a {
        font-size: 10px;
        padding: 4px 6px;
        margin: 0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .menu a.active,
    .menu a.disabled {
        font-size: 15px;
        font-weight: bold;
    }

    .button {
        padding-block: 0.3rem;
        font-size: 9px;
        order: 3;
        align-self: center;
        margin-top: 0;
        flex-shrink: 0;
    }

    .icon {
        width: 22px;
        height: 22px;
    }
}

/* Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .navbar {
        max-width: calc(100vw - 20px);
        padding: 10px 15px;
        top: 15px;
        border-radius: 25px;
        flex-direction: column;
        text-align: center;
    }

    .logo {
        justify-content: center;
        margin-bottom: 8px;
        order: 1;
    }

    .logo img {
        height: 40px;
        margin-right: 8px;
    }

    .menu {
        justify-content: center;
        flex-wrap: wrap;
        order: 2;
    }

    .menu a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .menu a.active,
    .menu a.disabled {
        font-size: 13px;
        font-weight: bold;
    }

    .button {
        padding-block: 0.4rem;
        padding-inline: 0.8rem;
        font-size: 11px;
        order: 3;
        align-self: center;
        margin-top: 6px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 1024px) {
    .positions-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navbar styling đã được xử lý trong các media query cụ thể hơn:
       - 481px-767px: Mobile tablet
       - ≤480px: Small mobile
    */

    .recruitment-hero {
        padding: 120px 20px 60px;
    }

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

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

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 350px;
    }

    section {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .positions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 70px 20px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .brand-text {
        text-align: center;
    }

    .brand-text h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    html {
        /* Trên mobile, navbar nhỏ hơn nên scroll offset cũng nhỏ hơn */
        scroll-padding-top: 100px; /* 10px (top) + 80px (navbar height) + 10px (extra space) */
    }
    
    .navbar {
        max-width: calc(100vw - 16px);
        padding: 8px 12px;
        top: 10px;
        border-radius: 20px;
        flex-direction: column;
        text-align: center;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
        will-change: transform;
    }
    
    /* Điều chỉnh scroll-margin-top cho các sections và cards trên mobile */
    section,
    .position-card {
        scroll-margin-top: 100px; /* 10px (top) + 80px (navbar height) + 10px (extra space) */
    }

    /* Navbar ẩn khi scroll xuống - Tăng specificity và dùng !important để override animation */
    .navbar.navbar-hidden {
        transform: translateX(-50%) translateY(-120%) !important;
        opacity: 0 !important;
        pointer-events: none;
        animation: none !important; /* Dừng animation khi ẩn */
    }

    .logo {
        font-size: 16px;
        order: 1;
        margin-bottom: 5px;
    }

    .logo img {
        height: 35px;
        margin-right: 5px;
    }

    .menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu a {
        font-size: 12px;
        padding: 5px 8px;
    }

    .menu a.menu-link.active,
    .menu a.disabled {
        font-size: 12px;
        font-weight: bold;
    }

    .button {
        padding-block: 0.35rem;
        padding-inline: 0.6rem;
        font-size: 10px;
        order: 3;
        align-self: center;
        margin-top: 5px;
    }

    .icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-item {
        padding: 25px 30px;
        gap: 15px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
    }
    
    .stat-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .stat-label {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .position-card {
        padding: 30px 25px;
    }

    .position-card h3 {
        font-size: 1.4rem;
    }

    .cta-content h2 {
        font-size: 1.7rem;
    }
}
