/**
 * Careers Page Styles
 * Following Flightdemy Design System (/admin_brand)
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.careers-hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.careers-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--color-fd-blue-3);
}

.careers-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/img/banners/all-staff.png');
    background-size: cover;
    background-position: top;
    opacity: 0.15;
}

.careers-hero__overlay {
    display: none;
}

.careers-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.careers-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.careers-hero__title {
    font-size: 52px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px;
    line-height: 1.1;
}

.careers-hero__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 32px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .careers-hero {
        padding: 120px 0 60px;
    }
    .careers-hero__title {
        font-size: 32px;
    }
    .careers-hero__subtitle {
        font-size: 16px;
    }
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */

.fd-careers-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.fd-careers-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-fd-green-3), var(--color-fd-green-4));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.fd-careers-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.fd-careers-card:hover::before {
    transform: scaleX(1);
}

.fd-careers-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-fd-green-2);
    border-radius: 20px;
    color: var(--color-fd-green-4);
    font-size: 32px;
    transition: all 0.3s ease;
}

.fd-careers-card:hover .fd-careers-card__icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(133, 147, 0, 0.2);
}

.fd-careers-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-fd-blue-3);
    margin-bottom: 12px;
}

.fd-careers-card__desc {
    font-size: 14px;
    color: var(--color-fd-gray-2);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   JOB CARDS
   ========================================================================== */

.fd-job-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

/* Only hide overflow for cards in listing, not form cards */
.careers-section .fd-job-card {
    overflow: hidden;
}

.fd-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-fd-gray-4);
    transition: background 0.3s ease;
}

.fd-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.fd-job-card--urgent::before {
    background: var(--color-error-2);
}

.fd-job-card--permanent::before {
    background: var(--color-fd-green-4);
}

/* Header */
.fd-job-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.fd-job-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fd-job-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fd-job-card__badge--category {
    background: var(--color-fd-green-2);
    color: var(--color-fd-green-4);
}

.fd-job-card__badge--type {
    background: var(--color-fd-light-1);
    color: var(--color-fd-gray-1);
}

.fd-job-card__badge--permanent {
    background: #e0f7fa;
    color: #00838f;
}

.fd-job-card__expires {
    font-size: 13px;
    color: var(--color-fd-gray-2);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-fd-light-1);
    border-radius: 6px;
}

.fd-job-card__expires--urgent {
    background: rgba(244, 67, 54, 0.1);
    color: var(--color-error-2);
    font-weight: 600;
}

.fd-job-card__expires--urgent i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Content */
.fd-job-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-fd-blue-3);
    margin-bottom: 12px;
    line-height: 1.3;
}

.fd-job-card__desc {
    font-size: 15px;
    color: var(--color-fd-gray-2);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Footer */
.fd-job-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-fd-gray-5);
}

.fd-job-card__location {
    font-size: 14px;
    color: var(--color-fd-gray-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fd-job-card__location i {
    color: var(--color-fd-green-4);
    font-size: 16px;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.careers-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.careers-section-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-fd-green-2);
    border-radius: 16px;
    color: var(--color-fd-green-4);
    font-size: 24px;
    margin-bottom: 20px;
}

.careers-section-header__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-fd-blue-3);
    margin: 0 0 12px;
}

.careers-section-header__subtitle {
    font-size: 16px;
    color: var(--color-fd-gray-2);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .fd-careers-card {
        padding: 24px 20px;
    }

    .fd-careers-card__icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
        border-radius: 16px;
    }

    .careers-section-header__title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    /* Hero adjustments */
    .careers-hero__badge {
        padding: 6px 14px;
        font-size: 13px;
    }

    /* Category Cards */
    .fd-careers-card {
        padding: 20px 16px;
    }

    .fd-careers-card__icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .fd-careers-card__title {
        font-size: 18px;
    }

    .fd-careers-card__desc {
        font-size: 13px;
    }

    /* Job Cards */
    .fd-job-card {
        padding: 20px;
    }

    .fd-job-card__header {
        flex-direction: column;
    }

    .fd-job-card__title {
        font-size: 18px;
    }

    .fd-job-card__desc {
        font-size: 14px;
    }

    .fd-job-card__footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        margin-top: 20px;
        padding-top: 16px;
    }

    .fd-job-card__footer .btn {
        width: 100%;
        text-align: center;
    }

    .fd-job-card__location {
        justify-content: center;
    }

    /* Section Headers */
    .careers-section-header {
        margin-bottom: 32px;
    }

    .careers-section-header__icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .careers-section-header__title {
        font-size: 24px;
    }

    .careers-section-header__subtitle {
        font-size: 15px;
    }
}


/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.careers-cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.careers-cta__bg {
    position: absolute;
    inset: 0;
    background: var(--color-fd-green-4);
}

.careers-cta__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/img/banners/working-staff.png') center/cover;
    opacity: 0.1;
}

.careers-cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.careers-cta__title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px;
    line-height: 1.2;
}

.careers-cta__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 32px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .careers-cta {
        padding: 60px 0;
    }
    .careers-cta__title {
        font-size: 28px;
    }
    .careers-cta__subtitle {
        font-size: 16px;
    }
}

/* ==========================================================================
   LINKEDIN SECTION
   ========================================================================== */

.careers-linkedin__icon {
    width: 48px;
    height: 48px;
    background: #0077b5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(0, 119, 181, 0.25);
}

.careers-linkedin__title {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-fd-blue-3);
    margin: 0 0 20px;
    line-height: 1.2;
}

.careers-linkedin__text {
    font-size: 16px;
    color: var(--color-fd-gray-2);
    line-height: 1.7;
    margin: 0 0 32px;
}

.careers-linkedin__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.careers-linkedin__btn {
    background: #0077b5 !important;
    color: white !important;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.careers-linkedin__btn:hover {
    background: #005a87 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 181, 0.35);
}

.careers-linkedin__btn-secondary {
    background: white !important;
    color: #0077b5 !important;
    border: 2px solid #0077b5 !important;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.careers-linkedin__btn-secondary:hover {
    background: #e8f4f9 !important;
    transform: translateY(-2px);
}

.careers-linkedin__image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    max-width: 380px;
}

.careers-linkedin__image img {
    width: 100%;
    display: block;
}

@media (max-width: 991px) {
    .careers-linkedin__image {
        margin: 0 auto 30px;
        max-width: 280px;
    }

    .careers-linkedin__icon {
        margin-left: auto;
        margin-right: auto;
    }

    .careers-linkedin__title {
        font-size: 32px;
        text-align: center;
    }

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

    .careers-linkedin__buttons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .careers-linkedin__image {
        max-width: 240px;
    }

    .careers-linkedin__icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .careers-linkedin__title {
        font-size: 26px;
    }

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

    .careers-linkedin__btn,
    .careers-linkedin__btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   APPLICATION FORM
   ========================================================================== */

/* Form container padding */
#apply-form {
    padding: 24px 32px 32px;
}

/* Tel input styling (not included in base styles) */
#apply-form input[type="tel"] {
    width: 100%;
    padding: 15px 22px 15px 48px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.15s ease;
}

#apply-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--color-fd-green-3);
    box-shadow: 0 0 0 3px rgba(165, 190, 0, 0.15);
}

/* File input styling */
#apply-form input[type="file"] {
    width: 100%;
    padding: 12px 12px 12px 48px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

#apply-form input[type="file"]:hover {
    border-color: var(--color-fd-green-3);
}

#apply-form input[type="file"]:focus {
    outline: none;
    border-color: var(--color-fd-green-3);
    box-shadow: 0 0 0 3px rgba(165, 190, 0, 0.15);
}

#apply-form input[type="file"]::file-selector-button {
    display: none;
}

/* Quill editor styling */
#message-editor {
    background: white;
    border: 1px solid #DDDDDD;
    border-top: none;
    border-radius: 0 0 8px 8px;
    height: 200px;
    overflow-y: auto;
}

#message-editor .ql-editor {
    min-height: 160px;
    font-size: 15px;
    line-height: 1.6;
}

#apply-form .ql-toolbar {
    border: 1px solid #DDDDDD;
    border-radius: 8px 8px 0 0;
    background: #f9f9f9;
}

#message-editor.input-error {
    border-color: var(--color-error-2);
}

#message-editor:focus-within {
    border-color: var(--color-fd-green-3);
    box-shadow: 0 0 0 3px rgba(165, 190, 0, 0.15);
}

@media (max-width: 767px) {
    #apply-form {
        padding: 20px 16px 24px;
    }
}

/* ==========================================================================
   JOB DETAIL PAGE (Two Column Layout)
   ========================================================================== */

.fd-job-detail {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
}

.fd-job-detail__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-fd-blue-3);
    margin: 0 0 16px;
    line-height: 1.3;
}

.fd-job-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-fd-gray-5);
}

.fd-job-detail__location,
.fd-job-detail__expires {
    font-size: 14px;
    color: var(--color-fd-gray-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fd-job-detail__location i {
    color: var(--color-fd-green-4);
}

.fd-job-detail__content {
    font-size: 15px;
    color: var(--color-fd-gray-1);
    line-height: 1.7;
}

.fd-job-detail__content h2,
.fd-job-detail__content h3,
.fd-job-detail__content h4 {
    color: var(--color-fd-blue-3);
    margin-top: 24px;
    margin-bottom: 12px;
}

.fd-job-detail__content h2:first-child,
.fd-job-detail__content h3:first-child,
.fd-job-detail__content h4:first-child {
    margin-top: 0;
}

.fd-job-detail__content p {
    margin-bottom: 16px;
}

.fd-job-detail__content ul,
.fd-job-detail__content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style-position: outside;
}

.fd-job-detail__content ul {
    list-style-type: disc !important;
}

.fd-job-detail__content ul ul {
    list-style-type: circle !important;
}

.fd-job-detail__content ol {
    list-style-type: decimal !important;
}

.fd-job-detail__content li {
    margin-bottom: 8px;
    display: list-item !important;
    list-style: inherit !important;
}

.fd-job-detail__content strong {
    color: var(--color-fd-blue-4);
}

/* Form wrapper for sticky positioning */
.fd-apply-form-wrapper {
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .fd-job-detail {
        padding: 24px;
    }

    .fd-job-detail__title {
        font-size: 24px;
    }

    .fd-apply-form-wrapper {
        position: static;
    }
}

@media (max-width: 767px) {
    .fd-job-detail {
        padding: 20px;
    }

    .fd-job-detail__title {
        font-size: 22px;
    }

    .fd-job-detail__meta {
        flex-direction: column;
        gap: 12px;
    }
}

