@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #004170;
    --primary-color-dark: #002d4f;
    --secondary-color: #850614;
    --secondary-color-dark: #5f030d;
    --text-main: #1c2433;
    --text-muted: #6d6272;
    --page-background: #f8fafc;
    --card-background: #ffffff;
    --line: rgba(28, 36, 51, 0.08);
    --shadow-soft: 0 10px 25px -5px rgba(0, 65, 112, 0.05), 0 8px 10px -6px rgba(0, 65, 112, 0.05);
    --radius-lg: 12px;
    --radius-md: 8px;
    --font-sans: "Instrument Sans", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--page-background);
    line-height: 1.5;
}

/* Header & Nav */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 0 10px rgba(0, 65, 112, 0.4);
}

header nav {
    display: flex;
    gap: 24px;
}

header nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

header nav a:hover {
    color: var(--primary-color);
}

header nav a.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

/* Layout */
main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 24px 0;
}

/* Buttons */
.button, button[type="submit"] {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.button:hover, button[type="submit"]:hover {
    background-color: var(--primary-color-dark);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button-secondary:hover {
    background-color: rgba(0, 65, 112, 0.05);
}

/* Home Page Hero Section */
.hero-container {
    position: relative;
    padding: 100px 20px;
    background: radial-gradient(100% 100% at 50% 0%, rgba(0, 65, 112, 0.04) 0%, rgba(248, 250, 252, 0) 100%);
    border-bottom: 1px solid rgba(0, 65, 112, 0.03);
    overflow: hidden;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-background-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 65, 112, 0.06) 0%, rgba(133, 6, 20, 0.02) 70%, transparent 100%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
    margin-bottom: 16px;
    background: rgba(133, 6, 20, 0.05);
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-block;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--primary-color-dark);
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color) 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 0 36px 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-actions .button {
    height: 48px;
    padding: 0 28px;
    font-size: 0.95rem;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0, 65, 112, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-actions .btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.hero-actions .btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 65, 112, 0.25);
}

.hero-actions .btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1.5px solid rgba(0, 65, 112, 0.2);
}

.hero-actions .btn-secondary:hover {
    background-color: rgba(0, 65, 112, 0.03);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 65, 112, 0.1);
}

/* Home Layout & Sections */
.home-main {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 8px 0 0 0;
}

.home-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Block Cards Styles */
.block-card {
    background: #ffffff;
    border: 1px solid rgba(0, 65, 112, 0.06);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px -10px rgba(0, 65, 112, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.block-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 65, 112, 0.08);
    border-color: rgba(133, 6, 20, 0.12);
}

.block-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 65, 112, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.block-card:hover .block-icon-wrapper {
    background: rgba(133, 6, 20, 0.06);
    transform: scale(1.08) rotate(6deg);
}

.block-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color-dark);
    margin: 0 0 14px 0;
}

.block-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* Header Login Button Styling */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 65, 112, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Search Form */
#front-offer-search {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 32px;
    box-shadow: var(--shadow-soft);
}

#front-offer-search label {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#front-offer-search input[type="search"],
#front-offer-search select {
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #f8fafc;
    transition: all 0.2s;
}

#front-offer-search input[type="search"]:focus,
#front-offer-search select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 65, 112, 0.12);
}

#front-offer-search button[type="submit"] {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* Offers Grid List */
#front-offer-list {
    display: grid;
    gap: 20px;
}

#front-offer-list article {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-soft);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

#front-offer-list article:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 65, 112, 0.2);
    box-shadow: 0 15px 30px -10px rgba(0, 65, 112, 0.1);
}

#front-offer-list article h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

#front-offer-list article h2 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

#front-offer-list article h2 a:hover {
    color: var(--secondary-color);
}

.card-offer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 10px 0;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge-tag.contract {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.badge-tag.duration {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.badge-tag.location {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.badge-tag.salary {
    background: #faf5ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}

.card-offer-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.btn-view-offer {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view-offer:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}
/* Offer Show Header Action Bar */
.offer-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.offer-header-info {
    flex: 1;
}

.apply-action-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn-apply {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005a9c 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 65, 112, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 65, 112, 0.35);
    background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
}

.btn-apply:active {
    transform: translateY(0);
}

/* Already Applied Status Badge Box */
.applied-status-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 12px 20px;
    text-align: right;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.08);
}

.applied-status-box .applied-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.applied-status-box .applied-date {
    font-size: 0.8rem;
    color: #15803d;
    margin-top: 2px;
}

/* Modern Floating Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast-notification.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.success {
    background: #166534;
    border-left: 4px solid #22c55e;
}

.toast-notification.error {
    background: #991b1b;
    border-left: 4px solid #ef4444;
}

.user-logged-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Modal UI */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-overlay.is-active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 28px 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-close-modal {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    background: #f8fafc;
    padding: 6px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
}

.modal-tab-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-tab-btn.is-active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.modal-body {
    padding: 28px;
}

.tab-pane {
    display: none;
}

.tab-pane.is-active {
    display: block;
}

/* Modal Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 65, 112, 0.15);
}

.form-help {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 10px;
}

.alert-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.alert-msg.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-msg.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-msg.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Public site is intentionally minimal until its editorial content is enabled. */
.front-coming-soon {
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(145deg, #f6fbff 0%, #f8fafc 48%, #fff8f7 100%);
}

.front-coming-soon__main {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
    isolation: isolate;
}

.front-coming-soon__card {
    position: relative;
    z-index: 1;
    width: min(100%, 580px);
    padding: clamp(42px, 8vw, 82px) clamp(28px, 8vw, 78px);
    text-align: center;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(0, 65, 112, 0.1);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 45, 79, 0.12);
    backdrop-filter: blur(14px);
    animation: front-coming-soon-in 500ms ease-out both;
}

.front-coming-soon__logo {
    display: block;
    max-width: min(100%, 260px);
    max-height: 92px;
    margin: 0 auto 28px;
    object-fit: contain;
}

.front-coming-soon__company,
.front-coming-soon__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.front-coming-soon__company {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.front-coming-soon__eyebrow {
    color: var(--secondary-color);
}

.front-coming-soon__card h1 {
    margin: 14px 0;
    color: var(--primary-color-dark);
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.front-coming-soon__card > p:last-child {
    max-width: 360px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.front-coming-soon__orb {
    position: absolute;
    z-index: -1;
    width: 42vw;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.72;
}

.front-coming-soon__orb--primary {
    top: -16vw;
    left: -12vw;
    background: radial-gradient(circle, rgba(0, 65, 112, 0.2), transparent 68%);
}

.front-coming-soon__orb--secondary {
    right: -15vw;
    bottom: -19vw;
    background: radial-gradient(circle, rgba(133, 6, 20, 0.17), transparent 68%);
}

@keyframes front-coming-soon-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .front-coming-soon__main { padding: 18px; }
    .front-coming-soon__card { border-radius: 22px; }
}
