﻿/* ========================================
   QUANTUM DIAGNOSTICS - UNIFIED THEME
   ======================================== */

/* Color Palette */
:root {
    --primary-dark: #1e3c72;
    --primary-blue: #2a5298;
    --secondary-teal: #0f8b8d;
    --accent-blue: #3498db;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --text-light: #95a5a6;
    --bg-light: #f8f9fa;
    --bg-lighter: #f0f4f8;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --success: #27ae60;
    --danger: #e74c3c;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   NAVIGATION & HEADER
   ======================================== */

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

    .navbar-logo:hover {
        transform: scale(1.05);
    }

.navbar-nav-custom {
    display: flex;
    gap: 0;
    margin-left: auto;
}

    .navbar-nav-custom .nav-item {
        margin: 0;
    }

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin-left: 20px;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-dark), var(--primary-blue));
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 100%;
    }

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        display: none;
    }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

    .hero-cta:hover {
        background: transparent;
        color: var(--white);
        transform: translateX(-5px);
    }

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .breadcrumb-link:hover {
        color: var(--white);
        gap: 12px;
    }

/* ========================================
   SECTIONS & CONTAINERS
   ======================================== */

.section-spacing {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 600px;
}

.container-spacing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HOME PAGE - LANDING
   ======================================== */

.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.landing-left {
    text-align: center;
    padding: 40px;
}

.landing-logo {
    height: 120px;
    margin-bottom: 40px;
}

.landing-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-dark);
    line-height: 1.3;
}

.landing-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.landing-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

    .landing-cta:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        transform: translateY(-3px);
        color: var(--primary-dark);
    }

.landing-right {
    padding: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-dark), var(--primary-blue));
        border-radius: 3px;
        transition: width 0.3s ease;
    }

    .service-card:hover {
        box-shadow: 0 12px 32px rgba(42, 82, 152, 0.15);
        transform: translateY(-8px);
    }

        .service-card:hover::before {
            width: 60px;
        }

    .service-card h4 {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.6;
    }

/* ========================================
   CARDS & COMPONENTS
   ======================================== */

.card-base {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-hover:hover {
        box-shadow: 0 12px 32px rgba(30, 60, 114, 0.15);
        transform: translateY(-8px);
    }

/* Job Cards */
.job-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

    .job-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .job-card:hover {
        box-shadow: 0 12px 32px rgba(30, 60, 114, 0.15);
        transform: translateY(-8px);
    }

        .job-card:hover::before {
            opacity: 1;
        }

.job-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 16px 0;
}

.job-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-lighter);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

    .badge-item i {
        color: var(--primary-blue);
        font-size: 14px;
    }

.job-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
}

.job-dates {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary-gradient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .btn-primary-gradient:hover {
        box-shadow: 0 8px 16px rgba(30, 60, 114, 0.3);
        transform: translateY(-2px);
        color: var(--white);
    }

    .btn-primary-gradient:active {
        transform: translateY(0);
    }

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .btn-apply:hover {
        box-shadow: 0 8px 16px rgba(30, 60, 114, 0.3);
        transform: translateY(-2px);
        color: var(--white);
    }

/* ========================================
   LOADING & STATES
   ======================================== */

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-jobs,
.error-state {
    background: var(--white);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
}

.error-state {
    border-left: 4px solid var(--danger);
}

.no-jobs {
    border-left: 4px solid var(--accent-blue);
}

    .no-jobs h3,
    .error-state h3 {
        font-size: 20px;
        margin-bottom: 12px;
        color: var(--primary-dark);
    }

    .no-jobs p,
    .error-state p {
        color: var(--text-muted);
        margin: 0;
    }

/* ========================================
   SIDEBAR & OVERVIEW
   ======================================== */

.sidebar-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.sidebar-item {
    margin-bottom: 16px;
}

    .sidebar-item:last-child {
        margin-bottom: 0;
    }

.sidebar-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.sidebar-value {
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 600;
}

    .sidebar-value.muted {
        color: var(--text-dark);
        font-weight: 400;
    }

/* ========================================
   JOB DETAILS PAGE
   ======================================== */

.job-header-main {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.job-meta-main {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .meta-item i {
        font-size: 18px;
        opacity: 0.9;
    }

.job-description-box {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.section-content {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 40px;
}

    .section-content ul,
    .section-content ol {
        margin-top: 15px;
        margin-bottom: 15px;
        padding-left: 25px;
    }

    .section-content li {
        margin-bottom: 12px;
        color: var(--text-dark);
    }

    .section-content strong {
        color: var(--primary-dark);
    }

.job-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 40px 0 60px;
}

.btn-apply-large {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-apply-large:hover {
        box-shadow: 0 12px 24px rgba(30, 60, 114, 0.25);
        transform: translateY(-3px);
        color: var(--white);
    }

    .btn-apply-large:active {
        transform: translateY(-1px);
    }

/* ========================================
   FORMS & INPUTS
   ======================================== */

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-textarea {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-textarea:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
        outline: none;
    }

.form-textarea {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    min-height: 120px;
}

/* intl-tel-input styles */
.iti {
    width: 100%;
}

.iti--allow-dropdown input,
.iti--separate-dial-code input {
    padding-left: 50px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

    .iti--allow-dropdown input:focus,
    .iti--separate-dial-code input:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
        outline: none;
    }

.iti--allow-dropdown .iti__flag-container {
    background-color: #f8f9fa;
    border-radius: 6px 0 0 6px;
}

.iti--allow-dropdown.iti__country--search-only .iti__flag-container {
    border-right: 1px solid var(--border-color);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

    .form-control.is-invalid:focus {
        border-color: var(--danger);
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    }

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed var(--primary-blue);
    border-radius: 6px;
    background: var(--bg-lighter);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--primary-blue);
}

    .file-input-label:hover {
        background: #eef2f7;
        border-color: var(--primary-dark);
    }

.file-input {
    display: none;
}

.file-list {
    margin-top: 12px;
}

.file-item {
    background: var(--bg-lighter);
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-dark);
}

.file-remove {
    color: var(--danger);
    cursor: pointer;
    font-weight: 600;
}

.required-text {
    color: var(--danger);
    margin-left: 4px;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border: none;
}

.modal-title {
    font-weight: 700;
    font-size: 20px;
}

.btn-close {
    background: rgba(255, 255, 255, 0.3) !important;
    filter: brightness(1.2);
    opacity: 1;
}

    .btn-close:hover {
        background: rgba(255, 255, 255, 0.5) !important;
    }

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* ========================================
   SUCCESS ANIMATION
   ======================================== */

.success-animation {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

    .success-icon i {
        font-size: 40px;
        color: var(--white);
    }

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 12px;
}

.success-text {
    color: var(--text-dark);
    margin-bottom: 24px;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer-section {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-item {
    display: flex;
    gap: 15px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-blue);
    font-size: 18px;
}

.footer-text h4 {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 4px;
}

.footer-text p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.footer-text a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-text a:hover {
        color: var(--primary-blue);
    }

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.footer-copyright {
    font-size: 14px;
    color: #95a5a6;
    text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }

    .landing-left,
    .landing-right {
        padding: 20px;
    }

    .landing-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 24px;
    }

    .job-title {
        font-size: 18px;
    }

    .job-header-main {
        font-size: 28px;
    }

    .job-meta-main {
        gap: 16px;
    }

    .job-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0 40px;
    }

    .job-description-box,
    .sidebar-card {
        padding: 24px;
    }

    .section-heading {
        font-size: 18px;
    }

    .job-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .navbar-nav .nav-link {
        margin-left: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .job-title {
        font-size: 16px;
    }

    .job-header-main {
        font-size: 22px;
    }

    .job-meta-main {
        flex-direction: column;
        gap: 12px;
    }

    .job-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .landing-title {
        font-size: 24px;
    }

    .badge-item {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-primary-dark {
    color: var(--primary-dark);
}

.text-muted-custom {
    color: var(--text-muted);
}

.bg-light-custom {
    background-color: var(--bg-lighter);
}

.border-bottom-light {
    border-bottom: 1px solid var(--border-color);
}

.shadow-light {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 12px 32px rgba(30, 60, 114, 0.15);
}

.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
