﻿/* ============================================================
   BLOG DETAILS PAGE STYLES
   Dùng chung toàn bộ style từ blogs.css,
   chỉ override/thêm những gì riêng của trang chi tiết.
   ============================================================ */

/* Import toàn bộ style từ blogs.css */
@import url('blogs.css');

/* ---- Section wrapper riêng cho details ---- */
.blog_details_area {
    padding: 80px 0;
    background: #fff;
}

.sec_gap {
    padding: 80px 0;
}

.main_blog_inner {
    display: flex;
    flex-wrap: wrap;
}

/* ---- Blog post item — không có border-bottom ở trang details ---- */
.blog_post_item {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ---- Đường kẻ ngang phân cách sau meta ---- */
.border_bottom {
    border: none;
    border-top: 1px solid #e0e0e0;
    opacity: 1;
    margin: 18px 0 20px;
}

.mb_20 {
    margin-bottom: 20px !important;
}

/* ---- Heading trong nội dung bài viết ---- */
.blog-text h3 {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 20px;
    margin-top: 30px;
}

/* ---- Links trong content bài viết ---- */
.blog-text a,
.s_main_text a {
    color: #3363DD;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-text a:hover,
.s_main_text a:hover {
    color: #1530A0;
    text-decoration: underline;
}

/* ---- Main Text Section ---- */
.s_main_text {
    margin: 30px 0;
}

.s_main_text h3 {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.s_main_text p {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #0F1A40;
    margin-bottom: 26px;
}

/* ============================================================
   RIGHT SIDEBAR — Copy 100% từ blogs.css
   ============================================================ */
.blog_sidebar_area {
    display: flex;
    flex-direction: column;
    gap: 43px;
}

.r_widget {
    background: transparent;
}

/* ---- Widget title — Poppins, bold, không có title_br dạng inline ---- */
.r_widget_title {
    margin-bottom: 22px;
}

.r_widget_title h3.title_color {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    display: inline-block;
}

/* Đường gạch ngang nhỏ sau tiêu đề widget — inline, xanh */
.title_br {
    display: inline-block;
    width: 34px;
    height: 3px;
    background: #3363DD;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 2px;
}

/* ---- Search widget — toàn bộ nền đen, placeholder xám, icon trắng ---- */
.search_widget .input-group {
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    width: 100%;
    background: #222222;
}

.search_widget .form-control {
    border: none;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2px;
    padding: 16px 18px;
    box-shadow: none;
    outline: none;
    background: #222222;
    color: #c8cdd4;
    flex: 1;
    min-width: 0;
    width: 0;
    border-radius: 0;
}

.search_widget .form-control::placeholder {
    color: #8a9099;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.search_widget .input-group-btn {
    display: flex;
    flex-shrink: 0;
}

.search_widget .btn {
    background: #222222;
    border: none;
    color: #c8cdd4;
    padding: 0 18px;
    cursor: pointer;
    transition: color .2s;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search_widget .btn:hover {
    color: #ffffff;
}

.search_widget .btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #c8cdd4;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search_widget .btn:hover svg {
    stroke: #ffffff;
}

/* ---- Categories widget — Poppins, hover xanh ---- */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories ul li {
    border-bottom: 1px solid #f0f0f0;
}

.widget_categories ul li:last-child {
    border-bottom: none;
}

.widget_categories ul li a {
    display: block;
    padding: 13px 0;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 17px;
    color: #555;
    text-decoration: none;
    transition: color .2s;
}

.widget_categories ul li a:hover,
.widget_categories ul li.active a {
    color: #3363DD;
}

/* ---- Recent News widget ---- */
.recent_inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Add margin after recent widget to separate from blog post */
.widget_news {
    margin-bottom: 30px;
}

.recent_item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.recent_item img {
    width: 86px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.recent_item .media-body {
    flex: 1;
}

.recent_item .media-body a {
    text-decoration: none;
}

/* Tiêu đề recent news — Open Sans, hover xanh */
.recent_item .media-body h4 {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.45;
    margin: 0 0 6px;
    transition: color .2s;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.recent_item .media-body a:hover h4 {
    color: #3363DD;
}

/* Ngày tạo recent news — Poppins */
.recent_item .media-body h5 {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    color: #aaa;
    margin: 0;
    font-weight: 400;
}

/* ---- Tags widget — Open Sans, pill/badge ---- */
.tagcloud .wp-tag-cloud {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tagcloud .wp-tag-cloud li a {
    display: inline-block;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 15px !important;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px 20px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.tagcloud .wp-tag-cloud li a:hover,
.tagcloud .wp-tag-cloud li a.active {
    background: #3363DD;
    color: #fff;
    border-color: #3363DD;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.f_600 {
    font-weight: 600;
}

.f_500 {
    font-weight: 500;
}

.title_color {
    color: #2c2c2c;
}

.d-inline-block {
    display: inline-block;
}

.mb-0 {
    margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */
@media (max-width: 991px) {
    .blog_details_area {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    /* ---- Mobile: Hide tags widget ---- */
    .blog_sidebar_area .widget_tag_cloud {
        display: none !important;
    }
}

/* ============================================================
   JOB APPLICATION FORM STYLES
   ============================================================ */
.job-application-section {
    margin-top: 50px;
}

.job-form-wrapper {
    background: #fff;
    padding: 0;
}

.job-form-wrapper h3 {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-form-wrapper h3 i {
    color: #3363DD;
}

.job-application-form .form-group {
    margin-bottom: 20px;
}

.job-application-form label {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.job-application-form label .text-danger {
    color: #dc3545;
}

.job-application-form .form-control {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.job-application-form .form-control:focus {
    border-color: #3363DD;
    box-shadow: 0 0 0 3px rgba(51, 99, 221, 0.1);
    outline: none;
}

.job-application-form .form-control::placeholder {
    color: #999;
    font-size: 14px;
}

.job-application-form select.form-control {
    appearance: auto;
    cursor: pointer;
    height: auto;
    min-height: 46px;
    line-height: 1.4;
    padding: 12px 30px 12px 16px;
}

.job-application-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Custom File Input Styling */
.job-application-form .cv-file-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 48px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    transition: border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.job-application-form .cv-file-wrapper:hover {
    border-color: #3363DD;
    background: #f5f7ff;
}

.job-application-form .cv-file-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.job-application-form .cv-file-text {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.job-application-form .cv-file-wrapper.has-file {
    border-color: #28a745;
    background: #f0f9f4;
}

.job-application-form .cv-file-wrapper.has-file .cv-file-text {
    color: #28a745;
}

.job-application-form .cv-file-wrapper.has-error {
    border-color: #dc3545;
    background: #fdf2f2;
}

.job-application-form .cv-file-wrapper.has-error .cv-file-text {
    color: #dc3545;
}

.job-application-form .cv-file-btn {
    padding: 0 20px;
    background: #3363DD;
    color: #fff;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 0 2px 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.job-application-form .cv-file-wrapper:hover .cv-file-btn {
    background: #1530A0;
}

/* File Upload Feedback Messages */
.file-upload-feedback {
    margin-top: 8px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.file-upload-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.file-upload-feedback.success {
    color: #28a745;
}

.file-upload-feedback.error {
    color: #dc3545;
}

.file-upload-feedback i {
    font-size: 16px;
}

/* Submit Button */
.job-application-form .btn-submit {
    background: #3363DD;
    color: #fff;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.job-application-form .btn-submit:hover {
    background: #1530A0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 63, 191, 0.3);
}

.job-application-form .btn-submit:active {
    transform: translateY(0);
}

.job-application-form .btn-submit i {
    font-size: 14px;
}

/* Hiring Closed Notice */
.hiring-closed-notice {
    background: #fff;
    border-radius: 4px;
    padding: 30px;
}

.hiring-closed-notice .alert {
    border: 1px solid #ffc107;
    background: #fffbeb;
    color: #856404;
    padding: 24px;
    border-radius: 4px;
    text-align: center;
}

.hiring-closed-notice .alert i {
    color: #ffc107;
}

.hiring-closed-notice .alert h4 {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 8px;
}

.hiring-closed-notice .alert p {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    margin: 0;
}

/* Form Text / Help Text */
.job-application-form .form-text {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 767px) {
    .job-application-form .row .col-md-6 {
        margin-bottom: 0;
    }
    
    .job-form-wrapper h3 {
        font-size: 18px;
    }
    
    .job-application-form .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
