/* ==========================================================================
   Tripmakes Blog & Tourist Guides Stylesheet
   ========================================================================== */

/* Blog Hub Layout */
.blog-header {
  background: linear-gradient(135deg, rgba(13, 56, 41, 0.94), rgba(7, 34, 24, 0.98)),
              url('../images/south-india-circuits.webp') center/cover no-repeat;
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.blog-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface-alt);
}

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

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

.blog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(13, 56, 41, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

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

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Article Detail Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.article-content {
  min-width: 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.article-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-featured-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.article-featured-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-img-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.6rem 0.85rem;
  background: var(--bg-surface-alt);
  border-left: 3px solid var(--accent);
}

/* Quick Facts Snapshot Box */
.facts-snapshot-card {
  background: #f8faf9;
  border: 1px solid rgba(13, 56, 41, 0.15);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(13, 56, 41, 0.04);
}

.facts-snapshot-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.fact-icon {
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
}

.fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.fact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* Article Body Typography */
.article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-light);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 1.25rem;
}

.article-body ul, 
.article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

.article-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 0.5rem;
}

/* Distance Table */
.distance-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.distance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.distance-table th {
  background: var(--primary);
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-weight: 700;
}

.distance-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.distance-table tr:nth-child(even) {
  background: var(--bg-surface-alt);
}

/* Tip Callout Box */
.pro-tip-box {
  background: #fef8ec;
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.75rem 0;
}

.pro-tip-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #9a5300;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pro-tip-box p {
  font-size: 0.95rem;
  color: #633600;
  line-height: 1.55;
  margin: 0;
}

/* Sticky Sidebar in Guide Pages */
.guide-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.guide-quote-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.guide-quote-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.guide-quote-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.guide-related-packages {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.guide-related-packages h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.mini-pkg-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.mini-pkg-card:last-child {
  border-bottom: none;
}

.mini-pkg-card:hover {
  transform: translateX(4px);
}

.mini-pkg-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.mini-pkg-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.mini-pkg-info span {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

/* Mobile Responsive */
.guide-editorial-note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.guide-editorial-note h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.guide-editorial-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .guide-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.75rem;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
