﻿/* Import font DejaVu Serif */
@import url('https://fonts.cdnfonts.com/css/dejavu-serif');
* {
    --c1: #2190d5;
    --c2: #3EAFF4;
    --c3: #6EC2F7;
    --c4: #9FDF79;
    --c5: #CFE8FC;
    --c6: #5568E6;
    --c7: #91ABED;
    --c8: #BDC6F4;
    --bg: linear-gradient(180deg, #0ea5f8 0%, #1976d2 40%, #cfe8fc 100%);
    --card-radius: 12px;
    --glass: rgba(255, 255, 255, 0.08);
    --text-light: #ffffff;
    --text-dark: #073047;
}
body {
    margin: 0;
    font-family: 'DejaVu Serif', serif;
}
.header {
    background-color: var(--c1);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0;
    clip-path: none;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

    .logo img {
        width: 150px;
    }

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

    nav ul li a {
        position: relative;
        text-decoration: none;
        color: white;
        font-weight: bold;
        padding: 8px 12px;
        transition: color 0.3s;
        font-size: 18px;
    }

        nav ul li a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0%;
            height: 2px;
            background: white;
            transition: width 0.3s ease;
        }

        nav ul li a:hover::after {
            width: 100%;
        }



.auth {
    display: flex;
    gap: 10px;
}

    .auth a,
    .auth .dk {
        color: white;
        text-decoration: none;
        font-weight: bold;
        padding: 8px 12px;
        border: 1px solid white;
        border-radius: 5px;
        transition: background 0.3s, color 0.3s;
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: -4px -4px 6px #66c4ffdd, 4px 4px 8px rgba(0, 0, 0, 0.25);
        transition: all 0.2s ease;
    }

        .auth a:hover {
            box-shadow: none;
        }


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: white;
    }

/* Responsive */ @media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    nav {
        width: 100%;
        order: 3;
    }

        nav ul {
            flex-direction: column;
            background-color: var(--c1);
            width: 100%;
            display: none; /* ẩn menu mobile */
            padding: 10px 0;
        }

            nav ul.show {
                display: flex;
            }

    .hamburger {
        display: flex;
    }

    .auth {
        order: 2;
    }

    .logo {
        order: 1;
        display: block;
        flex: 0 0 auto; /* không co lại */
        margin-left: 0; /* không dùng margin âm */
    }

}

.header h1 {
    margin: 20px 0 0;
    font-size: 2.5rem;
}
.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.avatar i {
    font-size: 50px;
}

.fa-bell {
    font-size: 25px;
}

a .fa-bell {
    color: white;
}

a .badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 4px;
    font-size: 12px;
    position: relative;
    top: -10px;
    left: -8px;
}

a {
    text-decoration: none;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* khoảng cách giữa các button */
}

/* Avatar */
.avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .avatar-btn img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .avatar-btn:hover img {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }

/* Notify button */
.notify-btn {
    position: relative;
    background-color: #007bff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .notify-btn:hover {
        background-color: #0056b3;
        transform: scale(1.1);
    }

    .notify-btn .badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: red;
        color: white;
        padding: 3px 7px;
        border-radius: 50%;
        font-size: 12px;
        font-weight: bold;
        line-height: 1;
        pointer-events: none;
    }

/* Logout button */
.logout-btn {
    position: relative;
    background-color: #f44336;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

    .logout-btn:hover {
        background-color: #d32f2f;
        transform: scale(1.1);
    }

    /* Tooltip */
    .logout-btn .tooltip {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: -30px;
        background-color: #333;
        color: #fff;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        transition: opacity 0.3s ease;
    }

    .logout-btn:hover .tooltip {
        visibility: visible;
        opacity: 1;
    }
/* ==== SLIDE ==== */
.content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    z-index: 10;
    background: linear-gradient(to bottom, var(--c1), #ffffff);
}

    .content .left,
    .content .right {
        flex: 1;
        padding: 20px;
        text-align: center;
    }

.hero-left {
    margin-top: 100px;
    text-align: center;
}

.content .right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
   
}

.slider {
    width: 350px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease;
}

.slide {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 0;
    transition: background 0.3s;
}

    .prev:hover,
    .next:hover {
        background: rgba(255, 255, 255, 1);
    }

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.content .right img {
    display: block;
    margin-left: 0;
    margin-right: auto;
    width: 350px;
}


.hero-left h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
}

.hero-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 30px;
}

.typing-wave {
    font-size: 18px;
    font-weight: 400;
    color: white;
    display: inline-block;
    white-space: pre-wrap;
    line-height: 1.6;
}

    .typing-wave span {
        display: inline-block;
        color: white;
        /* màu chữ lúc đầu */
        animation: waveColor 2s ease-in-out forwards;
    }

@keyframes waveColor {
    0% {
        color: #5568E6;
    }

    50% {
        color: white;
        /* màu chạy qua */
    }

    100% {
        color: white;
        /* giữ màu cuối */
    }
}


.hero-buttons {
    display: flex;
    gap: 15px;
    margin-left: 180px;
}



    .hero-buttons button {
        padding: 12px 24px;
        border: none;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        background: var(--c2);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: -4px -4px 6px #ffffffa5, 4px 4px 8px rgba(0, 0, 0, 0.25);
        transition: all 0.2s ease;
    }

    .hero-buttons .btn-primary {
        color: white;
    }

    .hero-buttons .btn-secondary,
    .auth .dk {
        background-color: white;
        color: var(--c6);
    }

    /* Hover – nổi hơn */
    .hero-buttons button:hover {
        box-shadow: none;
    }

    /* Khi nhấn (active) hoặc focus – lún ngay lập tức */
    .hero-buttons button:focus,
    .hero-buttons button:active,
    .auth .login:focus,
    .auth .dk:focus {
        outline: none;
        transition: none;
        /* không delay */
        transform: translateY(2px);
        box-shadow: inset -3px -3px 6px rgba(255, 255, 255, 0.5), inset 3px 3px 6px rgba(0, 0, 0, 0.25);
    }

    .hero-buttons button:hover:active {
        transform: translateY(2px);
        box-shadow: inset -3px -3px 6px rgba(255, 255, 255, 0.5), inset 3px 3px 6px rgba(0, 0, 0, 0.25);
    }


@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
}
/* ==== DOTS ==== */
.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dots .dot.active {
    background-color: white;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}
.category-section h2 {
    text-align: center;
    font-family: 'DejaVu Serif', serif;
    font-size: 28px;
    margin-bottom: 50px;
    color: #333;
}
.category-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}
.category-card {
    width: 150px;
    height: 120px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}
.category-card i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}
.category-card p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    font-family: 'DejaVu Serif', serif;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
/* ===== BỐ CỤC 2 CỘT ===== */
.job-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    width: 90%;
    margin: 30px auto;
}
/* ===== MENU BÊN TRÁI ===== */
.job-menu {
    width: 25%;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'DejaVu Serif', serif;
    margin-top: 153px;
}
.job-menu h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}
.job-menu h4 {
    margin-top: 20px;
    font-size: 16px;
    color: #444;
}
.job-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-menu ul li {
    margin: 8px 0;
}
.job-menu ul li a {
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}
.job-menu ul li a:hover {
    color: #6a00ff;
}
.job-menu select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 8px;
}
/* ===== KINH NGHIỆM ===== */
.experience-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.experience-filter label {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
/* ===== DANH SÁCH CÔNG VIỆC ===== */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 70%;
}
/* ===== TIÊU ĐỀ ===== */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}
/* ===== CONTAINER ===== */
.job-list {
    display: flex;
    margin-top: 50px;
    flex-direction: column;
    /* xếp theo cột */
    align-items: center;
    gap: 20px;
    width: 100%;
}
/* ===== JOB CARD ===== */
.job-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 18px 20px;
    transition: 0.3s;
    border-left: 5px solid #6a00ff;
    width: 80%;
    /* hoặc 100% nếu muốn full chiều ngang */
    max-width: 1000px;
    /* để không quá rộng trên màn lớn */
}
.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
}
.job-header h3 {
    font-size: 18px;
    margin: 0;
    font-weight: bold;
}
.job-deadline {
    color: red;
    font-weight: bold;
    font-size: 14px;
    text-align: right;
}
.company {
    font-size: 13px;
    color: #777;
    margin-top: 3px;
}
.job-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.job-footer i {
    color: #ffcc00;
}
.job-footer span {
    font-weight: 600;
    color: #000;
}
.job-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.job-meta span {
    background: #eee;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 13px;
}
.job-desc {
    margin-top: 10px;
    color: #333;
    line-height: 1.6;
}
.job-desc a {
    color: #0056d6;
    font-weight: 600;
    text-decoration: none;
}
.job-desc a:hover {
    text-decoration: underline;
}

footer {
    position: relative;
    color: white;
    text-align: center;
    padding-top: 180px;
    padding-bottom: 80px;
    background: linear-gradient(to top, var(--c1), #ffffff);
    overflow: none;
    margin-top: 200px;
}


.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* căn giữa */
    padding: 0 20px;
}

.footer-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: left;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    display: inline-block;
    padding-bottom: 4px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

    .footer-column ul li {
        opacity: 0.9;
    }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.8;
}

    .footer-column ul li:hover,
    .footer-column h3:hover,
    .footer-title:hover,
    .footer-description:hover,
    .footer-bottom:hover {
        color: var(--c6);
        transition: color 0.3s ease;
    }

@media (max-width: 768px) {
    .footer-title {
        font-size: 24px;
    }

    .footer-description {
        font-size: 15px;
    }

    .footer-column h3 {
        font-size: 16px;
    }
}