/* ============================================================
   YouResidency Layout Fixes v2
   - Full-width (no sidebar)
   - Table horizontal scroll
   - Archive card grids
   - Homepage
   - Footer
   - Navigation
   ============================================================ */

/* ============================================================
   1. FULL-WIDTH LAYOUT — Override GP sidebar
   ============================================================ */
.single-citizenship_program .site-content,
.single-residence_program .site-content,
.single-business_setup .site-content,
.single-post .site-content,
.single-team_member .site-content,
.post-type-archive .site-content,
.page .site-content,
.home .site-content,
.tax-program_region .site-content,
.tax-program_country .site-content,
.tax-program_category .site-content {
  max-width: 960px !important;
  margin: 0 auto;
}

/* Hide any remaining sidebar */
.single-citizenship_program #right-sidebar,
.single-residence_program #right-sidebar,
.single-business_setup #right-sidebar,
.single-post #right-sidebar,
.single-team_member #right-sidebar,
.post-type-archive #right-sidebar,
.page #right-sidebar,
.home #right-sidebar,
.tax-program_region #right-sidebar,
.tax-program_country #right-sidebar,
.tax-program_category #right-sidebar {
  display: none !important;
}

.single-citizenship_program .content-area,
.single-residence_program .content-area,
.single-business_setup .content-area,
.single-post .content-area,
.single-team_member .content-area,
.post-type-archive .content-area,
.page .content-area,
.home .content-area {
  width: 100% !important;
}

/* ============================================================
   2. TABLE HORIZONTAL SCROLL
   ============================================================ */
.yr-content-body table,
.yr-section-content table,
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
}

.yr-content-body table thead,
.yr-content-body table tbody,
.yr-content-body table tr,
.yr-section-content table thead,
.yr-section-content table tbody,
.yr-section-content table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

/* Allow text wrap inside cells */
.yr-content-body td,
.yr-content-body th,
.yr-section-content td,
.yr-section-content th {
  white-space: normal;
  word-wrap: break-word;
}

/* Scroll hint on mobile */
@media (max-width: 768px) {
  .yr-content-body table,
  .yr-section-content table {
    white-space: nowrap;
    font-size: 13px;
  }

  .yr-content-body td,
  .yr-content-body th,
  .yr-section-content td,
  .yr-section-content th {
    min-width: 120px;
    white-space: normal;
  }
}

/* ============================================================
   3. NAVIGATION — Compact & Clean
   ============================================================ */
.main-navigation {
  font-family: var(--yr-font, 'Plus Jakarta Sans', sans-serif) !important;
}

.main-navigation .main-nav > ul > li > a {
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 14px !important;
  color: var(--yr-gray-700, #37404D) !important;
  transition: color 0.15s !important;
}

.main-navigation .main-nav > ul > li > a:hover {
  color: var(--yr-primary, #00B67A) !important;
}

.site-header {
  border-bottom: 1px solid var(--yr-gray-200, #E5E9ED);
  box-shadow: none !important;
}

/* Site branding */
.site-title {
  font-family: var(--yr-font, 'Plus Jakarta Sans', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 22px !important;
}

.site-title a {
  color: var(--yr-accent, #163300) !important;
}

/* ============================================================
   4. ARCHIVE — Program Card Grid
   ============================================================ */
.post-type-archive .page-header,
.tax-program_region .page-header,
.tax-program_country .page-header,
.tax-program_category .page-header {
  text-align: center;
  padding: 40px 0 20px;
}

.post-type-archive .page-header h1,
.tax-program_region .page-header h1,
.tax-program_country .page-header h1,
.tax-program_category .page-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--yr-gray-900);
}

.yr-archive-desc {
  font-size: 17px;
  color: var(--yr-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Hide default archive entry styling */
.post-type-archive article.yr-archive-item,
.tax-program_region article.yr-archive-item,
.tax-program_country article.yr-archive-item {
  display: none !important;
}

/* Card Grid */
.yr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 0 0 40px 0;
}

.yr-program-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: white;
  border: 1px solid var(--yr-gray-200, #E5E9ED);
  border-radius: var(--yr-radius-lg, 16px);
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.yr-program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yr-primary), var(--yr-primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.yr-program-card:hover {
  border-color: var(--yr-primary, #00B67A);
  box-shadow: 0 8px 30px rgba(0, 182, 122, 0.12);
  transform: translateY(-4px);
}

.yr-program-card:hover::before {
  transform: scaleX(1);
}

.yr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.yr-card-badges {
  display: flex;
  gap: 8px;
}

.yr-card-type-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--yr-primary-light, #E6F9F1);
  color: var(--yr-primary-dark, #009966);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 12px;
}

.yr-card-status {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 12px;
}

.yr-card-status-active {
  background: #ECFDF5;
  color: #065F46;
}

.yr-card-status-closed {
  background: #FEF2F2;
  color: #991B1B;
}

.yr-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yr-gray-700);
}

.yr-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--yr-gray-900);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.yr-card-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.yr-card-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--yr-gray-200);
}

.yr-card-fact:last-child {
  border-bottom: none;
}

.yr-card-fact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--yr-gray-500);
}

.yr-card-fact-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--yr-gray-900);
}

.yr-card-benefits {
  font-size: 13px;
  color: var(--yr-gray-500);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.yr-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--yr-primary-dark, #009966);
  margin-top: auto;
  padding-top: 12px;
  transition: transform 0.15s;
}

.yr-program-card:hover .yr-card-link {
  transform: translateX(4px);
}

/* ============================================================
   5. HOMEPAGE
   ============================================================ */
.yr-homepage {
  margin: -20px 0 0 0;
}

/* Hero */
.yr-hero {
  text-align: center;
  padding: 60px 20px 50px;
  background: linear-gradient(180deg, var(--yr-primary-light, #E6F9F1) 0%, white 100%);
  border-radius: 0 0 var(--yr-radius-xl, 24px) var(--yr-radius-xl, 24px);
  margin-bottom: 50px;
}

.yr-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--yr-gray-200);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yr-gray-700);
  margin-bottom: 20px;
}

.yr-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--yr-gray-900);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.yr-hero p {
  font-size: 18px;
  color: var(--yr-gray-500);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.yr-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.yr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--yr-radius-xl, 24px);
  text-decoration: none !important;
  transition: all 0.2s;
  cursor: pointer;
}

.yr-btn-primary {
  background: linear-gradient(135deg, var(--yr-primary), var(--yr-primary-dark));
  color: white !important;
  box-shadow: 0 4px 16px var(--yr-primary-glow, rgba(0,182,122,0.15));
}

.yr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--yr-primary-glow, rgba(0,182,122,0.25));
}

.yr-btn-secondary {
  background: white;
  color: var(--yr-gray-900) !important;
  border: 2px solid var(--yr-gray-200);
}

.yr-btn-secondary:hover {
  border-color: var(--yr-primary);
  background: var(--yr-primary-light);
}

.yr-btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.yr-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.yr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yr-stat strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--yr-primary-dark, #009966);
  line-height: 1;
}

.yr-stat span {
  font-size: 13px;
  font-weight: 600;
  color: var(--yr-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Home Sections */
.yr-home-section {
  margin-bottom: 50px;
}

.yr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.yr-section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--yr-gray-900);
  margin: 0;
}

.yr-see-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--yr-primary-dark, #009966);
  text-decoration: none !important;
  transition: transform 0.15s;
}

.yr-see-all:hover {
  transform: translateX(4px);
}

/* Home CTA */
.yr-home-cta {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--yr-accent, #163300), var(--yr-accent-soft, #2D4A0F));
  border-radius: var(--yr-radius-xl, 24px);
  margin-bottom: 50px;
}

.yr-home-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin: 0 0 12px 0;
}

.yr-home-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 28px;
}

.yr-home-cta .yr-btn-primary {
  background: white;
  color: var(--yr-accent, #163300) !important;
  box-shadow: none;
}

.yr-home-cta .yr-btn-primary:hover {
  background: var(--yr-primary-light);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ============================================================
   6. FOOTER
   ============================================================ */
.site-footer {
  background: var(--yr-gray-900, #0F1A2A) !important;
  color: white !important;
}

.yr-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 20px 30px;
}

.yr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.yr-footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: white;
}

.yr-footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}

.yr-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin: 0 0 16px 0;
}

.yr-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yr-footer-col li {
  margin-bottom: 10px;
}

.yr-footer-col a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: color 0.15s;
}

.yr-footer-col a:hover {
  color: var(--yr-primary, #00B67A) !important;
}

.yr-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.yr-footer-bottom a {
  color: rgba(255,255,255,0.4) !important;
  text-decoration: none !important;
}

.yr-footer-bottom a:hover {
  color: var(--yr-primary) !important;
}

/* Hide default GP footer */
.site-info {
  display: none !important;
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .yr-hero h1 {
    font-size: 32px;
  }

  .yr-hero p {
    font-size: 16px;
  }

  .yr-hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .yr-hero-stats {
    gap: 32px;
  }

  .yr-stat strong {
    font-size: 24px;
  }

  .yr-cards-grid {
    grid-template-columns: 1fr;
  }

  .yr-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .yr-footer-brand {
    grid-column: 1 / -1;
  }

  .yr-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .yr-section-header h2 {
    font-size: 22px;
  }

  .yr-home-cta h2 {
    font-size: 24px;
  }

  .yr-program-layout,
  .yr-blog-layout {
    grid-template-columns: 1fr;
  }

  .yr-program-layout > .yr-toc-sidebar,
  .yr-blog-layout > .yr-toc-sidebar {
    display: none;
  }
}

@media (max-width: 480px) {
  .yr-footer-grid {
    grid-template-columns: 1fr;
  }

  .yr-hero h1 {
    font-size: 28px;
  }
}

/* ============================================================
   8. HIDE DEFAULT ARCHIVE ENTRY for CPTs (use cards instead)
   ============================================================ */
.post-type-archive-citizenship_program #main article,
.post-type-archive-residence_program #main article {
  display: none !important;
}

/* Re-show our custom content */
.post-type-archive-citizenship_program .yr-archive-intro,
.post-type-archive-residence_program .yr-archive-intro {
  display: block !important;
}

/* ============================================================
   9. GP OVERRIDES - Remove unneeded elements
   ============================================================ */

/* Hide GP default post navigation on our types */
.single-citizenship_program .post-navigation,
.single-residence_program .post-navigation {
  display: none;
}

/* Clean up entry-meta */
.single-citizenship_program .entry-meta,
.single-residence_program .entry-meta,
.single-team_member .entry-meta {
  display: none;
}

/* ============================================================
   TABLE RESPONSIVE WRAPPER — horizontal swipe
   ============================================================ */
.yr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--yr-gray-200, #E5E9ED);
  border-radius: var(--yr-radius-sm, 8px);
}

.yr-table-wrap table {
  display: table !important;
  width: max-content;
  min-width: 100%;
  overflow: visible !important;
  white-space: normal !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.yr-table-wrap th,
.yr-table-wrap td {
  min-width: 100px;
  white-space: normal !important;
  word-wrap: break-word;
}

/* Override old table styles */
.yr-content-body table,
.yr-section-content table,
.entry-content table {
  display: table !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* ============================================================
   ARCHIVE CUSTOM — show our cards, hide GP default
   ============================================================ */
.yr-archive-custom {
  margin-bottom: 40px;
}

.yr-archive-header {
  text-align: center;
  padding: 40px 0 30px;
}

.yr-archive-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--yr-gray-900, #0F1A2A);
  margin: 0 0 12px;
}

/* Hide GP default archive stuff when our custom is active */
.post-type-archive .page-header {
  display: none !important;
}

.post-type-archive #main article {
  display: none !important;
}

.post-type-archive .paging-navigation {
  display: none !important;
}

/* ============================================================
   MOBILE FIXES — Key Facts full width, single CTA
   ============================================================ */
@media (max-width: 768px) {
  .yr-key-facts {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .yr-cta-button {
    max-width: 280px;
  }

  /* Hide inline CTA when sticky is visible */
  .yr-cta:not(.yr-cta-sticky) {
    display: none;
  }

  .yr-program-main,
  .yr-blog-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .yr-program-layout {
    display: block !important;
  }
}

/* Archive card description alignment */
.yr-archive-header {
  text-align: center;
}

.yr-archive-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Ensure GP doesn't use page-list as menu */
.main-navigation .menu-fallback-container {
  display: none !important;
}

/* ============================================================
   MOBILE FIXES v2
   ============================================================ */

/* Key Facts always full width */
.yr-key-facts {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Author block full width */
.yr-author-block {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Rating badge */
.yr-rating-badge {
  width: fit-content;
}

@media (max-width: 768px) {
  /* Force single column layout */
  .yr-program-layout,
  .yr-blog-layout {
    display: block !important;
  }

  .yr-program-main,
  .yr-blog-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* Hide inline CTA, keep only sticky */
  .yr-cta:not(.yr-cta-sticky) {
    display: none !important;
  }

  /* Facts grid single column on very small */
  .yr-facts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .yr-facts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TABLE RESPONSIVE — Swipeable wrapper
   ============================================================ */
.yr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--yr-gray-200, #E5E9ED);
  border-radius: var(--yr-radius-sm, 8px);
  max-width: 100%;
}

.yr-table-wrap table {
  display: table !important;
  width: max-content !important;
  min-width: 600px;
  overflow: visible !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.yr-table-wrap th,
.yr-table-wrap td {
  min-width: 100px;
  white-space: normal !important;
  word-wrap: break-word;
}

/* Override old broken table styles */
.yr-content-body table,
.yr-section-content table,
.entry-content table {
  display: table !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* GP fallback menu hide */
.main-navigation .menu-fallback-container {
  display: none !important;
}


/* ============================================================
   MOBILE + DESKTOP FIXES v3 — 2026-03-02
   ============================================================ */

/* Desktop: Key Facts, Author, Rating — always full width */
.yr-key-facts,
.yr-author-block,
.yr-rating-badge,
.yr-cta {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Desktop: program layout without TOC should be single column */
.yr-program-main,
.yr-blog-main {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  .yr-program-layout,
  .yr-blog-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .yr-program-main,
  .yr-blog-main {
    padding: 0 !important;
  }

  /* Hide ALL inline CTAs on mobile — only sticky visible */
  .yr-cta:not(.yr-cta-sticky) {
    display: none !important;
  }

  /* Sticky CTA styling */
  .yr-cta-sticky {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    padding: 12px 16px !important;
    background: white !important;
    border-top: 1px solid #E5E9ED !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
    margin: 0 !important;
  }

  .yr-cta-sticky .yr-cta-button {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 14px 24px !important;
  }

  /* Add bottom padding to body so sticky CTA doesnt overlap content */
  body.single-citizenship_program,
  body.single-residence_program,
  body.single-post {
    padding-bottom: 80px !important;
  }

  /* Content full width */
  .site-content .content-area {
    width: 100% !important;
  }

  /* Title smaller on mobile */
  .entry-title {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }
}




/* ============================================================
   BUSINESS SETUP — Minimal overrides
   ============================================================ */

/* Archive header */
.yr-archive-badge {
  display: inline-block;
  background: #E6F9F1;
  color: #00B67A;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.yr-archive-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.yr-stat { text-align: center; }
.yr-stat strong { display: block; font-size: 28px; font-weight: 800; color: #0F1A2A; }
.yr-stat span { font-size: 14px; color: #6B7280; }

.yr-country-group { margin-top: 40px; }
.yr-country-heading {
  font-size: 22px; font-weight: 700; color: #0F1A2A;
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #E6F9F1;
}
.yr-country-count { font-size: 16px; font-weight: 400; color: #6B7280; }

/* Business card extras */
.yr-card-jurisdiction { font-size: 13px; color: #6B7280; margin: -8px 0 12px 0; }
.yr-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; padding: 12px 0; border-top: 1px solid #f0f0f0; }
.yr-card-fact { display: flex; flex-direction: column; gap: 2px; }
.yr-card-fact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #6B7280; font-weight: 500; }
.yr-card-fact-value { font-size: 14px; font-weight: 700; color: #0F1A2A; }

@media (max-width: 768px) {
  .yr-archive-stats { gap: 16px; }
  .yr-stat strong { font-size: 22px; }
  .yr-card-facts { grid-template-columns: 1fr; }
}


/* Business Setup — Author block horizontal fix */
.single-business_setup .yr-author-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.single-business_setup .yr-author-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Match residence content width */
/* business_setup uses same width as residence (960px via section 1) */

@media (max-width: 900px) {
  .single-business_setup .yr-author-row {
    flex-direction: column !important;
    gap: 16px;
  }
}


/* ============================================================
   ARCHIVE FILTER BAR
   ============================================================ */
.yr-filter-bar {
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: #f8faf9;
  border: 1px solid #E5E9ED;
  border-radius: 12px;
}

.yr-filter-group {
  margin-bottom: 12px;
}

.yr-filter-group:last-child {
  margin-bottom: 0;
}

.yr-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6B7280;
  margin-bottom: 8px;
}

.yr-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yr-pill {
  padding: 6px 14px;
  border: 1px solid #E5E9ED;
  border-radius: 20px;
  background: white;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.yr-pill:hover {
  border-color: #00B67A;
  color: #00B67A;
}

.yr-pill-active {
  background: #00B67A;
  color: white;
  border-color: #00B67A;
}

.yr-pill-active:hover {
  background: #009966;
  color: white;
  border-color: #009966;
}

@media (max-width: 768px) {
  .yr-filter-bar { padding: 16px; }
  .yr-filter-pills { gap: 4px; }
  .yr-pill { padding: 5px 10px; font-size: 12px; }
}

/* ============================================================
   BUSINESS CARDS GRID FIX
   ============================================================ */
.yr-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.yr-card-wrapper {
  display: contents;
}

.yr-card {
  display: block;
  background: white;
  border: 1px solid #E5E9ED;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.yr-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.yr-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.yr-card-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.yr-badge-type {
  background: #E6F9F1;
  color: #00B67A;
}

.yr-badge-status {
  background: #E6F9F1;
  color: #00B67A;
}

.yr-card-rating {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: #F59E0B;
}

.yr-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F1A2A;
  margin: 0 0 4px;
}

.yr-card-jurisdiction {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 12px;
}

.yr-card-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
}

.yr-card-fact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6B7280;
  font-weight: 600;
}

.yr-card-fact-value {
  font-size: 14px;
  font-weight: 700;
  color: #0F1A2A;
  display: block;
}

.yr-card-link {
  display: block;
  margin-top: 12px;
  color: #00B67A;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 900px) {
  .yr-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .yr-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOMEPAGE LANDING
   ============================================================ */

.yr-landing { margin: -40px -40px 0; }

/* Hero */
.yr-hero {
  position: relative;
  padding: 80px 40px 70px;
  overflow: hidden;
  background: linear-gradient(160deg, #ecfdf5 0%, #f0fdf4 50%, #f8fafc 100%);
}
.yr-hero-bg { display: none; }
.yr-hero-content {
  position: relative; z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.yr-hero-sub { margin: 0 auto 32px; }
.yr-hero-cta { justify-content: center; }
.yr-hero-stats { justify-content: center; }
.yr-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid #d1fae5;
  padding: 8px 16px; border-radius: 24px;
  font-size: 14px; font-weight: 600; color: #059669;
  margin-bottom: 24px;
}
.yr-hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.1;
  color: #0F1A2A; margin: 0 0 20px; letter-spacing: -0.02em;
}
.yr-hero-accent { color: #00B67A; }
.yr-hero-sub {
  font-size: 19px; color: #4B5563; line-height: 1.6;
  margin: 0 0 32px; max-width: 560px;
}
.yr-hero-cta { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.yr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 28px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.25s;
}
.yr-btn-primary {
  background: linear-gradient(135deg, #00B67A, #059669);
  color: white; box-shadow: 0 4px 14px rgba(0,182,122,0.3);
}
.yr-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,182,122,0.4); color: white; }
.yr-btn-secondary {
  background: white; color: #0F1A2A;
  border: 2px solid #E5E9ED;
}
.yr-btn-secondary:hover { border-color: #00B67A; color: #00B67A; }
.yr-btn-lg { padding: 16px 36px; font-size: 17px; }

.yr-hero-stats {
  display: flex; gap: 48px;
}
.yr-hero-stat strong {
  display: block; font-size: 32px; font-weight: 800; color: #0F1A2A;
}
.yr-hero-stat span { font-size: 14px; color: #6B7280; font-weight: 500; }

/* Value Props */
.yr-values { padding: 60px 0; }
.yr-values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.yr-value-card {
  background: white; border: 1px solid #E5E9ED;
  border-radius: 16px; padding: 28px 24px;
  transition: all 0.25s;
}
.yr-value-card:hover {
  border-color: #00B67A; box-shadow: 0 4px 16px rgba(0,182,122,0.08);
  transform: translateY(-3px);
}
.yr-value-icon {
  width: 48px; height: 48px; background: #E6F9F1;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #00B67A; margin-bottom: 16px;
}
.yr-value-card h3 { font-size: 16px; font-weight: 700; color: #0F1A2A; margin: 0 0 8px; }
.yr-value-card p { font-size: 14px; color: #6B7280; line-height: 1.5; margin: 0; }

/* About Section */
.yr-about-section { padding: 60px 0; background: #f8faf9; border-radius: 24px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.yr-about-inner { max-width: 860px; margin: 0 auto; }
.yr-about-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #00B67A; margin-bottom: 12px;
}
.yr-about-section h2, .yr-steps-section h2, .yr-trust-section h2,
.yr-categories-section h2, .yr-community-section h2 {
  font-size: 32px; font-weight: 800; color: #0F1A2A;
  margin: 0 0 24px; letter-spacing: -0.01em;
}
.yr-about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.yr-about-text p { font-size: 16px; color: #4B5563; line-height: 1.7; margin: 0 0 16px; }
.yr-origin-card {
  background: white; border: 1px solid #d1fae5;
  border-radius: 16px; padding: 24px;
}
.yr-origin-card svg { margin-bottom: 12px; }
.yr-origin-card p { font-size: 15px; color: #4B5563; line-height: 1.6; margin: 0; font-style: italic; }

/* Steps */
.yr-steps-section { padding: 60px 0; }
.yr-steps-inner { max-width: 860px; margin: 0 auto; }
.yr-steps-grid {
  display: flex; align-items: flex-start; gap: 16px; margin-top: 32px;
}
.yr-step {
  flex: 1; background: white; border: 1px solid #E5E9ED;
  border-radius: 16px; padding: 28px 24px; text-align: center;
}
.yr-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #00B67A, #059669);
  color: white; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.yr-step h3 { font-size: 18px; font-weight: 700; color: #0F1A2A; margin: 0 0 8px; }
.yr-step p { font-size: 14px; color: #6B7280; line-height: 1.5; margin: 0; }
.yr-step-arrow { display: flex; align-items: center; padding-top: 40px; }

/* Trust */
.yr-trust-section {
  padding: 60px 0; background: #0F1A2A; border-radius: 24px;
  margin: 0 -20px; padding-left: 40px; padding-right: 40px; color: white;
}
.yr-trust-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.yr-trust-section .yr-about-label { color: #34D399; }
.yr-trust-section h2 { color: white; }
.yr-trust-text { font-size: 17px; color: #D1D5DB; line-height: 1.7; margin: 0 0 20px; }
.yr-trust-text strong { color: white; }
.yr-trust-tagline { font-size: 19px; color: #34D399; font-weight: 600; font-style: italic; margin: 0; }

/* Categories */
.yr-categories-section { padding: 60px 0; }
.yr-categories-inner { max-width: 860px; margin: 0 auto; }
.yr-categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px;
}
.yr-cat-card {
  display: flex; align-items: center; gap: 16px;
  background: white; border: 1px solid #E5E9ED;
  border-radius: 12px; padding: 20px;
  text-decoration: none; color: #0F1A2A;
  transition: all 0.2s;
}
.yr-cat-card:hover { border-color: #00B67A; box-shadow: 0 2px 8px rgba(0,182,122,0.1); color: #00B67A; }
.yr-cat-card svg { flex-shrink: 0; color: #00B67A; }
.yr-cat-card span { font-size: 15px; font-weight: 600; }

/* Community */
.yr-community-section { padding: 60px 0; background: #f8faf9; border-radius: 24px; margin: 0 -20px; padding-left: 40px; padding-right: 40px; }
.yr-community-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.yr-community-section p { font-size: 17px; color: #4B5563; line-height: 1.7; margin: 0 0 16px; }
.yr-community-quote { font-size: 18px; color: #059669; font-weight: 600; font-style: italic; }

/* Programs preview */
.yr-home-section { padding: 40px 0; }
.yr-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.yr-section-header h2 { font-size: 24px; font-weight: 800; color: #0F1A2A; margin: 0; }
.yr-see-all { color: #00B67A; font-weight: 600; text-decoration: none; font-size: 15px; }
.yr-see-all:hover { text-decoration: underline; }

/* Bottom CTA */
.yr-bottom-cta {
  padding: 60px 0; margin: 40px -20px 0;
  background: linear-gradient(135deg, #064e3b 0%, #0F1A2A 100%);
  border-radius: 24px; text-align: center; color: white;
}
.yr-bottom-cta-inner { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.yr-bottom-cta h2 { font-size: 32px; font-weight: 800; color: white; margin: 0 0 16px; }
.yr-bottom-cta p { font-size: 17px; color: #D1D5DB; line-height: 1.6; margin: 0 0 28px; }

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .yr-hero h1 { font-size: 36px; }
  .yr-hero-stats { gap: 24px; }
  .yr-hero-stat strong { font-size: 24px; }
  .yr-values-grid { grid-template-columns: 1fr 1fr; }
  .yr-about-cols { grid-template-columns: 1fr; }
  .yr-steps-grid { flex-direction: column; }
  .yr-step-arrow { display: none; }
  .yr-categories-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .yr-landing { margin-top: -20px; }
  .yr-hero { padding: 40px 0 40px; }
  .yr-hero h1 { font-size: 28px; }
  .yr-hero-sub { font-size: 16px; }
  .yr-hero-cta { flex-direction: column; }
  .yr-btn { width: 100%; justify-content: center; }
  .yr-values-grid { grid-template-columns: 1fr; }
  .yr-categories-grid { grid-template-columns: 1fr; }
  .yr-trust-section, .yr-community-section, .yr-about-section { margin: 0 -16px; padding-left: 20px; padding-right: 20px; }
  .yr-bottom-cta { margin: 20px -16px 0; }
}

/* ARCHIVE STATS + HEADER CENTERING */
.yr-archive-header { text-align: center; padding: 40px 0 20px; }
.yr-archive-stats { display: flex; justify-content: center; gap: 48px; margin-top: 24px; }
.yr-program-archive-custom { padding-bottom: 40px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.yr-about-page { max-width: 860px; margin: 0 auto; }

/* Hero */
.yr-about-hero { text-align: center; padding: 20px 0 40px; }
.yr-about-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #E6F9F1; color: #059669;
  padding: 8px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 600; margin-bottom: 24px;
}
.yr-about-hero h1 { font-size: 44px; font-weight: 800; color: #0F1A2A; margin: 0 0 24px; letter-spacing: -0.02em; }
.yr-about-hero-text { font-size: 18px; color: #4B5563; line-height: 1.7; max-width: 640px; margin: 0 auto 16px; }
.yr-about-hero-highlight { font-size: 20px; color: #0F1A2A; font-weight: 700; font-style: italic; margin: 0 0 32px; }
.yr-about-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Mission */
.yr-about-mission { padding: 50px 0; border-top: 1px solid #E5E9ED; }
.yr-about-section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #00B67A; margin-bottom: 12px;
}
.yr-about-mission h2 { font-size: 28px; font-weight: 800; color: #0F1A2A; margin: 0 0 32px; max-width: 600px; line-height: 1.3; }
.yr-about-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.yr-about-mission-item {
  background: #f8faf9; border: 1px solid #E5E9ED;
  border-radius: 16px; padding: 28px 24px;
  transition: all 0.25s;
}
.yr-about-mission-item:hover { border-color: #00B67A; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,182,122,0.08); }
.yr-about-mission-icon {
  width: 48px; height: 48px; background: #E6F9F1;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #00B67A; margin-bottom: 16px;
}
.yr-about-mission-item h3 { font-size: 17px; font-weight: 700; color: #0F1A2A; margin: 0 0 8px; }
.yr-about-mission-item p { font-size: 14px; color: #6B7280; line-height: 1.6; margin: 0; }

/* Why */
.yr-about-why {
  padding: 50px 0; background: #0F1A2A; color: white;
  border-radius: 24px; margin: 0 -40px; padding-left: 40px; padding-right: 40px;
}
.yr-about-why-inner { max-width: 780px; }
.yr-about-why .yr-about-section-label { color: #34D399; }
.yr-about-why h2 { font-size: 28px; font-weight: 800; color: white; margin: 0 0 16px; }
.yr-about-why-intro { font-size: 16px; color: #D1D5DB; line-height: 1.7; margin: 0 0 32px; }
.yr-about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.yr-about-pillar {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 24px;
}
.yr-pillar-num { font-size: 13px; font-weight: 800; color: #34D399; margin-bottom: 8px; }
.yr-about-pillar h3 { font-size: 18px; font-weight: 700; color: white; margin: 0 0 8px; }
.yr-about-pillar p { font-size: 14px; color: #9CA3AF; line-height: 1.6; margin: 0; }

/* Building */
.yr-about-building {
  padding: 50px 0; text-align: center;
  border-bottom: 1px solid #E5E9ED; margin-bottom: 0;
}
.yr-about-building-icon { margin-bottom: 20px; }
.yr-about-building h2 { font-size: 26px; font-weight: 800; color: #0F1A2A; margin: 0 0 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.yr-about-building p { font-size: 16px; color: #4B5563; line-height: 1.7; max-width: 600px; margin: 0 auto 28px; }
.yr-about-building-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Community */
.yr-about-community {
  padding: 50px 0; background: #f8faf9;
  border-radius: 24px; margin: 40px -40px; padding-left: 40px; padding-right: 40px;
  text-align: center;
}
.yr-about-community h2 { font-size: 28px; font-weight: 800; color: #0F1A2A; margin: 0 0 16px; }
.yr-about-community p { font-size: 17px; color: #4B5563; line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* Closing CTA */
.yr-about-closing {
  padding: 60px 0; margin: 0 -40px;
  background: linear-gradient(135deg, #064e3b 0%, #0F1A2A 100%);
  border-radius: 24px; text-align: center; color: white;
}
.yr-about-closing-inner { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.yr-about-closing h2 { font-size: 32px; font-weight: 800; color: white; margin: 0 0 16px; }
.yr-about-closing p { font-size: 17px; color: #D1D5DB; line-height: 1.6; margin: 0 0 28px; }

/* Mobile */
@media (max-width: 768px) {
  .yr-about-hero h1 { font-size: 32px; }
  .yr-about-mission-grid { grid-template-columns: 1fr; }
  .yr-about-pillars { grid-template-columns: 1fr; }
  .yr-about-why { margin: 0 -16px; padding: 40px 20px; }
  .yr-about-community { margin: 20px -16px; padding: 40px 20px; }
  .yr-about-closing { margin: 0 -16px; }
}

/* ============================================================
   HOMEPAGE MOBILE FIX
   ============================================================ */
@media (max-width: 600px) {
  .yr-value-card {
    background: white !important;
    border: 1px solid #E5E9ED !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
  }
  .yr-value-icon {
    width: 48px !important; height: 48px !important;
    background: #E6F9F1 !important; border-radius: 12px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #00B67A !important; margin-bottom: 12px !important;
  }
  .yr-step {
    background: white !important;
    border: 1px solid #E5E9ED !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    text-align: center !important;
  }
  .yr-step-num {
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00B67A, #059669) !important;
    color: white !important; font-size: 18px !important; font-weight: 800 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    margin: 0 auto 12px !important;
  }
  .yr-about-section, .yr-trust-section, .yr-community-section,
  .yr-categories-section, .yr-steps-section {
    padding: 40px 16px !important;
  }
  .yr-about-section h2, .yr-steps-section h2, .yr-trust-section h2,
  .yr-categories-section h2, .yr-community-section h2 {
    font-size: 24px !important;
  }
  .yr-cat-card {
    background: white !important;
    border: 1px solid #E5E9ED !important;
    border-radius: 12px !important;
    padding: 16px !important;
  }
  .yr-origin-card {
    background: white !important;
    border: 1px solid #d1fae5 !important;
    border-radius: 16px !important;
    padding: 20px !important;
  }
  .yr-about-cols { gap: 20px !important; }
  .yr-hero-stats { gap: 20px !important; }
  .yr-hero-stat strong { font-size: 24px !important; }
  .yr-hero-stat span { font-size: 12px !important; }
}

/* ============================================================
   HOMEPAGE MOBILE OVERFLOW FIX
   ============================================================ */
@media (max-width: 600px) {
  .yr-landing { margin: -20px 0 0 !important; overflow-x: hidden; }
  .yr-about-section {
    margin: 0 !important;
    border-radius: 12px !important;
    padding: 32px 16px !important;
  }
  .yr-about-section h2 { font-size: 22px !important; }
  .yr-about-text p { font-size: 15px !important; }
  .yr-origin-card { padding: 16px !important; }
  .yr-origin-card p { font-size: 14px !important; }
  .yr-trust-section {
    margin: 0 !important;
    border-radius: 12px !important;
    padding: 32px 16px !important;
  }
  .yr-trust-section h2 { font-size: 22px !important; }
  .yr-trust-text { font-size: 15px !important; }
  .yr-trust-tagline { font-size: 16px !important; }
  .yr-community-section {
    margin: 20px 0 !important;
    border-radius: 12px !important;
    padding: 32px 16px !important;
  }
  .yr-community-section h2 { font-size: 22px !important; }
  .yr-community-section p { font-size: 15px !important; }
  .yr-bottom-cta {
    margin: 20px 0 0 !important;
    border-radius: 12px !important;
    padding: 40px 16px !important;
  }
  .yr-bottom-cta h2 { font-size: 24px !important; }
  .yr-steps-inner, .yr-about-inner, .yr-categories-inner {
    padding: 0 !important;
  }
  .yr-hero { padding: 40px 16px !important; }
  .yr-hero h1 { font-size: 26px !important; }
  .yr-hero-slogan { font-size: 22px !important; }
}

/* ============================================================
   MOBILE RADICAL FIX — all landing sections
   ============================================================ */
@media (max-width: 900px) {
  .yr-landing {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .yr-landing * { box-sizing: border-box !important; }
  .yr-landing section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .yr-landing h1, .yr-landing h2, .yr-landing h3,
  .yr-landing p, .yr-landing div {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .yr-hero { padding: 32px 20px 40px !important; }
  .yr-hero h1 { font-size: 24px !important; line-height: 1.2 !important; }
  .yr-hero-slogan { font-size: 20px !important; }
  .yr-hero-sub { font-size: 15px !important; }
  .yr-values { padding: 32px 20px !important; }
  .yr-about-section { padding: 32px 20px !important; }
  .yr-about-section h2 { font-size: 20px !important; line-height: 1.3 !important; }
  .yr-about-cols { grid-template-columns: 1fr !important; }
  .yr-steps-section { padding: 32px 20px !important; }
  .yr-steps-section h2 { font-size: 22px !important; }
  .yr-steps-grid { flex-direction: column !important; gap: 12px !important; }
  .yr-step-arrow { display: none !important; }
  .yr-step {
    background: white !important; border: 1px solid #E5E9ED !important;
    border-radius: 12px !important; padding: 20px !important; text-align: center !important;
  }
  .yr-step-num {
    width: 40px !important; height: 40px !important;
    background: linear-gradient(135deg, #00B67A, #059669) !important;
    color: white !important; border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    margin: 0 auto 10px !important; font-size: 16px !important; font-weight: 800 !important;
  }
  .yr-trust-section {
    padding: 32px 20px !important;
    border-radius: 0 !important;
  }
  .yr-trust-section h2 { font-size: 22px !important; }
  .yr-categories-section { padding: 32px 20px !important; }
  .yr-categories-grid { grid-template-columns: 1fr !important; }
  .yr-community-section { padding: 32px 20px !important; }
  .yr-community-section h2 { font-size: 22px !important; }
  .yr-bottom-cta { padding: 40px 20px !important; border-radius: 0 !important; }
  .yr-bottom-cta h2 { font-size: 22px !important; }
  .yr-home-section { padding: 20px !important; }
  .yr-cards-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   MOBILE TOC — business_setup + all CPTs
   ============================================================ */
.yr-toc-mobile { display: none; margin-bottom: 24px; }

@media (max-width: 900px) {
  .yr-toc-mobile { display: block; }
  .yr-program-layout > .yr-toc-sidebar { display: none !important; }
}

.yr-toc-mobile-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 20px;
  background: #f8faf9; border: 1px solid #E5E9ED;
  border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #0F1A2A;
}
.yr-toc-mobile-toggle svg { transition: transform 0.2s; }
.yr-toc-mobile-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.yr-toc-mobile-nav {
  background: #f8faf9; border: 1px solid #E5E9ED;
  border-top: none; border-radius: 0 0 12px 12px;
  padding: 12px 20px;
}
.yr-toc-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.yr-toc-mobile-nav li { margin: 0; }
.yr-toc-mobile-nav a {
  display: block; padding: 8px 0;
  color: #4B5563; font-size: 14px; text-decoration: none;
  border-bottom: 1px solid #E5E9ED;
}
.yr-toc-mobile-nav li:last-child a { border-bottom: none; }
.yr-toc-mobile-nav a:hover { color: #00B67A; }

/* ============================================================
   SERVICE PROVIDERS — Single Page
   ============================================================ */
.yr-sp-page { max-width: 860px; margin: 0 auto; }
.yr-sp-header { margin-bottom: 32px; }
.yr-sp-header-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.yr-sp-claimed-badge {
  background: #E6F9F1; color: #059669;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.yr-sp-unclaimed-badge {
  background: #FEF3C7; color: #92400E;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.yr-sp-cat-badge {
  background: #EEF2FF; color: #4338CA;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.yr-sp-country-badge {
  background: #f0f0f0; color: #374151;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.yr-sp-page h1 { font-size: 36px; font-weight: 800; color: #0F1A2A; margin: 0 0 8px; }
.yr-sp-domain { display: flex; align-items: center; gap: 6px; color: #6B7280; font-size: 14px; }
.yr-sp-domain a { color: #00B67A; text-decoration: none; }
.yr-sp-domain a:hover { text-decoration: underline; }
.yr-sp-page h2 { font-size: 24px; font-weight: 800; color: #0F1A2A; margin: 0 0 16px; }

/* Score Card */
.yr-sp-rating-section { margin-bottom: 32px; }
.yr-sp-score-card {
  background: #f8faf9; border: 2px solid #00B67A;
  border-radius: 16px; padding: 24px;
}
.yr-sp-score-main { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.yr-sp-score-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #00B67A, #059669);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.yr-sp-score-value { font-size: 24px; font-weight: 800; color: white; line-height: 1; }
.yr-sp-score-label { font-size: 11px; color: rgba(255,255,255,0.8); }
.yr-sp-score-title { font-size: 16px; font-weight: 700; color: #0F1A2A; display: block; margin-bottom: 4px; }
.yr-sp-stars { display: flex; gap: 2px; margin-bottom: 4px; }
.yr-sp-review-count { font-size: 13px; color: #6B7280; }
.yr-sp-score-tooltip {
  font-size: 12px; color: #6B7280; display: flex; align-items: flex-start; gap: 6px;
  padding-top: 12px; border-top: 1px solid #E5E9ED;
}
.yr-sp-no-data {
  display: flex; align-items: center; gap: 12px;
  background: #f9fafb; border: 1px solid #E5E9ED;
  border-radius: 12px; padding: 20px;
  color: #6B7280; font-size: 15px;
}

/* Details */
.yr-sp-details-section { margin-bottom: 32px; }
.yr-sp-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yr-sp-detail-item {
  display: flex; align-items: center; gap: 12px;
  background: #f8faf9; border: 1px solid #E5E9ED;
  border-radius: 12px; padding: 16px;
}
.yr-sp-detail-icon {
  width: 40px; height: 40px; background: #E6F9F1;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #00B67A; flex-shrink: 0;
}
.yr-sp-detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #6B7280; font-weight: 600; display: block; }
.yr-sp-detail-value { font-size: 15px; font-weight: 700; color: #0F1A2A; display: block; }
.yr-sp-all-cats { margin-top: 16px; }
.yr-sp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yr-sp-tag {
  background: #f0f0f0; color: #374151;
  padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500;
}

/* Reviews + CTA */
.yr-sp-reviews-section { margin-bottom: 24px; }
.yr-sp-tp-link { margin-top: 12px; }
.yr-sp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid #E5E9ED; }

/* ============================================================
   SERVICE PROVIDERS — Archive Cards
   ============================================================ */
.yr-sp-archive { padding-bottom: 40px; }
.yr-sp-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.yr-sp-card-wrap { display: contents; }
.yr-sp-card {
  display: block; background: white; border: 1px solid #E5E9ED;
  border-radius: 12px; padding: 20px;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.yr-sp-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.yr-sp-card-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.yr-sp-card-cat {
  background: #EEF2FF; color: #4338CA;
  padding: 3px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700;
}
.yr-sp-card-claimed {
  background: #E6F9F1; color: #059669;
  padding: 3px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700;
}
.yr-sp-card-title { font-size: 16px; font-weight: 700; color: #0F1A2A; margin: 0 0 4px; }
.yr-sp-card-domain { font-size: 12px; color: #6B7280; display: block; margin-bottom: 10px; }
.yr-sp-card-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.yr-sp-card-score {
  background: linear-gradient(135deg, #00B67A, #059669);
  color: white; font-weight: 800; font-size: 14px;
  padding: 2px 8px; border-radius: 6px;
}
.yr-sp-card-stars { color: #F59E0B; font-size: 13px; font-weight: 700; }
.yr-sp-card-reviews { color: #6B7280; font-size: 12px; }
.yr-sp-card-nodata { color: #9CA3AF; font-size: 13px; font-style: italic; margin-bottom: 8px; }
.yr-sp-card-country { font-size: 12px; color: #6B7280; display: block; margin-bottom: 8px; }
.yr-sp-card-link { color: #00B67A; font-weight: 600; font-size: 13px; }

@media (max-width: 900px) {
  .yr-sp-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .yr-sp-details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .yr-sp-cards-grid { grid-template-columns: 1fr; }
  .yr-sp-page h1 { font-size: 28px; }
  .yr-sp-score-main { flex-direction: column; text-align: center; }
}

/* Tier 1 category pills — highlighted */
.yr-pill-tier1 {
  background: #E6F9F1 !important;
  border-color: #00B67A !important;
  color: #059669 !important;
  font-weight: 700 !important;
}

/* Linked badges and tags */
a.yr-sp-country-badge, a.yr-sp-cat-badge {
  text-decoration: none;
  transition: all 0.2s;
}
a.yr-sp-country-badge:hover { background: #00B67A; color: white; }
a.yr-sp-cat-badge:hover { background: #4338CA; color: white; }

.yr-sp-detail-link {
  color: #00B67A !important;
  text-decoration: none;
}
.yr-sp-detail-link:hover { text-decoration: underline; }

a.yr-sp-tag-link {
  text-decoration: none;
  transition: all 0.2s;
}
a.yr-sp-tag-link:hover { background: #00B67A; color: white; }

/* Archive description */
.yr-sp-archive .yr-archive-desc {
  font-size: 16px; color: #4B5563; line-height: 1.6;
  max-width: 700px; margin: 0 auto 24px; text-align: center;
}

/* Pagination */
.yr-sp-pagination {
  display: flex; justify-content: center; gap: 4px;
  padding: 32px 0; margin-top: 24px;
  border-top: 1px solid #E5E9ED;
}
.yr-sp-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid #E5E9ED; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #374151;
  text-decoration: none; transition: all 0.2s;
}
.yr-sp-pagination .page-numbers:hover { border-color: #00B67A; color: #00B67A; }
.yr-sp-pagination .page-numbers.current {
  background: #00B67A; border-color: #00B67A; color: white;
}
.yr-sp-pagination .prev, .yr-sp-pagination .next {
  font-weight: 700; color: #00B67A;
}

/* Static filter links */
.yr-filter-links {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.yr-filter-extra {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px; width: 100%;
}
.yr-pill-count {
  font-size: 11px; color: #9CA3AF; margin-left: 2px;
}
.yr-pill-more {
  background: #f0f0f0; border: 1px dashed #9CA3AF;
  color: #6B7280; cursor: pointer; font-style: italic;
}
.yr-pill-more:hover { border-color: #00B67A; color: #00B67A; }
a.yr-pill { text-decoration: none; }
a.yr-pill:hover { border-color: #00B67A; color: #00B67A; }

/* ============================================================
   TOP PROVIDERS WIDGET
   ============================================================ */
.yr-sp-widget {
  background: #f8faf9; border: 2px solid #E5E9ED;
  border-radius: 16px; padding: 24px; margin: 24px 0;
}
.yr-sp-widget-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.yr-sp-widget-title h3 { font-size: 18px; font-weight: 800; color: #0F1A2A; margin: 0 0 4px; }
.yr-sp-widget-badge {
  font-size: 11px; font-weight: 600; color: #059669;
  background: #E6F9F1; padding: 3px 10px; border-radius: 8px;
}
.yr-sp-widget-all { color: #00B67A; font-weight: 600; font-size: 14px; text-decoration: none; }
.yr-sp-widget-all:hover { text-decoration: underline; }

.yr-sp-widget-list { display: flex; flex-direction: column; gap: 4px; }
.yr-sp-widget-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: white;
  border: 1px solid #f0f0f0; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.yr-sp-widget-item:hover { border-color: #00B67A; box-shadow: 0 2px 8px rgba(0,182,122,0.08); }

.yr-sp-widget-rank {
  font-size: 13px; font-weight: 800; color: #00B67A;
  min-width: 28px; text-align: center;
}
.yr-sp-widget-info { flex: 1; min-width: 0; }
.yr-sp-widget-name { display: block; font-size: 14px; font-weight: 700; color: #0F1A2A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yr-sp-widget-cat { display: block; font-size: 11px; color: #6B7280; }
.yr-sp-widget-score-col { text-align: right; min-width: 70px; }
.yr-sp-widget-score {
  display: block; font-size: 16px; font-weight: 800; color: #059669;
}
.yr-sp-widget-reviews { font-size: 11px; color: #9CA3AF; }
.yr-sp-widget-nodata { font-size: 12px; color: #9CA3AF; font-style: italic; }
.yr-sp-widget-claimed { font-size: 12px; color: #059669; font-weight: 700; }
.yr-sp-widget-footer { margin-top: 16px; text-align: center; }

@media (max-width: 600px) {
  .yr-sp-widget { padding: 16px; }
  .yr-sp-widget-item { padding: 8px; gap: 8px; }
}

/* Related Services Block */
.yr-sp-related-services {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #E5E9ED;
}
.yr-sp-related-services h3 {
  font-size: 18px; font-weight: 800; color: #0F1A2A; margin: 0 0 6px;
}
.yr-sp-related-desc {
  font-size: 13px; color: #6B7280; margin: 0 0 12px;
}
.yr-sp-related-list {
  display: flex; flex-direction: column; gap: 6px;
}
.yr-sp-related-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: white;
  border: 1px solid #f0f0f0; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.yr-sp-related-item:hover {
  border-color: #00B67A; box-shadow: 0 2px 8px rgba(0,182,122,0.08);
}
.yr-sp-related-type {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 8px; border-radius: 6px;
  flex-shrink: 0;
}
.yr-sp-related-type:contains('Citizenship') { background: #EEF2FF; color: #4338CA; }
.yr-sp-related-item:nth-child(3n+1) .yr-sp-related-type { background: #EEF2FF; color: #4338CA; }
.yr-sp-related-item:nth-child(3n+2) .yr-sp-related-type { background: #E6F9F1; color: #059669; }
.yr-sp-related-item:nth-child(3n+3) .yr-sp-related-type { background: #FEF3C7; color: #92400E; }
.yr-sp-related-title {
  flex: 1; font-size: 14px; font-weight: 600; color: #0F1A2A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yr-sp-related-arrow { color: #00B67A; font-weight: 700; flex-shrink: 0; }

@media (max-width: 600px) {
  .yr-sp-related-title { font-size: 13px; }
}

/* ============================================================
   REVIEWS DISPLAY
   ============================================================ */
.yr-sp-platforms {
  display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.yr-sp-platform-card {
  display: flex; align-items: center; gap: 8px;
  background: white; border: 1px solid #E5E9ED;
  border-radius: 10px; padding: 10px 16px;
}
.yr-sp-platform-name { font-size: 13px; font-weight: 700; color: #0F1A2A; }
.yr-sp-platform-rating { font-size: 14px; font-weight: 800; color: #F59E0B; }
.yr-sp-platform-count { font-size: 12px; color: #6B7280; }

.yr-sp-reviews-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 16px;
}
.yr-sp-review {
  background: white; border: 1px solid #f0f0f0;
  border-radius: 12px; padding: 16px;
}
.yr-sp-review-hidden { display: none; }
.yr-sp-review-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.yr-sp-review-author { display: flex; flex-direction: column; }
.yr-sp-review-name { font-size: 14px; font-weight: 700; color: #0F1A2A; }
.yr-sp-review-source {
  font-size: 11px; font-weight: 600; color: #6B7280;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.yr-sp-review-meta { display: flex; align-items: center; gap: 8px; }
.yr-sp-review-stars { color: #F59E0B; font-size: 14px; letter-spacing: 1px; }
.yr-sp-review-date { font-size: 12px; color: #9CA3AF; }
.yr-sp-review-title { font-size: 15px; font-weight: 700; color: #0F1A2A; margin-bottom: 6px; }
.yr-sp-review-text { font-size: 14px; color: #4B5563; line-height: 1.6; }

.yr-sp-reviews-more {
  display: block; width: 100%; padding: 12px;
  background: #f8faf9; border: 1px solid #E5E9ED;
  border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #00B67A;
  text-align: center; transition: all 0.2s;
}
.yr-sp-reviews-more:hover { border-color: #00B67A; background: #E6F9F1; }

.yr-sp-platform-links { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Global Programs Block */
.yr-sp-global-programs {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #E5E9ED;
}
.yr-sp-global-programs h3 { font-size: 18px; font-weight: 800; color: #0F1A2A; margin: 0 0 6px; }
.yr-sp-global-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.yr-sp-global-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: white;
  border: 1px solid #f0f0f0; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.yr-sp-global-item:hover { border-color: #00B67A; box-shadow: 0 2px 8px rgba(0,182,122,0.08); }
.yr-sp-gp-hidden { display: none; }
.yr-sp-global-country {
  font-size: 11px; color: #6B7280; background: #f0f0f0;
  padding: 2px 8px; border-radius: 6px; margin-left: auto; flex-shrink: 0;
}
/* ============================================
   Archive Filters — Additional Styles
   Append to css/yr-layout-fixes.css
   ============================================ */

/* Hidden pills (for "+N more" toggle) */
.yr-pill-hidden {
    display: none !important;
}

/* Active filters bar (chips) */
.yr-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #f8faf9;
    border: 1px solid #E5E9ED;
    border-radius: 10px;
}

.yr-active-label {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
}

.yr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #E6F9F1;
    color: #0F1A2A;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
}

.yr-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.yr-chip-remove:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #0F1A2A;
}

.yr-chip-clear {
    background: transparent;
    border: 1px solid #E5E9ED;
    color: #6B7280;
    cursor: pointer;
}

.yr-chip-clear:hover {
    border-color: #00B67A;
    color: #00B67A;
}

/* No results */
.yr-no-results {
    text-align: center;
    padding: 48px 24px;
    color: #6B7280;
    font-size: 15px;
}

.yr-no-results a {
    color: #00B67A;
    font-weight: 600;
    text-decoration: none;
}

.yr-no-results a:hover {
    text-decoration: underline;
}

/* ============================================
   Blog Archive Cards
   ============================================ */
.yr-blog-archive {
    max-width: 960px;
    margin: 0 auto;
}

.yr-blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.yr-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E5E9ED;
    border-radius: 14px;
    padding: 22px 20px 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.yr-blog-card:hover {
    border-color: #00B67A;
    box-shadow: 0 4px 16px rgba(0,182,122,0.10);
}

.yr-blog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.yr-blog-card-cat {
    display: inline-block;
    padding: 3px 10px;
    background: #E6F9F1;
    color: #00B67A;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.yr-blog-card-date {
    font-size: 12px;
    color: #9CA3AF;
}

.yr-blog-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0F1A2A;
    line-height: 1.35;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yr-blog-card:hover .yr-blog-card-title {
    color: #00B67A;
}

.yr-blog-card-excerpt {
    font-size: 13.5px;
    color: #6B7280;
    line-height: 1.55;
    margin: 0 0 auto;
    padding-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yr-blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.yr-blog-card-author {
    font-size: 12px;
    color: #9CA3AF;
}

.yr-blog-card-read {
    font-size: 13px;
    font-weight: 600;
    color: #00B67A;
}

@media (max-width: 900px) {
    .yr-blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .yr-blog-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Homepage — Top Providers Grid
   ============================================ */
.yr-home-providers .yr-section-sub {
    font-size: 14px;
    color: #6B7280;
    margin: 4px 0 0;
    max-width: 600px;
}

.yr-home-providers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.yr-home-sp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E5E9ED;
    border-radius: 12px;
    padding: 18px 16px 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.yr-home-sp-card:hover {
    border-color: #00B67A;
    box-shadow: 0 4px 16px rgba(0,182,122,0.10);
}

.yr-home-sp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.yr-home-sp-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00B67A;
    background: #E6F9F1;
    padding: 2px 8px;
    border-radius: 12px;
}

.yr-home-sp-claimed {
    font-size: 12px;
    color: #00B67A;
    font-weight: 600;
}

.yr-home-sp-name {
    font-size: 15px;
    font-weight: 700;
    color: #0F1A2A;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yr-home-sp-card:hover .yr-home-sp-name {
    color: #00B67A;
}

.yr-home-sp-domain {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 10px;
}

.yr-home-sp-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.yr-home-sp-score-num {
    font-size: 20px;
    font-weight: 800;
    color: #00B67A;
}

.yr-home-sp-stars {
    font-size: 13px;
    color: #F59E0B;
    font-weight: 600;
}

.yr-home-sp-reviews {
    font-size: 11px;
    color: #9CA3AF;
}

.yr-home-sp-country {
    font-size: 12px;
    color: #6B7280;
    margin-top: auto;
}

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

@media (max-width: 900px) {
    .yr-home-providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yr-home-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .yr-home-providers-grid {
        grid-template-columns: 1fr;
    }
    .yr-home-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Language Switcher (dropdown) ───────────────────────────────── */

/* Push switcher to the far right in the nav flex container */
.yr-lang-switcher {
    position: relative;
    margin-left: auto;
    order: 100;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Trigger button */
.yr-ls-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    background: transparent;
    border: 1px solid rgba(0, 182, 122, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.yr-ls-trigger:hover,
.yr-ls-trigger[aria-expanded="true"] {
    border-color: #00B67A;
    background: rgba(0, 182, 122, 0.06);
    color: #00B67A;
}
.yr-ls-trigger svg { flex-shrink: 0; }
.yr-ls-chevron {
    transition: transform 0.2s;
    opacity: 0.6;
}
.yr-ls-trigger[aria-expanded="true"] .yr-ls-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.yr-ls-label {
    letter-spacing: 0.4px;
}

/* Dropdown list */
.yr-ls-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #E5E9ED;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 9999;
}
.yr-ls-dropdown.yr-ls-open {
    display: block;
}

/* Each option */
.yr-ls-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    text-decoration: none !important;
    transition: background 0.12s;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.yr-ls-option:hover {
    background: #f0fdf8;
    color: #00B67A;
}
.yr-ls-option--current {
    background: rgba(0, 182, 122, 0.08);
    color: #00B67A;
    font-weight: 600;
    pointer-events: none;
}
.yr-ls-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.yr-ls-name { flex: 1; }
.yr-ls-code {
    font-size: 11px;
    font-weight: 700;
    color: inherit;
    opacity: 0.6;
    letter-spacing: 0.5px;
}
.yr-ls-check { margin-left: auto; flex-shrink: 0; color: #00B67A; }

/* Mobile: always visible, dropdown opens upward if near bottom */
@media (max-width: 768px) {
    .yr-lang-switcher {
        margin-left: 0;
        order: 0;
        /* Show on mobile even when GP hides other nav elements */
        display: flex !important;
    }
    .yr-ls-dropdown {
        right: 0;
        left: auto;
    }
}

/* GP hides .inside-navigation > * on mobile — override for our switcher */
.has-inline-mobile-toggle #site-navigation .inside-navigation > .yr-lang-switcher {
    display: flex !important;
}

/* ============================================================
   LEAD MODAL
   ============================================================ */
.yr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 42, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}
.yr-modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.yr-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #6B7280;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}
.yr-modal-close:hover { color: #0F1A2A; }
.yr-modal h2 {
    font-size: 22px;
    color: #0F1A2A;
    margin: 0 0 8px;
}
.yr-modal-sub {
    color: #6B7280;
    font-size: 14px;
    margin: 0 0 24px;
}
.yr-field { margin-bottom: 16px; }
.yr-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.yr-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E5E9ED;
    border-radius: 10px;
    font-size: 15px;
    color: #0F1A2A;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.yr-field input:focus { border-color: #00B67A; }
.yr-modal-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00B67A, #009966);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s;
}
.yr-modal-submit:hover { opacity: 0.9; }
.yr-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.yr-modal-disclaimer {
    font-size: 12px;
    color: #9CA3AF;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}
.yr-form-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}
.yr-form-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 0;
}
.yr-form-success p {
    color: #0F1A2A;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}
@media (max-width: 480px) {
    .yr-modal { padding: 28px 20px; }
    .yr-modal h2 { font-size: 20px; }
}

/* ============================================================
   SPONSOR CARDS
   ============================================================ */
.yr-sp-card-sponsor .yr-sp-card {
    background: linear-gradient(135deg, #f7fdf9 0%, #eef8f3 100%);
    border: 1.5px solid #b6e8d3;
    box-shadow: 0 2px 12px rgba(0, 182, 122, 0.08);
}
.yr-sp-card-sponsor .yr-sp-card:hover {
    border-color: #00B67A;
    box-shadow: 0 4px 20px rgba(0, 182, 122, 0.15);
}
.yr-sp-sponsor-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: rgba(0, 182, 122, 0.10);
    border: 1px solid rgba(0, 182, 122, 0.30);
    color: #007a52;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: auto;
}
.yr-sp-sponsor-badge::before {
    content: '★';
    font-size: 10px;
}

/* ============================================================
   FLOATING BUTTONS: Back to Top + Free Consultation
   ============================================================ */

/* Back to top */

/* ============================================================
   FLOATING BUTTONS: Back to Top + Free Consultation
   ============================================================ */

/* Back to top */
.yr-back-to-top {
  position: fixed;
  bottom: 80px; /* always above float-cta (24px + 44px height + 12px gap) */
  right: 24px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E6F9F1;
  border: 1.5px solid #b6e8d3;
  box-shadow: 0 4px 16px rgba(0,182,122,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
  pointer-events: none;
}
.yr-back-to-top.yr-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.yr-back-to-top:hover {
  background: #00B67A;
  border-color: #00B67A;
  box-shadow: 0 6px 24px rgba(0,182,122,0.30);
}
.yr-back-to-top svg {
  color: #00B67A;
  transition: color 0.2s;
  display: block;
}
.yr-back-to-top:hover svg { color: #fff; }

/* Free consultation floating button (desktop only) */
.yr-float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #00B67A, #009966);
  color: #fff;
  text-decoration: none;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 4px 20px rgba(0,182,122,0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.yr-float-cta.yr-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.yr-float-cta:hover {
  box-shadow: 0 8px 32px rgba(0,182,122,0.45);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.yr-float-cta svg { flex-shrink: 0; }

/* Float CTA: reset button defaults */
button.yr-float-cta {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  -webkit-appearance: none;
}

/* Mobile: hide float-cta, adjust back-to-top */
@media (max-width: 768px) {
  .yr-float-cta { display: none !important; }
  /* Pages WITH sticky CTA — above the bar */
  .single-citizenship_program .yr-back-to-top,
  .single-residence_program .yr-back-to-top,
  .single-post .yr-back-to-top,
  .single-business_setup .yr-back-to-top {
    bottom: 88px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  /* Archive/other pages — float-cta hidden, back-to-top at bottom */
  .yr-back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* Hide Free Consultation float button on service_provider pages */
.single-service_provider .yr-float-cta {
  display: none !important;
}

/* Company representative floating button */
.yr-company-rep-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #374151;
  border: 1px solid #E5E9ED;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: box-shadow 0.2s, border-color 0.2s, color 0.2s;
  z-index: 998;
}
.yr-company-rep-btn:hover {
  border-color: #00B67A;
  color: #00B67A;
  box-shadow: 0 4px 16px rgba(0,182,122,0.15);
}

/* ── Contact page form ── */
.yr-contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.yr-contact-form .yr-field {
  margin-bottom: 20px;
}
.yr-contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0F1A2A;
  margin-bottom: 6px;
}
.yr-cf-optional {
  font-weight: 400;
  color: #9CA3AF;
  font-size: 12px;
  margin-left: 4px;
}
.yr-contact-form input,
.yr-contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E5E9ED;
  border-radius: 10px;
  font-size: 15px;
  color: #0F1A2A;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.yr-contact-form input:focus,
.yr-contact-form textarea:focus {
  outline: none;
  border-color: #00B67A;
  box-shadow: 0 0 0 3px rgba(0,182,122,0.10);
}
.yr-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.yr-cf-row.yr-cf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .yr-cf-row.yr-cf-two-col { grid-template-columns: 1fr; }
}
.yr-cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00B67A, #009966);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 13px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.yr-cf-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.yr-cf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.yr-cf-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}
.yr-cf-success h3 { font-size: 22px; color: #0F1A2A; margin: 0; }
.yr-cf-success p  { color: #6B7280; margin: 0; }

/* SP CTA button after rating — v1.0.46 */
.yr-sp-cta-primary { margin: 20px 0 28px; }
.yr-sp-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 28px;
  background: linear-gradient(135deg, #00B67A, #009966);
  color: #fff !important; font-size: 16px; font-weight: 600;
  text-decoration: none !important; transition: opacity .2s, transform .2s;
}
.yr-sp-cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.yr-sp-cta-btn svg { flex-shrink: 0; }

/* Claim profile button — v1.0.47 */
.yr-sp-claim-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px;
  border: 1.5px solid #00B67A; background: #E6F9F1;
  color: #00B67A; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: .2s; white-space: nowrap;
}
.yr-sp-claim-btn:hover { background: #00B67A; color: #fff; }

/* ─── SP Disclaimer ─── */
.yr-sp-disclaimer { margin-top: 24px; padding: 16px 20px; background: #f8faf9; border: 1px solid #E5E9ED; border-radius: 12px; font-size: 13px; color: #9CA3AF; line-height: 1.5; }
.yr-sp-disclaimer a { color: #6B7280; text-decoration: underline; }
.yr-sp-disclaimer a:hover { color: #374151; }

/* ─── Footer Legal Links ─── */
.yr-footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.yr-footer-legal-links a { color: inherit; text-decoration: none; }
.yr-footer-legal-links a:hover { text-decoration: underline; }
.yr-footer-sep { color: #6B7280; margin: 0 4px; }

/* SP Search Bar — v1.0.49 */
.yr-sp-search-bar { margin-bottom: 20px; }
.yr-sp-search-form { display: flex; align-items: center; background: #fff; border: 2px solid #E5E9ED; border-radius: 12px; overflow: hidden; transition: border-color .2s; position: relative; }
.yr-sp-search-form:focus-within { border-color: #00B67A; }
.yr-sp-search-icon { position: absolute; left: 16px; pointer-events: none; }
.yr-sp-search-input { flex: 1; border: none; outline: none; padding: 14px 16px 14px 48px; font-size: 15px; background: transparent; min-width: 0; }
.yr-sp-search-input::placeholder { color: #9CA3AF; }
.yr-sp-search-clear { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #9CA3AF; font-size: 20px; text-decoration: none; cursor: pointer; }
.yr-sp-search-clear:hover { color: #374151; }
.yr-sp-search-btn { padding: 10px 24px; background: #00B67A; color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; white-space: nowrap; }
.yr-sp-search-btn:hover { background: #009966; }
@media (max-width: 640px) {
  .yr-sp-search-btn { padding: 10px 16px; font-size: 13px; }
}

/* Review language label — v1.0.51 */
.yr-sp-review-lang { display: inline-block; font-size: 11px; color: #9CA3AF; margin-top: 6px; padding: 2px 8px; background: #f3f4f6; border-radius: 4px; }
