﻿@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ============================================================
   Job Details — Redesigned layout with site dynamic colors
   Accent uses var(--primary-500, #0a65cc) and brand variables.
   ============================================================ */

.jd-page {
    --jd-primary: var(--primary-500, #05c279);
    --jd-primary-dark: var(--primary-600, #04a567);
    --jd-primary-light: var(--primary-50, #e7f0fa);
    --jd-primary-subtle: var(--primary-100, #cde1f5);
    --jd-bg: #f8f9fa;
    --jd-surface: #ffffff;
    --jd-border: #E2E8F0;
    --jd-text-primary: #121224;
    --jd-text-secondary: #4A5568;
    --jd-text-muted: #718096;
    --jd-radius-xl: 1rem;
    --jd-radius-lg: 0.75rem;
    --jd-radius-md: 0.5rem;
    --jd-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --jd-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--jd-bg);
    color: var(--jd-text-primary);
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.jd-page h1, .jd-page h2, .jd-page h3, .jd-page h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.jd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 100px;
}

/* Material Symbols icon helper */
.jd-page .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* Split Hero Section */
.jd-hero-card {
    background-color: var(--jd-surface);
    border-radius: var(--jd-radius-xl);
    border: 1px solid var(--jd-border);
    box-shadow: var(--jd-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 380px;
    margin-bottom: 2.5rem;
}

.jd-hero-left {
    flex: 1 1 60%;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jd-hero-right {
    flex: 1 1 40%;
    position: relative;
    min-height: 280px;
    background-color: var(--jd-primary-light);
}

.jd-hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--jd-surface) 0%, transparent 60%);
}

.jd-company-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.jd-company-logo-box {
    width: 4rem;
    height: 4rem;
    border-radius: var(--jd-radius-lg);
    background-color: var(--jd-bg);
    border: 1px solid var(--jd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex-shrink: 0;
}

.jd-company-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: calc(var(--jd-radius-lg) - 4px);
}

.jd-company-name-tag {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jd-primary);
}

.jd-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--jd-text-primary);
    margin: 0.25rem 0 0;
}

.jd-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin: 1.75rem 0 2rem;
    color: var(--jd-text-secondary);
    font-size: 0.95rem;
}

.jd-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jd-meta-item .material-symbols-outlined {
    color: var(--jd-primary);
}

.jd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Button Styles */
.jd-btn-primary {
    background-color: var(--jd-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.875rem 2rem;
    border-radius: var(--jd-radius-lg);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.jd-btn-primary:hover {
    background-color: var(--jd-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jd-btn-icon {
    padding: 0.875rem;
    border: 1px solid var(--jd-border);
    background-color: var(--jd-surface);
    border-radius: var(--jd-radius-lg);
    color: var(--jd-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.jd-btn-icon:hover {
    background-color: var(--jd-primary-light);
    border-color: var(--jd-primary-subtle);
    color: var(--jd-primary-dark);
}

.jd-btn-icon.is-active {
    background-color: var(--jd-primary);
    border-color: var(--jd-primary);
    color: #ffffff;
}

.jd-btn-secondary {
    background-color: var(--jd-surface);
    color: var(--jd-primary);
    border: 1px solid var(--jd-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--jd-radius-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jd-btn-secondary:hover {
    background-color: var(--jd-primary-light);
    color: var(--jd-primary-dark);
}

/* Grid Layout */
.jd-main-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
}

.jd-narrative-col {
    grid-column: span 8 / span 8;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.jd-sidebar-col {
    grid-column: span 4 / span 4;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 5rem;
}

/* Card Common */
.jd-card {
    background-color: var(--jd-surface);
    border-radius: var(--jd-radius-xl);
    border: 1px solid var(--jd-border);
    box-shadow: var(--jd-shadow);
    padding: 2rem;
}

.jd-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jd-text-primary);
    margin: 0 0 1.25rem 0;
}

.jd-prose {
    color: var(--jd-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.jd-prose * {
    font-family: inherit !important;
    max-width: 100%;
}

.jd-prose p,
.jd-prose span,
.jd-prose div,
.jd-prose li,
.jd-prose font {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: var(--jd-text-secondary);
}

.jd-prose h1, .jd-prose h2, .jd-prose h3, .jd-prose h4, .jd-prose h5, .jd-prose h6 {
    color: var(--jd-text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem 0;
    line-height: 1.35 !important;
}

.jd-prose h1 { font-size: 1.25rem !important; }
.jd-prose h2 { font-size: 1.15rem !important; }
.jd-prose h3 { font-size: 1.05rem !important; }
.jd-prose h4, .jd-prose h5, .jd-prose h6 { font-size: 0.975rem !important; }

.jd-prose p {
    margin-bottom: 1rem;
}

.jd-prose p:last-child {
    margin-bottom: 0;
}

.jd-prose ul, .jd-prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.jd-prose ul { list-style-type: disc; }
.jd-prose ol { list-style-type: decimal; }

.jd-prose li {
    margin-bottom: 0.4rem;
}

.jd-prose strong, .jd-prose b {
    color: var(--jd-text-primary);
    font-weight: 600;
}

.jd-prose a {
    color: var(--jd-primary);
    text-decoration: underline;
}

.jd-prose a:hover {
    color: var(--jd-primary-dark);
}

.jd-prose img {
    height: auto;
    border-radius: var(--jd-radius-md);
    margin: 1rem 0;
}

/* Check List for Responsibilities / Key Features */
.jd-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jd-check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.jd-check-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: var(--jd-primary-light);
    color: var(--jd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 0.125rem;
}

.jd-check-text {
    font-size: 1rem;
    color: var(--jd-text-secondary);
    line-height: 1.5;
}

/* Sub-sections / Requirements Grid */
.jd-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.jd-req-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jd-primary);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.jd-req-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin: 0;
    color: var(--jd-text-secondary);
    font-size: 0.95rem;
}

.jd-req-list li {
    margin-bottom: 0.5rem;
}

/* Tag Pill Lists */
.jd-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jd-tag-pill {
    background-color: var(--jd-primary-light);
    color: var(--jd-primary);
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.jd-tag-pill-soft {
    background-color: var(--jd-bg);
    color: var(--jd-text-secondary);
    border: 1px solid var(--jd-border);
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Life at Company Horizontal Gallery */
.jd-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.jd-gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.jd-gallery-scroll.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.jd-gallery-scroll.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.jd-gallery-card {
    flex: 0 0 20rem;
    height: 12rem;
    border-radius: var(--jd-radius-xl);
    overflow: hidden;
    box-shadow: var(--jd-shadow);
    border: 1px solid var(--jd-border);
    background-color: var(--jd-surface);
}

.jd-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jd-gallery-card:hover img {
    transform: scale(1.04);
}

.jd-gallery-card-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    height: 100%;
    background-color: var(--jd-primary-light);
    color: var(--jd-primary);
}

/* Sidebar Glance List */
.jd-glance-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.jd-glance-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.jd-glance-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--jd-primary-light);
    color: var(--jd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jd-glance-label {
    font-size: 0.775rem;
    color: var(--jd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.jd-glance-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jd-text-primary);
    margin: 0;
}

/* Company Card Sidebar */
.jd-company-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.jd-company-profile-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--jd-radius-lg);
    background-color: var(--jd-bg);
    border: 1px solid var(--jd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    flex-shrink: 0;
}

.jd-company-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jd-company-profile-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jd-text-primary);
    margin: 0;
}

.jd-company-profile-sub {
    font-size: 0.825rem;
    color: var(--jd-text-muted);
    margin-top: 0.125rem;
}

/* Toast Notification */
.jd-toast {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    background-color: #1e293b !important;
    background: #1e293b !important;
    color: #ffffff !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 0.925rem !important;
    font-weight: 500 !important;
    transform: translateY(100px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.jd-toast.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Related Opportunities */
.jd-related-section {
    margin-top: 5rem;
}

.jd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.jd-job-card {
    background-color: var(--jd-surface);
    border-radius: var(--jd-radius-xl);
    border: 1px solid var(--jd-border);
    padding: 1.5rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jd-job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jd-shadow-hover);
    border-color: var(--jd-primary-subtle);
}

.jd-job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.jd-job-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jd-job-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--jd-radius-lg);
    background-color: var(--jd-primary-light);
    color: var(--jd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jd-job-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--jd-radius-lg);
}

.jd-job-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jd-text-primary);
    margin: 0;
    line-height: 1.3;
}

.jd-job-card-company {
    font-size: 0.85rem;
    color: var(--jd-text-muted);
    margin-top: 0.2rem;
}

.jd-job-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--jd-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.jd-btn-details {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--jd-primary-light);
    color: var(--jd-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--jd-radius-lg);
    border: none;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.jd-btn-details:hover {
    background-color: var(--jd-primary);
    color: #ffffff;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

@media (max-width: 1024px) {
    .jd-hero-card {
        flex-direction: column-reverse;
    }

    .jd-hero-left {
        padding: 2rem;
    }

    .jd-hero-right {
        min-height: 220px;
    }

    .jd-hero-overlay {
        background: linear-gradient(to top, var(--jd-surface) 0%, transparent 60%);
    }

    .jd-main-grid {
        grid-template-columns: 1fr;
    }

    .jd-narrative-col, .jd-sidebar-col {
        grid-column: span 12 / span 12;
    }

    .jd-sidebar-col {
        position: static;
    }

    .jd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .jd-page {
        padding-top: 1rem;
    }

    .jd-hero-left {
        padding: 1.5rem;
    }

    .jd-hero-title {
        font-size: 1.5rem;
    }

    .jd-meta-row {
        gap: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .jd-hero-actions {
        width: 100%;
    }

    .jd-btn-primary {
        flex: 1;
        justify-content: center;
    }

    .jd-card {
        padding: 1.25rem;
    }

    .jd-related-grid {
        grid-template-columns: 1fr;
    }

    .jd-container{
        padding-top: 20px;
    }
}

