/* ==========================================================
   Arthian Careers Plugin — careers.css  v1.0.3
   ========================================================== */

:root {
    --ac-black:      #0e1433;
    --ac-blue:       #2566c1;
    --ac-white:      #ffffff;
    --ac-off-white:  #f3f1f1;
    --ac-grey:       #cccccc;
    --ac-font:       'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ac-radius:     3px 24px 3px 24px;
    --ac-radius-sm:  4px;
    --ac-transition: 0.3s ease;
}

/* ── Wrapper — !important to override any theme padding resets ── */
.arthian-careers-wrap {
    font-family: var(--ac-font) !important;
    color: var(--ac-black) !important;
    padding: 2% 5% !important;
    box-sizing: border-box;
}

/* ================================================================
   FILTER BAR
   ================================================================ */
.arthian-careers-wrap .ac-filters {
    background: var(--ac-black);
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 2vw, 2rem);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.arthian-careers-wrap .ac-filters-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.arthian-careers-wrap .ac-filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

.arthian-careers-wrap .ac-filter-input,
.arthian-careers-wrap .ac-filter-select {
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--ac-white);
    font-family: var(--ac-font);
    font-size: 0.9rem;
    border-radius: var(--ac-radius-sm);
    transition: border-color var(--ac-transition), background var(--ac-transition);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.arthian-careers-wrap .ac-filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.arthian-careers-wrap .ac-filter-select option { color: var(--ac-black); background: var(--ac-white); }

.arthian-careers-wrap .ac-filter-input:focus,
.arthian-careers-wrap .ac-filter-select:focus {
    outline: none;
    border-color: var(--ac-blue);
    background: rgba(255,255,255,0.15);
}

.arthian-careers-wrap .ac-filter-input::placeholder { color: rgba(255,255,255,0.45); }

.arthian-careers-wrap .ac-filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    padding-top: 1.3rem;
}

/* ── All buttons reset first, then style ── */
.arthian-careers-wrap .ac-btn,
.arthian-careers-wrap .ac-view-btn,
.arthian-careers-wrap .ac-page-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ac-font);
    line-height: 1;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
}

/* Search / Reset / View Job buttons */
.arthian-careers-wrap .ac-btn {
    padding: 0.65rem 1.5rem;
    border-radius: var(--ac-radius);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: border-radius var(--ac-transition), background var(--ac-transition), color var(--ac-transition);
}

.arthian-careers-wrap .ac-btn-search {
    background: var(--ac-blue);
    color: var(--ac-white) !important;
    flex: 1;
}
.arthian-careers-wrap .ac-btn-search:hover {
    border-radius: var(--ac-radius-sm);
    background: var(--ac-white);
    color: var(--ac-black) !important;
}
.arthian-careers-wrap .ac-btn-reset {
    background: transparent;
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.3);
}
.arthian-careers-wrap .ac-btn-reset:hover {
    background: rgba(255,255,255,0.1);
    color: var(--ac-white) !important;
    border-radius: var(--ac-radius-sm);
}
.arthian-careers-wrap .ac-btn-view {
    background: var(--ac-black);
    color: var(--ac-white) !important;
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
}
.arthian-careers-wrap .ac-btn-view:hover {
    border-radius: var(--ac-radius-sm);
    background: var(--ac-blue);
}

/* ================================================================
   RESULTS BAR
   ================================================================ */
.arthian-careers-wrap .ac-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--ac-grey);
    margin-bottom: 2rem;
    gap: 1rem;
}

.arthian-careers-wrap .ac-results-count {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* ── View Toggle buttons ── */
.arthian-careers-wrap .ac-view-toggle {
    display: flex !important;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.arthian-careers-wrap .ac-view-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    border: 2px solid var(--ac-grey) !important;
    border-radius: 6px !important;
    background: var(--ac-white) !important;
    color: #888 !important;
    padding: 0 !important;
    transition: all var(--ac-transition) !important;
}
.arthian-careers-wrap .ac-view-btn:hover {
    border-color: var(--ac-black) !important;
    color: var(--ac-black) !important;
}
.arthian-careers-wrap .ac-view-btn.is-active {
    background: var(--ac-black) !important;
    border-color: var(--ac-black) !important;
    color: var(--ac-white) !important;
}
.arthian-careers-wrap .ac-view-btn svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    pointer-events: none;
    fill: currentColor;
}

/* ================================================================
   GRID — 2 columns default
   ================================================================ */
.arthian-careers-wrap .ac-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
    min-height: 200px;
    position: relative;
}

/* List view: 1 column */
.arthian-careers-wrap .ac-grid.ac-view-list {
    grid-template-columns: 1fr !important;
}

.arthian-careers-wrap .ac-grid.ac-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(243,241,241,0.7);
    border-radius: 4px;
}

/* ── Cards ── */
.arthian-careers-wrap .ac-card {
    background: var(--ac-white);
    border-radius: 8px;
    transition: transform var(--ac-transition), box-shadow var(--ac-transition);
    overflow: hidden;
    border: 1px solid #e8e8e8;
}
.arthian-careers-wrap .ac-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(14,20,51,0.12);
}

.arthian-careers-wrap .ac-card-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    box-sizing: border-box;
}

/* List view: horizontal card */
.arthian-careers-wrap .ac-grid.ac-view-list .ac-card-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    height: auto;
}

.arthian-careers-wrap .ac-card-main {
    display: contents;
}
.arthian-careers-wrap .ac-grid.ac-view-list .ac-card-main {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0.75rem;
}

.arthian-careers-wrap .ac-grid.ac-view-list .ac-card-footer {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 160px;
}

/* ── Card header ── */
.arthian-careers-wrap .ac-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.arthian-careers-wrap .ac-card-title {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}
.arthian-careers-wrap .ac-card-title a {
    color: var(--ac-black);
    text-decoration: none;
    transition: color var(--ac-transition);
}
.arthian-careers-wrap .ac-card-title a:hover { color: var(--ac-blue); }

/* ── Badges ── */
.arthian-careers-wrap .ac-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}
.arthian-careers-wrap .ac-badge-urgent { background: #fff0e6; color: #c0430a; }

/* ── Meta pills ── */
.arthian-careers-wrap .ac-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.arthian-careers-wrap .ac-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #555;
    background: var(--ac-off-white);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    line-height: 1.3;
}
.arthian-careers-wrap .ac-meta-item svg { flex-shrink: 0; opacity: 0.7; }

/* ── Summary ── */
.arthian-careers-wrap .ac-card-summary {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ── Card footer ── */
.arthian-careers-wrap .ac-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ac-off-white);
    margin-top: auto;
    flex-wrap: wrap;
}

.arthian-careers-wrap .ac-salary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ac-blue);
}

.arthian-careers-wrap .ac-card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.arthian-careers-wrap .ac-closing {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
}

/* ── No results ── */
.arthian-careers-wrap .ac-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
    font-size: 1rem;
}

/* ── Spinner ── */
@keyframes ac-spin { to { transform: rotate(360deg); } }
.arthian-careers-wrap .ac-spinner {
    display: none;
    width: 20px; height: 20px;
    border: 2px solid var(--ac-grey);
    border-top-color: var(--ac-blue);
    border-radius: 50%;
    animation: ac-spin 0.7s linear infinite;
    margin: 0 auto;
}
.arthian-careers-wrap .ac-grid.ac-loading .ac-spinner { display: block; }

/* ── Pagination ── */
.arthian-careers-wrap .ac-pagination { margin-top: 2.5rem; }
.arthian-careers-wrap .ac-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.arthian-careers-wrap .ac-page-btn {
    padding: 0.6rem 1.5rem;
    background: var(--ac-white);
    color: var(--ac-black) !important;
    border: 1px solid var(--ac-grey) !important;
    border-radius: var(--ac-radius) !important;
    font-size: 0.875rem;
    transition: all var(--ac-transition);
}
.arthian-careers-wrap .ac-page-btn:hover:not([disabled]) {
    background: var(--ac-black) !important;
    color: var(--ac-white) !important;
    border-color: var(--ac-black) !important;
    border-radius: var(--ac-radius-sm) !important;
}
.arthian-careers-wrap .ac-page-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.arthian-careers-wrap .ac-page-info { font-size: 0.875rem; color: #666; }

/* ================================================================
   SINGLE JOB PAGE
   ================================================================ */
.ac-job-hero { padding: clamp(3rem, 6vw, 5rem) 0; }

.ac-job-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.ac-job-hero-content { flex: 1; min-width: 0; }
.ac-job-hero-cta { flex-shrink: 0; text-align: right; }

.ac-job-division {
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ac-blue); margin: 0 0 0.75rem;
}

.ac-job-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 500; line-height: 1.1;
    margin: 0 0 1.5rem; color: var(--ac-white);
}

.ac-job-hero-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.ac-meta-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.12);
    padding: 0.35rem 0.9rem; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.ac-closing-note, .ac-ref-note {
    font-size: 0.8rem; color: rgba(255,255,255,0.6);
    margin: 0.5rem 0 0; text-align: right;
}

.ac-job-body { padding: clamp(2rem, 5vw, 4rem) 0; }

.ac-job-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 8rem;
    align-items: start;
}

/* Sticky sidebar — parent needs to stretch full height */
.ac-job-body .wrap { align-items: start; }

@media (max-width: 1024px) {
    .ac-job-grid { grid-template-columns: 1fr; }
    .ac-job-sidebar { order: -1; }
}

/* All sections: spacing + divider */
.ac-job-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #e0dede; }
.ac-job-section:last-child { border-bottom: none; margin-bottom: 0; }

/* h2-only "header" sections (About the Role, About You) — no border, tight gap */
.ac-job-section.ac-section-heading {
    border-bottom: none !important;
    margin-bottom: 0.25rem !important;
    padding-bottom: 0 !important;
}
/* Remove the top divider on the content section that follows a heading section */
.ac-job-section.ac-section-heading + .ac-job-section {
    border-top: none;
}

.ac-job-section h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; color: var(--ac-black); margin: 0 0 1rem; }
.ac-job-section h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; color: var(--ac-black); margin: 0 0 0.75rem; }
.ac-job-section p { font-size: 0.95rem; line-height: 1.7; color: #444; margin: 0 0 0.75rem; }

.ac-job-section-inline { display: flex; align-items: baseline; gap: 1rem; }
.ac-job-section-inline h3 { margin-bottom: 0; white-space: nowrap; }

.ac-job-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ac-job-list li { font-size: 0.95rem; line-height: 1.6; color: #444; padding-left: 1.4rem; position: relative; }
.ac-job-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--ac-blue); border-radius: 50%; }

/* Rich text HTML output */
.ac-job-rich { font-size: 0.95rem; line-height: 1.7; color: #444; }
.ac-job-rich p  { margin: 0 0 0.75rem; }
.ac-job-rich ul, .ac-job-rich ol { padding-left: 1.5rem; margin: 0 0 0.75rem; }
.ac-job-rich li { margin-bottom: 0.4rem; line-height: 1.6; }
.ac-job-rich ul li { list-style: disc; }
.ac-job-rich ul li::marker { color: var(--ac-blue); }
.ac-job-rich strong { font-weight: 600; color: var(--ac-black); }
.ac-job-rich a { color: var(--ac-blue); }

.ac-job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    align-self: start;
}

/* Ensure grid doesn't clip sidebar during pin */
.ac-job-grid { overflow: visible !important; }
.ac-job-body, .ac-job-body .wrap, .ac-job-main { overflow: visible !important; }

.ac-sidebar-card {
    background: var(--ac-white);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 2px 20px rgba(14,20,51,0.08);
    border: 1px solid #eeeeee;
}

.ac-sidebar-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ac-off-white);
    color: var(--ac-black);
    letter-spacing: -0.01em;
}

.ac-sidebar-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    margin: 0;
}

.ac-sidebar-dl dt,
.ac-sidebar-dl dd {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f5;
    margin: 0;
    display: flex;
    align-items: center;
}

.ac-sidebar-dl dt:last-of-type,
.ac-sidebar-dl dd:last-of-type {
    border-bottom: none;
}

.ac-sidebar-dl dt {
    font-size: 0.78rem;
    font-weight: 700;
    color: #000000;
    text-transform: capitalize;
    letter-spacing: 0;
    white-space: nowrap;
    padding-right: 1.5rem;
    min-width: 130px;
}

.ac-sidebar-dl dd {
    font-size: 0.9rem;
    color: var(--ac-black);
    font-weight: 400;
}

.ac-apply-card h3 { border-bottom-color: rgba(255,255,255,0.2); color: var(--ac-white); }
.ac-apply-card p { font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0; }
.ac-apply-card .ac-closing-note {
    text-align: left !important;
    margin-top: 0.75rem !important;
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.7) !important;
}
.ac-apply-email { display: none !important; }   /* hidden — email visible via mailto button */
.ac-disclaimer { margin-top: 0.75rem !important; font-size: 0.75rem !important; color: rgba(255,255,255,0.55) !important; }

.ac-back-link { text-align: center; }
.ac-back-link a { font-size: 0.875rem; color: #666; text-decoration: none; transition: color var(--ac-transition); }
.ac-back-link a:hover { color: var(--ac-blue); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .arthian-careers-wrap .ac-grid,
    .arthian-careers-wrap .ac-grid.ac-view-list {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .arthian-careers-wrap { padding: 4% 4% !important; }
    .arthian-careers-wrap .ac-filters-inner { grid-template-columns: 1fr; }
    .arthian-careers-wrap .ac-filter-actions { padding-top: 0; flex-direction: column; }
    .arthian-careers-wrap .ac-filter-actions .ac-btn { width: 100%; }
    .ac-job-hero-inner { flex-direction: column; }
    .ac-job-hero-cta { text-align: left; }
    .ac-closing-note, .ac-ref-note { text-align: left; }
    .arthian-careers-wrap .ac-card-footer { flex-direction: column; align-items: flex-start; }
    .arthian-careers-wrap .ac-card-actions { margin-left: 0; }
    .arthian-careers-wrap .ac-pagination-inner { gap: 0.75rem; }
    .arthian-careers-wrap .ac-page-btn { padding: 0.5rem 1rem; }
    .arthian-careers-wrap .ac-grid.ac-view-list .ac-card-footer { align-items: flex-start; min-width: unset; width: 100%; }
}

/* ── Bigger, bolder card title ── */
.arthian-careers-wrap .ac-card-title {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
    font-weight: 700 !important;
}

/* ── Closing date pill — slightly distinct style ── */
.arthian-careers-wrap .ac-meta-item.ac-meta-closing {
    background: #f0f4ff !important;
    color: #2566c1 !important;
    font-weight: 500;
}

/* ── Remove old standalone closing text (now in pills) ── */
.arthian-careers-wrap .ac-closing { display: none; }

/* ── Summary: strip default p margin from wp_editor output ── */
.arthian-careers-wrap .ac-card-summary p { margin: 0; }
.arthian-careers-wrap .ac-card-summary { font-size: 0.875rem; color: #555; line-height: 1.5; }

/* ================================================================
   SINGLE JOB HERO — matches Arthian .sections-hero style
   ================================================================ */

.ac-single-job { display: block; }

/* The scroll-radius-wrapper clips overflow on sections,
   so we use clip-path to achieve the bottom-right radius like the theme */
.ac-job-hero {
    position: relative;
    width: 100%;
    min-height: 72vh;           /* overridden by settings inline style */
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    /* clip-path gives us the Arthian-style bottom-right curve.
       Matches theme's border-radius: 0 0 150px 0 */
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 150px), calc(100% - 0px) 100%, 0 100%);
    clip-path: inset(0px 0px 0px 0px round 0 0 150px 0);
}

/* Colour/image overlay */
.ac-job-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Inner content — sits above overlay */
.ac-job-hero .ac-job-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: clamp(5rem, 10vw, 9rem);
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
    flex-wrap: wrap;
    gap: 1rem;
}

.ac-job-hero-content { flex: 1; min-width: 0; }

/* Hide the aside (closing/ref) — removed from design */
.ac-job-hero-aside { display: none !important; }

/* Division label */
.ac-job-division {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    margin: 0 0 0.75rem;
}

/* Title */
.ac-job-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    margin: 0 0 1.5rem !important;
    color: #ffffff !important;
}

/* Meta pills row */
.ac-job-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Meta pill reset (overrides any ac-meta-item from listing) */
.ac-meta-pill {
    all: unset;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    white-space: nowrap;
    box-sizing: border-box;
}

.ac-meta-pill svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Aside notes */
.ac-closing-note,
.ac-ref-note {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* Apply button in sidebar */
.ac-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.75rem;
    background: #ffffff;
    color: #0e1433 !important;
    border-radius: 3px 24px 3px 24px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-radius 0.3s ease, background 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.ac-apply-btn:hover {
    border-radius: 4px;
    background: #f3f1f1;
}

/* Apply card overrides */
.ac-apply-card { background: #2566c1 !important; }
.ac-apply-card h3 { color: #ffffff !important; border-bottom-color: rgba(255,255,255,0.2) !important; }
.ac-apply-card p  { color: rgba(255,255,255,0.85) !important; font-size: 0.875rem; margin: 0; }
.ac-apply-email   { margin-top: 0.6rem !important; font-size: 0.78rem !important; word-break: break-all; }
.ac-disclaimer    { margin-top: 0.6rem !important; font-size: 0.72rem !important; color: rgba(255,255,255,0.5) !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ac-job-hero .ac-job-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .ac-job-hero-aside { text-align: left; align-items: flex-start; }
    .ac-job-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
}

/* ── Hero default height 72vh ── */
.ac-job-hero {
    min-height: 72vh !important;
} */
.ac-job-section.ac-section-heading + .ac-job-section,
.ac-job-section.ac-section-heading + .ac-job-section + .ac-job-section {
    border-top: none !important;
}

/* Hide empty sections (the_content() section when post has no body content) */
.ac-job-section:empty,
.ac-job-section > *:only-child:empty,
.ac-job-section .ac-job-rich:empty {
    display: none;
}

/* If the content section after heading is empty, collapse it entirely */
.ac-job-section.ac-section-heading + .ac-job-section:has(.ac-job-rich:empty),
.ac-job-section.ac-section-heading + .ac-job-section:has(> :empty) {
    display: none;
}

/* Section that directly follows a heading — no top border */
.ac-job-section.ac-section-no-top-border {
    border-top: none !important;
}

/* ── Sidebar DT: capitalize + black (handled in main .ac-sidebar-dl dt rule above) ── */

/* ── Section top padding ── */
.ac-job-section {
    padding-top: 20px !important;
}

/* ── Apply card email fallback ── */
.ac-email-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 7px 10px;
}

.ac-email-addr {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    flex: 1;
    word-break: break-all;
    font-family: monospace;
}

.ac-copy-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-family: inherit;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    white-space: nowrap;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.2s;
    flex-shrink: 0;
}
.ac-copy-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.ac-copy-btn.copied { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Location dropdown optgroup styling ── */
.arthian-careers-wrap .ac-filter-select optgroup {
    color: #888888;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0;
    background: #ffffff;
}

.arthian-careers-wrap .ac-filter-select optgroup option {
    color: #1d2327;
    font-weight: 400;
    font-size: 0.875rem;
    text-transform: none;
    background: #ffffff;
}
