/*
Theme Name: AHT Talent
Theme URI: https://talent.arrowhitech.com
Description: Clone of talent.arrowhitech.com careers page
Version: 1.0
Author: ArrowHiTech
Author URI: https://www.arrowhitech.com
*/

/* ── Banner layout fix ── */
#banner {
    position: relative !important;
    height: 800px !important;
    overflow: visible !important;
}
#banner .cover {
    position: relative;
    height: 800px;
    overflow: hidden;
}
#banner .cover img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    display: block;
}
#banner .bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 800px;
    pointer-events: none;
}
#banner .container {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 0 !important;
    padding: 0 20px !important;
    max-width: 1200px;
    margin: 0 auto !important;
    width: 100%;
}

/* ── Social bar ── */
#banner .social {
    position: absolute !important;
    top: -35px !important;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 2px 16px rgba(0,0,0,.12);
    z-index: 10;
}
#banner .social .row {
    display: flex !important;
    align-items: center;
    justify-content: space-around;
}
#banner .social .col-3 {
    flex: 1;
    text-align: center;
}
#banner .social .item a {
    color: #1a1a2e !important;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
#banner .social .item a img {
    width: 32px;
    height: 32px;
    filter: none !important;
}

/* ── Overview section spacing ── */
#overview {
    margin-top: 35px;
    padding-top: 75px;
    padding-bottom: 75px;
}

/* ── Overview values (full-width row below text+video) ── */
.overview--values {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 20px;
}
.overview--values .value-item {
    flex: 1;
}
.overview--values .value-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    display: block;
}
.overview--values .value-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.overview--values .value-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ── Overview video ── */
.overview--video iframe {
    width: 100%;
    height: 340px;
    border-radius: 8px;
}

/* ── Job Detail Page ── */
.top-article {
    background: #f5f5f5;
    padding: 14px 0;
    margin-bottom: 40px;
}
.top-article .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}
.top-article .breadcrumb a {
    color: #1a1a2e;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.top-article .breadcrumb a:hover { text-decoration: underline; }

.job-detail { padding-bottom: 60px; }

.job-detail .head-article {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 32px;
}
.job-detail .head-article .left { flex: 1; }
.job-detail .head-article .right {
    width: 280px;
    flex-shrink: 0;
    text-align: center;
}

.job-detail h1.title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.3;
}
.job-detail .desc-job {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.job-detail .desc-job p {
    font-size: 14px;
    color: #444;
    margin: 0;
}
.job-detail .desc-job p strong { color: #1a1a2e; }

/* Apply button */
.job-detail .ctas .btn-apply,
.job-detail .btn-apply {
    display: inline-block !important;
    background: #1a1a2e;
    color: #fff !important;
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    width: auto !important;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s;
}
.job-detail .ctas .btn-apply:hover,
.job-detail .btn-apply:hover { background: #2d2d4e; }

/* More positions – card link */
.item-job--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.item-job--link:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    text-decoration: none;
}
.item-job--link .title-h4 { color: #1a1a2e; }

/* Share box */
.job-detail .box-share {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.job-detail .box-share > span {
    font-size: 13px;
    color: #888;
    margin: 0;
}
.job-detail .box-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff !important;
    font-size: 0;
    margin: 0 4px;
    text-decoration: none;
}
.job-detail .box-share a span { font-size: 16px; }

/* Article content */
.job-detail .article { padding-top: 32px; }
.job-detail .content-article h2.title-h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}
.job-detail .content-article p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.job-detail .content-article ul,
.job-detail .content-article ol { padding-left: 24px; margin-bottom: 12px; }
.job-detail .content-article li { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.job-detail .content-article strong { font-weight: 600; }

/* More positions */
.more-positions { margin-top: 48px; padding-top: 32px; border-top: 1px solid #eee; }
.more-positions .title-h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
}

/* Responsive job detail */
@media (max-width: 768px) {
    .job-detail .head-article {
        flex-direction: column;
        gap: 24px;
    }
    .job-detail .head-article .right {
        width: 100%;
    }
    .job-detail h1.title { font-size: 20px; }
}

/* ── Application Form ── */
.apply-form-wrap {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.apply-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 28px;
}
.apply-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}
.apply-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.apply-error {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}
.apply-form .form-group {
    margin-bottom: 20px;
}
.apply-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.form-req { color: #e53935; }
.apply-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color .2s;
}
.apply-form .form-control:focus {
    outline: none;
    border-color: #1a1a2e;
}
.file-upload-box {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s;
    background: #fafafa;
}
.file-upload-box:hover { border-color: #1a1a2e; }
.file-upload-label {
    display: block;
    font-size: 14px;
    color: #888;
    cursor: pointer;
}
.file-hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}
.captcha-input { max-width: 240px; }
.captcha-display {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #1a1a2e;
    font-family: monospace;
}
.btn-apply-submit {
    display: inline-block;
    width: auto;
    min-width: 220px;
    padding: 14px 40px;
    background: #1a1a2e;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity .2s;
}
.btn-apply-submit:hover { opacity: .85; }

/* ── CEO Quote — custom classes, no CDN conflict ── */
.aht-ceo-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}
.aht-ceo-photo {
    flex-shrink: 0;
    width: 340px;
}
.aht-ceo-photo img {
    width: 100%;
    height: auto;
    display: block;
}
.aht-ceo-text {
    flex: 1;
}
.aht-ceo-say {
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.aht-ceo-name {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.aht-ceo-pos {
    font-size: 14px;
    color: #666;
}

/* ── Local icon font (fixes CORS block from CDN) ── */
@font-face {
    font-family: 'ap';
    src: url('fonts/ap.eot?pmlk9e');
    src: url('fonts/ap.eot?pmlk9e#iefix') format('embedded-opentype'),
         url('fonts/ap.ttf?pmlk9e') format('truetype'),
         url('fonts/ap.woff?pmlk9e') format('woff'),
         url('fonts/ap.svg?pmlk9e#ap') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── Header base ── */
#header-recr {
    position: relative;
}
#header-recr .logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* ── Hamburger button (hidden on desktop) ── */
.aht-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.aht-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}
/* X icon when open */
.aht-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aht-hamburger.is-open span:nth-child(2) { opacity: 0; }
.aht-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablet: ≤ 992px ── */
@media (max-width: 992px) {

    /* Header: flex layout */
    #header-recr .table {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    #header-recr .logo,
    #header-recr .box-menu {
        display: block !important;
    }
    #header-recr .box-menu .links a {
        font-size: 14px !important;
        padding: 10px 10px !important;
    }

    /* Banner shorter on tablet */
    #banner,
    #banner .cover,
    #banner .cover img,
    #banner .bg {
        height: 500px !important;
    }

    /* Social bar: stack items vertically */
    #banner .social {
        position: relative !important;
        top: 0 !important;
        left: 0;
        right: 0;
        margin: 0 16px;
        border-radius: 8px;
    }
    #banner .social .row {
        flex-direction: column;
        gap: 12px;
    }
    #banner .social .col-3 {
        width: 100%;
        text-align: left;
    }

    /* Remove height:0 trick — social now flows below banner */
    #banner .container {
        position: relative !important;
        bottom: auto !important;
        height: auto !important;
        padding: 16px !important;
    }

    #overview {
        margin-top: 0;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Overview: stack cols */
    #overview .col-6 {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }
    .overview--video {
        margin-top: 24px;
    }
    .overview--video iframe {
        height: 260px;
    }

    /* Values: 3 items still in a row but smaller */
    .overview--values {
        gap: 20px;
    }
    .overview--values .value-item img {
        width: 70px;
        height: 70px;
    }

    /* Life section — contain the 1920px image */
    #life {
        height: 400px !important;
        overflow: hidden;
    }
    #life .life-cover img {
        width: 100% !important;
        height: 400px !important;
        object-fit: cover;
        display: block;
    }

    /* CEO quote — tablet */
    .aht-ceo-photo { width: 240px; }
    .aht-ceo-say { font-size: 18px; }

    /* Jobs grid */
    .jobs-row {
        flex-wrap: wrap;
    }
    .item-job {
        width: calc(50% - 16px) !important;
        flex: none !important;
    }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {

    /* Banner */
    #banner,
    #banner .cover,
    #banner .cover img,
    #banner .bg {
        height: 260px !important;
    }

    /* Header: flex row logo | hamburger */
    #header-recr .table {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: auto !important;
        position: relative;
    }
    #header-recr .logo,
    #header-recr .box-menu {
        display: block !important;
    }
    #header-recr .logo img {
        max-height: 26px;
        width: auto;
    }
    #header-recr .box-menu {
        display: flex !important;
        align-items: center;
    }

    /* Show hamburger */
    .aht-hamburger {
        display: flex !important;
    }

    /* Hide nav by default on mobile, show when open */
    /* Specificity (2,0,0) — beats any CDN single-ID or class rule */
    #header-recr #aht-nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,.12);
        flex-direction: column;
        z-index: 999;
        padding: 8px 0;
    }
    #header-recr #aht-nav-links.is-open {
        display: flex !important;
    }
    #header-recr #aht-nav-links a {
        display: block !important;
        padding: 12px 24px !important;
        font-size: 15px !important;
        color: #333 !important;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }
    #header-recr #aht-nav-links a:last-child {
        border-bottom: none;
    }

    /* Social bar */
    #banner .social {
        margin: 0 12px;
        padding: 14px 16px;
    }
    #banner .social .item a {
        font-size: 12px;
    }
    #banner .social .item a img {
        width: 22px;
        height: 22px;
    }

    #overview {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    /* Values: stack vertically */
    .overview--values {
        flex-direction: column;
        gap: 28px;
    }
    .overview--values .value-item img {
        width: 60px;
        height: 60px;
    }

    /* Life section */
    #life {
        height: 260px !important;
        overflow: hidden;
    }
    #life .life-cover img {
        width: 100% !important;
        height: 260px !important;
        object-fit: cover;
        display: block;
    }

    /* CEO quote — mobile: stack vertically */
    #customer-feedback {
        height: auto !important;
        padding: 32px 16px !important;
    }
    .aht-ceo-wrap {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .aht-ceo-photo {
        width: 180px;
    }
    .aht-ceo-photo img {
        border-radius: 50%;
    }
    .aht-ceo-text {
        text-align: center;
    }
    .aht-ceo-say { font-size: 16px; }

    /* Jobs: 1 column */
    .item-job {
        width: 100% !important;
    }

    /* Filter tabs: scrollable */
    .filter-jobs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 8px;
    }
    .filter-jobs .item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Footer */
    #footer .footer-top .row {
        flex-direction: column;
    }
    #footer .col-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 24px;
    }
    #footer .social .row {
        flex-direction: column;
        gap: 12px;
    }
    #footer .social .col-3 {
        width: 100% !important;
    }

    /* Generic container padding */
    .container,
    .pw {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ── Small mobile: ≤ 480px ── */
@media (max-width: 480px) {
    #banner,
    #banner .cover,
    #banner .cover img,
    #banner .bg {
        height: 200px !important;
    }

    .overview--video iframe {
        height: 200px;
    }
}
