/*
 * ============================================================
 *  wadhefa.css — الملف الرئيسي الجديد لتنسيق موقع وظيفة تك
 *  يُحمَّل بعد style_ar.css / style.css ويتغلّب عليها
 * ============================================================
 */

/* ─────────────────────────────────────────────
   1. CSS Custom Properties (Design Tokens)
   ───────────────────────────────────────────── */
:root {
    /* Brand palette */
    --wdh-primary:        #0F172A;   /* Deep Slate/Black as per mockup */
    --wdh-primary-dark:   #000000;
    --wdh-primary-light:  #F1F5F9;
    --wdh-secondary:      #0058BE;   /* Vibrant Blue */
    --wdh-on-secondary:   #FFFFFF;
    --wdh-accent:         #3B82F6;
    --wdh-gold:           #F59E0B;   /* ذهبي للتمييز */
    --wdh-success:        #10B981;
    --wdh-danger:         #EF4444;

    /* Neutrals */
    --wdh-gray-50:        #F8FAFC;
    --wdh-gray-100:       #F1F5F9;
    --wdh-gray-200:       #E2E8F0;
    --wdh-gray-400:       #94A3B8;
    --wdh-gray-600:       #475569;
    --wdh-gray-900:       #0F172A;

    /* Typography */
    --wdh-font:           'Tajawal', sans-serif;
    --wdh-radius-sm:      8px;
    --wdh-radius:         14px;
    --wdh-radius-lg:      24px;
    --wdh-shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.12);
    --wdh-shadow:         0 4px 20px rgba(37,99,235,.12);
    --wdh-shadow-lg:      0 10px 40px rgba(37,99,235,.18);
    --wdh-transition:     all .3s cubic-bezier(.4,0,.2,1);
}

/* ─────────────────────────────────────────────
   2. Global Reset & Base
   ───────────────────────────────────────────── */
[dir="rtl"] {
    --wdh-font: 'IBM Plex Sans Arabic', sans-serif;
}

[dir="ltr"] {
    --wdh-font: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--wdh-font);
    direction: inherit; /* Browser will inherit from <html dir="..."> */
    color: var(--wdh-gray-900);
    background-color: var(--wdh-gray-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* RTL Helpers */
[dir="rtl"] .ml-auto { margin-right: auto; margin-left: 0; }
[dir="rtl"] .mr-auto { margin-left: auto; margin-right: 0; }
[dir="rtl"] .text-end { text-align: left; }
[dir="rtl"] .text-start { text-align: right; }

a { text-decoration: none; transition: var(--wdh-transition); }
img { max-width: 100%; }

/* ─────────────────────────────────────────────
   3. Header / Navbar
   ───────────────────────────────────────────── */
.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(37,99,235,.08);
    padding: 10px 0 !important;
    border-bottom: 3px solid var(--wdh-primary);
}

.header .logo img {
    max-height: 44px;
}

.header .logo span {
    font-size: 22px;
    font-weight: 800;
    color: var(--wdh-primary);
    letter-spacing: .5px;
}

/* Nav links */
.navbar a,
.navbar a:focus {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--wdh-secondary);
    padding: 8px 12px;
    border-radius: var(--wdh-radius-sm);
    transition: var(--wdh-transition);
}

.navbar a:hover,
.navbar .active,
.navbar li:hover > a {
    color: var(--wdh-primary);
    background: var(--wdh-primary-light);
}

/* Register button */
.navbar .btn-primary {
    background: var(--wdh-primary) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37,99,235,.35) !important;
    transition: var(--wdh-transition) !important;
}

.navbar .btn-primary:hover {
    background: var(--wdh-primary-dark) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,.45) !important;
    transform: translateY(-1px) !important;
}

/* Contact info in nav */
.navbar a[href^="tel"],
.navbar a[href^="mailto"] {
    font-size: 12.5px !important;
    color: var(--wdh-gray-600) !important;
    background: none !important;
}

/* Dropdown */
.navbar .dropdown ul {
    border-radius: var(--wdh-radius) !important;
    box-shadow: var(--wdh-shadow-lg) !important;
    border: 1px solid var(--wdh-gray-200) !important;
    padding: 8px !important;
    min-width: 200px;
}

.navbar .dropdown ul li a {
    border-radius: var(--wdh-radius-sm) !important;
    font-size: 14px !important;
}

.btn-primary-architect {
    background: var(--wdh-primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--wdh-radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--wdh-transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--wdh-shadow);
}

.btn-primary-architect:hover {
    background: var(--wdh-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--wdh-shadow-lg);
}

.btn-text-architect {
    color: var(--wdh-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--wdh-transition);
}

.btn-text-architect:hover {
    color: var(--wdh-primary-dark);
    gap: 10px;
}
/* ─────────────────────────────────────────────
   4. Breadcrumb
   ───────────────────────────────────────────── */
.breadcrumbs {
    background: linear-gradient(135deg, var(--wdh-primary) 0%, var(--wdh-primary-dark) 100%);
    padding: 20px 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.breadcrumbs h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────────
   5. Main Content Area
   ───────────────────────────────────────────── */
.display-lg {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

[dir="rtl"] .display-lg {
    letter-spacing: normal;
}

.search-container-glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    padding: 0.75rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.search-input-group {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    transition: var(--wdh-transition);
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

[dir="rtl"] .search-input-group {
    flex-direction: row;
}

.search-input-group:focus-within {
    border-color: var(--wdh-secondary);
    box-shadow: 0 0 0 4px rgba(0, 88, 190, 0.1);
}

.search-input-group input, 
.search-input-group select {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-weight: 600;
    color: var(--wdh-secondary);
    font-size: 15px;
}

.search-input-group select {
    cursor: pointer;
}

.main-nav-premium {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding: 12px 0;
}

.dropdown-menu-premium {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 220px;
    background: #fff;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 8px;
    margin-top: 10px;
    z-index: 50;
    animation: dropdownPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu-premium.active {
    display: block;
}

@keyframes dropdownPop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#main {
    padding-bottom: 40px;
}

/* ─────────────────────────────────────────────
   6. Counts / Jobs Section
   ───────────────────────────────────────────── */
.counts {
    padding: 40px 0 60px;
}

/* Notification hint */
.counts > .container > h5 {
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    border: 1.5px solid var(--wdh-gold);
    border-radius: var(--wdh-radius);
    padding: 12px 20px;
    font-size: 14px;
    color: #92400E;
    margin-bottom: 28px;
}

.counts > .container > h5 a {
    color: var(--wdh-primary);
    font-weight: 700;
    text-decoration: underline;
}

/* ─────────────────────────────────────────────
   7. Job Card (count-box)
   ───────────────────────────────────────────── */
.count-box {
    background: #fff !important;
    border: 1px solid var(--wdh-gray-200) !important;
    border-radius: var(--wdh-radius) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    overflow: hidden;
    padding: 16px !important;
    transition: var(--wdh-transition);
    height: 100%;
    display: flex !important;
    align-items: center;
    gap: 20px;
    position: relative;
}

.count-box:hover {
    border-color: var(--wdh-primary) !important;
    box-shadow: var(--wdh-shadow) !important;
    transform: translateY(-3px);
}

/* Job image container */
.NewsImg {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
}

.NewsImg img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 12px !important; /* Modern square-round instead of full circle */
    border: 2px solid var(--wdh-gray-100) !important;
    box-shadow: var(--wdh-shadow-sm) !important;
}

/* Countdown badge */
.NewsImg h6 {
    font-size: 10px !important;
    background: #FEF2F2;
    color: var(--wdh-danger) !important;
    border: 1px solid #FECACA;
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 8px;
    font-weight: 700;
    display: inline-block;
}

/* Content area */
.count-box .job-details-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Bookmark button wrapping */
.count-box .bookmark-wrapper {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

/* Job title */
.news_title {
    text-align: right !important;
    margin-bottom: 10px !important;
    margin-top: 5px;
    padding: 0;
}

.news_title a {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--wdh-secondary) !important;
    line-height: 1.3 !important;
}

/* Info items */
.job-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
}

.job-info-item {
    font-size: 13px !important;
    color: var(--wdh-gray-600) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-info-item i {
    color: var(--wdh-primary);
    font-size: 14px;
}

/* Specific styling for salary */
.job-salary {
    background: #FEFCE8;
    color: #854D0E !important;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700 !important;
    border: 1px solid #FEF08A;
}

/* Job Tags/Badges */
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.job-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.job-tag-gov { background: #E0F2FE; color: #0369A1; }
.job-tag-private { background: #F3E8FF; color: #7E22CE; }
.job-tag-gender-m { background: #DBEAFE; color: #1D4ED8; }
.job-tag-gender-f { background: #FCE7F3; color: #BE185D; }
.job-tag-gender-both { background: #F1F5F9; color: #475569; }

/* Save button override */
.add_to_favorite {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: var(--wdh-gray-400) !important;
    font-size: 20px !important;
    transition: var(--wdh-transition) !important;
}

.add_to_favorite:hover {
    color: var(--wdh-primary) !important;
    transform: scale(1.1);
}

.add_to_favorite i.bi-bookmark-fill {
    color: var(--wdh-gold) !important;
}

/* Labels hidden text for bookmark */
.add_to_favorite span {
    display: none;
}

/* ─────────────────────────────────────────────
   8. Pagination
   ───────────────────────────────────────────── */
.pagination {
    justify-content: center !important;
    direction: rtl;
    gap: 4px;
    flex-wrap: wrap;
}

.page-link {
    border-radius: var(--wdh-radius-sm) !important;
    border-color: var(--wdh-gray-200) !important;
    color: var(--wdh-primary) !important;
    font-weight: 600;
    min-width: 38px;
    text-align: center;
    transition: var(--wdh-transition);
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--wdh-primary) !important;
    border-color: var(--wdh-primary) !important;
    color: #fff !important;
}

/* ─────────────────────────────────────────────
   9. Footer
   ───────────────────────────────────────────── */
.footer {
    background: var(--wdh-secondary) !important;
    color: var(--wdh-gray-400);
    direction: rtl;
}

.footer .footer-top {
    padding: 48px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer .logo span {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.footer-info .social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px !important;
    flex-wrap: wrap;
}

.footer-info .social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: var(--wdh-transition);
}

.footer-info .social-links a:hover {
    background: var(--wdh-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37,99,235,.4);
}

.footer-contact h4 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wdh-primary);
    display: inline-block;
}

.footer-contact p,
.footer-contact strong {
    color: var(--wdh-gray-400);
    font-size: 14px;
}

.footer-contact a {
    color: var(--wdh-accent);
}

.footer-contact a:hover {
    color: #fff;
}

/* App store images */
.footer .row img {
    max-height: 52px;
    border-radius: var(--wdh-radius-sm);
    transition: var(--wdh-transition);
}

.footer .row img:hover {
    transform: scale(1.05);
}

/* Credits */
.footer .credits {
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: var(--wdh-gray-400);
}

.footer .credits a {
    color: var(--wdh-accent);
    font-weight: 700;
}

/* Back to top */
.back-to-top {
    background: var(--wdh-primary) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    box-shadow: var(--wdh-shadow) !important;
    transition: var(--wdh-transition) !important;
}

.back-to-top:hover {
    background: var(--wdh-primary-dark) !important;
    transform: translateY(-3px);
}

/* ─────────────────────────────────────────────
   10. Responsive Tweaks
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
    .breadcrumbs h2 {
        font-size: 20px;
    }

    .count-box {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        padding: 24px 16px !important;
    }

    .NewsImg {
        margin: 0 auto 15px auto !important;
        width: 100% !important;
    }

    .NewsImg img {
        width: 90px !important;
        height: 90px !important;
    }

    .news_title {
        text-align: center !important;
    }

    .job-info-list {
        justify-content: center;
    }

    .bookmark-wrapper {
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 575px) {
    .footer .logo span {
        font-size: 17px !important;
    }

    .footer-contact h4 {
        font-size: 15px;
    }
}

/* ─────────────────────────────────────────────
   11. Visitor Homepage (welcome.blade.php)
   ───────────────────────────────────────────── */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--wdh-primary-light) 0%, #ffffff 100%) !important;
    padding: 100px 0 60px 0 !important;
    min-height: 85vh !important;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 52px !important;
    font-weight: 900 !important;
    color: var(--wdh-secondary) !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

.hero h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--wdh-primary) !important;
    margin-bottom: 15px !important;
}

.hero h3 {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--wdh-gray-600) !important;
    line-height: 1.6 !important;
    margin-bottom: 35px !important;
}

.hero .btn-get-started {
    background: var(--wdh-primary) !important;
    padding: 14px 40px !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 25px rgba(37,99,235,0.3) !important;
    transition: var(--wdh-transition) !important;
}

.hero .btn-get-started:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(37,99,235,0.4) !important;
}

.hero .hero-img img {
    max-height: 450px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* CTA Section */
.cta-section .card {
    border-radius: var(--wdh-radius-lg) !important;
    border: none !important;
    background: linear-gradient(135deg, #ffffff 0%, var(--wdh-primary-light) 100%) !important;
    box-shadow: var(--wdh-shadow-lg) !important;
    overflow: hidden;
}

.cta-section h4 {
    font-weight: 800 !important;
    color: var(--wdh-secondary) !important;
}

.cta-section .btn {
    border-radius: 50px !important;
    padding: 14px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About / Video Section */
.about .content h3 {
    color: var(--wdh-primary) !important;
    font-weight: 800 !important;
    font-size: 28px !important;
    margin-bottom: 20px !important;
}

.about .media-icon {
    position: relative;
    border-radius: var(--wdh-radius-lg);
    overflow: hidden;
    box-shadow: var(--wdh-shadow-lg);
}

.about .media-icon img {
    transition: transform 0.5s ease;
}

.about .media-icon:hover img {
    transform: scale(1.05);
}

.about .popup-videos {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wdh-primary);
    font-size: 32px;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.5);
    animation: pulse-white 2s infinite;
    z-index: 2;
}

.job-card-premium {
    background: #ffffff;
    border-radius: 2rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.vibrant-shadow:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 88, 190, 0.15);
    transform: translateY(-8px);
}

.job-card-premium .card-main {
    padding: 2rem;
    flex-grow: 1;
}

.card-employer-logo {
    width: 4rem;
    height: 4rem;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.3s;
}

.job-card-premium:hover .card-employer-logo {
    border-color: var(--wdh-secondary);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.salary-box-architect {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.salary-box-architect .icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    background: #ffffff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wdh-secondary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.job-card-footer {
    padding: 1.25rem 2rem;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(8px);
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.btn-apply-architect {
    background: var(--wdh-secondary);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.875rem;
    box-shadow: 0 8px 20px rgba(0, 88, 190, 0.2);
    transition: all 0.3s;
}

.btn-apply-architect:hover {
    background: #004395;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 88, 190, 0.3);
}

.job-card-premium .job-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-align: inherit;
}

@keyframes pulse-white {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 20px rgba(255,255,255,0); }
    100% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ============================================================
   HIGH-END DESIGN SYSTEM: THE CURATED ARCHITECT
   ============================================================ */
:root {
    /* Brand Colors */
    --wdh-primary: #0F172A;
    --wdh-secondary: #3B82F6;
    --wdh-surface: #F7F9FB;
    --wdh-surface-container-low: #F2F4F6;
    --wdh-surface-container-lowest: #FFFFFF;
    --wdh-tertiary-fixed: #FCDEB5;
    --wdh-on-tertiary-fixed: #271901;
    --wdh-outline-variant: rgba(198, 198, 205, 0.15);
    --wdh-on-surface-variant: #45464D;

    /* Spacing & Radii */
    --wdh-radius-xl: 16px;
    --wdh-radius-md: 12px;
    --wdh-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    background-color: var(--wdh-surface);
    color: var(--wdh-primary);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────
   Premium Navigation
   ───────────────────────────────────────────── */
.main-nav-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--wdh-outline-variant);
    padding: 1rem 0;
}

/* ─────────────────────────────────────────────
   Cards - The Core Pattern
   ───────────────────────────────────────────── */
.job-card-architect {
    background: var(--wdh-surface-container-lowest);
    border-radius: var(--wdh-radius-xl);
    padding: 0;
    overflow: hidden;
    transition: var(--wdh-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none !important;
}

.job-card-architect:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.card-inner-padding {
    padding: 24px;
    flex-grow: 1;
}

/* Tonal Layering for depth */
.card-footer-tonal {
    background: var(--wdh-surface-container-low);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Badges & Chips */
.badge-architect {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-architect.urgent {
    background: #ffdad6;
    color: #93000a;
}

.badge-architect.gov {
    background: #d1fae5;
    color: #065f46;
}

.badge-architect.private {
    background: #dbeafe;
    color: #1e40af;
}

.gender-chip {
    background: var(--wdh-surface-container-low);
    color: var(--wdh-on-surface-variant);
    padding: 4px 12px;
    border-radius: 8px;
}

.badge-sex-male   { background: #eff6ff; color: #1d4ed8; }
.badge-sex-female { background: #fdf2f8; color: #be185d; }
.badge-sex-both   { background: #f8fafc; color: #475569; }
.badge-sector-gov    { background: #ecfdf5; color: #059669; }
.badge-sector-private { background: #fefce8; color: #854d0e; }

.job-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--wdh-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: right;
}

.job-title a { color: inherit; }
.job-title a:hover { color: var(--wdh-primary); }

.job-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-item {
    font-size: 13.5px;
    color: var(--wdh-gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.meta-item i {
    width: 20px;
    color: var(--wdh-primary);
    font-size: 15px;
}

.meta-item.accent {
    color: var(--wdh-primary);
}

.card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px dashed var(--wdh-gray-200);
}

.time-remaining {
    font-size: 12.5px;
    color: var(--wdh-gray-400);
    font-weight: 700;
}

.btn-apply-now {
    background: var(--wdh-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.btn-apply-now:hover {
    background: var(--wdh-primary-dark);
    transform: translateX(-5px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

@media (max-width: 767px) {
    .job-card-premium {
        padding: 20px;
    }
    .job-title {
        font-size: 17px;
    }
}

/* ─────────────────────────────────────────────
   12. Utility helpers
   ───────────────────────────────────────────── */
.wdh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.wdh-badge-primary { background: var(--wdh-primary-light); color: var(--wdh-primary); }
.wdh-badge-success { background: #D1FAE5; color: #065F46; }
.wdh-badge-danger  { background: #FEE2E2; color: #991B1B; }
