/*
Theme Name:   Eastwards Jobs Pro
Theme URI:    https://eastwards.online/
Description:  Production-grade GeneratePress child theme for Eastwards Global & Gulf Jobs Portal. Mobile-first, ultra-fast, SEO schema enabled.
Author:       Eastwards
Author URI:   https://eastwards.online/
Template:     generatepress
Version:      1.0.0
Text Domain:  eastwards-jobs-pro
*/

:root {
  --gb-container-width: 1200px;
  --gp-slideout-width: 265px;
  --background: #ffffff;
  --surface-muted: #f8fafc;
  --text-1: #1d1d1d;
  --text-2: #383838;
  --text-muted: #64748b;
  --link-text: #2e67d9;
  --color-background: #1db37e;
  --color-background-hover: #1C976C;
  --border-color: #e4e4e4;
  --footer-dark-bg: #2f343c;
  --footer-text-muted: #7c7c7c;
  --footer-icon-circle-bg: rgba(226, 226, 226, 0.93);
  --footer-icon-fill: #30353d;
  --ew-hero-start: #4e88ba;
  --ew-hero-end: #03d596;
  --ew-header-bg: #ffffff;
  --ew-header-text: #1d1d1d;
  --ew-header-height: 80px;
  --ew-card-radius: 5px;
  --ew-job-border: 2px;
  --ew-btn-radius: 30px;
  --ew-home-cols: 3;
  --font-main: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ew-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-background);
  color: #ffffff;
  padding: 10px 18px;
  z-index: 9999;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}

.ew-skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-background);
  outline-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-1);
  background-color: var(--background);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.ew-container {
  width: 100%;
  max-width: var(--gb-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================
   1. STICKY HEADER & NAVIGATION
   ========================================================= */
.ew-header-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--ew-header-bg);
  border-bottom: 1px solid rgba(228, 228, 228, 0.7);
  transition: box-shadow 0.25s ease;
}

.ew-header-wrap--static {
  position: relative;
}

body.admin-bar .ew-header-wrap:not(.ew-header-wrap--static) {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .ew-header-wrap:not(.ew-header-wrap--static) {
    top: 46px;
  }
}

.ew-header-wrap.is-stuck {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.ew-nav {
  max-width: var(--gb-container-width);
  margin: 0 auto;
  height: var(--ew-header-height);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ew-header-cta {
  background: var(--color-background);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--ew-btn-radius);
  white-space: nowrap;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.ew-header-cta:hover {
  background: var(--color-background-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.ew-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.ew-brand-logo-img {
  max-height: 44px;
  width: auto;
  display: block;
}

.ew-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1db37e 0%, #134e4a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(29, 179, 126, 0.25);
}

.ew-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.ew-brand-name {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: -0.4px;
}

.ew-brand-name span {
  color: var(--color-background);
}

.ew-brand-sub {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-muted);
}

.ew-nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ew-desktop-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.ew-desktop-menu > li {
  margin: 0;
  position: relative;
}

.ew-desktop-menu > li > a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ew-header-text);
  padding: 8px 4px;
  display: inline-block;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.ew-desktop-menu > li > a:hover,
.ew-desktop-menu > li.current-menu-item > a,
.ew-desktop-menu > li.current-category-ancestor > a {
  color: var(--color-background-hover);
}

.ew-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ew-search-toggle,
.ew-menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.ew-search-toggle:hover,
.ew-menu-toggle:hover {
  color: var(--color-background-hover);
  background-color: #f1f5f9;
}

.ew-search-toggle svg {
  width: 18px;
  height: 18px;
}

.ew-menu-toggle {
  display: none;
  gap: 7px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 8px 10px;
  min-height: 44px;
}

.ew-menu-toggle svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 960px) {
  .ew-nav {
    height: 64px;
    padding: 0 16px;
  }

  .ew-desktop-menu {
    display: none;
  }

  .ew-menu-toggle {
    display: inline-flex;
  }

  .ew-brand-name {
    font-size: 22px;
  }

  .ew-brand-mark {
    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   2. MOBILE OFF-CANVAS SLIDEOUT DRAWER (265px)
   ========================================================= */
.ew-slideout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ew-slideout-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ew-slideout-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--gp-slideout-width);
  max-width: 85vw;
  background: var(--background);
  z-index: 9995;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.ew-slideout-drawer.is-open {
  transform: translateX(0);
}

.ew-slideout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.ew-slideout-close {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-1);
  font-size: 20px;
  line-height: 1;
}

.ew-slideout-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.ew-slideout-menu li {
  margin: 0;
}

.ew-slideout-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-1);
  min-height: 46px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ew-slideout-menu li a:hover {
  background-color: #f8fafc;
  color: var(--color-background-hover);
}

/* =========================================================
   3. SEARCH OVERLAY MODAL
   ========================================================= */
.ew-search-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 16px 24px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ew-search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.ew-search-modal-box {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
}

.ew-search-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ew-search-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.ew-search-modal-close {
  background: #f1f5f9;
  border: none;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ew-search-modal-form {
  display: flex;
  gap: 8px;
}

.ew-search-modal-form input[type="search"] {
  flex: 1;
  font-family: var(--font-main);
  font-size: 16px;
  border: 2px solid var(--color-background);
  border-radius: 6px;
  padding: 12px 16px;
  outline: none;
  color: var(--text-1);
  min-height: 48px;
}

.ew-search-modal-form button {
  background: var(--color-background);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 20px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.ew-search-modal-form button:hover {
  background: var(--color-background-hover);
}

/* =========================================================
   4. HERO SECTION & FLOATING 8-PILL CARD
   ========================================================= */
.ew-hero {
  background-color: var(--ew-hero-end);
  background-image: linear-gradient(160deg, var(--ew-hero-start) 0%, var(--ew-hero-end) 80%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ew-hero-inner {
  max-width: var(--gb-container-width);
  margin: 0 auto;
  padding: 70px 20px 145px 20px;
  text-align: center;
}

.ew-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 25px 0;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.ew-hero-search-form {
  display: flex;
  align-items: stretch;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  overflow: hidden;
}

.ew-hero-search-input {
  flex: 1;
  width: calc(100% - 60px);
  height: 50px;
  border: none;
  border-radius: 5px 0 0 5px;
  padding: 0 20px;
  font-family: var(--font-main);
  font-size: 15px;
  color: #333333;
  background: #ffffff;
  outline: none;
}

.ew-hero-search-input::placeholder {
  color: #7c7c7c;
}

.ew-hero-search-btn {
  width: 60px;
  height: 50px;
  padding: 0;
  background: var(--footer-dark-bg);
  border: none;
  border-radius: 0 5px 5px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}

.ew-hero-search-btn:hover {
  background: #1d2127;
}

.ew-hero-search-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Floating 8-Notification Pills Card (-120px overlap) */
.ew-pills-section {
  max-width: var(--gb-container-width);
  margin: -115px auto 30px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.ew-pills-card {
  background-color: var(--background);
  border-radius: 7px;
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  padding: 25px;
}

.ew-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 20px;
}

.ew-pill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 54px;
  height: 100%;
  border-radius: 7px;
  padding: 15px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  box-shadow: 0 0 7px 2px rgba(117, 117, 117, 0.07);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  text-decoration: none;
}

.ew-pill-item:hover {
  color: #ffffff;
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.ew-pill-grad-1 { background-image: linear-gradient(to right, #1a93eb 0%, #2b0fa3 100%); }
.ew-pill-grad-2 { background-image: linear-gradient(to right, #c505f0 0%, #670385 100%); }
.ew-pill-grad-3 { background-image: linear-gradient(to right, #e25805 0%, #762d01 100%); }
.ew-pill-grad-4 { background-image: linear-gradient(to right, #ef023d 0%, #7e0321 100%); }
.ew-pill-grad-5 { background-image: linear-gradient(to right, #03b679 0%, #036b47 100%); }
.ew-pill-grad-6 { background-image: linear-gradient(to right, #e59300 0%, #875701 100%); }
.ew-pill-grad-7 { background-image: linear-gradient(to right, #00c9e5 0%, #018597 100%); }
.ew-pill-grad-8 { background-image: linear-gradient(to right, #9103f6 0%, #3e0169 100%); }

@media (max-width: 1024px) {
  .ew-pills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 14px;
  }
}

@media (max-width: 767px) {
  .ew-hero-inner {
    padding: 40px 15px 125px 15px;
  }

  .ew-hero-title {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .ew-pills-section {
    padding: 0 15px;
    margin-top: -105px;
  }

  .ew-pills-card {
    padding: 16px;
  }

  .ew-pills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 10px;
  }

  .ew-pill-item {
    padding: 10px 8px;
    font-size: 12px;
    min-height: 48px;
  }
}

/* =========================================================
   5. 8 CATEGORY ICON CARDS
   ========================================================= */
.ew-cat-icons-section {
  max-width: var(--gb-container-width);
  margin: 0 auto 30px auto;
  padding: 0 20px;
}

.ew-cat-icons-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: 15px;
  row-gap: 15px;
}

.ew-cat-icon-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  text-decoration: none;
}

.ew-cat-icon-card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  border-color: var(--color-background);
}

.ew-cat-icon-box {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ew-cat-icon-box svg {
  width: 40px;
  height: 40px;
}

.ew-cat-icon-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.25;
}

@media (max-width: 1024px) {
  .ew-cat-icons-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ew-cat-icons-section {
    padding: 0 15px;
  }

  .ew-cat-icons-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 10px;
  }

  .ew-cat-icon-card {
    padding: 10px 4px;
  }

  .ew-cat-icon-box svg {
    width: 34px;
    height: 34px;
  }

  .ew-cat-icon-label {
    font-size: 11px;
  }
}

/* =========================================================
   6. COMMUNITY CTA BANNERS (WHATSAPP & TELEGRAM)
   ========================================================= */
.ew-community-section {
  max-width: var(--gb-container-width);
  margin: 0 auto 38px auto;
  padding: 0 20px;
}

.ew-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ew-community-banner {
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ew-community-wa {
  background-color: #25d366;
}

.ew-community-tg {
  background-color: #0088cc;
}

.ew-community-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.ew-community-left svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ew-community-btn {
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  padding: 8px 18px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ew-community-wa .ew-community-btn {
  color: #169c48;
}

.ew-community-tg .ew-community-btn {
  color: #0074ad;
}

.ew-community-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

@media (max-width: 767px) {
  .ew-community-section {
    padding: 0 15px;
  }

  .ew-community-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ew-community-banner {
    padding: 12px 15px;
  }

  .ew-community-left {
    font-size: 14px;
  }
}

/* =========================================================
   7. 3-COLUMN JOB CATEGORY BOXES (HOMEPAGE CORE)
   ========================================================= */
.ew-cat-boxes-section {
  max-width: var(--gb-container-width);
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.ew-cat-boxes-grid {
  display: grid;
  grid-template-columns: repeat(var(--ew-home-cols), minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 30px;
  align-items: start;
}

.ew-cat-box {
  border: 1.5px solid var(--border-color);
  border-radius: var(--ew-card-radius);
  overflow: hidden;
  background: #ffffff;
}

.ew-cat-box-header {
  background: var(--color-background-hover);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 11px 15px;
  margin: 0;
}

.ew-cat-box-list {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 10px;
  padding: 15px;
}

.ew-job-row-card {
  border: var(--ew-job-border) solid var(--color-background-hover);
  border-radius: 3px;
  padding: 10px;
  background: #ffffff;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.ew-job-row-card:hover {
  box-shadow: 5px 5px 7px 0 rgba(0, 0, 0, 0.1);
  transform: translate3d(0, -3px, 0);
}

.ew-job-row-title {
  margin: 0 0 7px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.ew-job-row-title a {
  color: var(--text-1);
  transition: color 0.35s ease;
  display: block;
}

.ew-job-row-card:hover .ew-job-row-title a,
.ew-job-row-title a:hover {
  color: var(--color-background-hover);
}

.ew-job-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.ew-meta-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  column-gap: 5px;
}

.ew-meta-badge svg {
  width: 1em;
  height: 1em;
  fill: var(--color-background);
  color: var(--color-background);
  flex-shrink: 0;
}

.ew-read-more-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1.5px solid var(--color-background);
  border-radius: var(--ew-btn-radius);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-background);
  margin-top: 6px;
  min-height: 38px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ew-read-more-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ew-read-more-btn:hover {
  background-color: var(--color-background);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .ew-cat-boxes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 24px;
  }
}

@media (max-width: 767px) {
  .ew-cat-boxes-section {
    padding: 0 15px;
  }

  .ew-cat-boxes-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .ew-job-row-title {
    font-size: 14px;
  }

  .ew-read-more-btn {
    min-height: 44px;
    padding: 8px 18px;
  }
}

/* =========================================================
   8. BOTTOM INFORMATIONAL SEO CARDS
   ========================================================= */
.ew-info-section {
  max-width: var(--gb-container-width);
  margin: 0 auto 28px auto;
  padding: 0 20px;
}

.ew-info-card {
  border: 1.5px solid var(--color-background);
  border-radius: 9px;
  overflow: hidden;
  background: #ffffff;
}

.ew-info-header {
  background: var(--color-background);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 10px 20px;
  margin: 0;
}

.ew-info-body {
  padding: 16px 22px 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.ew-info-body p {
  margin: 0 0 10px 0;
}

.ew-info-body p:last-child {
  margin-bottom: 0;
}

.ew-info-body ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.ew-info-body li {
  margin-bottom: 6px;
}

.ew-info-center {
  text-align: center;
}

@media (max-width: 767px) {
  .ew-info-section {
    padding: 0 15px;
  }

  .ew-info-header {
    font-size: 16px;
  }

  .ew-info-body {
    padding: 14px 15px;
  }
}

/* =========================================================
   9. FLOATING 4-COL FOOTER + DARK BOTTOM BAR
   ========================================================= */
.ew-footer-outer {
  background: var(--footer-dark-bg);
  margin-top: 165px;
  padding-top: 1px;
  padding-bottom: 32px;
}

.ew-footer-float-wrap {
  max-width: var(--gb-container-width);
  margin: -140px auto 38px auto;
  padding: 0 20px;
}

.ew-footer-card {
  background: var(--background);
  border-radius: 15px;
  box-shadow: 0 0 9px 1px rgba(0, 0, 0, 0.1);
  padding: 40px 30px 32px 30px;
}

.ew-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.2em;
  row-gap: 1.5em;
}

.ew-footer-col + .ew-footer-col {
  border-left: 1.5px solid var(--border-color);
  padding-left: 18px;
}

.ew-footer-heading {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  color: var(--text-1);
}

.ew-footer-about {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--footer-text-muted);
  margin: 0;
}

.ew-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ew-footer-links li {
  margin-bottom: 7px;
}

.ew-footer-links a {
  font-size: 12.5px;
  color: var(--footer-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.ew-footer-links a:hover {
  color: var(--color-background-hover);
}

.ew-footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ew-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--footer-text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.ew-footer-contact-list svg {
  width: 14px;
  height: 14px;
  fill: var(--color-background);
  flex-shrink: 0;
  margin-top: 3px;
}

.ew-footer-bottom-inner {
  max-width: var(--gb-container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.ew-footer-bottom-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}

.ew-footer-brand-light .ew-brand-name {
  color: #ffffff;
}

.ew-footer-brand-light .ew-brand-sub {
  color: #cbd5e1;
}

.ew-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ew-footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--footer-icon-circle-bg);
  color: var(--footer-icon-fill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ew-footer-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.ew-footer-copy {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

@media (max-width: 1024px) {
  .ew-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ew-footer-col:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .ew-footer-outer {
    margin-top: 145px;
  }

  .ew-footer-float-wrap {
    padding: 0 15px;
    margin-top: -125px;
  }

  .ew-footer-card {
    padding: 26px 20px;
  }

  .ew-footer-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .ew-footer-col + .ew-footer-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
  }

  .ew-footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   10. 70/30 TWO-COLUMN LAYOUT (SINGLE, ARCHIVE, SEARCH, PAGE)
   ========================================================= */
.ew-main-layout {
  max-width: var(--gb-container-width);
  margin: 30px auto 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 30px;
  align-items: start;
}

.ew-content-col {
  min-width: 0;
}

.ew-sidebar-col {
  min-width: 0;
  position: sticky;
  top: 100px;
}

@media (max-width: 960px) {
  .ew-main-layout {
    grid-template-columns: 1fr;
    padding: 0 15px;
    margin-top: 20px;
    gap: 26px;
  }

  .ew-sidebar-col {
    position: static;
  }
}

/* =========================================================
   11. SINGLE JOB POST DESIGN
   ========================================================= */
.ew-lightning-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-1);
  margin-bottom: 10px;
}

.ew-lightning-tag svg {
  width: 16px;
  height: 16px;
  color: #ff9800;
  fill: #ff9800;
  flex-shrink: 0;
}

.ew-lightning-tag a:hover {
  color: var(--color-background-hover);
}

.ew-single-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
  margin: 0 0 14px 0;
}

@media (max-width: 767px) {
  .ew-single-title {
    font-size: 24px;
  }
}

.ew-author-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ew-author-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ew-author-name-inline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ew-post-date-inline {
  font-size: 13px;
  color: var(--footer-text-muted);
}

/* 5:3 Featured Image / Auto Emerald Banner */
.ew-featured-banner-wrap {
  margin-bottom: 22px;
  border-radius: 8px;
  overflow: hidden;
}

.ew-featured-banner-img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.ew-auto-banner {
  width: 100%;
  aspect-ratio: 5 / 3;
  background: linear-gradient(135deg, #169c6d 0%, #1db37e 52%, #10b981 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.08);
}

.ew-auto-banner::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.ew-auto-banner-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.ew-auto-banner-title {
  color: #fefce8;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  margin: 0;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ew-auto-banner--sm .ew-auto-banner-badge {
  font-size: 10px;
  margin-bottom: 8px;
  padding: 3px 9px;
}

.ew-auto-banner--sm .ew-auto-banner-title {
  font-size: 18px;
}

@media (max-width: 767px) {
  .ew-auto-banner {
    padding: 18px 16px;
  }

  .ew-auto-banner-title {
    font-size: 20px;
  }
}

/* Quick Job Summary Box */
.ew-summary-box {
  border: 2px solid var(--color-background);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(29, 179, 126, 0.1);
  margin: 24px 0;
}

.ew-summary-head {
  background: linear-gradient(135deg, #1db37e 0%, #15803d 100%);
  color: #ffffff;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ew-summary-status-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
}

.ew-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

@media (max-width: 600px) {
  .ew-summary-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

.ew-summary-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ew-summary-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ew-summary-icon svg {
  width: 18px;
  height: 18px;
}

.ew-ico-blue { background: #dbeafe; color: #1d4ed8; }
.ew-ico-green { background: #dcfce7; color: #15803d; }
.ew-ico-purple { background: #f3e8ff; color: #7e22ce; }
.ew-ico-orange { background: #ffedd5; color: #c2410c; }
.ew-ico-teal { background: #ccfbf1; color: #0f766e; }
.ew-ico-rose { background: #ffe4e6; color: #be123c; }

.ew-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}

.ew-summary-value {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.ew-apply-wrap {
  padding: 0 18px 18px;
}

.ew-apply-btn {
  background: linear-gradient(135deg, #1db37e 0%, #15803d 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(29, 179, 126, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ew-apply-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(29, 179, 126, 0.35);
}

/* Single Post Content Typography & Tables */
.ew-entry-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.ew-entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  border-left: 4px solid var(--color-background);
  padding-left: 12px;
  margin: 28px 0 14px 0;
  line-height: 1.3;
}

.ew-entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin: 22px 0 10px 0;
}

.ew-entry-content h4,
.ew-entry-content h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin: 18px 0 8px 0;
}

.ew-entry-content p {
  margin: 0 0 14px 0;
}

.ew-entry-content ul,
.ew-entry-content ol {
  margin: 0 0 16px 0;
  padding-left: 22px;
}

.ew-entry-content li {
  margin-bottom: 6px;
}

.ew-entry-content a {
  color: var(--link-text);
  text-decoration: underline;
}

.ew-table-scroll {
  overflow-x: auto;
  margin: 18px 0;
}

.ew-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.ew-entry-content th {
  background: #f8fafc;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  font-weight: 700;
  text-align: left;
  color: var(--text-1);
}

.ew-entry-content td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  color: var(--text-2);
}

/* Tags & Social Share */
.ew-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
}

.ew-tags-row a {
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ew-tags-row a:hover {
  background: var(--color-background);
  color: #ffffff;
}

.ew-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
  padding: 14px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.ew-share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  margin-right: 4px;
}

.ew-share-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ew-share-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.ew-share-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  opacity: 0.92;
}

.ew-share-fb { background: #1877f2; }
.ew-share-x  { background: #000000; }
.ew-share-wa { background: #25d366; }
.ew-share-tg { background: #0088cc; }
.ew-share-cp { background: #334155; }

.ew-copy-toast {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-background-hover);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ew-copy-toast.is-visible {
  opacity: 1;
}

/* Author Bio Box */
.ew-author-box {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  margin: 24px 0;
}

.ew-author-box-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ew-author-box-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px 0;
}

.ew-author-box-bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 560px) {
  .ew-author-box {
    flex-direction: column;
    text-align: center;
  }

  .ew-author-box-name {
    justify-content: center;
  }
}

/* Related Posts 2-Col Grid */
.ew-related-wrap {
  margin-top: 28px;
}

.ew-related-header {
  background: var(--color-background-hover);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 16px;
  border-radius: 6px;
  margin: 0 0 16px 0;
}

.ew-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.ew-related-card {
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ew-related-card:hover {
  border-color: var(--color-background);
  transform: translateY(-2px);
}

.ew-related-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px 0;
}

.ew-related-title a:hover {
  color: var(--color-background-hover);
}

@media (max-width: 640px) {
  .ew-related-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   12. SIDEBAR "LATEST JOBS" WIDGET
   ========================================================= */
.ew-sidebar-widget {
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  padding: 22px 15px;
  background: #ffffff;
  margin-bottom: 22px;
}

.ew-sidebar-title {
  background: var(--color-background-hover);
  color: #ffffff;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  margin: 0 0 15px 0;
}

.ew-sidebar-list {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 10px;
}

/* =========================================================
   13. CATEGORY ARCHIVE (DASHED GREEN CARDS) & SEARCH SPLIT CARDS
   ========================================================= */
.ew-archive-banner {
  background: var(--color-background);
  border-radius: 7px;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 22px 0;
}

.ew-archive-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: -10px 0 20px;
  text-align: center;
}

.ew-archive-card {
  border: 1.5px dashed var(--color-background);
  border-radius: 5px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ew-archive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
}

.ew-archive-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  margin: 0 0 8px 0;
}

.ew-archive-card-title a:hover {
  color: var(--color-background-hover);
}

.ew-archive-card-excerpt {
  font-size: 13.5px;
  color: #555555;
  margin: 8px 0 12px;
  line-height: 1.55;
}

/* Search Split Card (40% Left Image / 60% Right Content) */
.ew-search-heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 22px 0;
  color: var(--text-1);
}

.ew-search-card {
  display: flex;
  flex-direction: row;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.ew-search-thumb {
  width: 40%;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  display: block;
}

.ew-search-body {
  width: 60%;
}

.ew-search-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 10px 0;
}

.ew-search-title a {
  color: var(--text-2);
}

.ew-search-title a:hover {
  color: var(--color-background-hover);
}

.ew-search-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: #555555;
  margin: 10px 0 0 0;
}

@media (max-width: 767px) {
  .ew-search-card {
    flex-direction: column;
    gap: 12px;
  }

  .ew-search-thumb,
  .ew-search-body {
    width: 100%;
  }

  .ew-search-title {
    font-size: 18px;
  }
}

/* Pagination */
.ew-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}

.ew-pagination .page-numbers {
  background-color: var(--color-background);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 5px;
  padding: 10px 14px;
  text-decoration: none;
  min-width: 38px;
  transition: background-color 0.2s ease;
}

.ew-pagination .page-numbers:hover,
.ew-pagination .page-numbers.current {
  background-color: var(--color-background-hover);
}

/* Ad Slot Container (only shown when ad code is configured) */
.ew-ad-slot {
  text-align: center;
  margin: 18px 0;
}

.ew-ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
  margin-bottom: 4px;
}

/* Single Page / Legal Page Card */
.ew-page-card {
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
}

@media (max-width: 767px) {
  .ew-page-card {
    padding: 18px 15px;
  }
}

/* Breadcrumbs */
.ew-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 14px 0;
}

.ew-breadcrumbs a {
  color: var(--color-background-hover);
  font-weight: 600;
}

.ew-breadcrumbs a:hover {
  text-decoration: underline;
}

.ew-bc-sep {
  color: #94a3b8;
}

/* Floating Scroll To Top Button */
.ew-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-background);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 850;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.ew-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ew-scroll-top:hover {
  background: var(--color-background-hover);
}
