/* =============================================================================
   careers-global.css — Alfasigma Global Brand Variant
   Bold, confident, modern, energetic. Alfasigma red accents on a dark hero.
   Shares HTML structure with careers_alusa variant (same class names).
   ============================================================================= */

/* 1. Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* =============================================================================
   HERO SECTION — Dark gradient, white text
   ============================================================================= */

/* 2. Dark gradient hero */
.careers-hero {
    background:
        radial-gradient(ellipse at 70% 50%, rgba(204, 0, 0, 0.08) 0%, transparent 65%),
        linear-gradient(135deg, #1a1a24 0%, #000003 100%);
    color: #fff;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

/* 3. Inner container */
.careers-hero-inner {
    position: relative;
    z-index: 1;
}

/* 4. Campaign tag — bright red against dark background */
.careers-campaign-tag {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: "Raleway", sans-serif;
    color: #ff3333;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-transform: lowercase;
}

/* 5. Hero heading — white, bold Raleway */
.careers-hero h1 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 24px;
    max-width: 820px;
}

/* 6. Hero body copy — light gray for readability on dark background */
.careers-hero p {
    font-family: "Karla", sans-serif;
    font-size: 16px;
    color: #ccc;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 0 16px;
}

/* 7. CTA button — Alfasigma red, bold, prominent */
a.btn.careers-cta {
    display: inline-block;
    background-color: #cc0000;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 15px 32px;
    border-radius: 3px;
    border: none;
    text-decoration: none;
    margin-top: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.35);
}

a.btn.careers-cta:hover {
    background-color: #e60000;
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.5);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* =============================================================================
   CONTENT SECTIONS — Clean white, generous spacing
   ============================================================================= */

/* 8. Section base */
.careers-section {
    padding: 72px 0;
    background-color: #fff;
    position: relative;
}

/* Alternating subtle background for visual rhythm */
.careers-section:nth-child(even) {
    background-color: #f9f9f9;
}

/* 9. Section label — red, bold, uppercase */
.careers-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #cc0000;
    margin-bottom: 10px;
}

/* 10. Section heading */
.careers-section h2 {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 1.65rem;
    color: #333;
    line-height: 1.25;
    margin: 0 0 20px;
}

/* 11. Section body copy */
.careers-section p {
    font-family: "Karla", sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 0 16px;
}

/* Links within careers sections — red */
.careers-section a {
    color: #cc0000;
    text-decoration: underline;
    transition: color 0.25s ease;
}

.careers-section a:hover {
    color: #a30000;
}

/* =============================================================================
   BELIEFS — Image + bordered belief cards
   ============================================================================= */

/* 12. Beliefs container */
.careers-beliefs {
    width: 100%;
    margin: 28px 0 24px;
}

/* 13. Beliefs image — responsive */
.careers-beliefs-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 28px;
}

/* 14 & 15. Beliefs list — red left border card treatment */
.careers-beliefs-list {
    margin-top: 8px;
}

.careers-beliefs-list p {
    background-color: #fff;
    border-left: 3px solid #cc0000;
    padding: 14px 18px 14px 20px;
    margin-bottom: 10px;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    max-width: 760px;
}

/* =============================================================================
   JOB LISTINGS
   ============================================================================= */

/* 16. Job listings container */
.careers-job-listings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

/* 17. Job card — white, subtle shadow, red hover accent */
.job-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px 24px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #cc0000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: border-left-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    gap: 16px;
}

.job-card:hover {
    border-left-color: #cc0000;
    box-shadow: 0 4px 16px rgba(204, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* 18. Job card info — left column */
.job-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* 19. Job title link — dark, red on hover */
.job-card-title a,
.job-title-link {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.25s ease;
}

.job-card-title a:hover,
.job-title-link:hover {
    color: #cc0000;
    text-decoration: none;
}

/* 20. Location */
.job-card-location {
    font-family: "Karla", sans-serif;
    font-size: 13px;
    color: #666;
}

/* 21. Date */
.job-card-date {
    font-family: "Karla", sans-serif;
    font-size: 12px;
    color: #999;
}

/* 22. Action column */
.job-card-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 23. Apply button — red, matching hero CTA style */
/* Uses .careers-section a.job-apply-btn for specificity over .careers-section a */
.careers-section a.job-apply-btn {
    display: inline-block;
    background-color: #cc0000;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.25);
}

.careers-section a.job-apply-btn:hover {
    background-color: #e60000;
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
}

/* =============================================================================
   LOADING STATE
   ============================================================================= */

.careers-loading {
    text-align: center;
    padding: 48px 0;
    color: #999;
}

.careers-loading p {
    font-size: 14px;
    color: #999;
    margin-top: 16px;
    text-align: center;
    max-width: none;
}

.careers-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #cc0000;
    border-radius: 50%;
    margin: 0 auto;
    animation: careers-spin 0.8s linear infinite;
}

@keyframes careers-spin {
    to { transform: rotate(360deg); }
}

/* =============================================================================
   FALLBACK
   ============================================================================= */

/* 24. Fallback block */
.careers-fallback {
    text-align: center;
    padding: 40px 20px;
}

.careers-fallback p {
    max-width: none;
}

/* =============================================================================
   CALLOUT BOXES — Red left border, clean card
   ============================================================================= */

/* 25. Callout base */
.careers-callout {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #cc0000;
    border-radius: 4px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-top: 12px;
    margin-bottom: 16px;
}

/* 26. Callout heading */
.careers-callout h3 {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 10px;
}

/* 27. Callout body copy */
.careers-callout p {
    font-family: "Karla", sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.65;
    max-width: none;
    margin: 0;
}

/* 28. Callout links — red */
.careers-callout a {
    color: #cc0000;
    text-decoration: underline;
    transition: color 0.25s ease;
}

.careers-callout a:hover {
    color: #a30000;
}

/* 29. Warning callout — stronger feel, deeper red border */
.careers-callout-warning {
    border-left-color: #a30000;
    background-color: #fff8f8;
    box-shadow: 0 2px 12px rgba(163, 0, 0, 0.1);
}

.careers-callout-warning h3 {
    color: #a30000;
}

/* =============================================================================
   FOOTER OVERRIDES — white bg, pipe separators, tab-style top link
   ============================================================================= */

.careers footer {padding: 30px 0;background-color: #fff;}
.careers footer .privacy {max-width: 480px;}
.careers .footer-right .copyright {margin: 0 0 8px;}
.careers .footer-right .copyright a {margin-left: 0;font-size: 13px;text-transform: none;letter-spacing: 0;font-weight: 400;position: relative;}
.careers .footer-right .copyright a::after {content: "|";margin: 0 10px;}
.careers .footer-right .copyright a:last-child::after {display: none;}
.careers footer > .to-top {position: absolute;top: 0;left: 50%;transform: translate(-50%, -100%);width: 90%;max-width: 1200px;text-align: right;pointer-events: none;background: none;border: none;padding: 0;font-size: 0;}
.careers footer > .to-top::after {content: "top";display: inline-block;pointer-events: auto;background-color: #fff;padding: 6px 16px;font-family: "Raleway",sans-serif;font-size: 11px;font-weight: 700;text-transform: uppercase;letter-spacing: 0.1em;color: #3c3c3c;border: none;border-radius: 4px 4px 0 0;}
@media all and (max-width: 1100px) {
	.careers .footer-right .copyright a {display: block;margin-left: 0;}
	.careers .footer-right .copyright a::after {display: none;}}

/* =============================================================================
   RESPONSIVE — mobile (max-width: 768px)
   ============================================================================= */

@media (max-width: 768px) {

    /* Hero — keep dark background, reduce padding and font sizes */
    .careers-hero {
        padding: 80px 0 60px;
    }

    .careers-campaign-tag {
        font-size: 1.5rem;
    }

    .careers-hero h1 {
        font-size: 1.75rem;
    }

    .careers-hero p {
        font-size: 15px;
    }

    /* CTA full-width on mobile */
    .btn.careers-cta {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Sections — tighter vertical rhythm */
    .careers-section {
        padding: 48px 0;
    }

    .careers-section h2 {
        font-size: 1.35rem;
    }

    /* Beliefs image scales naturally (already responsive) */
    .careers-beliefs-img {
        margin-bottom: 20px;
    }

    /* Job cards — stack vertically on small screens */
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .job-card-action {
        width: 100%;
    }

    .job-apply-btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Callouts */
    .careers-callout {
        padding: 18px 20px;
    }
}
