﻿/* Career Page Custom CSS */
:root {
    --primary-blue: #0066CC;
    --primary-dark: #1A365D;
    --primary-light: #4D94FF;
    --accent-teal: #00B4D8;
    --accent-green: #00CC88;
    --accent-purple: #8A2BE2;
    --accent-red: #FF4757;
    --accent-orange: #FFA500;
    --accent-yellow: #FFD700;
    --light-gray: #F8FAFC;
    --medium-gray: #E2E8F0;
    --dark-gray: #4A5568;
    --text-dark: #2D3748;
    --text-light: #718096;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-light) 100%);
    --shadow-light: 0 10px 30px rgba(0, 102, 204, 0.08);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-small: 10px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: radial-gradient(circle at 10% 20%, rgba(77, 148, 255, 0.05) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.05) 0%, transparent 20%);
}

/* Main Container */
.career-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.career-header {
    text-align: center;
    padding: 40px 0 30px;
    margin-bottom: 40px;
    position: relative;
}

    .career-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 4px;
        background: var(--gradient-primary);
        border-radius: 2px;
    }

.company-logo {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

    .company-logo span {
        color: var(--primary-blue);
    }

.career-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.career-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 25px;
    font-weight: 400;
}

.company-intro {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

    .company-intro h3 {
        color: var(--primary-dark);
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }

    .company-intro p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
        color: var(--text-dark);
    }

    .company-intro .mission {
        font-style: italic;
        color: var(--primary-blue);
        border-left: 4px solid var(--primary-blue);
        padding-left: 20px;
        margin: 25px 0;
    }

.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services-section {
    margin: 50px 0;
}

.services-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    text-align: center;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-medium);
        border-color: var(--primary-light);
    }

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .service-icon i {
        color: var(--primary-blue);
        font-size: 24px;
    }

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.service-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.filter-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

    .filter-title i {
        margin-right: 10px;
        color: var(--primary-blue);
    }

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-btn {
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

    .filter-btn:hover, .filter-btn.active {
        background: var(--primary-blue);
        border-color: var(--primary-blue);
        color: white;
        transform: translateY(-2px);
    }

/* Jobs Grid */
.jobs-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

/* Mobile-first: Single column */
.jobs-grid {
    grid-template-columns: 1fr;
}

/* Job Cards */
.job-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

    .job-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-large);
        border-color: var(--primary-light);
    }

    .job-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--gradient-primary);
    }

    .job-card.expired::before {
        background: var(--accent-red);
    }

    .job-card.urgent::before {
        background: var(--accent-orange);
    }

    .job-card.new::before {
        background: var(--accent-green);
    }

.job-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-expired {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.badge-urgent {
    background: rgba(255, 165, 0, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.badge-new {
    background: rgba(0, 204, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 204, 136, 0.2);
}

.badge-remote {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.job-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.job-main-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.job-department {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
}

    .job-meta-item i {
        margin-right: 8px;
        color: var(--primary-blue);
        font-size: 16px;
        width: 16px;
        text-align: center;
    }

.job-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.skill-tag {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.job-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Desktop: buttons side by side */
@media (min-width: 768px) {
    .job-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.job-date {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

    .job-date i {
        margin-right: 5px;
    }

/* Buttons - RESPONSIVE FIXES */
.btn-sphere {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 14px 25px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.3);
    text-decoration: none;
    width: 100%; /* Mobile: full width */
    text-align: center;
}

    .btn-sphere:hover, .btn-sphere:focus {
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
        text-decoration: none;
        outline: none;
    }

    .btn-sphere i {
        margin-right: 8px;
        font-size: 16px;
    }

.btn-disabled {
    background: var(--dark-gray);
    background-image: none;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

    .btn-disabled:hover, .btn-disabled:focus {
        transform: none;
        box-shadow: none;
        color: white;
    }

.btn-outline-sphere {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 20px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    text-decoration: none;
    width: 100%; /* Mobile: full width */
    text-align: center;
}

    .btn-outline-sphere:hover, .btn-outline-sphere:focus {
        background: rgba(0, 102, 204, 0.05);
        transform: translateY(-3px);
        text-decoration: none;
        outline: none;
    }

    .btn-outline-sphere i {
        margin-right: 8px;
        font-size: 16px;
    }

/* Desktop: fixed width for buttons */
@media (min-width: 768px) {
    .job-footer .btn-sphere,
    .job-footer .btn-outline-sphere,
    .job-footer .btn-disabled {
        width: auto;
        min-width: 160px; /* Fixed width on desktop */
        flex-shrink: 0;
    }
}

/* Expired Notice */
.expired-notice {
    background: linear-gradient(to right, rgba(255, 71, 87, 0.05), rgba(255, 107, 107, 0.05));
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--accent-red);
}

    .expired-notice p {
        margin: 0;
        font-size: 14px;
        color: var(--dark-gray);
        display: flex;
        align-items: center;
    }

    .expired-notice i {
        margin-right: 8px;
        color: var(--accent-red);
    }

/* View Details Button */
.view-details-btn {
    background: transparent;
    border: 1px solid var(--medium-gray);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: var(--border-radius-small);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    .view-details-btn:hover {
        border-color: var(--primary-blue);
        color: var(--primary-blue);
        background: rgba(0, 102, 204, 0.05);
    }

    .view-details-btn i {
        margin-right: 5px;
        font-size: 12px;
    }

/* Job Modal Styling */
.job-modal .modal-dialog {
    max-width: 900px;
    margin: 30px auto;
}

.job-modal .modal-content {
    border-radius: var(--border-radius);
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.job-modal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 25px 30px;
    position: relative;
}

.job-modal .modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.job-modal .modal-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

.job-modal .modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 28px;
    position: absolute;
    top: 20px;
    right: 20px;
}

    .job-modal .modal-header .close:hover {
        opacity: 1;
    }

.job-modal .modal-body {
    padding: 0;
}

.job-modal .job-modal-content {
    padding: 30px;
    background: white;
}

.job-modal-section {
    margin-bottom: 30px;
}

    .job-modal-section:last-child {
        margin-bottom: 0;
    }

    .job-modal-section h4 {
        font-size: 20px;
        font-weight: 600;
        color: var(--primary-dark);
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--medium-gray);
        position: relative;
    }

        .job-modal-section h4::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 60px;
            height: 2px;
            background: var(--primary-blue);
        }

    .job-modal-section p {
        font-size: 16px;
        line-height: 1.7;
        color: var(--text-dark);
        margin-bottom: 15px;
    }

    .job-modal-section ul, .job-modal-section ol {
        padding-left: 20px;
        margin-bottom: 15px;
    }

    .job-modal-section li {
        font-size: 16px;
        line-height: 1.6;
        color: var(--text-dark);
        margin-bottom: 8px;
    }

.job-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(0, 102, 204, 0.05);
    padding: 20px;
    border-radius: var(--border-radius-small);
    margin-bottom: 30px;
}

.job-modal-meta-item {
    flex: 1;
    min-width: 200px;
}

.job-modal-meta-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.job-modal-meta-value {
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 600;
}

.job-modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.job-modal-skill {
    background: var(--light-gray);
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--medium-gray);
}

.job-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--medium-gray);
    flex-wrap: wrap;
}

    .job-modal-actions .btn-sphere,
    .job-modal-actions .btn-outline-sphere {
        flex: 1;
        min-width: 200px;
    }

.job-modal-expired {
    background: linear-gradient(to right, rgba(255, 71, 87, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-red);
    display: flex;
    align-items: center;
}

    .job-modal-expired i {
        color: var(--accent-red);
        font-size: 24px;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .job-modal-expired h5 {
        color: var(--accent-red);
        margin: 0 0 5px 0;
        font-size: 18px;
    }

    .job-modal-expired p {
        margin: 0;
        color: var(--dark-gray);
        font-size: 15px;
    }

/* Responsive modal */
@media (max-width: 768px) {
    .job-modal .modal-dialog {
        margin: 10px;
    }

    .job-modal .modal-header {
        padding: 20px;
    }

    .job-modal .modal-title {
        font-size: 22px;
        padding-right: 40px;
    }

    .job-modal .job-modal-content {
        padding: 20px;
    }

    .job-modal-meta {
        flex-direction: column;
        gap: 15px;
    }

    .job-modal-meta-item {
        min-width: 100%;
    }

    .job-modal-actions {
        flex-direction: column;
    }

        .job-modal-actions .btn-sphere,
        .job-modal-actions .btn-outline-sphere {
            width: 100%;
            min-width: 100%;
        }
}

/* Footer */
.career-footer {
    text-align: center;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 1px solid var(--medium-gray);
    color: var(--text-light);
    font-size: 15px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
}

    .footer-logo span {
        color: var(--primary-blue);
    }

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 25px 0;
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

    .footer-link:hover {
        text-decoration: underline;
        color: var(--primary-dark);
    }

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s;
}

    .social-link:hover {
        background: var(--primary-blue);
        color: white;
        transform: translateY(-3px);
    }

/* Responsive Grid Layouts */
/* Tablets: 2 columns */
@media (min-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-options {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
    }
}

/* Desktops: 3 columns */
@media (min-width: 992px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .career-title {
        font-size: 42px;
    }

    .career-subtitle {
        font-size: 20px;
    }

    .stat-number {
        font-size: 42px;
    }

    .job-main-title {
        font-size: 22px;
    }
}

/* Large Desktops: 4 columns */
@media (min-width: 1200px) {
    .jobs-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .career-container {
        padding: 40px;
    }

    .career-title {
        font-size: 46px;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .career-container {
        padding: 15px;
    }

    .career-header {
        padding: 30px 0 20px;
        margin-bottom: 30px;
    }

    .company-logo {
        font-size: 32px;
    }

    .career-title {
        font-size: 28px;
    }

    .career-subtitle {
        font-size: 16px;
        padding: 0 10px;
    }

    .company-intro {
        padding: 20px;
    }

    .stats-bar {
        gap: 20px;
    }

    .stat-item {
        padding: 0 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .filter-section {
        padding: 20px;
    }

    .job-card {
        padding: 25px;
    }

    .job-main-title {
        font-size: 20px;
    }

    .job-meta {
        gap: 10px;
    }

    .job-meta-item {
        font-size: 13px;
    }

    .job-skills {
        gap: 6px;
    }

    .skill-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Mobile: Ensure buttons are full width and stacked */
    .job-footer {
        flex-direction: column;
        gap: 15px;
    }

        .job-footer .btn-sphere,
        .job-footer .btn-outline-sphere,
        .job-footer .btn-disabled {
            width: 100%;
            margin: 0;
        }
}

@media (max-width: 480px) {
    .career-title {
        font-size: 24px;
    }

    .company-logo {
        font-size: 28px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-item {
        padding: 0 10px;
    }

    .job-card {
        padding: 20px;
    }

    .job-main-title {
        font-size: 18px;
    }

    .job-badge {
        top: 15px;
        right: 15px;
        font-size: 10px;
        padding: 4px 10px;
    }

    .btn-sphere, .btn-outline-sphere {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Animation for job cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeIn 0.5s ease forwards;
}
