.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined[data-weight="fill"] {
    font-variation-settings: 'FILL' 1;
}

/* Drawer Transition */
#job-drawer {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.drawer-open #job-drawer {
    transform: translateX(0);
}

.drawer-closed #job-drawer {
    transform: translateX(100%);
}

#drawer-overlay {
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.drawer-open #drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.drawer-closed #drawer-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Card Hover Effect */
.job-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.job-card:hover {
    box-shadow: 0px 10px 30px rgba(15, 23, 42, 0.08);
    border-left-color: #316bf3;
    /* secondary container color */
    transform: translateY(-2px);
}

/* Input Focus */
.input-field:focus-within {
    border-color: #316bf3;
    box-shadow: 0 0 0 4px rgba(49, 107, 243, 0.1);
}

/* Auto-fill Field Highlight Animation */
@keyframes autofillGlow {
    0% {
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35);
        border-color: #2563eb;
        background-color: rgba(239, 246, 255, 0.8);
    }
    70% {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
        border-color: #3b82f6;
    }
    100% {
        box-shadow: none;
    }
}

.autofill-highlight {
    animation: autofillGlow 2.5s ease-out forwards;
}

/* Drag and Drop Area */
.drop-zone {
    transition: border-color 0.2s, background-color 0.2s;
}

.drop-zone.drag-over {
    border-color: #316bf3;
    background-color: rgba(49, 107, 243, 0.05);
}

/* Custom Hero Background Texture */
.hero-bg {
    background-color: #03001e;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
}

/* Toast Container transitions */
#toast-container>div {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Filters Drawer Transition */
#mobile-filters-drawer {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
}

#mobile-filters-container.drawer-open #mobile-filters-drawer {
    transform: translateX(0);
}

#mobile-filters-container.drawer-closed #mobile-filters-drawer {
    transform: translateX(-100%);
}

#mobile-filters-overlay {
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#mobile-filters-container.drawer-open #mobile-filters-overlay {
    opacity: 1;
    pointer-events: auto;
}

#mobile-filters-container.drawer-closed #mobile-filters-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Share Dropdown Transitions */
#share-dropdown {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print Media Query */
@media print {

    /* Hide everything on the page except the drawer container */
    body>*:not(#drawer-container) {
        display: none !important;
    }

    /* Ensure the drawer container is visible and fills the screen */
    #drawer-container {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
        z-index: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }

    #drawer-overlay {
        display: none !important;
    }

    /* Style the job drawer for printing */
    #job-drawer {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        transform: none !important;
    }

    /* Expand scrollable container for printing */
    #job-drawer .overflow-y-auto {
        overflow: visible !important;
        height: auto !important;
    }

    /* Hide interactive elements and application form */
    #drawer-print-btn,
    #drawer-share-btn,
    #job-drawer button,
    #application-form-section,
    #job-drawer hr,
    #job-drawer .h-12 {
        display: none !important;
    }

    /* Adjust text colors for print visibility */
    .text-primary {
        color: #000000 !important;
    }

    .text-on-surface-variant {
        color: #333333 !important;
    }
}

/* Active Openings Pill Button */
.active-openings-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #a7f3d0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.active-openings-btn:hover {
    background: rgba(16, 185, 129, 0.24);
    border-color: rgba(52, 211, 153, 0.8);
    color: #ffffff;
    transform: translateY(4px);
    box-shadow: 0 8px 24px 0 rgba(16, 185, 129, 0.3);
}

.active-openings-btn:active {
    transform: translateY(7px);
}

.active-openings-btn .arrow-icon {
    transition: transform 0.3s ease;
}

.active-openings-btn:hover .arrow-icon {
    transform: translateY(3px);
}

html {
    scroll-behavior: smooth;
}

/* Verbatim Job Description Markdown / HTML Content Styling */
.jd-rendered-content {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
}

.jd-rendered-content h1,
.jd-rendered-content h2,
.jd-rendered-content h3,
.jd-rendered-content h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.jd-rendered-content h1 {
    font-size: 1.35rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 0.5rem;
}

.jd-rendered-content h2 {
    font-size: 1.15rem;
}

.jd-rendered-content h3 {
    font-size: 1.05rem;
}

.jd-rendered-content p {
    margin-bottom: 0.875rem;
    color: #334155;
}

.jd-rendered-content ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #334155;
}

.jd-rendered-content ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #334155;
}

.jd-rendered-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #334155;
}

.jd-rendered-content ul > li {
    list-style-type: disc !important;
}

.jd-rendered-content ol > li {
    list-style-type: decimal !important;
}

.jd-rendered-content ul > li::marker {
    color: #0f172a !important; /* Dark solid bullet point */
    font-size: 1.1em;
}

.jd-rendered-content ol > li::marker {
    color: #0f172a !important; /* Dark solid number */
    font-weight: 600;
}

.jd-rendered-content strong {
    color: #0f172a;
    font-weight: 700;
}