/* ==========================================================================
   Blog styles — Canyon Nevidio Explorers
   Reuses the olive palette and typography defined in style.css
   ========================================================================== */

/* ---------- Blog listing hero ---------- */
.blog-listing-hero {
  background:
    linear-gradient(rgba(42, 53, 36, 0.55), rgba(42, 53, 36, 0.85)),
    url("assets-test/bg2.webp") center/cover no-repeat;
  color: var(--olive-pale);
  text-align: center;
  padding: 90px 20px 70px;
  margin-top: -76px;
  padding-top: 150px;
}

.blog-listing-hero h1 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.blog-listing-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.92;
}

/* ---------- Blog card grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--olive-main);
  border: 1px solid var(--olive-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.blog-card a.blog-card-link {
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  display: block;
}

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

.blog-card-tag {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  color: var(--olive-accent);
  margin-bottom: 0.6rem;
}

.blog-card h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
  text-transform: none;
}

.blog-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.blog-card-more {
  margin-top: auto;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--olive-light);
}

/* ---------- Single post hero ---------- */
.blog-post-hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 150px 20px 70px;
  margin-top: -76px;
  background-size: cover;
  background-position: center;
}

.blog-post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(42, 53, 36, 0.85));
}

.blog-post-hero > * {
  position: relative;
  z-index: 2;
}

.blog-post-hero h1 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  max-width: 900px;
  margin: 0 auto 1rem;
  line-height: 1.2;
}

.blog-post-meta {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.blog-post-meta span {
  margin: 0 0.5rem;
}

/* ---------- Breadcrumb ---------- */
.blog-breadcrumb {
  font-size: 0.85rem;
  padding: 1rem 0 0;
  opacity: 0.85;
}

.blog-breadcrumb a {
  color: var(--olive-light);
}

/* ---------- Article body ---------- */
.blog-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-article h2 {
  font-size: 1.7rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  color: var(--olive-pale);
  border-left: 4px solid var(--olive-light);
  padding-left: 0.75rem;
}

.blog-article h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--olive-accent);
  text-transform: none;
}

.blog-article p {
  margin-bottom: 1.2rem;
}

.blog-article ul,
.blog-article ol {
  margin-bottom: 1.4rem;
  padding-left: 1.4rem;
}

.blog-article li {
  margin-bottom: 0.5rem;
}

.blog-article a {
  color: var(--olive-light);
}

.blog-article strong {
  color: #fff;
}

.blog-quote {
  border-left: 4px solid var(--olive-light);
  background: var(--olive-main);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-style: italic;
}

/* ---------- Article tables ---------- */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--olive-main);
  border-radius: 8px;
  overflow: hidden;
}

.blog-table th,
.blog-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--olive-light);
  text-align: left;
  vertical-align: top;
}

.blog-table thead th {
  background: var(--olive-darker);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.blog-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.12);
}

/* ---------- FAQ heading inside article ---------- */
.blog-faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.blog-faq h2 {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--olive-light);
  padding-left: 0.75rem;
}

/* ---------- CTA block ---------- */
.blog-cta-wrap {
  text-align: center;
  margin: 2rem 0 0.5rem;
}

.blog-cta-panel {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(rgba(42, 53, 36, 0.6), rgba(42, 53, 36, 0.85)),
    url("assets-test/bg.webp") center/cover no-repeat;
  border-radius: 12px;
  border: 1px solid var(--olive-light);
}

.blog-cta-panel h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-cta-panel p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

/* ---------- Related posts ---------- */
.related-posts {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 575px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
