/* ====== Detail Page - Career Handbook ====== */
.career-handbook {
    background-color: var(--color-bg-light);
    padding: 55px 0 59px;
}

.career-handbook .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.career-handbook-title {
    font-size: 33px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    font-family: "Inter";
    line-height: 37px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.career-handbook-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.handbook-tag {
    display: inline-block;
    padding: 8px 10px;
    border: 1px solid var(--color-primary);
    border-radius: 7px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
    background-color: transparent;
    line-height: 100%;
}

.handbook-tag:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.career-handbook-desc {
    font-size: 14px;
    line-height: 21px;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 66px;
    font-family: "Inter";
    font-weight: 400;
}

.featured-posts-title {
    font-size: 33px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: "Inter";
    margin-bottom: 34px;
    text-transform: uppercase;
    line-height: 37px;
}

.featured-posts-layout {
    display: flex;
    gap: 41px;
}

/* Featured post large (left) */
.featured-post-large {
    flex: 1;
    background-color: var(--color-bg-gray-alt);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.featured-post-large:hover {
    box-shadow: var(--shadow-lg);
}

.featured-post-image img {
    width: 100%;
    height: 345px;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.featured-post-image:hover img {
    transform: scale(1.03);
}

.featured-post-body {
    padding: 24px 27px 28px;
}

.post-category {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    font-family: "Inter";
    line-height: 100%;
}

.post-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 100%;
    margin-bottom: 6px;
    font-family: "Inter";
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: none;
    color: var(--color-primary-hover);
}

.post-date {
    font-size: 15px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 15px;
    font-family: "Inter";
    line-height: 100%;
    font-weight: 300;
}

.post-excerpt {
    font-size: 15px;
    line-height: 23px;
    color: var(--color-text-dark);
    font-family: "Inter";
    font-weight: 400;
    margin-bottom: 10px;
    text-align: justify;
}

.btn-detail {
    display: block;
    margin-left: auto;
    width: fit-content;
    padding: 11px 27px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-family: "Open Sans";
    background-color: var(--color-bg-white);
    line-height: 16px;
}

.btn-detail:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

/* Side posts (right) */
.featured-post-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.side-post-card {
    display: grid;
    grid-template-columns: 5fr 3fr;
    align-items: center;
    background-color: var(--color-bg-gray-alt);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.side-post-card:hover {
    box-shadow: var(--shadow-lg);
}

.side-post-info {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 19px;
}

.side-post-info .post-title {
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.side-post-info .post-date {
    font-size: 12px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 10px;
    font-family: "Inter";
    line-height: 100%;
    font-weight: 300;
}

.side-post-info .post-excerpt {
    margin-bottom: 0;
}

.side-post-info .btn-detail {
    display: none;
}

.side-post-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.side-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.side-post-image:hover img {
    transform: scale(1.03);
}

/* ===== Article List Section ===== */
.article-list-section .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-list-section {
    background-color: var(--color-bg-gray);
    padding: 63px 0;
}

.article-list-title {
    font-size: 33px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 40px;
    line-height: 37px;
    text-transform: uppercase;
    font-family: "Inter";
}

.article-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 21px;
    margin-bottom: 47px;
}

.article-card {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.article-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 19px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.article-card-image:hover img {
    transform: scale(1.03);
}

.article-card-body .post-category {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-primary);
    text-transform: uppercase;
    display: block;
    line-height: 120%;
    margin-bottom: 10px;
    font-family: "Inter";
}

.article-card-body .post-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 130%;
    margin-bottom: 8px;
    font-family: "Inter";
}

.article-card-body .post-date {
    font-size: 12px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 6px;
    font-family: "Inter";
    font-weight: 300;
}

.article-card-body .post-excerpt {
    font-size: 15px;
    margin-bottom: 0;
    text-align: justify;
    font-family: "Inter";
    line-height: 23px;
    font-weight: 400;
}

.read-more {
    color: var(--color-link-blue);
    text-decoration: none;
    font-weight: 400;
    margin-left: 4px;
}

.read-more:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

/* Pagination */
.article-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text-base);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-btn.pagination-active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-white);
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

span.pagination-prev,
span.pagination-next {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Apply Form Section ===== */
.apply-form-section {
    background-color: var(--color-bg-gray);
    padding: 60px 0;
}

.apply-form-section .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.apply-form-wrapper {
    background-image: url('../images-test/bg-apply-form.png');
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    border-radius: 8px;
    padding: 42px 47px;
    text-align: center;
}

.apply-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-bg-white);
    font-family: "Inter";
    text-transform: uppercase;
    margin-bottom: 18px;
    line-height: 32px;
}

.apply-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.apply-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: "Inter";
    color: var(--color-text-base);
    background-color: var(--color-bg-white);
}

.apply-input::placeholder {
    color: var(--color-text-placeholder);
}

/* Select dropdown styling */
.apply-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

.apply-select option {
    padding: 10px;
}

.apply-file-upload {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-white);
    border-radius: 8px;
    padding: 0 20px;
    gap: 14px;
}

.apply-file-label {
    font-size: 15px;
    font-family: "Inter";
    color: var(--color-text-base);
}

.apply-file-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-btn-secondary);
    border-radius: 6px;
    font-size: 14px;
    font-family: "Inter";
    color: var(--color-text-base);
    cursor: pointer;
    transition: background-color 0.3s;
}

.apply-file-btn:hover {
    background-color: var(--color-btn-secondary-hover);
}

.apply-submit-btn {
    display: inline-block;
    padding: 16px 63px;
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    font-size: 17px;
    font-weight: 700;
    font-family: "Inter";
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 16px;
}

.apply-submit-btn:hover {
    background-color: var(--color-accent-hover);
}

/* ===== Responsive - Category Page ===== */
@media (max-width: 1024px) {
    .career-handbook {
        padding: 40px 0 45px;
    }

    .career-handbook-title {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 20px;
    }

    .career-handbook-tags {
        gap: 10px;
        margin-bottom: 18px;
    }

    .handbook-tag {
        font-size: 14px;
        padding: 7px 9px;
    }

    .career-handbook-desc {
        font-size: 13px;
        line-height: 20px;
        margin-bottom: 45px;
    }

    .featured-posts-title {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 25px;
    }

    .featured-posts-layout {
        gap: 25px;
    }

    .featured-post-image img {
        height: 280px;
    }

    .featured-post-body {
        padding: 18px 20px 22px;
    }

    .post-title {
        font-size: 20px;
    }

    .side-post-info .post-title {
        font-size: 16px;
        line-height: 20px;
    }

    .article-list-section {
        padding: 45px 0;
    }

    .article-list-title {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 30px;
    }

    .article-list-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        margin-bottom: 35px;
    }

    .apply-form-wrapper {
        padding: 35px 30px;
    }

    .apply-form-title {
        font-size: 24px;
        line-height: 28px;
    }
}

@media (max-width: 768px) {
    .career-handbook {
        padding: 30px 0 35px;
    }

    .career-handbook-title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 18px;
    }

    .career-handbook-tags {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 8px;
        margin-bottom: 15px;
    }

    .career-handbook-tags::-webkit-scrollbar {
        display: none;
    }

    .handbook-tag {
        flex-shrink: 0;
        font-size: 15px;
        padding: 6px 8px;
    }

    .career-handbook-desc {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 35px;
        text-align: justify;
    }

    .featured-posts-title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 20px;
    }

    .featured-posts-layout {
        flex-direction: column;
        gap: 20px;
    }

    .featured-post-image img {
        height: 245px;
    }

    .featured-post-body {
        padding: 15px 18px 20px;
    }

    .post-category {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .post-title {
        font-size: 17px;
        margin-bottom: 5px;
    }

    .post-date {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .post-excerpt {
        font-size: 15px;
        line-height: 22px;
    }

    .btn-detail {
        padding: 10px 20px;
        font-size: 14px;
    }

    .side-post-card {
        display: flex;
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
    }

    .side-post-image {
        order: -1;
        aspect-ratio: 16/9;
        overflow: visible;
    }

    .side-post-image img {
        border-radius: 0;
        height: 245px;
        object-fit: cover;
    }

    .side-post-info {
        padding: 15px 18px 20px;
    }

    .side-post-info .btn-detail {
        display: block;
    }

    .side-post-info .post-title {
        font-size: 17px;
        line-height: 22px;
        margin-bottom: 5px;
    }

    .side-post-info .post-date {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .side-post-info .post-excerpt {
        font-size: 15px;
        line-height: 22px;
    }

    .article-list-section {
        padding: 35px 0;
    }

    .article-list-title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 25px;
    }

    .article-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .article-card {
        background-color: var(--color-bg-gray-alt);
        border-radius: 10px;
        overflow: hidden;
    }

    .article-card-image {
        margin-bottom: 0;
    }

    .article-card-image img {
        border-radius: 0;
    }

    .article-card-body {
        padding: 15px 18px 20px;
    }

    .article-card-body .post-category {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .article-card-body .post-title {
        font-size: 15px;
        line-height: 130%;
        margin-bottom: 5px;
    }

    .article-card-body .post-date {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .article-card-body .post-excerpt {
        font-size: 13px;
        line-height: 20px;
    }

    .apply-form-wrapper {
        padding: 28px 20px;
    }

    .apply-form-title {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 15px;
    }

    .apply-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .apply-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .apply-file-upload {
        padding: 12px 16px;
    }

    .apply-submit-btn {
        padding: 14px 45px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .career-handbook {
        padding: 25px 0 30px;
    }

    .career-handbook .container {
        padding: 0 15px;
    }

    .career-handbook-title {
        font-size: 22px;
        line-height: 26px;
        margin-bottom: 15px;
    }

    .career-handbook-tags {
        gap: 6px;
        margin-bottom: 12px;
    }

    .handbook-tag {
        font-size: 15px;
        padding: 5px 7px;
    }

    .career-handbook-desc {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 25px;
        text-align: justify;
    }

    .featured-posts-title {
        font-size: 22px;
        line-height: 26px;
        margin-bottom: 15px;
    }

    .featured-post-image img {
        height: 245px;
    }

    .side-post-image img {
        height: 245px;
    }

    .featured-post-body {
        padding: 12px 15px 15px;
    }

    .post-category {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .post-title {
        font-size: 17px;
    }

    .post-date {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .post-excerpt {
        font-size: 15px;
        line-height: 22px;
    }

    .btn-detail {
        padding: 8px 16px;
        font-size: 14px;
    }

    .side-post-info {
        padding: 12px 15px 15px;
    }

    .side-post-info .post-title {
        font-size: 17px;
        line-height: 22px;
        margin-bottom: 5px;
    }

    .side-post-info .post-date {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .side-post-info .post-excerpt {
        font-size: 15px;
        line-height: 22px;
    }

    .article-list-section {
        padding: 25px 0;
    }

    .article-list-section .container {
        padding: 0 15px;
    }

    .article-list-title {
        font-size: 22px;
        line-height: 26px;
        margin-bottom: 18px;
    }

    .article-list-grid {
        gap: 20px;
        margin-bottom: 25px;
    }

    .article-card-body {
        padding: 12px 15px 15px;
    }

    .article-card-body .post-category {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .article-card-body .post-title {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .article-card-body .post-date {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .article-card-body .post-excerpt {
        font-size: 13px;
        line-height: 20px;
    }

    .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .pagination-dots {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .apply-form-section .container {
        padding: 0 15px;
    }

    .apply-form-wrapper {
        padding: 22px 15px;
    }

    .apply-form-title {
        font-size: 18px;
        line-height: 22px;
        margin-bottom: 12px;
    }

    .apply-form-grid {
        gap: 10px;
        margin-bottom: 15px;
    }

    .apply-input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .apply-file-upload {
        padding: 10px 14px;
    }

    .apply-file-label {
        font-size: 13px;
    }

    .apply-file-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .apply-submit-btn {
        padding: 12px 35px;
        font-size: 14px;
    }
}
