/* Careers page - AR-TEC */

.careers-page {
    --careers-navy: #002147;
    --careers-orange: #f37021;
    --careers-navy-light: #0a3366;
    --careers-text: #4a5568;
    --careers-heading: #1a2433;
}

/* ── Hero ── */

.careers-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    overflow: hidden;
}

.careers-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.careers-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 33, 71, 0.92) 0%, rgba(0, 33, 71, 0.55) 55%, rgba(0, 33, 71, 0.35) 100%);
}

.careers-hero .container {
    position: relative;
    z-index: 2;
}

.careers-hero__content {
    max-width: 620px;
}

.careers-hero h1 {
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}

.careers-hero h1 span {
    color: var(--careers-orange);
}

.careers-hero__content > p {
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.careers-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ── Buttons ── */

.careers-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.careers-btn--orange {
    background: var(--careers-orange);
    color: #fff;
    border-color: var(--careers-orange);
}

.careers-btn--orange:hover {
    background: #d9611a;
    border-color: #d9611a;
    color: #fff;
}

.careers-btn--navy {
    background: var(--careers-navy);
    color: #fff;
    border-color: var(--careers-navy);
}

.careers-btn--navy:hover {
    background: var(--careers-navy-light);
    border-color: var(--careers-navy-light);
    color: #fff;
}

.careers-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.careers-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.careers-btn--block {
    width: 100%;
    border: none;
}

/* ── Section headings ── */

.careers-section {
    padding: 70px 0;
}

.careers-heading {
    text-align: center;
    margin: 0 0 48px;
    font-size: 32px;
    font-weight: 700;
    color: var(--careers-heading);
    position: relative;
    padding-bottom: 16px;
}

.careers-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--careers-orange);
    border-radius: 2px;
}

.careers-heading--left {
    text-align: left;
}

.careers-heading--left::after {
    left: 0;
    transform: none;
}

/* ── Why Join ── */

.careers-why {
    background: #fff;
}

.careers-why__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px 20px;
}

.careers-why__item {
    text-align: center;
}

.careers-why__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(0, 33, 71, 0.06);
    color: var(--careers-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.2s ease, color 0.2s ease;
}

.careers-why__item:hover .careers-why__icon {
    background: var(--careers-orange);
    color: #fff;
}

.careers-why__item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--careers-heading);
}

.careers-why__item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--careers-text);
}

/* ── Job cards carousel ── */

.careers-openings {
    background: #f4f6f9;
}

.careers-openings__carousel {
    margin-bottom: 36px;
}

.careers-openings__carousel .owl-nav {
    position: absolute;
    top: -72px;
    right: 0;
}

.careers-openings__carousel .owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 4px !important;
    background: #fff !important;
    border: 1px solid #dde3ea !important;
    color: var(--careers-navy) !important;
    font-size: 14px !important;
    margin-left: 8px !important;
}

.careers-openings__carousel .owl-nav button:hover {
    background: var(--careers-navy) !important;
    color: #fff !important;
    border-color: var(--careers-navy) !important;
}

.careers-job-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    padding: 24px 22px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 33, 71, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.careers-job-card:hover {
    box-shadow: 0 8px 28px rgba(0, 33, 71, 0.1);
    transform: translateY(-3px);
}

.careers-job-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(243, 112, 33, 0.1);
    color: var(--careers-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}

.careers-job-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--careers-heading);
}

.careers-job-card__meta {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #7a8494;
    font-weight: 600;
}

.careers-job-card__desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--careers-text);
    min-height: 42px;
}

.careers-job-card__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--careers-orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.careers-job-card__link:hover {
    color: #d9611a;
}

.careers-openings__cta {
    text-align: center;
}

/* ── Internship & Testimonials ── */

.careers-split {
    background: #fff;
}

.careers-internship__image {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.careers-internship__image img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 260px;
}

.careers-internship__body h2 {
    margin: 0 0 14px;
    font-size: 26px;
    color: var(--careers-heading);
}

.careers-internship__body > p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--careers-text);
}

.careers-checklist {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.careers-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--careers-heading);
    font-weight: 600;
}

.careers-checklist i {
    color: var(--careers-orange);
    font-size: 16px;
}

.careers-testimonial {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 28px 26px;
    box-shadow: 0 4px 20px rgba(0, 33, 71, 0.06);
    min-height: 220px;
}

.careers-testimonial__quote {
    color: var(--careers-orange);
    font-size: 28px;
    margin-bottom: 14px;
    opacity: 0.7;
}

.careers-testimonial > p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--careers-text);
    font-style: italic;
}

.careers-testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.careers-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--careers-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.careers-testimonial__author strong {
    display: block;
    font-size: 15px;
    color: var(--careers-heading);
}

.careers-testimonial__author span {
    font-size: 13px;
    color: #7a8494;
}

.careers-testimonial-carousel .owl-dots {
    margin-top: 20px !important;
    text-align: center;
}

.careers-testimonial-carousel .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    background: #d1d5db !important;
}

.careers-testimonial-carousel .owl-dot.active span {
    background: var(--careers-orange) !important;
}

/* ── Hiring Process ── */

.careers-process {
    background: #f4f6f9;
}

.careers-process__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0;
}

.careers-process__step {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    text-align: center;
    padding: 0 12px;
}

.careers-process__num {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--careers-navy);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.careers-process__step h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--careers-heading);
}

.careers-process__step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--careers-text);
}

.careers-process__arrow {
    flex: 0 0 28px;
    padding-top: 14px;
    color: #c5cdd8;
    font-size: 14px;
    text-align: center;
}

/* ── Apply form & FAQ ── */

.careers-apply-faq {
    background: #fff;
}

.careers-apply-form {
    background: #f8f9fb;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 28px 26px;
}

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

.careers-form-field {
    margin-bottom: 18px;
}

.careers-form-field--full {
    grid-column: 1 / -1;
}

.careers-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--careers-heading);
}

.careers-form-field label small {
    font-weight: 400;
    color: #9ca3af;
}

.careers-form-field input,
.careers-form-field select,
.careers-form-field textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    font-size: 14px;
    color: var(--careers-heading);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.careers-form-field textarea {
    height: auto;
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
}

.careers-form-field input[type="file"] {
    padding: 10px 14px;
    height: auto;
    font-size: 13px;
}

.careers-form-field input:focus,
.careers-form-field select:focus,
.careers-form-field textarea:focus {
    outline: none;
    border-color: var(--careers-orange);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.12);
}

.careers-apply-errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    font-size: 14px;
}

.careers-apply-errors ul {
    margin: 0;
    padding-left: 18px;
}

.careers-apply-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
}

.careers-apply-success i {
    font-size: 40px;
    color: #22c55e;
    margin-bottom: 12px;
}

.careers-apply-success strong {
    display: block;
    font-size: 18px;
    color: var(--careers-heading);
    margin-bottom: 8px;
}

.careers-apply-success p {
    margin: 0;
    font-size: 14px;
    color: var(--careers-text);
    line-height: 1.6;
}

/* FAQ accordion */

.careers-faq .panel {
    border: 1px solid #e8ecf1;
    border-radius: 6px !important;
    margin-bottom: 10px;
    box-shadow: none;
    overflow: hidden;
}

.careers-faq .panel-heading {
    background: #fff;
    border: none;
    padding: 0;
}

.careers-faq .panel-title a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--careers-heading);
    text-decoration: none;
    background: #fff;
}

.careers-faq .panel-title a:hover,
.careers-faq .panel-title a:focus {
    color: var(--careers-orange);
    text-decoration: none;
}

.careers-faq .panel-body {
    padding: 0 18px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--careers-text);
    border: none;
}

.careers-faq__toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 33, 71, 0.06);
    color: var(--careers-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.careers-faq .panel-title a:not(.collapsed) .careers-faq__toggle {
    background: var(--careers-orange);
    color: #fff;
    transform: rotate(45deg);
}

/* ── Responsive ── */

@media (max-width: 1199px) {
    .careers-why__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .careers-hero h1 {
        font-size: 36px;
    }

    .careers-openings__carousel .owl-nav {
        position: static;
        text-align: center;
        margin-top: 20px;
    }

    .careers-process__arrow {
        display: none;
    }

    .careers-process__steps {
        gap: 24px;
    }

    .careers-process__step {
        flex: 0 0 calc(33.333% - 16px);
        max-width: none;
    }
}

@media (max-width: 767px) {
    .careers-hero {
        min-height: 400px;
        padding: 80px 0 60px;
    }

    .careers-hero h1 {
        font-size: 30px;
    }

    .careers-section {
        padding: 50px 0;
    }

    .careers-heading {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .careers-why__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .careers-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .careers-process__step {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .careers-why__grid {
        grid-template-columns: 1fr;
    }

    .careers-hero__actions {
        flex-direction: column;
    }

    .careers-hero__actions .careers-btn {
        width: 100%;
    }
}

/* ── Opening detail page ── */

.opening-detail-hero {
    position: relative;
    padding: 48px 0 56px;
    overflow: hidden;
    background: var(--careers-navy);
}

.opening-detail-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.opening-detail-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.95) 0%, rgba(0, 33, 71, 0.75) 100%);
}

.opening-detail-hero .container {
    position: relative;
    z-index: 2;
}

.opening-detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin-bottom: 24px;
}

.opening-detail-breadcrumb a:hover {
    color: #fff;
}

.opening-detail-hero__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px 28px;
    align-items: start;
}

.opening-detail-hero__icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: rgba(243, 112, 33, 0.15);
    border: 1px solid rgba(243, 112, 33, 0.35);
    color: var(--careers-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.opening-detail-hero__tag {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--careers-orange);
    background: rgba(243, 112, 33, 0.15);
    border-radius: 100px;
}

.opening-detail-hero__copy h1 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.2;
    color: #fff;
}

.opening-detail-hero__copy > p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.opening-detail-hero__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
}

.opening-detail-hero__facts li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.opening-detail-hero__facts i {
    color: var(--careers-orange);
}

.opening-detail-hero__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.opening-detail-hero__cta .careers-btn {
    white-space: nowrap;
}

.opening-detail-body {
    background: #fff;
    padding-top: 56px;
    padding-bottom: 56px;
}

.opening-detail-block {
    margin-bottom: 36px;
}

.opening-detail-block h2 {
    margin: 0 0 16px;
    font-size: 22px;
    color: var(--careers-heading);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--careers-orange);
    display: inline-block;
}

.opening-detail-block > p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--careers-text);
}

.opening-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.opening-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--careers-text);
    border-bottom: 1px solid #eef0f3;
}

.opening-detail-list li:last-child {
    border-bottom: 0;
}

.opening-detail-list i {
    color: var(--careers-orange);
    margin-top: 4px;
    flex-shrink: 0;
}

.opening-detail-sidebar__card {
    background: #f8f9fb;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 24px 22px;
    margin-bottom: 20px;
}

.opening-detail-sidebar__card h3 {
    margin: 0 0 18px;
    font-size: 17px;
    color: var(--careers-heading);
    padding-bottom: 12px;
    border-bottom: 1px solid #e8ecf1;
}

.opening-detail-facts {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.opening-detail-facts li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #e8ecf1;
}

.opening-detail-facts li:last-child {
    border-bottom: 0;
}

.opening-detail-facts span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}

.opening-detail-facts strong {
    font-size: 15px;
    color: var(--careers-heading);
}

.opening-detail-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}

.opening-detail-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--careers-text);
}

.opening-detail-benefits i {
    color: var(--careers-orange);
    margin-top: 3px;
}

.opening-detail-process {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--careers-text);
}

.opening-detail-related {
    padding-top: 50px;
}

.careers-openings__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .opening-detail-hero__inner {
        grid-template-columns: 1fr;
    }

    .opening-detail-hero__cta {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .careers-openings__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .opening-detail-hero__copy h1 {
        font-size: 28px;
    }

    .opening-detail-hero__cta {
        flex-direction: column;
    }

    .opening-detail-hero__cta .careers-btn {
        width: 100%;
    }
}
