/* ============================================================
   GlobexGo Travel Blog — Stylesheet
   Dark-themed blog layout for listing + individual post pages
   ============================================================ */

/* ------------------------------------------------------------
   1. BASE (reset is in style.css)
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   2. BLOG HERO SECTION
   ------------------------------------------------------------ */

.blog-hero {
  width: 100%;
  padding: 140px 24px 40px;
  text-align: center;
}

.blog-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.15;
}

.blog-hero-subtitle {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #8896a6;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   3. CATEGORY FILTER TABS
   ------------------------------------------------------------ */

.blog-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px 40px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.blog-categories::-webkit-scrollbar {
  display: none;
}

.blog-category-tab {
  flex-shrink: 0;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #1e2a38;
  background: transparent;
  color: #8896a6;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
}

.blog-category-tab:hover,
.blog-category-tab.active {
  background: #1a7fd4;
  color: #ffffff;
  border-color: #1a7fd4;
}

/* ------------------------------------------------------------
   4. POST GRID (LISTING)
   ------------------------------------------------------------ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

/* ------------------------------------------------------------
   5. POST CARD
   ------------------------------------------------------------ */

.blog-card {
  background: #101820;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e2a38;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: blogFadeIn 0.5s ease forwards;
  opacity: 0;
}

.blog-card:nth-child(1) { animation-delay: 0s; }
.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.2s; }
.blog-card:nth-child(4) { animation-delay: 0.3s; }
.blog-card:nth-child(5) { animation-delay: 0.4s; }
.blog-card:nth-child(6) { animation-delay: 0.5s; }
.blog-card:nth-child(7) { animation-delay: 0.6s; }
.blog-card:nth-child(8) { animation-delay: 0.7s; }
.blog-card:nth-child(9) { animation-delay: 0.8s; }

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: #1a7fd4;
}

/* Card Image */
.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

/* Card Image Wrapper (overflow clip for scale) */
.blog-card-img-wrapper {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

/* Card Content */
.blog-card-content {
  padding: 20px;
}

/* Category Badge */
.blog-badge {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a7fd4;
  background: rgba(26, 127, 212, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Card Title */
.blog-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card:hover .blog-card-title,
.blog-card:hover .blog-card-title a {
  color: #1a7fd4;
}

/* Card Excerpt */
.blog-card-excerpt {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  color: #8896a6;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Meta */
.blog-card-meta {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 16px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  color: #5a6b7d;
}

.blog-card-meta-separator::before {
  content: "\00B7";
}

/* ------------------------------------------------------------
   6. EMPTY STATE
   ------------------------------------------------------------ */

.blog-empty {
  text-align: center;
  color: #5a6b7d;
  padding: 80px 24px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   7. NEWSLETTER SECTION
   ------------------------------------------------------------ */

.blog-newsletter {
  max-width: 640px;
  margin: 0 auto 80px;
  padding: 48px 32px;
  background: #101820;
  border: 1px solid #1e2a38;
  border-radius: 16px;
  text-align: center;
}

.blog-newsletter-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 8px;
}

.blog-newsletter-subtitle {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  color: #8896a6;
  margin-bottom: 24px;
  line-height: 1.5;
}

.blog-newsletter-form {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.blog-newsletter-input {
  flex: 1;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  background: #080c10;
  border: 1px solid #1e2a38;
  border-radius: 8px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.25s ease;
}

.blog-newsletter-input::placeholder {
  color: #5a6b7d;
}

.blog-newsletter-input:focus {
  border-color: #1a7fd4;
}

.blog-newsletter-btn {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  background: #1a7fd4;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.blog-newsletter-btn:hover {
  background: #1567b0;
}

/* ============================================================
   8. INDIVIDUAL POST — BREADCRUMBS
   ============================================================ */

.blog-post {
  padding-top: 120px;
}

.blog-breadcrumbs {
  /* Reset any inherited nav/grid styles */
  display: block !important;
  position: static !important;
  height: auto !important;
  z-index: auto !important;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  grid-template-columns: none !important;
  /* Breadcrumb styles */
  max-width: 720px;
  margin: 0 auto 16px;
  padding: 0 24px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  color: #5a6b7d;
}

.blog-breadcrumbs a {
  color: #8896a6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumbs a:hover {
  color: #1a7fd4;
}

.blog-breadcrumbs span[aria-hidden] {
  margin: 0 8px;
  color: #5a6b7d;
  font-size: 12px;
}

.blog-breadcrumbs > span:last-child {
  color: #d0d5dd;
}

/* ------------------------------------------------------------
   9. POST HEADER
   ------------------------------------------------------------ */

.blog-post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-post-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-post-readtime {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  color: #5a6b7d;
}

.blog-post-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-post-author-date {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  color: #8896a6;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   10. FEATURED IMAGE
   ------------------------------------------------------------ */

.blog-post-hero-img {
  display: block;
  max-width: 960px;
  width: 100%;
  margin: 0 auto 40px;
  border-radius: 12px;
  aspect-ratio: auto;
}

/* ------------------------------------------------------------
   11. POST BODY
   ------------------------------------------------------------ */

.blog-post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: #d0d5dd;
}

.blog-post-body p {
  margin-bottom: 24px;
}

.blog-post-body h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #ffffff;
  margin: 48px 0 16px;
  line-height: 1.3;
}

.blog-post-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #ffffff;
  margin: 36px 0 12px;
  line-height: 1.35;
}

.blog-post-body a {
  color: #1a7fd4;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.blog-post-body a:hover {
  text-decoration: underline;
}

.blog-post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 24px 0;
  display: block;
}

.blog-post-body figure {
  margin: 32px 0;
}

.blog-post-body figcaption {
  font-size: 13px;
  color: #5a6b7d;
  text-align: center;
  margin-top: 8px;
}

.blog-post-body blockquote {
  border-left: 3px solid #1a7fd4;
  padding: 16px 24px;
  margin: 24px 0;
  background: #0d1420;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #a0aab5;
}

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.blog-post-body li {
  margin-bottom: 8px;
}

.blog-post-body code {
  background: #0d1420;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 15px;
}

.blog-post-body pre {
  background: #0d1420;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.blog-post-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.blog-post-body hr {
  border: none;
  height: 1px;
  background: #1e2a38;
  margin: 48px 0;
}

.blog-post-body strong {
  color: #ffffff;
}

/* ------------------------------------------------------------
   12. SHARE SECTION
   ------------------------------------------------------------ */

.blog-share {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 32px 24px 0;
  border-top: 1px solid #1e2a38;
}

.blog-share-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5a6b7d;
  text-align: center;
  margin-bottom: 16px;
}

.blog-share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #101820;
  border: 1px solid #1e2a38;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.blog-share-btn svg {
  width: 20px;
  height: 20px;
  fill: #8896a6;
  stroke: #8896a6;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.blog-share-btn:hover {
  background: #1a7fd4;
  border-color: #1a7fd4;
}

.blog-share-btn:hover svg {
  fill: #ffffff;
  stroke: #ffffff;
}

/* ------------------------------------------------------------
   13. CTA SECTION
   ------------------------------------------------------------ */

.blog-cta {
  max-width: 720px;
  margin: 56px auto 48px;
  background: linear-gradient(135deg, #0d1420 0%, #101820 100%);
  border: 1px solid #1e2a38;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}

.blog-cta-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-cta-subtext {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  color: #8896a6;
  margin-bottom: 24px;
  line-height: 1.5;
}

.blog-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-cta-btn-whatsapp {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease;
}

.blog-cta-btn-whatsapp:hover {
  background: #1fb855;
}

.blog-cta-btn-packages {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  background: transparent;
  color: #1a7fd4;
  border: 1px solid #1a7fd4;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.blog-cta-btn-packages:hover {
  background: #1a7fd4;
  color: #ffffff;
}

/* ------------------------------------------------------------
   14. RELATED POSTS
   ------------------------------------------------------------ */

.blog-related {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.blog-related-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 24px;
  text-align: center;
}

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

/* ------------------------------------------------------------
   15. ANIMATIONS
   ------------------------------------------------------------ */

@keyframes blogFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   16. RESPONSIVE — TABLET (max-width: 1024px)
   ------------------------------------------------------------ */

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

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

/* ------------------------------------------------------------
   17. RESPONSIVE — MOBILE (max-width: 640px)
   ------------------------------------------------------------ */

@media (max-width: 640px) {
  .blog-hero-title {
    font-size: 28px;
  }

  .blog-hero-subtitle {
    font-size: 15px;
  }

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

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

  .blog-post-title {
    font-size: 28px;
  }

  .blog-post-body {
    font-size: 16px;
  }

  .blog-post-body h2 {
    font-size: 22px;
  }

  .blog-post-body h3 {
    font-size: 18px;
  }

  .blog-cta-heading {
    font-size: 22px;
  }

  .blog-cta {
    padding: 36px 20px;
  }

  .blog-newsletter-form {
    flex-direction: column;
  }

  .blog-newsletter {
    margin-left: 24px;
    margin-right: 24px;
  }

  .blog-categories {
    justify-content: flex-start;
  }
}

/* ------------------------------------------------------------
   18. RTL SUPPORT
   ------------------------------------------------------------ */

[dir="rtl"] .blog-card-content {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .blog-card-meta {
  direction: rtl;
}

[dir="rtl"] .blog-post-body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .blog-post-body blockquote {
  border-left: none;
  border-right: 3px solid #1a7fd4;
  border-radius: 8px 0 0 8px;
}

[dir="rtl"] .blog-post-body ul,
[dir="rtl"] .blog-post-body ol {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .blog-breadcrumbs {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .blog-post-header {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .blog-share {
  direction: rtl;
}

[dir="rtl"] .blog-cta {
  direction: rtl;
}

[dir="rtl"] .blog-newsletter {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .blog-newsletter-form {
  direction: rtl;
}

[dir="rtl"] .blog-categories {
  direction: rtl;
}


/* === Additional selectors for regeneration script classes === */
.blog-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.blog-post-category {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #1a7fd4;
    background: rgba(26,127,212,0.12);
    padding: 4px 10px;
    border-radius: 4px;
}
.blog-post-readtime {
    font-size: 13px;
    color: #5a6b7d;
}
.blog-post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.blog-post-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.blog-post-author-date {
    font-size: 15px;
    color: #8896a6;
    margin-bottom: 32px;
}
.blog-post-author { font-weight: 500; }
.blog-post-dot { margin: 0 8px; }
.blog-post-hero {
    max-width: 960px;
    margin: 0 auto 40px;
}
.blog-post-hero-img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: auto;
}
.blog-post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #d0d5dd;
}
.blog-post-body p { margin-bottom: 24px; }
.blog-post-body h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    margin: 48px 0 16px;
}
.blog-post-body h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #ffffff;
    margin: 36px 0 12px;
}
.blog-post-body a { color: #1a7fd4; }
.blog-post-body a:hover { text-decoration: underline; }
.blog-post-body img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
.blog-post-body figure { margin: 32px 0; }
.blog-post-body figcaption { font-size: 13px; color: #5a6b7d; text-align: center; margin-top: 8px; }
.blog-post-body blockquote {
    border-left: 3px solid #1a7fd4;
    padding: 16px 24px;
    margin: 24px 0;
    background: #0d1420;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #a0aab5;
}
.blog-post-body ul, .blog-post-body ol { padding-left: 24px; margin-bottom: 24px; }
.blog-post-body li { margin-bottom: 8px; }
.blog-post-body strong { color: #ffffff; }
.blog-post-body hr { border: none; height: 1px; background: #1e2a38; margin: 48px 0; }
.blog-back-link {
    display: inline-block;
    color: #1a7fd4;
    font-size: 14px;
    margin-top: 32px;
    text-decoration: none;
}
.blog-back-link:hover { text-decoration: underline; }
.blog-cta-inner {
    text-align: center;
}

@media (max-width: 640px) {
    .blog-post-title { font-size: 28px; }
    .blog-post-body { font-size: 16px; }
    .blog-post-body h2 { font-size: 22px; }
    .blog-post-body h3 { font-size: 18px; }
}

/* RTL for post pages */
[dir="rtl"] .blog-post-body { direction: rtl; text-align: right; }
[dir="rtl"] .blog-post-body blockquote { border-left: none; border-right: 3px solid #1a7fd4; border-radius: 8px 0 0 8px; }
[dir="rtl"] .blog-post-body ul, [dir="rtl"] .blog-post-body ol { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .blog-post-meta-top { direction: rtl; }
[dir="rtl"] .blog-back-link { direction: rtl; }
