/* ==========================================================
   WorkerEra Job Portal - Main Stylesheet
   Brand: Dark Blue #0f3d91 | Primary Blue #1e5bd8 | Accent Orange #f7941d (CTA only)
   ========================================================== */

/* ---- CSS VARIABLES ---- */
:root {
    --we-dark-blue: #0f3d91;
    --we-sky-blue: #1e5bd8;
    --we-orange: #f7941d;
    --we-white: #ffffff;
    --we-bg: #f8fafc;
    --we-text: #1a2332;
    --we-text-muted: #6b7a99;
    --we-border: #e2e8f0;
    --we-card-bg: #ffffff;
    --we-shadow-sm: 0 4px 12px rgba(15, 61, 145, 0.05);
    --we-shadow-md: 0 8px 24px rgba(15, 61, 145, 0.08);
    --we-shadow-lg: 0 24px 48px rgba(15, 61, 145, 0.12);
    --we-radius-sm: 8px;
    --we-radius-md: 16px;
    --we-radius-lg: 24px;
    --we-radius-pill: 50px;
    --we-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --we-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --we-header-h: 72px;
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--we-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--we-text);
    background: var(--we-white);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--we-header-h);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--we-dark-blue);
    text-decoration: none;
    transition: var(--we-transition);
}

a:hover {
    color: var(--we-sky-blue);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--we-text);
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
    margin-bottom: 0;
}

input,
textarea,
select,
button {
    font-family: var(--we-font);
}

:focus-visible {
    outline: 3px solid var(--we-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- LAYOUT UTILITIES ---- */
.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-pad {
    padding: 80px 0;
}

.section-pad-sm {
    padding: 50px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background: var(--we-bg);
}

.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    color: var(--we-dark-blue);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--we-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    margin-top: 48px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--we-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--we-transition);
    white-space: nowrap;
    line-height: 1.2;
}

.btn:focus-visible {
    outline: 3px solid var(--we-orange);
    outline-offset: 3px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-blue {
    background: linear-gradient(135deg, var(--we-sky-blue), var(--we-dark-blue));
    color: #fff;
    border: none;
}

.btn-blue:hover {
    background: linear-gradient(135deg, var(--we-sky-blue), var(--we-dark-blue));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 91, 216, 0.35);
}

.btn-orange {
    background: var(--we-orange);
    color: #fff;
    border-color: var(--we-orange);
}

.btn-orange:hover {
    background: #e0841a;
    border-color: #e0841a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247, 148, 29, 0.35);
}

.btn-outline-blue {
    background: transparent;
    color: var(--we-dark-blue);
    border-color: var(--we-dark-blue);
}

.btn-outline-blue:hover {
    background: var(--we-dark-blue);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--we-dark-blue);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--we-bg);
    color: var(--we-dark-blue);
    transform: translateY(-2px);
}

.btn-white-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ---- UTILITY ---- */
.bg-light {
    background-color: var(--we-bg);
}

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--we-header-h);
    background: var(--we-white);
    box-shadow: var(--we-shadow-sm);
    display: flex;
    align-items: center;
    transition: var(--we-transition);
}

.site-header.scrolled {
    box-shadow: var(--we-shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.text-logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-worker {
    color: var(--we-dark-blue);
}

.logo-era {
    color: var(--we-orange);
}

.site-tagline {
    display: none;
}

.custom-logo-wrap img {
    max-height: 50px;
    width: auto;
}

/* Primary Nav */
.primary-navigation {
    margin-left: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 8px 14px;
    color: var(--we-text);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: var(--we-radius-sm);
    transition: var(--we-transition);
}

.nav-menu>li>a:hover,
.nav-menu>li.current-menu-item>a,
.nav-menu>li.current_page_item>a {
    color: var(--we-dark-blue);
    background: rgba(12, 61, 145, 0.06);
}

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    box-shadow: var(--we-shadow-md);
    border-radius: var(--we-radius-md);
    min-width: 200px;
    padding: 8px;
    z-index: 200;
    border: 1px solid var(--we-border);
}

.nav-menu li:hover>.sub-menu {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 9px 14px;
    color: var(--we-text);
    font-size: 0.88rem;
    border-radius: var(--we-radius-sm);
}

.nav-menu .sub-menu li a:hover {
    background: var(--we-bg);
    color: var(--we-dark-blue);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--we-radius-sm);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--we-dark-blue);
    border-radius: 2px;
    transition: var(--we-transition);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
}

/* ---- INNER PAGE HERO ---- */
.inner-page-hero {
    background: linear-gradient(135deg, var(--we-dark-blue) 0%, #1a5cb8 100%);
    padding: 52px 0 44px;
    color: #fff;
    margin-bottom: 0;
}

.inner-page-hero .page-title {
    color: #fff;
    margin-bottom: 10px;
}

.inner-page-hero .page-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 600px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumbs li {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs li+li::before {
    content: '›';
    margin-right: 6px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs a:hover {
    color: #fff;
}

/* ---- HERO SECTION ---- */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--we-dark-blue) 0%, var(--we-sky-blue) 100%);
    padding: 110px 0 160px;
    color: #fff;
    margin-top: 0;
}

.hero-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: var(--we-radius-pill);
    font-size: 0.83rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
}

.hero-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--we-radius-lg);
    padding: 20px 32px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 0 28px;
}

.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.hero-stat span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

/* ---- COUNTRY SECTION ---- */
.country-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.country-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--we-card-bg);
    border: 1.5px solid var(--we-border);
    border-radius: var(--we-radius-md);
    padding: 22px 20px;
    box-shadow: var(--we-shadow-sm);
    text-decoration: none;
    transition: var(--we-transition);
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--we-dark-blue), var(--we-sky-blue));
    transform: scaleX(0);
    transition: var(--we-transition);
    transform-origin: left;
}

.country-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 61, 145, 0.08);
    border-color: rgba(30, 91, 216, 0.2);
    color: inherit;
}

.country-card:hover::before {
    transform: scaleX(1);
}

.country-flag {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.country-info h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--we-dark-blue);
    margin-bottom: 3px;
}

.country-info p {
    font-size: 0.78rem;
    color: var(--we-text-muted);
}

.country-arrow {
    margin-left: auto;
    color: var(--we-sky-blue);
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0;
    transition: var(--we-transition);
}

.country-card:hover .country-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ---- JOB CARDS (Plugin Output + Fallback) ---- */
.jobs-shortcode-wrap {
    min-height: 100px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.job-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--we-card-bg);
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-md);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 61, 145, 0.08);
    border-color: rgba(30, 91, 216, 0.2);
}

.job-card-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--we-bg);
    border-radius: var(--we-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--we-border);
}

.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.job-card-body {
    flex: 1;
    min-width: 0;
}

.job-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-card-title a {
    color: var(--we-text);
}

.job-card-title a:hover {
    color: var(--we-dark-blue);
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--we-text-muted);
    align-items: center;
}

.job-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-badge {
    background: rgba(12, 61, 145, 0.08);
    color: var(--we-dark-blue);
    padding: 2px 10px;
    border-radius: var(--we-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.job-card-action {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.jobs-section {
    position: relative;
    padding-top: 120px; /* makes room for the absolute positioned search filter */
}

/* ---- AWSM JOBS PLUGIN STYLING ---- */
.awsm-jobs-container {
    margin: 0 !important;
}

.awsm-jobs-filter-form {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--we-radius-md);
    padding: 24px 32px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    box-shadow: 0 20px 40px rgba(15, 61, 145, 0.12);
    position: absolute;
    top: -90px;
    left: 20px;
    right: 20px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
}

.awsm-jobs-filter-form label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--we-text);
    display: block;
    margin-bottom: 6px;
}

.awsm-jobs-filter-form input[type="text"],
.awsm-jobs-filter-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--we-border);
    border-radius: var(--we-radius-sm);
    font-size: 0.92rem;
    background: #fff;
    color: var(--we-text);
    transition: var(--we-transition);
    appearance: none;
}

.awsm-jobs-filter-form input:focus,
.awsm-jobs-filter-form select:focus {
    border-color: var(--we-sky-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 169, 225, 0.15);
}

.awsm-jobs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.awsm-job-post {
    background: var(--we-card-bg);
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-md);
    padding: 24px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.awsm-job-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 61, 145, 0.08);
    border-color: rgba(30, 91, 216, 0.2);
}

.awsm-job-post h2,
.awsm-job-post .awsm-job-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.awsm-job-post h2 a,
.awsm-job-post .awsm-job-title a {
    color: var(--we-text);
}

.awsm-job-post h2 a:hover {
    color: var(--we-dark-blue);
}

.awsm-job-specification {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.awsm-job-specification li {
    background: var(--we-bg);
    color: var(--we-text-muted);
    padding: 3px 10px;
    border-radius: var(--we-radius-pill);
    font-size: 0.78rem;
}

.awsm-job-more-info a,
.awsm-jobs-more a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--we-dark-blue);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--we-radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--we-transition);
    margin-top: 12px;
}

.awsm-job-more-info a:hover,
.awsm-jobs-more a:hover {
    background: var(--we-sky-blue);
    color: #fff;
    transform: translateY(-2px);
}

.awsm-jobs-count {
    color: var(--we-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.awsm-apply-btn a {
    background: var(--we-orange) !important;
}

.awsm-apply-btn a:hover {
    background: #e0841a !important;
}

/* ---- FEATURES / WHY SECTION ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--we-card-bg);
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-md);
    padding: 32px 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 61, 145, 0.08);
    border-color: rgba(30, 91, 216, 0.2);
}

.feature-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--we-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.feature-icon-blue {
    background: rgba(12, 61, 145, 0.08);
    color: var(--we-dark-blue);
}

.feature-icon-orange {
    background: rgba(30, 91, 216, 0.06);
    color: var(--we-sky-blue);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--we-dark-blue);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--we-text-muted);
    line-height: 1.6;
}

/* ---- STATS SECTION ---- */
.stats-section {
    background: linear-gradient(135deg, var(--we-dark-blue) 0%, #1a5cb8 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ---- HOW IT WORKS ---- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.step-card {
    background: var(--we-card-bg);
    border: 1px solid var(--we-border);
    border-radius: var(--we-radius-md);
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 61, 145, 0.08);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--we-sky-blue), var(--we-dark-blue));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: rgba(12, 61, 145, 0.08);
    border-radius: var(--we-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px auto 16px;
    color: var(--we-dark-blue);
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--we-dark-blue);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--we-text-muted);
}

.step-connector {
    font-size: 1.8rem;
    color: var(--we-sky-blue);
    font-weight: 700;
    text-align: center;
}

/* ---- CTA SECTION ---- */
.cta-section {
    background: var(--we-bg);
}

.cta-card {
    background: linear-gradient(135deg, var(--we-dark-blue) 0%, #1a5cb8 100%);
    border-radius: var(--we-radius-lg);
    padding: 60px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--we-shadow-lg);
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ---- FOOTER ---- */
.site-footer {
    background: #0a1629;
    color: rgba(255, 255, 255, 0.78);
}

.footer-top {
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .footer-logo a {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-era-footer {
    color: var(--we-orange);
}

.footer-about-text {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--we-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--we-transition);
}

.social-icon:hover {
    background: var(--we-orange);
    border-color: var(--we-orange);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col-title {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.88rem;
    transition: var(--we-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-menu a:hover {
    color: var(--we-sky-blue);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    margin-top: 12px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item a:hover {
    color: var(--we-sky-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright-text {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    font-size: 0.83rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
    color: var(--we-sky-blue);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--we-dark-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--we-shadow-md);
    transition: var(--we-transition);
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--we-orange);
    transform: translateY(-3px);
}

/* ---- WIDGET AREA ---- */
.widget-area {
    position: sticky;
    top: calc(var(--we-header-h) + 20px);
}

.widget {
    background: var(--we-card-bg);
    border: 1.5px solid var(--we-border);
    border-radius: var(--we-radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--we-shadow-sm);
}

.widget-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--we-dark-blue);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--we-bg);
}

/* ---- FORMS ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--we-border);
    border-radius: var(--we-radius-sm);
    font-size: 0.95rem;
    color: var(--we-text);
    background: #fff;
    transition: var(--we-transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--we-sky-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 169, 225, 0.15);
}

label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--we-text);
    display: block;
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 20px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ---- POST CARDS (BLOG) ---- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--we-card-bg);
    border: 1.5px solid var(--we-border);
    border-radius: var(--we-radius-md);
    overflow: hidden;
    box-shadow: var(--we-shadow-sm);
    transition: var(--we-transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--we-shadow-md);
}

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 22px;
}

.post-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--we-text-muted);
    margin-bottom: 10px;
}

.post-card-meta a {
    color: var(--we-sky-blue);
    font-weight: 500;
}

.post-card-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.post-card-title a {
    color: var(--we-text);
}

.post-card-title a:hover {
    color: var(--we-dark-blue);
}

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--we-text-muted);
    margin-bottom: 16px;
    line-height: 1.55;
}

/* ---- SINGLE POST ---- */
.single-post-article {
    max-width: 820px;
}

.post-featured-image {
    border-radius: var(--we-radius-md);
    overflow: hidden;
    margin-bottom: 28px;
}

.post-featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.entry-header {
    margin-bottom: 28px;
}

.post-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.83rem;
    color: var(--we-text-muted);
    margin-bottom: 14px;
}

.post-meta a {
    color: var(--we-sky-blue);
}

.entry-title {
    margin-bottom: 8px;
}

.entry-content {
    font-size: 1.02rem;
    line-height: 1.78;
    color: #2d3748;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 32px 0 14px;
    color: var(--we-dark-blue);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 24px;
}

.entry-content li {
    margin-bottom: 6px;
}

.entry-content a {
    color: var(--we-sky-blue);
    text-decoration: underline;
}

.entry-content blockquote {
    border-left: 4px solid var(--we-orange);
    padding: 14px 20px;
    margin: 24px 0;
    background: var(--we-bg);
    border-radius: 0 var(--we-radius-sm) var(--we-radius-sm) 0;
    font-style: italic;
}

.post-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--we-border);
    font-size: 0.85rem;
    color: var(--we-text-muted);
}

.post-tags a {
    background: var(--we-bg);
    border: 1px solid var(--we-border);
    padding: 3px 10px;
    border-radius: var(--we-radius-pill);
    margin: 0 3px;
    font-size: 0.8rem;
    color: var(--we-text-muted);
}

.post-tags a:hover {
    background: var(--we-dark-blue);
    color: #fff;
    border-color: var(--we-dark-blue);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 36px 0;
    padding: 24px;
    background: var(--we-bg);
    border-radius: var(--we-radius-md);
}

.post-navigation a {
    color: var(--we-dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---- 404 ---- */
.error-404 {
    padding: 80px 0;
}

.error-404-number {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: var(--we-dark-blue);
    opacity: 0.08;
    line-height: 1;
    margin-bottom: -20px;
}

.error-404-title {
    font-size: 2rem;
    color: var(--we-dark-blue);
    margin-bottom: 14px;
}

.error-404-text {
    color: var(--we-text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 32px;
}

.error-404-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.error-404-search {
    max-width: 440px;
    margin: 0 auto;
}

/* ---- SEARCH FORM ---- */
.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    flex: 1;
    padding: 12px 18px;
    border: 1.5px solid var(--we-border);
    border-radius: var(--we-radius-pill);
    font-size: 0.95rem;
}

.search-field:focus {
    border-color: var(--we-sky-blue);
}

.search-submit {
    background: var(--we-dark-blue);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--we-radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--we-transition);
}

.search-submit:hover {
    background: var(--we-sky-blue);
}

/* ---- NO RESULTS ---- */
.no-results {
    text-align: center;
    padding: 64px 24px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-results h2 {
    color: var(--we-dark-blue);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--we-text-muted);
    margin-bottom: 24px;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ---- ULTIMATE MEMBER COMPATIBILITY ---- */
.um .um-form .um-field-label label {
    font-weight: 600 !important;
    color: var(--we-text) !important;
}

.um .um-form input[type="text"],
.um .um-form input[type="email"],
.um .um-form input[type="tel"],
.um .um-form input[type="password"] {
    border: 1.5px solid var(--we-border) !important;
    border-radius: var(--we-radius-sm) !important;
    font-size: 0.95rem !important;
    padding: 11px 15px !important;
}

.um .um-form input:focus {
    border-color: var(--we-sky-blue) !important;
    box-shadow: 0 0 0 3px rgba(39, 169, 225, 0.15) !important;
}

.um .um-btn,
.um .um-button {
    background: var(--we-dark-blue) !important;
    color: #fff !important;
    border-radius: var(--we-radius-pill) !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    transition: var(--we-transition) !important;
}

.um .um-btn:hover,
.um .um-button:hover {
    background: var(--we-sky-blue) !important;
}

.um-profile-photo-modal .um-modal-header,
.um-account-nav {
    background: var(--we-dark-blue) !important;
}

.um-account-tab.current a {
    color: var(--we-orange) !important;
    border-color: var(--we-orange) !important;
}

.um-login,
.um-register {
    background: var(--we-card-bg);
    border: 1.5px solid var(--we-border);
    border-radius: var(--we-radius-lg);
    padding: 36px;
    box-shadow: var(--we-shadow-md);
    max-width: 480px;
    margin: 0 auto;
}

.um-login .um-header,
.um-register .um-header {
    text-align: center;
    margin-bottom: 24px;
}

/* ---- GUTENBERG BLOCKS ---- */
.wp-block-button__link {
    border-radius: var(--we-radius-pill) !important;
    font-weight: 600 !important;
}

.wp-block-quote {
    border-left: 4px solid var(--we-orange);
    background: var(--we-bg);
    padding: 16px 24px;
    border-radius: 0 var(--we-radius-sm) var(--we-radius-sm) 0;
}

.wp-block-cover {
    border-radius: var(--we-radius-md);
    overflow: hidden;
}

.wp-block-separator.has-background {
    border-color: var(--we-border) !important;
}

.wp-block-columns {
    gap: 28px;
}

/* ---- PAGINATION ---- */
.posts-pagination,
.page-links,
.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 48px;
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1.5px solid var(--we-border);
    border-radius: var(--we-radius-sm);
    font-size: 0.88rem;
    color: var(--we-text-muted);
    transition: var(--we-transition);
}

.page-numbers:hover,
.nav-links a:hover {
    border-color: var(--we-dark-blue);
    color: var(--we-dark-blue);
}

.page-numbers.current {
    background: var(--we-dark-blue);
    border-color: var(--we-dark-blue);
    color: #fff;
}

/* ---- SOCIAL SHARE ---- */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
}

.share-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--we-text-muted);
}

.share-btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: var(--we-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--we-transition);
    color: #fff;
}

.share-linkedin {
    background: #0077b5;
}

.share-whatsapp {
    background: #25d366;
}

.share-twitter {
    background: #1da1f2;
}

.share-btn:hover {
    opacity: 0.88;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- SEARCH COUNT ---- */
.search-count {
    margin-bottom: 24px;
    color: var(--we-text-muted);
}

.search-form-wrap {
    margin-bottom: 36px;
    max-width: 600px;
}

/* ---- COMMENTS ---- */
.comments-wrap {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--we-border);
}

.comment-list {
    list-style: none;
}

.comment-body {
    background: var(--we-bg);
    border-radius: var(--we-radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.comment-meta {
    font-size: 0.83rem;
    color: var(--we-text-muted);
    margin-bottom: 10px;
}

.comment-content p {
    font-size: 0.95rem;
}

.comment-reply-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--we-sky-blue);
}

.comment-form input,
.comment-form textarea {
    margin-bottom: 14px;
}

.comment-form-submit input[type="submit"] {
    background: var(--we-dark-blue);
    color: #fff;
    padding: 11px 28px;
    border: none;
    border-radius: var(--we-radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--we-transition);
}

.comment-form-submit input[type="submit"]:hover {
    background: var(--we-sky-blue);
}

/* ---- MISC ---- */
.read-more-link {
    font-size: 0.83rem;
}