/* ========================================
   BLOG + CAREERS + SINGLE POST CSS
   ======================================== */

/* ========================================
   SHARED: INNER HERO (reuse from inner-pages)
   ======================================== */
.blog-hero,
.careers-hero,
.single-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-hero .inner-hero-bg,
.careers-hero .inner-hero-bg,
.single-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.blog-hero .inner-hero-overlay,
.careers-hero .inner-hero-overlay,
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--color-primary-rgb), 0.55);
  z-index: 1;
}

.blog-hero .inner-hero-content,
.careers-hero .inner-hero-content,
.single-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-16) var(--padding-page);
}

.blog-hero .inner-hero-title,
.careers-hero .inner-hero-title,
.single-hero-title {
  color: var(--color-white);
  font-size: var(--text-hero);
  text-transform: uppercase;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero .inner-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: var(--sp-4) auto 0;
  line-height: 1.6;
}

.blog-hero-illustration {
  position: absolute;
  width: 100px;
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  bottom: 20px;
  right: 20px;
}

/* ========================================
   BLOG INTRO
   ======================================== */
.blog-intro-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.blog-intro-heading {
  font-size: var(--text-section);
  margin-bottom: var(--sp-4);
}

.blog-intro-text {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

.blog-intro-illustration {
  width: 80px;
  height: auto;
  margin: var(--sp-6) auto 0;
  opacity: 0.3;
}

/* ========================================
   BLOG GRID
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

.blog-card {
  background: var(--color-bg-card);
  border-radius: var(--rounded-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(var(--color-primary-rgb), 0.08);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Mobile: many blog photos are portrait. 4:3 landscape decapitates them.
   Switch to 1:1 on mobile so portrait + landscape both read decently. */
@media (max-width: 600px) {
  .blog-card-image {
    aspect-ratio: 1 / 1;
  }
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-primary-rgb), 0.08);
}

.blog-card-placeholder span {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: rgba(var(--color-primary-rgb), 0.15);
  text-transform: uppercase;
}

.blog-card-read-time {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: rgba(var(--color-primary-rgb), 0.85);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: var(--sp-1) var(--sp-2d5);
  border-radius: var(--rounded-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-card-body {
  padding: var(--sp-5);
}

.blog-card-date {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-card-title);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: var(--sp-3);
  text-transform: none;
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}

.blog-card-readmore {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-readmore {
  color: var(--color-gold);
}

/* Featured first post — full width */
.blog-card-featured {
  grid-column: 1 / -1;
}

.blog-no-posts {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-light);
  padding: var(--sp-16) 0;
}

/* ========================================
   SUBSCRIBE SECTION
   ======================================== */
.blog-subscribe {
  background: var(--color-primary);
  color: var(--color-white);
}

.subscribe-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}

.subscribe-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.subscribe-img {
  border-radius: var(--rounded-card);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.subscribe-heading {
  color: var(--color-white);
  font-size: var(--text-section);
  margin-bottom: var(--sp-4);
}

.subscribe-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.subscribe-form-group {
  display: flex;
  gap: var(--sp-3);
  max-width: 500px;
}

.subscribe-form-group input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  border-radius: var(--rounded-button);
  padding: var(--sp-3) var(--sp-5);
}

.subscribe-form-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.subscribe-form-group input[type="email"]:focus {
  border-color: var(--color-gold);
  outline: none;
}

.subscribe-form-group .btn-primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.subscribe-form-group .btn-primary:hover {
  background: #e5a711;
  border-color: #e5a711;
}

.subscribe-social {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.subscribe-social-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.subscribe-social-links {
  display: flex;
  gap: var(--sp-4);
}

.subscribe-social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.subscribe-social-links a:hover {
  color: var(--color-gold);
}

/* ========================================
   CAREERS: INTRO
   ======================================== */
.careers-hero-deco {
  position: absolute;
  width: 100px;
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 2;
}

.careers-hero-deco-left {
  left: 20px;
  bottom: 20px;
}

.careers-hero-deco-right {
  right: 20px;
  top: 20px;
}

.careers-intro-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.careers-intro-heading {
  font-size: var(--text-section);
  margin-bottom: var(--sp-6);
}

.careers-intro-text {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========================================
   CAREERS: WHY WORK WITH US
   ======================================== */
.careers-benefits {
  background: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

.benefit-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  background: var(--color-bg-page);
  border-radius: var(--rounded-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.benefit-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--rounded-full);
  color: var(--color-primary);
}

.benefit-title {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  text-transform: none;
}

.benefit-desc {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   CAREERS: JOB LISTINGS
   ======================================== */
.careers-listings {
  position: relative;
  overflow: hidden;
}

.job-card {
  background: var(--color-bg-card);
  border-radius: var(--rounded-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--gap-grid);
}

.job-card:last-of-type {
  margin-bottom: 0;
}

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

.job-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card-body {
  padding: var(--sp-6);
}

.job-card-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-4);
  text-transform: none;
}

.job-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(var(--color-primary-rgb), 0.05);
  border-radius: var(--rounded-md);
  margin-bottom: var(--sp-5);
}

.job-fact {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1d5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
}

.job-fact svg {
  flex-shrink: 0;
}

.job-description {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--sp-6);
}

.job-section {
  margin-bottom: var(--sp-5);
}

.job-section:last-of-type {
  margin-bottom: var(--sp-6);
}

.job-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: var(--heading-letter-spacing);
}

.job-list {
  list-style: none;
  padding: 0;
}

.job-list li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-2);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-light);
}

.job-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: var(--rounded-full);
  background: var(--color-primary);
}

.job-list-benefits li::before {
  background: var(--color-gold);
}

.job-apply-btn {
  margin-top: var(--sp-2);
}

/* Decorative illustrations */
.careers-deco {
  position: absolute;
  width: 120px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.careers-deco-1 {
  left: -20px;
  bottom: 60px;
}

.careers-deco-2 {
  right: -20px;
  top: 60px;
}

/* ========================================
   SINGLE POST: HERO
   ======================================== */
.single-hero {
  min-height: 340px;
}

.single-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--color-primary-rgb), 0.6);
  z-index: 1;
}

.single-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-16) var(--padding-page) var(--sp-12);
}

.single-hero-title {
  color: var(--color-white);
  font-size: var(--text-hero);
  text-transform: none;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.15;
}

/* ========================================
   SINGLE POST: META
   ======================================== */
.single-meta {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.single-meta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: center;
  justify-content: center;
}

.single-meta-inner span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-weight: var(--weight-medium);
}

.single-meta-inner svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ========================================
   SINGLE POST: CONTENT
   ======================================== */
.single-content-inner {
  max-width: 760px;
  margin: 0 auto;
}

.single-content-inner h2,
.single-content-inner h3,
.single-content-inner h4 {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  text-transform: none;
}

.single-content-inner h2 {
  font-size: var(--text-3xl);
}

.single-content-inner h3 {
  font-size: var(--text-2xl);
}

.single-content-inner p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

.single-content-inner img {
  border-radius: var(--rounded-card);
  margin: var(--sp-6) 0;
}

.single-content-inner ul,
.single-content-inner ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
  list-style: disc;
}

.single-content-inner ol {
  list-style: decimal;
}

.single-content-inner li {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}

.single-content-inner blockquote {
  border-left: 4px solid var(--color-gold);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  background: rgba(var(--color-gold-rgb), 0.08);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.single-content-inner blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-primary);
}

/* ========================================
   SINGLE POST: SHARE
   ======================================== */
.single-share {
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.single-share-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.single-share-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.single-share-links {
  display: flex;
  gap: var(--sp-3);
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-full);
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.share-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   SINGLE POST: BACK TO BLOG
   ======================================== */
.single-back {
  padding: var(--sp-8) 0;
}

.single-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}

.single-back-link:hover {
  color: var(--color-gold);
}

/* ========================================
   SINGLE POST: RELATED POSTS
   ======================================== */
.single-related {
  background: var(--color-white);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

/* ========================================
   RESPONSIVE: MOBILE (max-width: 767px)
   ======================================== */

/* -----------------------------------------------
   INLINE-STYLE OVERRIDES
   The blog and careers pages use inline style="" attributes.
   CSS class rules cannot override inline styles without !important.
   These rules use #site-main :nth-child() selectors to target
   sections by position, and apply !important where needed.
----------------------------------------------- */
@media (max-width: 767px) {

  /* -----------------------------------------------
     BLOG PAGE: Hero (section:nth-child(1))
     inline: min-height: 480px
  ----------------------------------------------- */
  #site-main > section:first-child {
    min-height: 200px !important;
    max-height: 240px !important;
  }

  /* Hero content: tighter padding */
  #site-main > section:first-child > div:last-child {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Hero H1 title: smaller font */
  #site-main > section:first-child h1 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    margin-bottom: 0.5rem !important;
  }

  /* Hero subtitle paragraph */
  #site-main > section:first-child > div:last-child > p {
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
  }

  /* Hide decorative illustrations in hero (aria-hidden images) */
  #site-main > section:first-child img[aria-hidden="true"] {
    display: none !important;
  }

  /* -----------------------------------------------
     BLOG PAGE: Blog grid (section:nth-child(2))
     Grid container: minmax(320px, 1fr) → force single column
  ----------------------------------------------- */
  /* The grid div that holds articles */
  #site-main > section:nth-child(2) div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Featured article: remove grid-column: 1/-1 span */
  #site-main > section:nth-child(2) article:first-child {
    grid-column: auto !important;
  }

  /* Featured article link: single column (was side-by-side 1fr 1fr grid) */
  #site-main > section:nth-child(2) article:first-child > a {
    display: block !important;
    grid-template-columns: none !important;
  }

  /* Featured image: proper 4/3 ratio (was 1/1) */
  #site-main > section:nth-child(2) article:first-child > a > div:first-child {
    aspect-ratio: 4 / 3 !important;
  }

  /* All other article images: proper 4/3 ratio (were 16/10) */
  #site-main > section:nth-child(2) article > a > div:first-child {
    aspect-ratio: 4 / 3 !important;
  }

  /* Article body: compact padding */
  #site-main > section:nth-child(2) article > a > div:last-child {
    padding: 16px 20px !important;
    display: block !important;
    justify-content: unset !important;
  }

  /* Article title: readable size */
  #site-main > section:nth-child(2) article h3 {
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }

  /* -----------------------------------------------
     BLOG PAGE: Subscribe section (section:nth-child(3))
     .subscribe-layout grid and form stacking
  ----------------------------------------------- */
  /* subscribe-img-col: already hidden by inline <style> tag on the page */
  /* subscribe form stacking: partially handled by inline <style> tag */
  /* We reinforce it here comprehensively */
  .subscribe-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: center !important;
  }

  .subscribe-img-col {
    display: none !important;
  }

  /* Ensure form stacks at all mobile sizes, not just 560px */
  .subscribe-layout form div[style*="display:flex"],
  .subscribe-layout form > div {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .subscribe-layout form input[type="email"] {
    width: 100% !important;
    font-size: 16px !important; /* prevent iOS zoom */
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  .subscribe-layout form button,
  .subscribe-layout form input[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
  }

  /* Also target the subscribe-form-group class variant */
  .subscribe-form-group {
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .subscribe-form-group input[type="email"] {
    width: 100% !important;
    font-size: 16px !important;
    min-height: 48px !important;
  }

  .subscribe-form-group .btn-primary {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
    flex-shrink: unset !important;
  }

  /* -----------------------------------------------
     CAREERS PAGE: Hero (section:nth-child(1))
     inline: min-height: 520px, align-items: flex-end
  ----------------------------------------------- */
  /* Careers is loaded on a different page — #site-main sections are different.
     We use body.page-id-* or just target all first sections generically.
     Since these rules only run at 767px, the section:first-child rule above
     already handles the blog hero. For careers, we do the same selector but
     careers hero has min-height:520px — same :first-child applies. */

  /* Hero decorative images (non-bg, aria-hidden): hide */
  #site-main > section:first-child img[aria-hidden] {
    display: none !important;
  }

  /* Hero content padding: reduce */
  #site-main > section:first-child > div:last-of-type {
    padding-bottom: 1.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* -----------------------------------------------
     CAREERS PAGE: Intro strip (section:nth-child(2))
     Stat separator dividers: hide on mobile
  ----------------------------------------------- */
  /* The vertical divider lines between stats */
  #site-main > section:nth-child(2) div[style*="width:1px"] {
    display: none !important;
  }

  /* Stat container: allow wrapping at smaller size */
  #site-main > section:nth-child(2) > div > div {
    gap: 1.25rem !important;
    padding: 0 1rem !important;
  }

  /* -----------------------------------------------
     CAREERS PAGE: Benefits section (section:nth-child(3))
     Already single column via auto-fit minmax(280px, 1fr).
     At 375px this wraps to 1 column naturally.
     Just reduce icon size and padding.
  ----------------------------------------------- */
  #site-main > section:nth-child(3) div[style*="width:72px"],
  #site-main > section:nth-child(3) div[style*="width: 72px"] {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 1rem !important;
  }

  #site-main > section:nth-child(3) div[style*="width:72px"] svg,
  #site-main > section:nth-child(3) div[style*="width: 72px"] svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* -----------------------------------------------
     CAREERS PAGE: Job listings (section:nth-child(4))
     Job banner: 21/9 aspect ratio is too tall → reduce
     Apply CTA button: full width
  ----------------------------------------------- */

  /* Job card banner aspect ratio: reduce from 21/9 */
  .job-card-banner {
    aspect-ratio: 16 / 7 !important;
  }

  /* Also target by inline style */
  #site-main > section:nth-child(4) div[style*="aspect-ratio:21/9"] {
    aspect-ratio: 16 / 7 !important;
  }

  /* Job card body padding: compact */
  #site-main > section:nth-child(4) article > div:last-child {
    padding: 1.25rem !important;
  }

  /* Benefits + Hours grid: single column */
  #site-main > section:nth-child(4) div[style*="grid-template-columns:repeat(auto-fit,minmax(220px"] {
    grid-template-columns: 1fr !important;
  }

  /* Apply CTA button container: flex-direction column, full width */
  #site-main > section:nth-child(4) div[style*="display:flex;align-items:center;gap:1rem"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* WhatsApp apply button: full width */
  #site-main > section:nth-child(4) a[href*="wa.me"] {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* "Response within" text: center */
  #site-main > section:nth-child(4) span[style*="font-size:0.8rem"] {
    text-align: center !important;
  }

  /* -----------------------------------------------
     CAREERS PAGE: "Don't See Your Role" CTA (section:nth-child(5))
     Button: full width centered
  ----------------------------------------------- */
  #site-main > section:nth-child(5) a[href*="wa.me"] {
    display: flex !important;
    width: 100% !important;
    max-width: 340px !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* -----------------------------------------------
     SHARED: Class-based rules (work when classes exist)
  ----------------------------------------------- */

  /* Blog/Careers/Single Heroes */
  .blog-hero,
  .careers-hero {
    min-height: 200px !important;
    max-height: 240px !important;
  }

  .single-hero {
    min-height: 200px !important;
    max-height: 260px !important;
  }

  .blog-hero .inner-hero-title,
  .careers-hero .inner-hero-title,
  .single-hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
  }

  .blog-hero .inner-hero-content,
  .careers-hero .inner-hero-content,
  .single-hero-content {
    padding: var(--sp-8) 16px;
  }

  .blog-hero .inner-hero-subtitle {
    font-size: var(--text-sm);
    margin-top: var(--sp-2);
  }

  .blog-hero-illustration,
  .careers-hero-deco {
    display: none !important;
  }

  /* Blog intro */
  .blog-intro-heading {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .blog-intro-text {
    font-size: var(--text-base);
    line-height: 1.6;
  }

  /* Blog grid */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card-image {
    aspect-ratio: 4 / 3;
  }

  .blog-card-body {
    padding: 16px 20px;
  }

  .blog-card-title {
    font-size: var(--text-base);
    line-height: 1.35;
    margin-bottom: var(--sp-2);
  }

  .blog-card-excerpt {
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-card-read-time {
    display: block;
    z-index: 3;
    font-size: 0.625rem;
    padding: 3px 8px;
  }

  /* Featured post: no special treatment on mobile */
  .blog-card-featured {
    grid-column: auto;
  }

  .blog-card-featured .blog-card-link {
    display: block;
  }

  .blog-card-featured .blog-card-image {
    aspect-ratio: 4 / 3;
    min-height: unset;
  }

  .blog-card-featured .blog-card-body {
    display: block;
    padding: 16px 20px;
  }

  .blog-card-featured .blog-card-title {
    font-size: var(--text-base);
  }

  /* Subscribe section */
  .subscribe-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    text-align: center;
  }

  .subscribe-images {
    display: none;
  }

  .subscribe-heading {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin-bottom: var(--sp-3);
  }

  .subscribe-text {
    font-size: var(--text-sm);
    margin-bottom: var(--sp-4);
  }

  .subscribe-social {
    justify-content: center;
    margin-top: var(--sp-4);
    flex-wrap: wrap;
    gap: var(--sp-3);
  }

  /* Careers benefits */
  .careers-intro-heading {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin-bottom: var(--sp-4);
  }

  .careers-intro-text {
    font-size: var(--text-base);
    line-height: 1.6;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card {
    padding: var(--sp-6) var(--sp-5);
    border-radius: 12px;
  }

  .benefit-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--sp-4);
  }

  .benefit-icon svg {
    width: 24px;
    height: 24px;
  }

  .benefit-title {
    font-size: var(--text-lg);
    margin-bottom: var(--sp-2);
  }

  .benefit-desc {
    font-size: var(--text-sm);
    line-height: 1.6;
  }

  /* Job cards (class-based) */
  .job-card {
    display: block;
    border-radius: 12px;
  }

  .job-card-image {
    aspect-ratio: 16 / 7;
  }

  .job-card-body {
    padding: var(--sp-5);
  }

  .job-card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--sp-3);
    line-height: 1.2;
  }

  .job-quick-facts {
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    flex-wrap: wrap;
  }

  .job-fact {
    font-size: var(--text-xs);
  }

  .job-description {
    font-size: var(--text-sm);
    line-height: 1.65;
    margin-bottom: var(--sp-4);
  }

  .job-section-title {
    font-size: var(--text-base);
    margin-bottom: var(--sp-2);
  }

  .job-list li {
    font-size: var(--text-sm);
    padding-left: var(--sp-4);
    margin-bottom: var(--sp-1d5);
    line-height: 1.55;
  }

  .job-list li::before {
    top: 8px;
    width: 5px;
    height: 5px;
  }

  .job-apply-btn {
    width: 100%;
    margin-top: var(--sp-4);
  }

  .job-apply-btn a,
  .job-apply-btn .btn-primary,
  .job-apply-btn .btn-gold,
  .job-apply-btn .btn-whatsapp {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .careers-deco {
    display: none;
  }

  /* Single post */
  .single-content-wrap {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .single-content-inner {
    max-width: 100%;
  }

  .single-content-inner img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    border-radius: var(--rounded-md);
  }

  .single-content-inner p {
    font-size: var(--text-base);
    line-height: 1.75;
    margin-bottom: var(--sp-4);
  }

  .single-content-inner h2 {
    font-size: var(--text-2xl);
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-3);
  }

  .single-content-inner h3 {
    font-size: var(--text-xl);
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-3);
  }

  .single-content-inner h4 {
    font-size: var(--text-lg);
    margin-top: var(--sp-5);
    margin-bottom: var(--sp-2);
  }

  .single-content-inner ul,
  .single-content-inner ol {
    padding-left: var(--sp-5);
    margin-bottom: var(--sp-4);
  }

  .single-content-inner li {
    font-size: var(--text-base);
    line-height: 1.75;
    margin-bottom: var(--sp-2);
  }

  .single-content-inner blockquote {
    padding: var(--sp-3) var(--sp-4);
    margin: var(--sp-4) 0;
  }

  .single-content-inner blockquote p {
    font-size: var(--text-base);
    line-height: 1.65;
  }

  .single-meta-inner {
    gap: var(--sp-3);
    flex-wrap: wrap;
    justify-content: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Section spacing */
  .blog-subscribe,
  .careers-benefits,
  .careers-listings,
  .single-related {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-padding {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* ========================================
   RESPONSIVE: TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-card-featured {
    grid-column: 1 / -1;
  }

  .blog-card-featured .blog-card-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .blog-card-featured .blog-card-image {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .blog-card-featured .blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-8);
  }

  .blog-card-featured .blog-card-title {
    font-size: var(--text-2xl);
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .job-card-image {
    aspect-ratio: 21 / 9;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .subscribe-inner {
    grid-template-columns: 1fr 1fr;
  }

  .single-hero {
    min-height: 400px;
  }
}

/* ========================================
   RESPONSIVE: DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .blog-hero,
  .careers-hero {
    min-height: 380px;
  }

  .blog-hero-illustration {
    width: 150px;
    opacity: 0.2;
    bottom: 40px;
    right: 60px;
  }

  .careers-hero-deco {
    width: 160px;
    opacity: 0.2;
  }

  .blog-card-featured .blog-card-title {
    font-size: var(--text-3xl);
  }

  .blog-card-featured .blog-card-image {
    min-height: 360px;
  }

  .job-card {
    display: grid;
    grid-template-columns: 380px 1fr;
  }

  .job-card-image {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .job-card-body {
    padding: var(--sp-8);
  }

  .careers-deco {
    width: 180px;
    opacity: 0.08;
  }

  .single-hero {
    min-height: 450px;
  }

  .subscribe-form-group {
    max-width: 100%;
  }
}

/* ========================================
   RESPONSIVE: LARGE DESKTOP (1280px+)
   ======================================== */
@media (min-width: 1280px) {
  .blog-hero,
  .careers-hero {
    min-height: 420px;
  }

  .single-hero {
    min-height: 500px;
  }

  .blog-card-body {
    padding: var(--sp-6);
  }
}
