/* ============================================
   BLOG - Category colour system
   ============================================ */

/* Accent colours per category */
.cat-blue   { --cat-color: #3b82f6; --cat-bg: #eff6ff; }
.cat-green  { --cat-color: #22c55e; --cat-bg: #f0fdf4; }
.cat-purple { --cat-color: #8b5cf6; --cat-bg: #f5f3ff; }
.cat-orange { --cat-color: #ff9c1d; --cat-bg: #fff7ed; }
.cat-navy   { --cat-color: #181d55; --cat-bg: #f0f1fb; }

/* ============================================
   BLOG - Listing hero
   ============================================ */

.blog-hero {
  background: linear-gradient(160deg, #181d55 0%, #252d7e 100%);
  padding: 10rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* subtle grid overlay */
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ff9c1d;
  margin-bottom: 16px;
}

.blog-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9c1d;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.blog-hero h1 {
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.blog-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.blog-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

.blog-hero-stats strong {
  color: #fff;
  font-weight: 700;
}

.blog-hero-stat-sep {
  opacity: 0.3;
}

/* ============================================
   BLOG - Featured section
   ============================================ */

.blog-featured-section {
  padding: 56px 0 0;
  background: #fff;
}

.blog-card-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eaf0;
  background: #fff;
  box-shadow: 0 4px 24px rgba(24,29,85,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card-featured:hover {
  box-shadow: 0 16px 48px rgba(24,29,85,0.12);
  transform: translateY(-3px);
}

.blog-card-featured-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f0f2f8;
  min-height: 360px;
}

.blog-card-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card-featured:hover .blog-card-featured-img {
  transform: scale(1.04);
}

.blog-card-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #ff9c1d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}

.blog-card-featured-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.blog-cat-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cat-color, #ff9c1d);
  background: var(--cat-bg, #fff7ed);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}

.blog-card-featured-title-link {
  text-decoration: none;
}

.blog-card-featured-title {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #181d55 !important;
  line-height: 1.35 !important;
  margin-bottom: 14px !important;
  transition: color 0.2s;
}

.blog-card-featured-title-link:hover .blog-card-featured-title {
  color: var(--cat-color, #ff9c1d) !important;
}

.blog-card-featured-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.blog-card-featured-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blog-card-featured-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: #aaa;
}

.blog-card-featured-meta-item i {
  color: #ff9c1d;
  font-size: 0.78rem;
}

.blog-card-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #181d55;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s, gap 0.2s;
}

.blog-card-featured-cta:hover {
  background: #ff9c1d;
  gap: 12px;
}

/* category-tinted CTA option (unused for now, fallback to navy) */
.cat-btn-blue:hover   { background: #3b82f6; }
.cat-btn-green:hover  { background: #22c55e; }
.cat-btn-purple:hover { background: #8b5cf6; }
.cat-btn-orange:hover { background: #ff9c1d; }
.cat-btn-navy:hover   { background: #2d348a; }

/* ============================================
   BLOG - Section label
   ============================================ */

.blog-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f2f8;
  margin-bottom: 0;
}

/* ============================================
   BLOG - Listing section + grid
   ============================================ */

.blog-listing-section {
  padding: 48px 0 80px;
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

/* ============================================
   BLOG - Card (shared: listing, category, related)
   ============================================ */

.blog-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8eaf0;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(24,29,85,0.09);
  border-color: #d0d4e8;
}

/* Image wrapper — now a link */
.blog-card-img-link {
  display: block;
  text-decoration: none;
}

.blog-card-image {
  width: 100%;
  height: 196px;
  overflow: hidden;
  background: #f0f2f8;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

/* Category badge overlaid on image */
.blog-card-cat-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
  color: var(--cat-color, #ff9c1d);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.6);
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title as link */
.blog-card-title-link {
  text-decoration: none;
}

.blog-card-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #181d55 !important;
  line-height: 1.45 !important;
  margin-bottom: 10px !important;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-title-link:hover .blog-card-title {
  color: #ff9c1d !important;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags row inside card */
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  flex: 1;
  align-items: flex-end;
}

.blog-card-tag {
  font-size: 0.72rem;
  color: #999;
  background: #f4f5fa;
  border-radius: 100px;
  padding: 3px 10px;
  transition: background 0.2s, color 0.2s;
}

.blog-card:hover .blog-card-tag,
.blog-card-tag:hover {
  background: #fff4e0;
  color: #ff9c1d;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0f2f8;
  margin-top: auto;
}

.blog-read-time {
  font-size: 0.78rem;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-read-more {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ff9c1d;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease, color 0.2s;
}

.blog-read-more:hover {
  gap: 10px;
  color: #181d55;
}

/* ============================================
   BLOG - Post Page
   ============================================ */

/* Full-width title hero — same treatment as .page-hero on other pages */
.blog-post-hero {
  background: #f6f7fb;
  padding: 10rem 0 2.5rem;
  border-bottom: 1px solid #e0e3f0;
}

/* Content + sidebar area below the hero */
.blog-post-section {
  padding: 36px 0 80px;
  background: #fff;
}

/* Breadcrumb — sits inside blog-post-hero */
.blog-breadcrumb {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-breadcrumb a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: #ff9c1d;
}

.blog-breadcrumb-sep {
  color: #ddd;
}

.blog-breadcrumb-current {
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* Two-column layout: main content + sticky sidebar */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.blog-post-main {
  min-width: 0;
}

.blog-post-category {
  display: inline-block;
  background: #fff4e0;
  color: #ff9c1d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.blog-post-title {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #181d55 !important;
  line-height: 1.3 !important;
  margin-bottom: 20px !important;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8eaf0;
}

.blog-post-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #888;
}

.blog-post-meta-item i {
  color: #ff9c1d;
  font-size: 0.8rem;
}

/* Featured image */
.blog-post-featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
  background: #f0f2f8;
}

.blog-post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Secondary image */
.blog-post-secondary-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin: 36px 0;
  background: #f0f2f8;
  border: 1px solid #e8eaf0;
}

.blog-post-secondary-image img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.blog-post-image-label {
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  padding: 8px 16px;
  background: #fafbff;
}

/* ============================================
   MDX Content Typography
   ============================================ */

.blog-post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #444;
}

.blog-post-content h2 {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #181d55 !important;
  margin: 40px 0 14px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid #fff4e0;
}

.blog-post-content h3 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #181d55 !important;
  margin: 28px 0 10px !important;
}

.blog-post-content p {
  margin-bottom: 18px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 18px 28px;
}

.blog-post-content li {
  margin-bottom: 6px;
}

.blog-post-content strong {
  color: #181d55;
  font-weight: 600;
}

.blog-post-content a {
  color: #ff9c1d;
  text-decoration: underline;
  text-decoration-color: rgba(255, 156, 29, 0.4);
  transition: text-decoration-color 0.2s;
}

.blog-post-content a:hover {
  text-decoration-color: #ff9c1d;
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e8eaf0;
}

.blog-tag {
  background: #f5f6fa;
  color: #666;
  font-size: 0.78rem;
  padding: 5px 13px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.blog-tag:hover {
  background: #fff4e0;
  color: #ff9c1d;
}

/* ============================================
   STICKY RIGHT SIDEBAR
   ============================================ */

.blog-post-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-related {
  background: #f6f7fb;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid #e8eaf0;
}

.sidebar-related-title {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #aaa !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid #fff4e0;
}

.sidebar-post-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8eaf0;
  text-decoration: none;
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8eaf0;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-info {
  flex: 1;
  min-width: 0;
}

.sidebar-post-category {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #ff9c1d !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px !important;
}

.sidebar-post-title {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #181d55 !important;
  line-height: 1.4 !important;
  margin-bottom: 6px !important;
  transition: color 0.2s;
}

.sidebar-post-item:hover .sidebar-post-title {
  color: #ff9c1d !important;
}

.sidebar-post-meta {
  font-size: 0.75rem !important;
  color: #aaa !important;
  font-weight: 400 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   RELATED POSTS — bottom section (mobile only)
   ============================================ */

@media (min-width: 1025px) {
  .related-posts-section {
    display: none;
  }
}

.related-posts-section {
  background: #f8f9ff;
  padding: 60px 0 68px;
}

.related-posts-header {
  text-align: center;
  margin-bottom: 36px;
}

.related-posts-header h2 {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #181d55 !important;
  margin-bottom: 8px !important;
}

.related-posts-header p {
  color: #888;
  font-size: 0.95rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ============================================
   BLOG — More in Category (post page)
   ============================================ */

.blog-more-category-section {
  background: #f8f9ff;
  padding: 60px 0 72px;
  border-top: 1px solid #e8eaf0;
}

.blog-more-category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-more-category-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #181d55 !important;
  margin: 0 !important;
}

.blog-more-category-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ff9c1d;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.blog-more-category-link:hover {
  opacity: 0.75;
}

.blog-more-category-grid {
  margin-top: 28px !important;
}

/* ============================================
   Responsive — Tablet (≤1024px)
   ============================================ */

@media (max-width: 1024px) {
  /* Featured card stacks */
  .blog-card-featured {
    grid-template-columns: 1fr;
  }

  .blog-card-featured-img-wrap {
    min-height: 280px;
    max-height: 320px;
  }

  .blog-card-featured-body {
    padding: 28px 32px;
  }

  .blog-card-featured-title {
    font-size: 1.3rem !important;
  }

  /* Blog grid: 2 columns on tablet */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  /* Post layout: single column */
  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-post-sidebar {
    display: none;
  }
}

/* ============================================
   Responsive — Mobile (≤768px)
   ============================================ */

@media (max-width: 768px) {
  /* Hero */
  .blog-hero {
    padding-top: 9rem;
    padding-bottom: 2.5rem;
  }

  .blog-hero h1 {
    font-size: 1.75rem;
  }

  .blog-hero p {
    font-size: 0.95rem;
  }

  .blog-hero-stats {
    font-size: 0.82rem;
    gap: 8px;
  }

  /* Featured card: stack vertically */
  .blog-card-featured {
    grid-template-columns: 1fr;
  }

  .blog-card-featured-img-wrap {
    min-height: 220px;
    max-height: 260px;
  }

  .blog-card-featured-body {
    padding: 22px 20px;
    gap: 0;
  }

  .blog-card-featured-title {
    font-size: 1.15rem !important;
  }

  .blog-card-featured-desc {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .blog-card-featured-cta {
    width: 100%;
    justify-content: center;
  }

  /* Grid: single column on mobile */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .blog-card-image {
    height: 176px;
  }

  /* Post hero */
  .blog-post-hero {
    padding-top: 8rem;
    padding-bottom: 2rem;
  }

  .blog-post-section {
    padding: 24px 0 48px;
  }

  .blog-post-title {
    font-size: 1.4rem !important;
  }

  .blog-post-meta {
    gap: 12px;
  }

  .blog-post-content h2 {
    font-size: 1.2rem !important;
  }

  .blog-post-content h3 {
    font-size: 1rem !important;
  }

  .blog-breadcrumb-current {
    max-width: 160px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  /* More category section */
  .blog-more-category-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Responsive — Small mobile (≤480px)
   ============================================ */

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 1.5rem;
  }

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

  .blog-card-featured-title {
    font-size: 1.05rem !important;
  }

  .blog-hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .blog-hero-stat-sep {
    display: none;
  }
}

/* ============================================
   BLOG — Category Tabs (listing + category pages)
   ============================================ */

.blog-category-tabs-section {
  background: #fff;
  padding: 20px 0 0;
  border-bottom: 2px solid #e8eaf0;
}

.blog-category-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.blog-category-tab {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.blog-category-tab:hover {
  color: #181d55;
  border-bottom-color: #181d55;
}

.blog-category-tab.active {
  color: #ff9c1d;
  border-bottom-color: #ff9c1d;
}

/* Empty state for category pages with no posts */
.blog-empty-state {
  text-align: center;
  padding: 60px 0;
  color: #888;
  font-size: 1rem;
}

/* ============================================
   BLOG — Other Categories (category page footer)
   ============================================ */

.blog-other-categories {
  background: #f6f7fb;
  padding: 48px 0;
  border-top: 1px solid #e8eaf0;
  text-align: center;
}

.blog-other-categories-label {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #aaa !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px !important;
}

.blog-other-categories-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.blog-other-category-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid #e0e3f0;
  color: #181d55;
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.blog-other-category-pill:hover {
  background: #181d55;
  border-color: #181d55;
  color: #fff;
}


@media (max-width: 768px) {
  .blog-category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .blog-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .blog-other-categories {
    padding: 36px 0;
  }

  .blog-more-category-section {
    padding: 44px 0 52px;
  }

  .blog-more-category-title {
    font-size: 1.2rem !important;
  }

}

/* ============================================
   WHERE WE SERVE — Linked Cards
   ============================================ */

a.wws-card-link {
  text-decoration: none;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.wws-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(24, 29, 85, 0.12);
}

.wws-page-badge {
  margin-left: auto;
  font-size: 0.78rem;
  color: #FF9C1D;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================
   COUNTRY PAGES
   ============================================ */

/* Flag + country badge in hero */
.country-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 156, 29, 0.12);
  color: #ff9c1d;
  border: 1px solid rgba(255, 156, 29, 0.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Challenges section — same visual weight as benefits but lighter bg */
.country-challenges-section {
  background: #f6f7fb;
  padding: 80px 0;
}

.country-challenges-section .benefits-header h2 {
  color: #181d55 !important;
}

.country-challenges-section .benefits-header p {
  color: rgba(24, 29, 85, 0.65) !important;
}

.country-challenges-section .benefit-text {
  color: #181d55 !important;
}

.country-challenges-section .benefit-text-details {
  color: rgba(24, 29, 85, 0.65) !important;
}

/* CTA section */
.cta-section {
  background: #f6f7fb;
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid #e0e3f0;
}

.cta-section h2 {
  color: #181d55 !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(24, 29, 85, 0.65);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Industries pill section */
.country-industries-section {
  padding: 60px 0;
  background: #fff;
  text-align: center;
  border-top: 1px solid #e8eaf0;
  border-bottom: 1px solid #e8eaf0;
}

.country-industries-section h2 {
  color: #181d55 !important;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.country-industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.country-industry-tag {
  display: inline-block;
  background: #181d55;
  color: #fff;
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Optional second image section */
.country-image2-section {
  padding: 60px 0;
  background: #f6f7fb;
  text-align: center;
}

.country-image2 {
  max-width: 860px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(24, 29, 85, 0.10);
}

/* FAQs section */
.country-faqs-section {
  padding: 80px 0;
  background: #fff;
}

.country-faqs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 2.5rem;
}

.country-faq-item {
  background: #f6f7fb;
  border-left: 3px solid #ff9c1d;
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
}

.country-faq-q {
  color: #181d55 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  line-height: 1.4;
}

.country-faq-a {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .country-faqs-grid {
    grid-template-columns: 1fr;
  }

  .country-challenges-section,
  .country-faqs-section,
  .cta-section {
    padding: 48px 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .country-industries-section {
    padding: 40px 0;
  }

  .country-image2-section {
    padding: 36px 0;
  }
}
