/*
Theme Name: JobzRiz Pro
Theme URI: https://example.com/jobriz-pro
Author: Antigravity AI
Author URI: https://example.com
Description: A premium, ultra-lightweight, high-performance, and SEO-optimized WordPress theme for international jobs, visa sponsorship listings, work permit guides, and career news.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobriz-pro
*/

/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
    --primary-color: #0B5ED7;
    --primary-hover: #0a53be;
    --secondary-color: #16A34A;
    --secondary-hover: #15803d;
    --background-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --text-color: #111827;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 1240px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --background-color: #0F172A;
    --surface-color: #1E293B;
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main {
    padding: 2.5rem 0;
    min-height: 70vh;
}

.site-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .site-layout {
        grid-template-columns: 8fr 4fr;
    }
}

/* ==========================================
   BUTTONS & BADGES
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff !important;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color) !important;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    background-color: rgba(11, 94, 215, 0.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: rgba(11, 94, 215, 0.1);
    color: var(--primary-color);
}

.badge-secondary {
    background-color: rgba(22, 163, 74, 0.1);
    color: var(--secondary-color);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0.75rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-logo span {
    color: var(--secondary-color);
}

/* Desktop Menu */
.desktop-nav {
    display: none;
    flex-grow: 1;
}

.desktop-nav .menu-primary-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.desktop-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.35rem 0.5rem;
    width: 100%;
}

.desktop-nav li {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap; /* Prevent internal text wrapping! */
    line-height: 1.2;
}

.desktop-nav a:hover,
.desktop-nav li.current-menu-item > a {
    color: var(--primary-color);
    background-color: rgba(11, 94, 215, 0.05);
}

/* Submenu / Dropdown Support */
.desktop-nav ul ul,
.desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--hover-shadow);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    display: block !important;
    height: auto;
    z-index: 999;
}

.desktop-nav ul ul li,
.desktop-nav .sub-menu li {
    width: 100%;
    height: auto;
    display: block !important;
}

.desktop-nav ul ul a,
.desktop-nav .sub-menu a {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    height: auto;
    display: block !important;
    white-space: nowrap;
    border-radius: 0;
}

.desktop-nav ul ul a:hover,
.desktop-nav .sub-menu a:hover {
    background-color: rgba(11, 94, 215, 0.05);
}

.desktop-nav li:hover > ul,
.desktop-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn, .search-toggle-btn, .menu-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover, .search-toggle-btn:hover, .menu-toggle-btn:hover {
    background-color: var(--border-color);
}

.menu-toggle-btn {
    display: flex;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
    .menu-toggle-btn {
        display: none;
    }
}

/* Mobile Side Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--surface-color);
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-nav-drawer.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-nav-menu ul {
    list-style: none;
    margin-bottom: 0;
}

.mobile-nav-menu li {
    margin-bottom: 1rem;
}

.mobile-nav-menu a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu li.current-menu-item > a {
    color: var(--primary-color);
}

/* ==========================================
   HOMEPAGE HERO SECTION
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.08) 0%, rgba(22, 163, 74, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.25rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-form {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    display: flex;
    background-color: var(--surface-color);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--hover-shadow);
}

.hero-search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
}

.hero-search-form button {
    padding: 0.75rem 1.5rem;
}

.country-filters-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.country-filters-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.country-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.country-btn {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--card-shadow);
}

.country-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* ==========================================
   HOMEPAGE COUNTRY SECTIONS
   ========================================== */
.country-blocks-section {
    padding: 3rem 0 1rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.section-title {
    margin-bottom: 0;
    font-size: 1.75rem;
}

.country-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.country-block-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.country-block-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.country-block-flag {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.country-block-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* ==========================================
   POST CARDS (GRID & LIST LAYOUTS)
   ========================================== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .posts-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .posts-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Base Job Post Card Styles */
.job-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.job-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.job-card:hover .job-card-image img {
    transform: scale(1.05);
}

.job-card-meta-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 2;
}

.card-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    color: #ffffff;
}

.card-badge-country {
    background-color: var(--secondary-color);
}

.card-badge-category {
    background-color: var(--primary-color);
}

.job-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.job-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.job-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.job-card-title a {
    color: var(--text-color);
}

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

.job-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* List Layout Override */
.archive-layout-list .posts-grid {
    grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
    .archive-layout-list .job-card {
        flex-direction: row;
    }
    
    .archive-layout-list .job-card-image {
        width: 35%;
        aspect-ratio: 4 / 3;
    }
    
    .archive-layout-list .job-card-content {
        width: 65%;
    }
}

/* Grid/List Switch Controls */
.archive-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    background-color: var(--surface-color);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.layout-switcher {
    display: flex;
    gap: 0.5rem;
}

.layout-switch-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.layout-switch-btn.active, .layout-switch-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ==========================================
   SIDEBAR & WIDGETS
   ========================================== */
.sidebar-sticky {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

/* Hide empty/heading-only widgets in Gutenberg widgets screen */
.widget:empty,
.widget:has(.widget-title:only-child) {
    display: none;
}

.widget-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Sidebar Search Widget */
.search-widget-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-widget-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem 0.85rem;
    color: var(--text-color);
}

.search-widget-form button {
    background-color: var(--primary-color);
    border: none;
    color: #ffffff;
    padding: 0 1rem;
    cursor: pointer;
}

/* Recent/Trending Job Widget Layout */
.widget-posts-list {
    list-style: none;
}

.widget-posts-item {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-posts-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-posts-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.widget-posts-content {
    flex: 1;
}

.widget-posts-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.widget-posts-title a {
    color: var(--text-color);
}

.widget-posts-title a:hover {
    color: var(--primary-color);
}

.widget-posts-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Fallback / Gutenberg Widgets and Default WP Recent Posts Lists */
.widget_recent_entries ul,
.widget_latest_posts ul,
.wp-block-latest-posts {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.widget_recent_entries li,
.widget_latest_posts li,
.wp-block-latest-posts li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.widget_recent_entries li:last-child,
.widget_latest_posts li:last-child,
.wp-block-latest-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_recent_entries li a,
.widget_latest_posts li a,
.wp-block-latest-posts li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    transition: var(--transition);
}

.widget_recent_entries li a:hover,
.widget_latest_posts li a:hover,
.wp-block-latest-posts li a:hover {
    color: var(--primary-color);
}

.widget_recent_entries .post-date,
.wp-block-latest-posts__post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Country Widget */
.widget-country-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    list-style: none;
}

.widget-country-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--background-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.widget-country-item a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ==========================================
   SINGLE ARTICLE LAYOUT
   ========================================== */
.article-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-sep {
    color: var(--text-muted);
}

.article-category {
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 2.75rem;
    }
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.article-featured-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.article-featured-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Job Details Info Box */
.job-details-box {
    background-color: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--hover-shadow);
}

.job-details-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .job-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.details-row {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.details-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.details-value {
    font-weight: 600;
    color: var(--text-color);
}

.job-details-cta {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
}

/* Article Table of Contents (TOC) */
.toc-box {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.toc-toggle {
    font-size: 0.85rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.toc-list li.toc-h3 {
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.toc-list a {
    color: var(--text-color);
}

.toc-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Styling Main Article Content */
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

/* Stylized Boxes inside Article Content */
.content-box {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.box-highlight {
    background-color: rgba(11, 94, 215, 0.05);
    border-left: 4px solid var(--primary-color);
    color: var(--text-color);
}

.box-info {
    background-color: rgba(22, 163, 74, 0.05);
    border-left: 4px solid var(--secondary-color);
    color: var(--text-color);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pro-box, .con-box {
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.pro-box {
    background-color: rgba(22, 163, 74, 0.05);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.con-box {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pro-title, .con-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pro-title { color: var(--secondary-color); }
.con-title { color: #EF4444; }

.pro-box ul, .con-box ul {
    list-style: none;
}

.pro-box li::before {
    content: "✓";
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.con-box li::before {
    content: "✗";
    color: #EF4444;
    margin-right: 0.5rem;
    font-weight: bold;
}

.pro-box li, .con-box li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* FAQ Accordion Section */
.faq-section {
    margin-top: 3rem;
}

.faq-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.faq-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--hover-shadow);
    border-color: rgba(11, 94, 215, 0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    font-weight: 700;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.05rem;
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease-out;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
    background-color: rgba(11, 94, 215, 0.02);
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1rem 1.25rem;
    max-height: 1000px;
}

.faq-icon::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 700;
}

.faq-item.active .faq-icon::after {
    content: "−";
}

/* Rank Math FAQ Block Override - Styles to look like premium card accordions */
.rank-math-faq,
.rank-math-block,
#rank-math-faq,
.rank-math-list-item {
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

.rank-math-faq .rank-math-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.rank-math-faq .rank-math-list-item {
    background-color: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: var(--card-shadow) !important;
    transition: var(--transition);
    margin-bottom: 0 !important;
}

.rank-math-faq .rank-math-list-item:hover {
    box-shadow: var(--hover-shadow) !important;
    border-color: var(--primary-color) !important;
}

.rank-math-faq .rank-math-question {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.rank-math-faq .rank-math-answer {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Yoast Schema FAQ Override */
.schema-faq,
.schema-faq-section {
    border: none !important;
    background: none !important;
}

/* Custom styling for older UMTR FAQ blocks in content */
.umtr-faq-section {
    margin-top: 2.5rem !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 2rem !important;
}

.umtr-faq-item {
    border: 1px solid var(--border-color) !important;
    background-color: var(--surface-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow) !important;
    margin-bottom: 1rem !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
}

.umtr-faq-item:hover {
    box-shadow: var(--hover-shadow) !important;
    border-color: var(--primary-color) !important;
}

.umtr-faq-item h3,
.umtr-faq-question {
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    background-color: rgba(11, 94, 215, 0.02) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.umtr-faq-answer {
    padding: 1.25rem !important;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
    border-top: none !important;
}

.umtr-faq-answer p {
    margin: 0 !important;
}

.schema-faq-section {
    background-color: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 0.75rem !important;
    box-shadow: var(--card-shadow) !important;
    transition: var(--transition);
}

.schema-faq-section:hover {
    box-shadow: var(--hover-shadow) !important;
    border-color: var(--primary-color) !important;
}

.schema-faq-question {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

.schema-faq-answer {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Author Box */
.author-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3.5rem;
    box-shadow: var(--card-shadow);
    align-items: center;
}

@media (min-width: 576px) {
    .author-box {
        flex-direction: row;
        align-items: flex-start;
    }
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50% !important;
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border: 3px solid var(--border-color);
    transition: var(--transition);
    margin: 0 auto;
}

.author-box:hover .author-avatar img {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.author-info {
    flex: 1;
    text-align: center;
}

@media (min-width: 576px) {
    .author-info {
        text-align: left;
    }
}

.author-info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.author-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   ADVERTISEMENT SYSTEM (CLS-OPTIMIZED)
   ========================================== */
.ad-slot {
    margin: 2rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(100, 116, 139, 0.05);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.ad-slot::before {
    content: "Advertisement";
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
}

/* Responsive CLS-Optimized Sizes */
.ad-header {
    min-height: 100px;
    max-width: 970px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ad-content {
    min-height: 280px;
    max-width: 728px;
}

.ad-sidebar {
    min-height: 600px;
    max-width: 300px;
}

.ad-footer {
    min-height: 100px;
    max-width: 970px;
}

@media (max-width: 768px) {
    .ad-header, .ad-footer {
        min-height: 60px;
        max-width: 320px;
    }
    .ad-content {
        min-height: 250px;
        max-width: 300px;
    }
}

/* ==========================================
   FOOTER DESIGN
   ========================================== */
.site-footer {
    background-color: #111827;
    color: #94A3B8;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #1F2937;
    transition: var(--transition);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-widget-title {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #1F2937;
    padding-bottom: 0.5rem;
}

.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social-links {
    display: flex;
    gap: 0.85rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: #1E293B;
    color: #ffffff;
    transition: var(--transition);
}

.footer-social-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: #94A3B8;
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 0.25rem;
}

.site-footer-bottom {
    border-top: 1px solid #1F2937;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

.footer-bottom-links a {
    color: #94A3B8;
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* ==========================================
   INTERACTIVE SEARCH MODAL
   ========================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.search-modal-container {
    background-color: var(--surface-color);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-container {
    transform: scale(1);
}

.search-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.search-modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.search-modal-form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-modal-form:focus-within {
    border-color: var(--primary-color);
}

.search-modal-form input[type="search"] {
    flex: 1;
    border: none;
    padding: 0.85rem 1.25rem;
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
}

.search-modal-form button {
    background-color: var(--primary-color);
    border: none;
    color: #ffffff;
    padding: 0 1.5rem;
    cursor: pointer;
    font-weight: 600;
}

/* ==========================================
   404 ERROR PAGE
   ========================================== */
.error-404-container {
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-title {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.error-404-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.error-404-text {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* ==========================================
   POST TAGS BADGES
   ========================================== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 2.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.tags-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tags-list,
.wp-block-post-terms.taxonomy-post_tag,
.entry-footer .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list a,
.wp-block-post-terms.taxonomy-post_tag a,
.entry-footer .tags-links a {
    display: inline-flex;
    align-items: center;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color) !important;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.tags-list a:hover,
.wp-block-post-terms.taxonomy-post_tag a:hover,
.entry-footer .tags-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ==========================================
   ALSO READ CALLOUT CARD
   ========================================== */
.also-read-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.03) 0%, rgba(22, 163, 74, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    transition: var(--transition);
}

@media (min-width: 576px) {
    .also-read-box {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
}

.also-read-box:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.05) 0%, rgba(22, 163, 74, 0.03) 100%);
    border-color: rgba(11, 94, 215, 0.15);
}

.also-read-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.also-read-link {
    flex: 1;
}

.also-read-link a {
    font-weight: 600;
    color: var(--text-color) !important;
    font-size: 1rem;
    transition: var(--transition);
}

.also-read-link a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.post-content blockquote {
    background-color: rgba(11, 94, 215, 0.03);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-color);
}

/* ==========================================
   MOBILE RESPONSIVENESS AND OVERFLOW FIXES
   ========================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Table Responsive wrapper fallback and native overrides */
table,
.post-content table,
.entry-content table {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

/* Responsive elements */
img,
.post-content img,
.entry-content img,
iframe,
video,
embed,
object {
    max-width: 100% !important;
}

/* Ad slots strict mobile boundaries to prevent WAF / CLS page pushes */
.ad-slot,
.ad-header,
.ad-content,
.ad-footer,
.ad-sidebar {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Word wrapping to prevent long titles/URLs stretching layout */
.post-content,
.entry-content,
.post-title,
.entry-title,
.widget,
.footer-widgets {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Search form responsiveness */
.hero-search-form {
    width: 100%;
}

.hero-search-form input[type="search"] {
    min-width: 0; /* Allows input to shrink below placeholder text width */
}

/* Pagination wrap */
.pagination {
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    /* Reduce outer spacing to give layout more horizontal breathing room */
    .container {
        padding: 0 1rem !important;
    }
    
    /* Header layout tight spacing */
    .header-container {
        gap: 0.5rem !important;
    }
    
    .header-right {
        gap: 0.35rem !important;
    }
    
    .site-logo {
        font-size: 1.25rem !important;
    }
    
    /* Search button and modal padding reduction */
    .search-modal-container {
        width: 94% !important;
        padding: 1.25rem !important;
    }
    
    /* Hero Search Form vertical flow */
    .hero-search-form {
        flex-direction: column !important;
        border-radius: var(--radius-md) !important;
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    .hero-search-form input[type="search"] {
        padding: 0.65rem 0.85rem !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-sm) !important;
        background-color: var(--background-color) !important;
        width: 100% !important;
    }
    
    .hero-search-form button {
        width: 100% !important;
        padding: 0.65rem !important;
        border-radius: var(--radius-sm) !important;
    }
}
