/*
Theme Name:  Careers Theme
Theme URI:   https://example.com/careers-theme
Author:      Careers HR System
Author URI:  https://example.com
Description: Unified admin and frontend UI theme for the Careers HR management system. Provides admin dashboards, portal templates, and consistent styling for all Careers plugins.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: careers-theme
Tags:        hr, management, dashboard, portal

This theme is the UI layer for the modular Careers HR system.
It renders data from careers-main and feature plugins without
containing any business logic itself.
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --brand: #0f766e;
    --brand-strong: #0b5f55;
    --brand-soft: #e0f2f1;
    --accent: #f59e0b;
    --ink: #0f172a;
    --muted: #5b6472;
    --surface: #ffffff;
    --surface-2: #f6f4f0;
    --border: #e6e1d8;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lite: 0 4px 12px rgba(15, 23, 42, 0.06);
    --font-sans: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-display: "Fraunces", "Georgia", serif;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: linear-gradient(120deg, #f5f2eb 0%, #eef4f2 100%);
    background-image:
        radial-gradient(circle at 18% 12%, rgba(15, 118, 110, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 82% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    min-height: 100vh;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-strong);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 700;
    font-family: var(--font-display);
}

h1 {
    font-size: 40px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 32px;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

button,
input,
select,
textarea {
    font-family: var(--font-sans);
}

input,
select,
textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fbfaf8;
    color: var(--ink);
    font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }
}

/* ==========================================================================
   Utility
   ========================================================================== */

.careers-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.careers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.careers-wrap {
    padding: 24px 0;
}

/* ==========================================================================
   Site Header & Navigation - Premium Enterprise Design
   ========================================================================== */

/* Top Bar - Utility Navigation */
.site-topbar {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
    font-size: 13px;
}

.site-topbar .careers-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    gap: 24px;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.topbar-contact {
    display: flex;
    gap: 20px;
}

.topbar-contact a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.topbar-contact a svg {
    flex-shrink: 0;
}

.topbar-contact a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Topbar greeting */
.topbar-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.greeting-text {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

/* Role badge */
.topbar-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topbar-role-badge--admin {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.topbar-role-badge--hr {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
}

.topbar-role-badge--manager {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.topbar-role-badge--employee {
    background: rgba(15, 118, 110, 0.2);
    color: #6ee7b7;
}

.topbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.topbar-account {
    display: flex;
    gap: 12px;
}

.topbar-account a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-account a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.topbar-language select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    min-width: 64px;
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.topbar-language select option {
    color: var(--ink);
    background: #ffffff;
}

.topbar-language select option:checked {
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.topbar-language select:focus {
    color: var(--ink);
    background: #ffffff;
}

/* Main Header */
.site-header {
    background: var(--surface);
    box-shadow: var(--shadow-lite);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-soft);
}

.header-main {
    padding: 20px 0;
}

.header-main .careers-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

/* Logo & Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.site-logo {
    width: 56px;
    height: 56px;
    background: var(--brand);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.28);
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
}

.site-branding .custom-logo {
    display: block;
    max-height: 56px;
    width: auto;
    height: auto;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.site-title a {
    color: var(--ink);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-title a:hover {
    color: var(--brand);
}

.site-description {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-navigation li {
    margin: 0;
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 12px 20px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.main-navigation a::before {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.main-navigation a:hover {
    background: var(--surface-2);
    color: var(--brand);
    text-decoration: none;
}

.main-navigation a:hover::before {
    transform: scaleX(1);
}

.main-navigation .current_page_item a,
.main-navigation .current-menu-item a {
    background: var(--brand-soft);
    color: var(--brand);
}

.main-navigation .current_page_item a::before,
.main-navigation .current-menu-item a::before {
    transform: scaleX(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.header-cta {
    padding: 10px 22px;
    background: var(--brand);
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.24);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-cta:hover {
    background: var(--brand-strong);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

.header-cta--login {
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    border: 1px solid var(--border);
    padding: 9px 16px;
}

.header-cta--login:hover {
    background: var(--surface-2);
    color: var(--brand);
    box-shadow: none;
    transform: none;
}

/* ---- User Dropdown ---- */
.header-user-dropdown {
    position: relative;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-user-trigger:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.header-user-avatar--employee { background: var(--brand); }
.header-user-avatar--manager  { background: #d97706; }
.header-user-avatar--hr       { background: #7c3aed; }
.header-user-avatar--admin    { background: #dc2626; }

.header-user-caret {
    transition: transform 0.2s ease;
    color: var(--muted);
}

.header-user-trigger[aria-expanded="true"] .header-user-caret {
    transform: rotate(180deg);
}

.header-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.header-user-dropdown.open .header-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-identity {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-dropdown-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}

.header-dropdown-role {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-dropdown-role--employee { background: var(--brand-soft); color: var(--brand); }
.header-dropdown-role--manager  { background: #fef3c7; color: #92400e; }
.header-dropdown-role--hr       { background: #ede9fe; color: #5b21b6; }
.header-dropdown-role--admin    { background: #fee2e2; color: #991b1b; }

.header-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.header-dropdown-item:hover {
    background: var(--surface-2);
    color: var(--brand);
    text-decoration: none;
}

.header-dropdown-item svg {
    flex-shrink: 0;
    color: var(--muted);
    transition: color 0.15s ease;
}

.header-dropdown-item:hover svg {
    color: var(--brand);
}

.header-dropdown-item--logout {
    color: #dc2626;
}

.header-dropdown-item--logout:hover {
    background: #fef2f2;
    color: #991b1b;
}

.header-dropdown-item--logout svg {
    color: #dc2626;
}

.header-dropdown-item--logout:hover svg {
    color: #991b1b;
}

/* ---- Mobile hamburger toggle ---- */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
    align-items: center;
}

.hamburger-lines span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animated X when open */
.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Drawer ---- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--surface);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-drawer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.mobile-drawer-avatar--employee { background: var(--brand); }
.mobile-drawer-avatar--manager  { background: #d97706; }
.mobile-drawer-avatar--hr       { background: #7c3aed; }
.mobile-drawer-avatar--admin    { background: #dc2626; }

.mobile-drawer-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-drawer-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

.mobile-drawer-role {
    display: inline-flex;
    align-self: flex-start;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-drawer-role--employee { background: var(--brand-soft); color: var(--brand); }
.mobile-drawer-role--manager  { background: #fef3c7; color: #92400e; }
.mobile-drawer-role--hr       { background: #ede9fe; color: #5b21b6; }
.mobile-drawer-role--admin    { background: #fee2e2; color: #991b1b; }

.mobile-drawer-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--surface-2);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-drawer-close:hover {
    background: var(--border);
}

/* Drawer navigation */
.mobile-drawer-nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
}

.mobile-drawer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    min-height: 48px; /* 48px touch target */
}

.mobile-drawer-nav a svg {
    flex-shrink: 0;
    color: var(--muted);
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a:focus {
    background: var(--surface-2);
    color: var(--brand);
    text-decoration: none;
}

.mobile-drawer-nav a:hover svg,
.mobile-drawer-nav a:focus svg {
    color: var(--brand);
}

/* Drawer footer */
.mobile-drawer-footer {
    padding: 16px 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.mobile-drawer-lang {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.mobile-drawer-lang-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

a.mobile-drawer-lang-btn:hover {
    color: var(--brand);
    border-color: var(--brand);
    text-decoration: none;
}

.mobile-drawer-lang-btn.active {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--brand);
}

.mobile-drawer-logout,
.mobile-drawer-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    min-height: 48px;
}

.mobile-drawer-logout {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.mobile-drawer-logout:hover {
    background: #fee2e2;
    color: #991b1b;
    text-decoration: none;
}

.mobile-drawer-login {
    color: #ffffff;
    background: var(--brand);
    border: 1px solid var(--brand);
}

.mobile-drawer-login:hover {
    background: var(--brand-strong);
    color: #ffffff;
    text-decoration: none;
}

/* Prevent body scroll when drawer open */
body.mobile-drawer-open {
    overflow: hidden;
}

/* ---- Responsive Header ---- */

/* Tablet */
@media (max-width: 1024px) {
    .main-navigation a {
        padding: 10px 14px;
        font-size: 14px;
    }

    .header-cta--login .header-cta-label {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-topbar {
        display: none;
    }

    .header-main {
        padding: 12px 0;
    }

    .header-main .careers-container {
        gap: 12px;
    }

    .site-logo {
        width: 42px;
        height: 42px;
        font-size: 20px;
        border-radius: 10px;
    }

    .site-branding .custom-logo {
        max-height: 42px;
    }

    /* Hide desktop nav on mobile */
    .main-navigation {
        display: none;
    }

    /* Hide desktop dropdown on mobile (drawer replaces it) */
    .header-user-dropdown {
        display: none;
    }

    /* Keep only primary CTA + hamburger on mobile */
    .header-cta--login {
        display: none;
    }

    .header-cta--apply {
        padding: 8px 14px;
        font-size: 13px;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .header-cta {
        padding: 8px 12px;
        font-size: 12px;
    }

    .mobile-drawer {
        width: 100vw;
        max-width: 100vw;
    }
}

/* ==========================================================================
   Site Footer - Premium Enterprise Design
   ========================================================================== */

.site-footer {
    background: #f5f2eb;
    margin-top: 64px;
    border-top: 1px solid var(--border);
}

/* Footer Main Content */
.footer-main {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--border);
}

.footer-main .careers-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.footer-column h3 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-about {
    padding-right: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.24);
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
}

.footer-about p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--brand);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.3);
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    padding-left: 16px;
}

.footer-links a::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand);
    padding-left: 20px;
    text-decoration: none;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer Contact */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 16px;
}

.footer-contact-text a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-text a:hover {
    color: var(--brand);
}

/* Newsletter Signup */
.footer-newsletter {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lite);
}

.footer-newsletter h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.footer-newsletter p {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.footer-newsletter button {
    padding: 10px 20px;
    background: var(--brand);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.footer-newsletter button:hover {
    background: var(--brand-strong);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.24);
}

/* Footer Bottom Bar */
.footer-bottom {
    padding: 24px 0;
    background: #0f172a;
}

.footer-bottom .careers-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.site-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-info a:hover {
    color: #ffffff;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main .careers-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 32px;
    }
    
    .footer-main .careers-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-about {
        padding-right: 0;
    }
    
    .footer-bottom .careers-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-newsletter button {
        width: 100%;
    }
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.site-main {
    background: var(--surface);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.site-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

@media (max-width: 768px) {
    .site-main {
        padding: 24px;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .site-main {
        padding: 20px;
    }

    .entry-title {
        font-size: 30px;
    }

    .entry-meta {
        gap: 8px;
    }
}

.entry-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.entry-title {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.entry-meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-content {
    margin: 24px 0;
    line-height: 1.8;
    font-size: 16px;
    color: #343c48;
}

.entry-content h2 {
    margin: 40px 0 20px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    position: relative;
    padding-bottom: 12px;
}

.entry-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 2px;
}

.entry-content h3 {
    margin: 32px 0 16px;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.entry-content p {
    margin: 20px 0;
}

.entry-content strong {
    font-weight: 600;
    color: #111827;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.entry-content li {
    margin: 12px 0;
    line-height: 1.7;
}

.entry-content a {
    color: #3b82f6;
    font-weight: 500;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.entry-content a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f3f4f6;
    font-size: 14px;
    color: #6b7280;
}

/* ==========================================================================
   Additional Premium Utilities
   ========================================================================== */

/* Spacing Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mt-5 { margin-top: 48px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mb-5 { margin-bottom: 48px !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 8px !important; }
.pt-2 { padding-top: 16px !important; }
.pt-3 { padding-top: 24px !important; }
.pt-4 { padding-top: 32px !important; }
.pt-5 { padding-top: 48px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 8px !important; }
.pb-2 { padding-bottom: 16px !important; }
.pb-3 { padding-bottom: 24px !important; }
.pb-4 { padding-bottom: 32px !important; }
.pb-5 { padding-bottom: 48px !important; }

/* Display Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox Utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 8px !important; }
.gap-2 { gap: 16px !important; }
.gap-3 { gap: 24px !important; }
.gap-4 { gap: 32px !important; }

/* Text Utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-medium { font-weight: 500 !important; }
.font-weight-semibold { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }
.text-sm { font-size: 14px !important; }
.text-base { font-size: 16px !important; }
.text-lg { font-size: 18px !important; }
.text-xl { font-size: 20px !important; }

/* Color Utilities */
.text-primary { color: #3b82f6 !important; }
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-muted { color: #6b7280 !important; }
.text-dark { color: #111827 !important; }

.bg-primary { background-color: #3b82f6 !important; }
.bg-success { background-color: #10b981 !important; }
.bg-danger { background-color: #ef4444 !important; }
.bg-warning { background-color: #f59e0b !important; }
.bg-light { background-color: #f9fafb !important; }
.bg-white { background-color: #ffffff !important; }

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Border Utilities */
.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 12px !important; }
.rounded-full { border-radius: 9999px !important; }

/* Premium Card Component */
.careers-premium-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.careers-premium-card:hover {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.careers-premium-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.careers-premium-card:hover::before {
    opacity: 1;
}

/* Gradient Text */
.careers-gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-hide { display: none !important; }
}

@media (min-width: 769px) {
    .desktop-hide { display: none !important; }
}
