/* ================= GLOBAL ================= */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Avenir', sans-serif;
    background: linear-gradient(135deg, #102833, #132F3D 60%, #0e2530);
    color: white;
}

/* ================= HERO ================= */
.career-hero {
    height: 45vh;
    background: linear-gradient(rgba(19,47,61,0.85), rgba(19,47,61,0.85)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay h1 {
    color: #e1c885;
    font-size: 48px;
}

.hero-overlay p {
    margin-top: 15px;
    opacity: 0.85;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #e1c885;
    text-decoration: none;
}

/* ================= TITLES ================= */
.section-title {
    text-align: center;
    color: #e1c885;
    font-size: 32px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #e1c885;
    margin: 15px auto 0;
}

/* ================= INTRO ================= */
.career-intro {
    text-align: left;
    padding: clamp(34px, 5vw, 62px) 20px 14px;
    max-width: 900px;
    margin: auto;
}

.career-intro .section-title {
    text-align: left;
    margin-bottom: 18px;
}

.career-intro .section-title::after {
    display: none;
}

.career-intro p {
    opacity: 0.85;
    line-height: 1.8;
    margin-left: 0;
    text-align: left;
}

/* ================= BENEFITS ================= */
.career-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    padding: clamp(28px, 4vw, 46px) min(8%, 92px);
}

.benefit-card {
    background: #1C3B56;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s ease;
    border: 1px solid rgba(225,200,133,0.2);
}

.benefit-card i {
    font-size: 32px;
    color: #e1c885;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
}

.benefit-card p {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.7;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

/* ================= OPEN ROLES ================= */
.open-roles {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(34px, 5vw, 58px) 0;
}

.career-alert {
    width: min(760px, 100%);
    margin: 0 auto 26px;
    padding: 16px 18px;
    border-radius: 10px;
    line-height: 1.55;
    font-weight: 700;
    text-align: left;
}

.career-alert-success {
    color: #e9fff3;
    border: 1px solid rgba(50,210,132,0.35);
    background: rgba(16,92,55,0.58);
}

.career-alert-error {
    color: #fff0ee;
    border: 1px solid rgba(238,99,82,0.35);
    background: rgba(116,39,32,0.58);
}

.role-card {
    background: linear-gradient(135deg, rgba(28,59,86,.96), rgba(12,38,50,.98));
    padding: 18px;
    margin-bottom: 22px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(128px, 168px) minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    transition: 0.3s ease;
    border: 1px solid rgba(225,200,133,0.18);
    border-left: 4px solid #e1c885;
    box-shadow: 0 20px 54px rgba(0,0,0,.18);
    overflow: hidden;
}

.role-card h4 {
    margin: 0;
}

.role-card span {
    font-size: 13px;
    opacity: 0.7;
}

.role-card p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.78);
    line-height: 1.55;
}

.role-card-image {
    display: block;
    width: 100% !important;
    max-width: 168px;
    height: 112px !important;
    max-height: 112px;
    object-fit: cover;
    border-radius: 9px;
    align-self: stretch;
}

.job-index-link {
    display: inline-flex;
    margin-top: 12px;
    color: #e1c885;
    font-weight: 800;
    text-decoration: none;
}

.role-card:hover {
    background: #244a69;
}

.apply-btn {
    padding: 10px 25px;
    background: #e1c885;
    color: #132F3D;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.apply-btn:hover {
    background: #d4b86f;
}

/* ================= CTA ================= */
.career-cta {
    text-align: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, #132F3D, #102833);
}

.career-cta h3 {
    color: #e1c885;
    margin-bottom: 30px;
}

.cta-btn {
    padding: 14px 45px;
    background: #e1c885;
    color: #132F3D;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: #d4b86f;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .hero-overlay h1 {
        font-size: 36px;
    }

    .role-card {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 16px;
    }

    .role-card-image {
        max-width: 100%;
        width: 100% !important;
        height: clamp(170px, 48vw, 230px) !important;
        max-height: 230px;
    }

}



/* ================= APPLY MODAL================= */
/* Fade */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Job Status */
.job-status {
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.job-status.active {
    color: #00c853;
}
.job-status.closed {
    color: #ff3d3d;
}

/* Disabled Button */
.apply-btn.disabled {
    background: #555;
    cursor: not-allowed;
}

/* Job Modal */
.job-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 4000;
}

.job-modal.active {
    opacity: 1;
    visibility: visible;
}

.job-content {
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s ease;
}

.job-modal.active .job-content {
    transform: translateY(0) scale(1);

}.close-job {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    font-size: 20px;
}

/* Job Form */
.job-form input,
.job-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    border: none;
}
.job-form button {
    background: #e1c885;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
}

/* ================= JOB MODAL UPGRADE ================= */

.job-content {
    background: #1C3B56;
    width: 95%;
    max-width: 750px;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Title */
.job-title {
    margin-bottom: 20px;
    color: #e1c885;
}

/* Featured Image */
.job-image {
    margin-bottom: 25px;
}
.job-image img {
    width: 100%;
    height: clamp(190px, 34vw, 300px);
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .job-image img {
        height: 220px;
    }
}

/* Job Meta */
.job-meta {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}
.job-meta p {
    margin-bottom: 6px;
}

/* Description */
.job-description h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #e1c885;
}
.job-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

/* Scrollbar polish */
.job-content::-webkit-scrollbar {
    width: 6px;
}
.job-content::-webkit-scrollbar-thumb {
    background: #e1c885;
    border-radius: 10px;
}

/* ================= JOB TOAST ================= */
/* ===== CENTER SUCCESS OVERLAY ===== */

/* ===== CENTER SUCCESS OVERLAY ===== */

.toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s ease;
    z-index: 6000;
    padding: 20px; /* prevents edge touching */
}

.toast-overlay.show {
    opacity: 1;
}

.toast-center {
    background: #1C3B56;
    width: 100%;
    max-width: 420px;   /* controlled width */
    padding: 35px 30px; /* reduced horizontal padding */
    border-radius: 16px;
    text-align: center;
    transform: scale(0.85);
    transition: 0.4s ease;
    box-sizing: border-box;
}

.toast-overlay.show .toast-center {
    transform: scale(1);
}

.toast-center i {
    font-size: 45px;
    color: #00c853;
    margin-bottom: 15px;
}

.toast-center h3 {
    color: #e1c885;
    font-family: 'Avenir', sans-serif;
    font-size: 18px;
}

/* Mobile refinement */
@media (max-width: 480px) {
    .toast-center {
        max-width: 320px;
        padding: 25px 20px;
    }

    .toast-center h3 {
        font-size: 16px;
    }
}

/* ===== SUBMIT LOADER ===== */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid #e1c885;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Recruitment Section ===== */

.recruitment-section {
    padding: clamp(48px, 7vw, 86px) 20px;
}

.recruitment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
    max-width: 1240px;
    margin: auto;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(225,200,133,0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    box-shadow: 0 28px 80px rgba(0,0,0,0.18);
}

.section-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    color: #e1c885;
    text-transform: uppercase;
    font-weight: 700;
}

.recruitment-text h2 {
    margin: 15px 0 20px;
    color: #e1c885;
    font-size: clamp(24px, 2.7vw, 34px);
    font-family: 'Avenir', sans-serif;
    line-height: 1.12;
}

.recruitment-text p {
    margin-bottom: 20px;
    opacity: 0.85;
    line-height: 1.65;
}

.recruitment-benefits {
    list-style: none;
    padding: 0;
}

.recruitment-benefits li {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(225,200,133,0.14);
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
}

.recruitment-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(225,200,133,0.18);
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.recruitment-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(8,26,34,0.36));
    pointer-events: none;
}

.recruitment-card img {
    display: block;
    width: 100%;
    height: clamp(310px, 38vw, 470px);
    border-radius: 0;
    object-fit: cover;
}

/* Mobile */
@media (max-width: 900px) {
    .recruitment-grid {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 18px;
    }

    .recruitment-text h2 {
        font-size: clamp(23px, 7vw, 28px);
    }

    .recruitment-card {
        order: -1;
    }

    .recruitment-card img {
        height: clamp(240px, 62vw, 340px);
    }
}

.job-detail-wrap {
    width: min(980px, calc(100% - 32px));
    margin: clamp(42px, 7vw, 76px) auto;
}

.job-detail-card {
    background: rgba(28,59,86,.72);
    border: 1px solid rgba(225,200,133,.18);
    border-radius: 12px;
    padding: clamp(20px, 4vw, 36px);
}

.job-detail-card > img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 24px;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.job-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #102833;
    background: #e1c885;
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 800;
    font-size: 13px;
}

.job-detail-card h2 {
    color: #e1c885;
    margin: 28px 0 10px;
}

.job-detail-card p {
    line-height: 1.75;
    color: rgba(255,255,255,.86);
}

/* ===== Career polish - 20260713 ===== */
.career-page .career-intro {
    max-width: 1180px;
    text-align: left;
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: clamp(34px, 5vw, 56px);
}

.career-page .career-intro .section-title {
    text-align: left;
    margin-left: 0;
}

.career-page .career-intro .section-title::after {
    display: none;
}

.career-page .career-intro p {
    margin-left: 0;
    max-width: 760px;
    text-align: left;
}

.career-page .section-subtitle,
.career-page .recruitment-text h2 {
    color: #e1c885;
}

.career-page .section-subtitle {
    font-size: 10px;
}

/* ===== Career job image polish - 20260715 ===== */
.role-card-image {
    background: linear-gradient(135deg, rgba(225, 200, 133, .16), rgba(255, 255, 255, .04));
}

.job-image img[src=""],
.job-detail-card > img[src=""] {
    display: none;
}
