/* ============================================
   BLOG PAGE STYLES
   Matching voyages/circuits design system
   ============================================ */

/* ---- BLOG LIST PAGE ---- */

.blog-page {
  padding: 60px 0 100px;
  background-color: #ffffff;
}

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

.blog-page__title {
  font-family: var(--font-family);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  color: #0c133d;
  text-align: left;
  margin-bottom: 10px;
  line-height: 1.1;
  text-wrap: balance;
}

.blog-page__subtitle {
  font-family: var(--font-family);
  font-size: 18px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* Category filter bar */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  align-items: center;
}

.blog-filter__btn {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid #0c133d;
  background: transparent;
  color: #0c133d;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-filter__btn:hover,
.blog-filter__btn.active {
  background: #0c133d;
  color: #fff;
}

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

/* Blog Card */
.blog-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(12, 19, 61, 0.08);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(12, 19, 61, 0.14);
}

.blog-card__image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card__category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #3498db;
  color: #fff;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.blog-card__title {
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: 700;
  color: #0c133d;
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card__excerpt {
  font-family: var(--font-family);
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.blog-card__author {
  font-family: var(--font-family);
  font-size: 12px;
  color: #999;
}

.blog-card__date {
  font-family: var(--font-family);
  font-size: 12px;
  color: #3498db;
  font-weight: 500;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 60px 24px;
  color: #999;
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(12, 19, 61, 0.02) 0%, rgba(12, 19, 61, 0.04) 100%);
  border: 1px solid rgba(12, 19, 61, 0.08);
  border-radius: 18px;
}

.blog-empty__icon {
  display: block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}

.blog-empty p {
  font-family: var(--font-family);
  font-size: 18px;
  color: #0C133D;
  line-height: 1.5;
  margin: 0;
}


/* ---- BLOG DETAIL PAGE ---- */

.blog-detail {
  padding-top: 0;
}

/* Breadcrumb */
.blog-breadcrumb-header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

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

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-breadcrumb a {
  color: #0c133d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.blog-breadcrumb__separator {
  color: #666;
  font-size: 12px;
}

.blog-breadcrumb__current {
  color: #0c133d;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Hero */
.blog-detail__hero-section {
  background: linear-gradient(135deg, #e8f4fc 0%, #d6eaf8 50%, #ebf5fb 100%);
  padding: 50px 0;
}

.blog-detail__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.blog-detail__hero-text,
.blog-detail__hero-image-wrap {
  min-width: 0;
}

.blog-detail__hero-text h1 {
  font-family: var(--font-family);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 800;
  color: #0c133d;
  line-height: 1.08;
  margin-bottom: 16px;
  text-wrap: balance;
}

.blog-detail__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.blog-detail__badge {
  background: #3498db;
  color: #fff;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 14px;
  text-transform: uppercase;
}

.blog-detail__meta-item {
  font-family: var(--font-family);
  font-size: 13px;
  color: #555;
}

.blog-detail__meta-item strong {
  color: #0c133d;
}

.blog-detail__excerpt {
  font-family: var(--font-family);
  font-size: 18px;
  color: #444;
  line-height: 1.7;
}

.blog-detail__hero-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(12, 19, 61, 0.15);
  height: 320px;
}

.blog-detail__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article content */
.blog-detail__content-section {
  max-width: 860px;
  margin: 50px auto;
  padding: 0 24px;
}

.blog-detail__body {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: #0C133D;
  line-height: 1.8;
}

.blog-detail__body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0c133d;
  margin: 32px 0 12px;
}

.blog-detail__body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0c133d;
  margin: 24px 0 10px;
}

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

.blog-detail__body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

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

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

.blog-detail__body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--color-secondary);
  background: rgba(12, 19, 61, 0.04);
  color: #0C133D;
}

.blog-detail__body pre,
.blog-detail__body code {
  font-family: 'Courier New', Courier, monospace;
}

.blog-detail__body pre {
  padding: 16px;
  border-radius: 12px;
  background: #f5f7fb;
  overflow-x: auto;
}

.blog-detail__body a {
  color: #0C133D;
  text-decoration: underline;
}

/* Related voyage CTA */
.blog-detail__related {
  background: linear-gradient(135deg, #0c133d 0%, #1a2472 100%);
  border-radius: 12px;
  padding: 32px;
  margin: 48px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
}

.blog-detail__related-text {
  flex: 1;
}

.blog-detail__related-label {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3498db;
  margin-bottom: 6px;
}

.blog-detail__related-title {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-detail__related-excerpt {
  font-family: var(--font-family);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.blog-detail__related-btn {
  background: #3498db;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}

.blog-detail__related-btn:hover {
  background: #2980b9;
  color: #fff;
}

/* Back to blog link */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3498db;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.blog-back-link:hover {
  color: #0c133d;
}

/* ---- RESPONSIVE ---- */

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

  .blog-page {
    padding: 48px 0 80px;
  }

  .blog-detail__hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-detail__hero-image-wrap {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .blog-page {
    padding: 34px 0 60px;
  }

  .blog-page__header,
  .blog-grid,
  .blog-breadcrumb-header__container,
  .blog-detail__hero-container,
  .blog-detail__content-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .blog-page__title {
    font-size: clamp(22px, 9vw, 42px);
    text-align: left;
    margin-bottom: 12px;
  }

  .blog-page__subtitle {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .blog-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: 0 -4px 28px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .blog-filter__btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    padding: 7px 14px;
  }

  .blog-card__image-wrapper {
    height: 200px;
  }

  .blog-card__body {
    padding: 16px;
  }

  .blog-card__title {
    font-size: 18px;
  }

  .blog-card__excerpt {
    font-size: 14px;
  }

  .blog-card__meta {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-empty {
    padding: 32px 18px;
    border-radius: 14px;
  }

  .blog-empty__icon {
    font-size: 36px;
  }

  .blog-empty p {
    font-size: 15px;
  }

  .blog-detail__hero-text h1 {
    font-size: clamp(24px, 9vw, 40px);
  }

  .blog-breadcrumb-header {
    padding: 12px 0;
  }

  .blog-breadcrumb,
  .blog-breadcrumb a,
  .blog-breadcrumb__current {
    font-size: 12px;
  }

  .blog-breadcrumb__current {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
  }

  .blog-detail__hero-section {
    padding: 28px 0 32px;
  }

  .blog-detail__hero-container {
    gap: 22px;
  }

  .blog-detail__hero-meta {
    gap: 10px;
    margin-bottom: 14px;
  }

  .blog-detail__badge,
  .blog-detail__meta-item {
    font-size: 12px;
  }

  .blog-detail__excerpt {
    font-size: 15px;
    line-height: 1.6;
  }

  .blog-detail__hero-image-wrap {
    height: 220px;
    border-radius: 10px;
  }

  .blog-detail__content-section {
    margin: 32px auto;
  }

  .blog-back-link {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .blog-detail__body {
    font-size: 15px;
    line-height: 1.75;
  }

  .blog-detail__body h2 {
    font-size: 20px;
    margin: 26px 0 10px;
  }

  .blog-detail__body h3 {
    font-size: 17px;
  }

  .blog-detail__body ul,
  .blog-detail__body ol {
    padding-left: 20px;
  }

  .blog-detail__body blockquote,
  .blog-detail__body pre {
    padding: 14px 16px;
  }

  .blog-detail__related {
    margin: 34px 0;
    padding: 22px 18px;
    gap: 14px;
  }

  .blog-detail__related {
    flex-direction: column;
    text-align: center;
  }

  .blog-detail__related-title {
    font-size: 18px;
  }

  .blog-detail__related-excerpt {
    font-size: 13px;
  }

  .blog-detail__related-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .blog-page__title {
    font-size: 24px;
  }

  .blog-detail__hero-text h1 {
    font-size: 26px;
  }

  .blog-filter__btn {
    font-size: 11px;
    padding: 6px 12px;
  }
}
