/**
 * Enjoy Holiday Hub - Custom Travel Blog & Articles Stylesheet
 * Brand colors: Navy #14213D, Red #E72E2E, Text #172033, Muted #64748B, Border #E2E8F0
 */

.blog-section-custom {
  position: relative;
  background-color: #f8fafc;
  padding: 85px 0 85px;
  overflow: hidden;
  border-top: 1px solid #eef2f6;
}

/* Background subtle ambient travel glow */
.blog-section-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 380px;
  background: radial-gradient(circle, rgba(231, 46, 46, 0.035) 0%, rgba(20, 33, 61, 0.02) 65%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Section Header */
.blog-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 32px;
}

.blog-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(231, 46, 46, 0.08);
  color: #e72e2e;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid rgba(231, 46, 46, 0.18);
}

.blog-header h2 {
  font-size: 2.35rem;
  font-weight: 800;
  color: #14213d;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.blog-header h2 .highlight-inspiration {
  color: #e72e2e;
  position: relative;
  display: inline-block;
}

.blog-header p.sub-title {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================= */
/* CATEGORY FILTER TABS                      */
/* ========================================= */
.blog-nav-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
}

.blog-nav-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 60px;
  box-shadow: 0 4px 18px rgba(20, 33, 61, 0.05);
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.blog-nav-pills::-webkit-scrollbar {
  display: none;
}

.blog-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid transparent;
  color: #14213d;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.blog-tab-btn:hover {
  background: rgba(20, 33, 61, 0.04);
  color: #e72e2e;
}

.blog-tab-btn.active {
  background: #e72e2e !important;
  color: #ffffff !important;
  border-color: #e72e2e !important;
  box-shadow: 0 6px 18px rgba(231, 46, 46, 0.32);
}

/* ========================================= */
/* FEATURED ARTICLE HERO BANNER              */
/* ========================================= */
.blog-featured-hero {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.06);
  margin-bottom: 35px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-featured-hero:hover {
  box-shadow: 0 18px 45px rgba(20, 33, 61, 0.12);
  transform: translateY(-4px);
}

.blog-featured-img-box {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-featured-hero:hover .blog-featured-img {
  transform: scale(1.06);
}

.blog-featured-badge-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #e72e2e 0%, #c61d1d 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(231, 46, 46, 0.35);
  z-index: 2;
}

.blog-featured-body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.blog-meta-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 14px;
}

.blog-featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #14213d;
  line-height: 1.35;
  margin-bottom: 14px;
  transition: color 0.2s ease;
}

.blog-featured-title:hover {
  color: #e72e2e;
}

.blog-featured-excerpt {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
}

.blog-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #14213d;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.18);
  transition: all 0.25s ease;
  width: fit-content;
}

.blog-featured-btn:hover {
  background: #e72e2e;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(231, 46, 46, 0.35);
  transform: translateY(-2px);
}

.blog-featured-btn i {
  transition: transform 0.2s ease;
}

.blog-featured-btn:hover i {
  transform: translateX(4px);
}

/* ========================================= */
/* ARTICLE CAROUSEL & CARDS                  */
/* ========================================= */
.blog-carousel-wrapper {
  position: relative;
  z-index: 1;
}

/* Navigation Arrow Controls */
.blog-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.12);
  color: #14213d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.blog-nav-arrow:hover {
  background: #e72e2e;
  color: #ffffff;
  border-color: #e72e2e;
  box-shadow: 0 8px 24px rgba(231, 46, 46, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.blog-nav-prev {
  left: -20px;
}

.blog-nav-next {
  right: -20px;
}

/* Track Container */
.blog-track-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 18px;
}

.blog-track-container::-webkit-scrollbar {
  display: none;
}

.blog-cards-grid {
  display: flex;
  gap: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Single Article Card */
.blog-card-custom {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 cards on desktop */
  min-width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20, 33, 61, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
  height: 100%;
}

.blog-card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20, 33, 61, 0.11);
  border-color: #cbd5e1;
}

/* Image Box (16:9 ratio) */
.blog-img-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Category Badge */
.blog-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 33, 61, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Trending Badge */
.blog-trending-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #e72e2e 0%, #c61d1d 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(231, 46, 46, 0.35);
}

/* Reading Time */
.blog-read-time {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* Card Body */
.blog-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.blog-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #14213d;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.blog-card-title a {
  color: #14213d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #e72e2e;
}

.blog-card-excerpt {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Footer: Author + Read Link */
.blog-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14213d 0%, #e72e2e 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-author-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #14213d;
  display: block;
  line-height: 1.2;
}

.blog-post-date {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
}

.blog-read-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e72e2e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.blog-read-link:hover {
  color: #14213d;
  transform: translateX(3px);
}

/* Bottom CTA Button */
.blog-view-all-wrapper {
  margin-top: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #14213d;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.18);
  transition: all 0.25s ease;
}

.blog-view-all-btn:hover {
  background: #e72e2e;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(231, 46, 46, 0.35);
  transform: translateY(-2px);
}

.blog-view-all-btn i {
  transition: transform 0.2s ease;
}

.blog-view-all-btn:hover i {
  transform: translateX(4px);
}

/* Responsive Rules */
@media (max-width: 1200px) {
  .blog-card-custom {
    flex: 0 0 calc((100% - 24px) / 2); /* 2 cards on tablet */
    min-width: 290px;
  }
}

@media (max-width: 991px) {
  .blog-section-custom {
    padding: 65px 0 60px;
  }
  .blog-header h2 {
    font-size: 2rem;
  }
  .blog-featured-img-box {
    height: 280px;
  }
  .blog-featured-body {
    padding: 26px 24px;
  }
  .blog-featured-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .blog-section-custom {
    padding: 50px 0 45px;
  }
  .blog-header h2 {
    font-size: 1.65rem;
  }
  .blog-nav-arrow {
    display: none; /* Swipe on mobile */
  }
  .blog-card-custom {
    flex: 0 0 85%; /* Partial preview of next card on mobile */
    min-width: 260px;
  }
  .blog-img-box {
    height: 180px;
  }
}
