/* ===================================
   Careers Page Modern Styles
   =================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #1B5278 0%, #45B7D1 100%);
    --sec-color: #45B7D1;
    --dark-blue: #1B5278;
    --light-bg: #f8f9fb;
    --white: #ffffff;
    --text-main: #2D3748;
    --text-muted: #718096;
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius-lg: 20px;
}

/* Hero Section */
.careers-hero {
    position: relative;
    padding: 10rem 0 8rem;
    background: var(--primary-gradient);
    color: var(--white);
    overflow: hidden;
    margin-top: -100px;
    /* Offset for floating header */
}

.careers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/careers_hero_bg_1770537873703.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.careers-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.careers-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease forwards;
}

.careers-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease forwards;
}

/* Search Bar (Faux for now) */
.career-search-box {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: min(500px, 90%);
    animation: fadeInUp 1.2s ease forwards;
}

.career-search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    flex: 1;
    font-size: 1rem;
}

.career-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.career-search-box button {
    background: var(--white);
    color: var(--dark-blue);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.career-search-box button:hover {
    transform: scale(1.05);
}

/* Values Section */
.careers-values {
    padding: 6rem 0;
    background: var(--white);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(69, 183, 209, 0.1);
    color: var(--sec-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-weight: 800;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #edf2f7;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--sec-color);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Jobs Section */
.careers-list {
    padding: 6rem 0;
    background: var(--light-bg);
}

.jobs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.job-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s;
    border: 1px solid transparent;
}

.job-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(69, 183, 209, 0.2);
}

.job-info h2 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.job-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--sec-color);
}

.job-tags {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.job-tag {
    padding: 0.35rem 1rem;
    background: #edf2f7;
    color: var(--text-main);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-apply {
    background: var(--primary-gradient);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(69, 183, 209, 0.3);
}

.btn-apply:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(69, 183, 209, 0.4);
}

/* Perks Section */
.careers-perks {
    padding: 6rem 0;
    background: var(--dark-blue);
    color: white;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.perk-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.perk-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Apply Page Styles */
.apply-page {
    padding: 10rem 0 6rem;
    background: var(--light-bg);
    min-height: 100vh;
}

.apply-container {
    max-width: 800px;
    margin: 0 auto;
}

.apply-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.apply-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-gradient);
}

.apply-card h1 {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.apply-job-title {
    color: var(--sec-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    display: inline-block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s;
    font-size: 1rem;
    color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sec-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(69, 183, 209, 0.1);
}

/* File Input Custom Styling */
.file-input-wrapper {
    position: relative;
}

.btn-submit-app {
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: 15px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
    box-shadow: 0 10px 20px rgba(69, 183, 209, 0.2);
}

.btn-submit-app:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(69, 183, 209, 0.3);
}

.success-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.success-alert i {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1.5rem;
    display: block;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Adjustments */
html[dir="rtl"] .career-search-box i {
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="rtl"] .meta-item i {
    margin-left: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .btn-apply {
        width: 100%;
        text-align: center;
        margin-top: 1.5rem;
    }

    .careers-hero {
        padding: 8rem 0 6rem;
    }
}