/* =============================================
   AO Careers Plugin — Stylesheet v2
   Brand: AO Group | Orange #f15a24 | Navy #101828
   ============================================= */

:root {
    --ao-orange:     #F04F22;
    --ao-navy:       #151E2D;
    --ao-navy-2:     #151E2D;
    --ao-grey-bg:    #f9fafb;
    --ao-border:     #e5e7eb;
    --ao-text:       #151E2D;
    --ao-muted:      #151E2D;
    --ao-white:      #ffffff;
    --ao-green:      #22c55e;
    --ao-radius:     12px;
    --ao-shadow:     0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
    --ao-shadow-md:  0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
}
.ao-careers-wrap *, .ao-single-wrap * { box-sizing: border-box; margin:0; padding:0; }

/* ========== BUTTONS ========== */
.ao-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
    text-align: center;
    line-height: 1.4;
}
.ao-btn-orange { background: var(--ao-orange); color: #fff; border-color: var(--ao-orange); }
.ao-btn-orange:hover { background: #d9501f; border-color: #d9501f; color: #fff !important; }
.ao-btn-dark   { background: var(--ao-navy);  color: #fff; border-color: var(--ao-navy);  }
.ao-btn-dark:hover { background: var(--ao-navy-2); color: #fff !important; }
.ao-btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.ao-btn-outline-white:hover { background: #fff; color: var(--ao-navy); }
.ao-btn-large  { padding: 14px 36px; font-size: 15px; }
.ao-btn-full   { width: 100%; display: block; }

/* ========== HERO (shared) ========== */
.ao-careers-hero,
.ao-single-hero {
    background: var(--ao-navy);
    background-image: url(https://connect.weareao.group/wp-content/uploads/2026/05/blur-background-image-scaled.jpg);
    background-position: center center;
    background-size: cover;    
    color: #fff;
}


/* ---- Careers LIST hero ---- */
.ao-careers-hero { padding: 90px 40px 80px; text-align: center; }
.ao-careers-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin-bottom: 14px; line-height: 1.2; color: #ffffff; }
.ao-careers-hero p  { font-size: 16px; color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto; line-height: 1.7; color: #ffffff; }

/* ---- Single JOB hero ---- */
.ao-single-hero { padding: 70px 40px 60px; }
.ao-single-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.ao-single-hero-left  { flex: 1; }
.ao-single-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex-shrink: 0; }
.ao-single-title    { font-size: clamp(22px,3vw,38px); font-weight: 700; color:#fff; margin-bottom: 10px; line-height: 1.25; }
.ao-single-subtitle { font-size: 14px; color: rgba(255,255,255,.78); margin-bottom: 18px; line-height: 1.7; max-width: 560px; }

/* hero skill tags */
.ao-skill-tags-hero { margin-bottom: 18px; }
.ao-skill-tags-hero .ao-skill-tag {
    background: linear-gradient(260deg, rgb(21, 30, 45) 20%, rgb(69, 98, 147) 80%);
    color: #fff;
    border-color: rgba(255,255,255,.25);
}

/* hero meta pills */
.ao-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ao-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.80);
    background: linear-gradient(260deg, rgb(21, 30, 45) 20%, rgb(69, 98, 147) 80%);    
    padding: 4px 12px;
    border-radius: 20px;
}
.ao-meta-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ao-dot-loc  { background: #60a5fa; }
.ao-dot-type { background: var(--ao-green); }
.ao-dot-sal  { background: var(--ao-orange); }
.ao-dot-time { background: #a78bfa; }

/* hero badges */
.ao-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ao-badge { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 16px; white-space: nowrap; }
.ao-badge-dark   { background: linear-gradient(260deg, rgb(21, 30, 45) 20%, rgb(69, 98, 147) 80%); color: #fff;}
.ao-badge-level  { background: #151E2D; background: linear-gradient(260deg,rgba(21, 30, 45, 1) 20%, rgba(69, 98, 147, 1) 80%); color: #fff; }
.ao-badge-urgent { background: #fef3c7; color: #92400e; }

/* ========== FILTER BAR ========== */
.ao-careers-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--ao-border);
    padding: 18px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--ao-shadow);
}
.ao-filter-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
}
.ao-search-wrap { flex: 1; position: relative; display: flex; align-items: center; }
.ao-search-icon { position: absolute; left: 14px; font-size: 15px; color: var(--ao-muted); }
#ao-search {
    width: 100%;
    padding: 11px 16px 11px 40px;
    border: 1px solid var(--ao-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    background: var(--ao-grey-bg);
}
#ao-search:focus { border-color: var(--ao-orange); background: #fff; box-shadow: 0 0 0 3px rgba(241,90,36,.10); }
.ao-filter-select {
    padding: 11px 14px;
    border: 1px solid var(--ao-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--ao-grey-bg);
    cursor: pointer;
    min-width: 130px;
    outline: none;
    color: var(--ao-text);
    width: auto;
}
.ao-filter-select:focus { border-color: var(--ao-orange); }

/* ========== CAREERS LIST ========== */
.ao-careers-container { max-width: 1100px; margin: 0 auto; padding: 32px 40px 48px; }
.ao-results-count { color: #F04F22; font-size: 16px; font-weight: 500; margin-bottom: 24px; }

/* ========== JOB CARD ========== */
.ao-job-card {
    background: #fff;
    border: 1px solid var(--ao-border);
    border-radius: var(--ao-radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.ao-job-card:hover { box-shadow: var(--ao-shadow-md); transform: translateY(-2px); border: 1px solid #F04F22; }
.ao-job-card-main { padding: 30px; }
.ao-card-accent { height: 3px; opacity: 0; transition: opacity .2s; }
.ao-job-card:hover .ao-card-accent { opacity: 1; }

.ao-job-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.ao-job-title   { font-size: 24px; font-weight: 700; color: var(--ao-navy); margin-bottom: 3px; line-height: 1.3; }
.ao-job-company { font-size: 16px; color: var(--ao-muted); }
.ao-job-excerpt { font-size: 16px; color: var(--ao-text); margin: 10px 0 12px; line-height: 1.65; }

/* skill tags */
.ao-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ao-skill-tag {
    background: background: #151E2D; background: linear-gradient(260deg,rgba(21, 30, 45, 1) 20%, rgba(69, 98, 147, 1) 80%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 16px;    
}

/* card meta row */
.ao-job-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 10px; }
.ao-job-meta-left { display: flex; flex-wrap: wrap; gap: 14px; }
.ao-meta-item { font-size: 12px; color: var(--ao-muted); }
.ao-job-actions { display: flex; gap: 8px; }
.ao-no-jobs { text-align: center; padding: 60px 20px; color: var(--ao-muted); font-size: 15px; }

/* ========== SINGLE PAGE BODY ========== */
.ao-single-body { background: var(--ao-grey-bg); padding: 48px 40px; }
.ao-single-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* content sections */
.ao-content-section {
    background: #fff;
    border-radius: var(--ao-radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--ao-shadow);
}
.ao-content-section h2 { font-size: 19px; font-weight: 700; color: var(--ao-navy); margin-bottom: 14px; }
.ao-content-section h3 { font-size: 16px; font-weight: 700; color: var(--ao-navy); margin-bottom: 14px; }
.ao-content-section p  { font-size: 14px; color: var(--ao-text); line-height: 1.8; }

/* checklist */
.ao-checklist { list-style: none; }
.ao-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--ao-text);
    line-height: 1.6;
    border-bottom: 1px solid #f3f4f6;
}
.ao-checklist li:last-child { border-bottom: none; }
.ao-check { font-weight: 700; flex-shrink: 0; font-size: 13px; margin-top: 2px; }

/* sidebar */
.ao-job-details-box {
    background: #fff;
    border-radius: var(--ao-radius);
    padding: 24px;
    box-shadow: var(--ao-shadow);
    position: sticky;
    top: 80px;
}
.ao-job-details-box h3 {
    font-size: 16px; font-weight: 700; color: var(--ao-navy);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--ao-orange);
    text-align: center;
}
.ao-detail-row { display: flex; flex-direction: column; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ao-border); }
.ao-detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing:.5px; color: var(--ao-orange); margin-bottom: 4px; }
.ao-detail-value { font-size: 14px; color: var(--ao-text); font-weight: 500; }

/* ========== READY TO APPLY (dark) ========== */
.ao-ready-cta {
    background: var(--ao-navy);
    background-image: radial-gradient(ellipse 60% 100% at 30% 50%, rgba(99,102,241,.18) 0%, transparent 70%);
    padding: 64px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ao-ready-cta::after {
    content:'';
    position:absolute; left:0; right:0; bottom:0; height:80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='none' stroke='rgba(241,90,36,0.3)' stroke-width='1.5' d='M0,40 C240,10 480,70 720,40 C960,10 1200,70 1440,40'/%3E%3C/svg%3E") center bottom / cover no-repeat;
    pointer-events:none;
}
.ao-ready-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.ao-ready-cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.ao-ready-cta p  { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 28px; line-height: 1.6; }
.ao-cta-buttons  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== APPLY FORM ========== */
.ao-apply-section { background: #fff; padding: 60px 40px; }
.ao-apply-inner { max-width: 700px; margin: 0 auto; }
.ao-apply-inner h2 { font-size: 22px; font-weight: 700; color: var(--ao-navy); margin-bottom: 8px; text-align: center; }
.ao-apply-inner > p { text-align: center; color: var(--ao-muted); font-size: 14px; margin-bottom: 32px; line-height: 1.6; }
.ao-apply-form { display: flex; flex-direction: column; gap: 18px; }
.ao-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ao-form-field { display: flex; flex-direction: column; gap: 6px; }
.ao-form-field label { font-size: 13px; font-weight: 600; color: var(--ao-navy); }
.ao-required { color: var(--ao-orange); }
.ao-apply-form input,
.ao-apply-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ao-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    color: var(--ao-text);
    background: var(--ao-grey-bg);
}
.ao-apply-form input:focus,
.ao-apply-form textarea:focus { border-color: var(--ao-orange); background:#fff; box-shadow: 0 0 0 3px rgba(241,90,36,.10); }

/* file upload */
.ao-file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    border: 2px dashed var(--ao-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: var(--ao-grey-bg);
    text-align: center;
}
.ao-file-drop:hover, .ao-file-drop.ao-file-selected { border-color: var(--ao-orange); background: rgba(241,90,36,.04); }
.ao-file-icon { font-size: 28px; }
.ao-file-text { font-size: 14px; font-weight: 600; color: var(--ao-navy); }
.ao-file-hint { font-size: 12px; color: var(--ao-muted); }
.ao-file-drop input[type=file] { display: none; }
.ao-file-name { display: block; font-size: 13px; color: var(--ao-green); font-weight: 600; margin-top: 6px; min-height: 20px; }

/* form success/error */
.ao-form-success, .ao-form-error {
    padding: 18px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}
.ao-form-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ao-form-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ========== BOTTOM CTA ========== */
.ao-careers-cta {
    background: var(--ao-navy);
    background-image:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(241,90,36,.15) 0%, transparent 60%),
        url('') center / cover no-repeat;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ao-cta-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.ao-cta-inner h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.ao-cta-highlight { font-size: 22px; font-weight: 700; color: var(--ao-orange); margin-bottom: 10px; display: block; }
.ao-cta-inner p  { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 6px; line-height: 1.6; }
.ao-cta-inner .ao-btn { margin-top: 22px; }

.ao-meta-item-icon {
    width: 16px;
    height: 16px !important;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.ao-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .ao-single-container { grid-template-columns: 1fr; }
    .ao-job-details-box  { position: static; }
    .ao-single-hero-inner { flex-direction: column; }
    .ao-single-hero-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 680px) {
    .ao-careers-hero, .ao-single-hero, .ao-ready-cta, .ao-careers-cta, .ao-apply-section { padding-left: 20px; padding-right: 20px; }
    .ao-single-body, .ao-careers-container { padding-left: 20px; padding-right: 20px; }
    .ao-careers-filter-bar { padding: 14px 20px; }
    .ao-filter-inner { flex-wrap: wrap; }
    .ao-form-row { grid-template-columns: 1fr; }
    .ao-job-meta { flex-direction: column; align-items: flex-start; }
    .ao-job-card-header { flex-direction: column; gap: 8px; }
    .ao-cta-buttons { flex-direction: column; align-items: center; }
}
