/* Blog Hub V4 - Premium B2B Resource Center Styles */

/* Base container for hub content */
.blog-hub .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.blog-hub__hero {
  padding: 72px 0 56px;
  background: #fff;
  text-align: center;
}

.blog-hub__hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.blog-hub__hero .hero-subtitle {
  font-size: 18px;
  color: #4a5568;
  max-width: 680px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.blog-hub__hero .hero-note {
  font-size: 14px;
  color: #64748b;
}

/* Section base styles */
.blog-hub section {
  padding: 64px 0;
}

/* Country guide groups span two adjacent sections (blog-hub__more ->
   blog-hub__guides). The generic 64px section padding stacked to 128px of
   blank space at that one boundary (Netherlands -> UAE), while every other
   adjacent pair used the accordion's own 12px rhythm. Collapse the boundary
   so all country cards share one consistent vertical spacing.
   NOTE: the selector must out-specify `.blog-hub section` (0-1-1), so it is
   written as `section.blog-hub__more` (0-2-1). */
.blog-hub section.blog-hub__more { padding-bottom: 0; }
.blog-hub section.blog-hub__more + .blog-hub__guides { padding-top: 12px; }

.blog-hub section h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1e3a5f;
  text-align: center;
  margin: 0 0 32px;
}

/* Destination Section - Primary */
.blog-hub__destinations {
  background: #f7f9fc;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.destination-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.destination-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.1);
}

.destination-card__flag {
  font-size: 20px;
  margin-bottom: 8px;
}

.destination-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 12px;
}

.destination-card > p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.5;
}

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

.destination-links li {
  margin-bottom: 10px;
}

.destination-links a {
  font-size: 14px;
  color: #1e3a5f;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s ease;
}

.destination-links a:hover {
  color: var(--orange-surface);
}

.destination-links .view-all {
  color: var(--orange-surface);
  font-weight: 500;
  margin-top: 8px;
  border-bottom: none;
}

/* Featured Section */
.blog-hub__featured {
  background: #fff;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.featured-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12);
  border-color: #cbd5e1;
}

.featured-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.featured-card__label--accent {
  color: var(--orange-surface);
}

.featured-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 10px;
  line-height: 1.3;
}

.featured-card p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px;
  flex-grow: 1;
  line-height: 1.5;
}

.featured-card__link {
  font-size: 14px;
  font-weight: 500;
  color: #1e3a5f;
}

.featured-card:hover .featured-card__link {
  color: #f97316;
}

.featured-card--highlight {
  border-color: #f97316;
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

/* Topic Section */
.blog-hub__topics {
  background: #f7f9fc;
}

.topic-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.topic-tile {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.topic-tile:hover {
  border-color: #1e3a5f;
  transform: translateY(-2px);
}

.topic-tile__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 6px;
}

.topic-tile__desc {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* More Guides Section */
.blog-hub__more {
  background: #fff;
}

/* Hide old grid-based layout - using accordion instead */
.guides-grid {
  display: none;
}

.guide-group h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-list li {
  margin-bottom: 0;
}

.guide-list a {
  font-size: 14px;
  color: #1e3a5f;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s ease;
}

.guide-list a:hover {
  color: #f97316;
}

/* More Destinations — semantic nav list (scoped to blog hub) */
.blog-hub .more-destinations {
  grid-column: 1 / -1;
  display: block;
  padding-top: 24px;
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.blog-hub .more-destinations__title {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 14px;
}

.blog-hub .more-destinations__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.blog-hub .more-destinations__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #dde5ee;
  border-radius: 10px;
  color: #1e3a5f;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.blog-hub .more-destinations__list a:hover,
.blog-hub .more-destinations__list a:focus-visible {
  border-color: #f26522;
  color: #f26522;
}

/* Guide Accordion */
.guide-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-accordion__item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.guide-accordion__item[open] {
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

.guide-accordion__header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: #f8fafc;
  transition: background 0.2s ease;
  list-style: none;
}

.guide-accordion__header::-webkit-details-marker {
  display: none;
}

.guide-accordion__header:hover {
  background: #f1f5f9;
}

.guide-accordion__title {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  flex: 1;
}

.guide-accordion__count {
  font-size: 12px;
  color: #64748b;
  margin-right: 12px;
}

.guide-accordion__icon {
  font-size: 18px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.guide-accordion__item[open] .guide-accordion__icon {
  transform: rotate(45deg);
}

.guide-accordion__content {
  padding: 0 20px 16px;
}

.guide-list a span:last-child {
  color: #94a3b8;
  font-size: 16px;
}

.guide-badge {
  font-size: 10px;
  font-weight: 600;
  background: #e2e8f0;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* CTA Section */
.blog-hub__cta {
  background: #1e3a5f;
  padding: 72px 0;
}

.blog-hub__cta .blog-cta--final {
  text-align: center;
  background: transparent;
  padding: 0;
}

.blog-hub__cta .blog-cta--final h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 16px;
}

.blog-hub__cta .blog-cta--final p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .destination-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .topic-tiles {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hub .container {
    padding: 0 20px;
  }

  section {
    padding: 48px 0;
  }

  section h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .blog-hub__hero {
    padding: 48px 0 40px;
  }

  .blog-hub__hero h1 {
    font-size: 32px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .topic-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .topic-tile {
    padding: 16px;
  }

  /* Accordion Mobile */
  .guide-accordion__header {
    padding: 14px 16px;
  }

  .guide-accordion__title {
    font-size: 14px;
  }

  .guide-accordion__count {
    font-size: 11px;
  }

  .guide-list a {
    padding: 10px 0;
    font-size: 13px;
  }

  /* .more-destinations now a scoped grid — responsive rules below */

  .guides-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .destination-card,
  .featured-card {
    padding: 22px;
  }
  
  .blog-hub__cta {
    padding: 48px 0;
  }
  
  .blog-hub__cta .blog-cta--final h3 {
    font-size: 24px;
  }
}

/* More Destinations — responsive (scoped to blog hub) */
@media (max-width: 640px) {
  .blog-hub .more-destinations__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .blog-hub .more-destinations__list {
    grid-template-columns: 1fr;
  }
}

/* Mobile Footer social — SCOPED to blog hub only.
   Mirrors approved V4 article inline style:
   display:flex; gap:10px; align-items:center; margin-top:12px
   Adds min 36x36 tap target per gate requirement. */
main.blog-hub + footer.site-footer .footer__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
main.blog-hub + footer.site-footer .footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}
