/* ==========================================================================
   XploreIndo - Blog & Destination Guides Page Styling
   Brand Theme Colors: Warm Sunset Orange (#F7941D), Forest Green (#073B25), Nature Dark (#111827)
   ========================================================================== */

:root {
  /* XploreIndo Signature Brand Colors */
  --xplore-orange: #F7941D;
  --xplore-orange-dark: #D97909;
  --xplore-orange-hover: #ea580c;
  --xplore-green: #073B25;
  --xplore-green-dark: #052417;
  --xplore-emerald: #10B981;
  --xplore-ink: #17212B;
  --xplore-dark-surface: #1E293B;

  --blog-title-color: #0f172a;
  --blog-text-color: #475569;
  --blog-card-border: #e2e8f0;
  --blog-body-bg: #f8fafc;
  --blog-primary-gradient: linear-gradient(135deg, #F7941D 0%, #D97909 100%);
  --blog-orange-gradient: linear-gradient(135deg, #F7941D 0%, #EA580C 100%);
  --blog-green-gradient: linear-gradient(135deg, #073B25 0%, #0d281e 100%);
}

/* Page Container */
.blog-page-wrapper {
  background-color: var(--blog-body-bg);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ==========================================================================
   Hero Section - South India Hill Station Scenic Banner with Luxury Overlay
   ========================================================================== */
.blog-hero {
  background: 
    linear-gradient(180deg, rgba(17, 24, 22, 0.58) 0%, rgba(13, 20, 18, 0.70) 50%, rgba(8, 14, 12, 0.88) 100%),
    url('../img/banner/blog-hero-banner.jpg') no-repeat center 35% / cover;
  color: #ffffff;
  padding: 80px 0 80px 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(247, 148, 29, 0.12), transparent 65%);
  pointer-events: none;
}

.blog-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247, 148, 29, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(247, 148, 29, 0.45);
  color: #ffedd5;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.blog-hero .hero-eyebrow i {
  color: var(--xplore-orange);
  font-size: 14px;
}

.blog-hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.blog-hero p.hero-subtitle {
  font-size: 16.5px;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */
.blog-layout-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Destination Navigation Bar (First Screenshot Reference: Floating Card)
   Floating White Card Container Overlapping Hero with Rounded Corners & Soft Shadow
   ========================================================================== */
.dest-filter-section-wrapper {
  position: relative;
  z-index: 30;
  max-width: 1260px;
  margin: -36px auto 36px auto;
  padding: 0;
  transition: all 0.3s ease;
}

.dest-filter-nav-bar {
  background: #ffffff;
  border-radius: 40px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  max-width: 100%;
}

/* Small, Neat Arrow Buttons */
.dest-scroll-arrow {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  padding: 0;
}

.dest-scroll-arrow i {
  font-size: 10.5px;
  line-height: 1;
}

.dest-scroll-arrow:hover {
  background: var(--xplore-orange);
  color: #ffffff;
  border-color: var(--xplore-orange);
  box-shadow: 0 2px 8px rgba(247, 148, 29, 0.35);
  transform: scale(1.1);
}

.dest-horizontal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  padding: 2px 4px;
  flex: 1;
  width: 100%;
}

.dest-horizontal-nav::-webkit-scrollbar {
  display: none;
}

/* Neat and Clear Tab Design - Evenly Covering Container Width */
.dest-nav-btn {
  flex: 1 1 0px;
  min-width: 0;
  justify-content: center;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  outline: none;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 8px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.dest-nav-btn i {
  font-size: 12px;
  color: var(--xplore-orange);
  transition: color 0.2s ease;
}

.dest-nav-btn:hover {
  background: #fff7ed;
  color: var(--xplore-orange-hover);
  border-color: #fed7aa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(247, 148, 29, 0.15);
}

.dest-nav-btn:hover i {
  color: var(--xplore-orange-hover);
}

.dest-nav-btn.active {
  background: var(--blog-primary-gradient);
  color: #ffffff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.38);
  transform: translateY(-1px);
}

.dest-nav-btn.active i {
  color: #ffffff;
}

/* ==========================================================================
   Content Area & Header
   ========================================================================== */
.blog-content-area {
  width: 100%;
}

.destination-content-header {
  text-align: center;
  margin-bottom: 35px;
}

.destination-content-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.destination-content-header p {
  font-size: 15px;
  color: #64748b;
  margin: 0 auto;
  max-width: 650px;
  line-height: 1.6;
}

/* ==========================================================================
   Blog Cards Grid & Design
   ========================================================================== */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--blog-card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(7, 59, 37, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

/* Image Container */
.blog-img-container {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.blog-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

/* Tag Badge Top-Left - Exact Same Height as Read Time Badge (Matches Screenshot) */
.blog-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  height: 26px;
  box-sizing: border-box;
  background: #073B25;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 10px;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

/* Read Time Badge Bottom-Right - Exact Same Height (26px) */
.blog-read-time {
  position: absolute;
  bottom: 16px;
  right: 16px;
  height: 26px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.blog-read-time i,
.blog-read-time .material-icons {
  font-size: 13px;
  color: #64748b;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* Card Body Area */
.blog-card .pad {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 12px 0;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
  letter-spacing: -0.015em;
}

.blog-card:hover h3 {
  color: var(--xplore-green);
}

.blog-card p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.62;
  color: #475569;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read Guide Link with Theme Colors */
.blog-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--xplore-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  transition: all 0.2s ease;
  cursor: pointer;
}

.blog-link span.arrow {
  transition: transform 0.25s ease;
  font-weight: 600;
  display: inline-block;
}

.blog-card:hover .blog-link,
.blog-link:hover {
  color: var(--xplore-orange);
}

.blog-card:hover .blog-link span.arrow,
.blog-link:hover span.arrow {
  transform: translateX(5px);
}

/* Empty State */
.blog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
}

.blog-empty-state i {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 16px;
  display: block;
}

.blog-empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.blog-empty-state p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
}

.reset-filter-btn {
  background: var(--blog-primary-gradient);
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.3);
}

.reset-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(247, 148, 29, 0.4);
}

/* ==========================================================================
   Article Modal / Drawer for Reading
   ========================================================================== */
.blog-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-modal-backdrop.show {
  display: flex;
  opacity: 1;
}

.blog-modal-content {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.blog-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  transition: background 0.2s ease;
}

.blog-modal-close:hover {
  background: #000000;
}

.blog-modal-cover {
  width: 100%;
  height: 340px;
  position: relative;
  overflow: hidden;
}

.blog-modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-modal-body {
  padding: 36px 40px;
}

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

.blog-modal-tag {
  background: #073B25;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 10px;
  height: 26px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  text-transform: uppercase;
}

.blog-modal-time {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-modal-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 20px;
}

.blog-modal-text {
  font-size: 15.5px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 28px;
}

.blog-modal-highlights {
  background: #f8fafc;
  border-left: 4px solid var(--xplore-orange);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 30px;
}

.blog-modal-highlights h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.blog-modal-highlights ul {
  padding-left: 20px;
  margin: 0;
}

.blog-modal-highlights li {
  margin-bottom: 6px;
  color: #475569;
  font-size: 14px;
}

.blog-modal-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.blog-modal-cta a.primary-btn {
  background: var(--blog-primary-gradient);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.3);
}

.blog-modal-cta a.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(247, 148, 29, 0.4);
}

.blog-modal-cta a.secondary-btn {
  background: #f1f5f9;
  color: #0f172a;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
  transition: background 0.2s ease;
  border: 1px solid #e2e8f0;
}

.blog-modal-cta a.secondary-btn:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .dest-nav-btn {
    flex: 0 0 auto;
    padding: 7px 16px;
  }

  .blog-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

@media (max-width: 991px) {
  .dest-filter-section-wrapper {
    margin: -28px auto 28px auto;
  }

  .dest-filter-nav-bar {
    border-radius: 22px;
    padding: 6px 10px;
    gap: 6px;
  }

  .dest-nav-btn {
    padding: 7px 15px;
    font-size: 13px;
  }

  .dest-scroll-arrow {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 10px;
  }
}

@media (max-width: 680px) {
  .dest-filter-section-wrapper {
    margin: -22px auto 22px auto;
  }

  .dest-filter-nav-bar {
    border-radius: 18px;
    padding: 6px 8px;
    gap: 5px;
  }

  .dest-nav-btn {
    padding: 6px 13px;
    font-size: 12px;
  }

  .dest-scroll-arrow {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 9.5px;
  }

  .destination-content-header h2 {
    font-size: 22px;
  }

  .destination-content-header p {
    font-size: 13.5px;
  }

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

  .blog-hero {
    padding: 50px 0 42px 0;
  }

  .blog-hero h1 {
    font-size: 28px;
  }

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

  .blog-img-container {
    height: 210px;
  }

  .blog-card .pad {
    padding: 20px;
  }

  .blog-modal-body {
    padding: 24px 20px;
  }

  .blog-modal-cover {
    height: 220px;
  }

  .blog-modal-title {
    font-size: 22px;
  }
}