/* ==============================================================
   Riverscape Blog & Blog Details Stylesheet
   ============================================================== */

/* Blog Hero Banner */
.blog-hero {
  background: linear-gradient(135deg, #121d1b 0%, #29433e 50%, #33544e 100%);
  color: #ffffff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.blog-hero-tag img {
  width: 8px;
  height: 8px;
}

.blog-hero-title {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.blog-hero-desc {
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

/* Breadcrumbs */
.blog-breadcrumbs {
  padding: 20px 0;
  background-color: #f9f8f5;
  border-bottom: 1px solid #ebeeed;
}

.blog-breadcrumbs ul {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-breadcrumbs li {
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #757575;
}

.blog-breadcrumbs li a {
  color: #33544e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumbs li a:hover {
  color: #121d1b;
  text-decoration: underline;
}

.blog-breadcrumbs li.separator {
  color: #c0cac8;
}

.blog-breadcrumbs li.active {
  color: #33544e;
  font-weight: 700;
}

/* Search and Filter Section */
.blog-filter-section {
  padding: 40px 0 20px;
}

.blog-filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid #ebeeed;
  padding-bottom: 24px;
}

.blog-categories {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 20px;
  border-radius: 30px;
  background: #f5fafa;
  border: 1px solid #e0e8e6;
  color: #4e5354;
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.category-tab:hover,
.category-tab.active {
  background: #33544e;
  color: #ffffff;
  border-color: #33544e;
  box-shadow: 0 4px 12px rgba(51, 84, 78, 0.2);
}

.blog-search-box {
  position: relative;
  min-width: 280px;
}

.blog-search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid #c0cac8;
  border-radius: 30px;
  font-size: 14px;
  font-family: "Fustat", sans-serif;
  background: #ffffff;
  color: #33544e;
  transition: border-color 0.3s ease;
}

.blog-search-box input:focus {
  border-color: #33544e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 84, 78, 0.15);
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #757575;
  pointer-events: none;
}

/* Featured Blog Section */
.featured-blog-section {
  padding: 40px 0 50px;
}

.featured-blog-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: #ffffff;
  border: 1px solid #ebeeed;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}

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

.featured-blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #33544e;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.featured-blog-content {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #757575;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-meta-category {
  color: #33544e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-meta-dot {
  width: 4px;
  height: 4px;
  background-color: #c0cac8;
  border-radius: 50%;
}

.featured-blog-title {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: #33544e;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.featured-blog-title a {
  color: #33544e;
  text-decoration: none;
}

.featured-blog-title a:hover {
  color: #121d1b;
}

.featured-blog-excerpt {
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #646b6c;
  margin-bottom: 24px;
}

.blog-author-read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f4f3;
  padding-top: 20px;
  margin-top: auto;
}

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

.blog-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #33544e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.blog-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #33544e;
  margin: 0;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #33544e;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.blog-read-link:hover {
  gap: 12px;
  color: #121d1b;
}

/* Article Cards Grid */
.blog-grid-section {
  padding: 20px 0 80px;
}

.blog-grid-title {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #33544e;
  margin-bottom: 30px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #ebeeed;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.blog-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: #33544e;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.blog-card-title {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #33544e;
  margin-bottom: 12px;
}

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

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

.blog-card-excerpt {
  font-family: "Fustat", sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #646b6c;
  margin-bottom: 20px;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f4f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #757575;
}

/* ==============================================================
   SINGLE BLOG DETAILS PAGE SPECIFIC STYLES
   ============================================================== */

.blog-details-header {
  padding: 60px 0 40px;
  background: #ffffff;
  text-align: center;
}

.blog-details-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-details-category {
  display: inline-block;
  background: #f0f7f5;
  color: #33544e;
  border: 1px solid #c0cac8;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.blog-details-main-title {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: #33544e;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.blog-details-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #646b6c;
  font-family: "Fustat", sans-serif;
  font-weight: 600;
}

.blog-details-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Feature Image */
.blog-details-hero-img-wrap {
  max-width: 1000px;
  margin: 0 auto 50px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.blog-details-hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 540px;
  object-fit: cover;
}

.blog-img-caption {
  text-align: center;
  font-size: 13px;
  color: #757575;
  margin-top: 10px;
  font-style: italic;
}

/* Main Article Content Typography */
.blog-details-content {
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  line-height: 32px;
  color: #2d3736;
  padding-bottom: 60px;
}

.blog-details-content p {
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  line-height: 32px;
  color: #4e5354;
  margin-bottom: 28px;
}

.blog-details-content .lead-paragraph {
  font-size: 20px;
  line-height: 34px;
  font-weight: 600;
  color: #29433e;
  border-left: 4px solid #33544e;
  padding-left: 20px;
  margin-bottom: 32px;
  background: #f9fbfb;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 0 8px 8px 0;
}

.blog-details-content h2 {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 38px;
  color: #33544e;
  margin-top: 48px;
  margin-bottom: 20px;
  text-transform: none;
  text-align: left;
  letter-spacing: -0.3px;
  position: relative;
}

.blog-details-content h2::after {
  content: "";
  display: block;
  width: 45px;
  height: 3px;
  background: #33544e;
  margin-top: 8px;
  border-radius: 2px;
}

.blog-pullquote {
  background: linear-gradient(135deg, #f5fafa 0%, #eef5f4 100%);
  border-left: 5px solid #33544e;
  padding: 30px 36px;
  margin: 36px 0;
  border-radius: 0 12px 12px 0;
  position: relative;
}

.blog-pullquote p {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 21px;
  line-height: 32px;
  font-weight: 600;
  color: #121d1b;
  font-style: italic;
  margin: 0;
}

.blog-key-takeaways {
  background: #f9f8f5;
  border: 1px solid #ece8e0;
  border-radius: 12px;
  padding: 30px 36px;
  margin: 40px 0;
}

.blog-key-takeaways h4 {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #33544e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-key-takeaways li {
  font-family: "Fustat", sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: #33544e;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}

.blog-key-takeaways li:last-child {
  margin-bottom: 0;
}

.blog-key-takeaways li svg {
  flex-shrink: 0;
  margin-top: 4px;
}

/* Share & Author Footer Bar */
.blog-details-footer {
  border-top: 1px solid #ebeeed;
  border-bottom: 1px solid #ebeeed;
  padding: 30px 0;
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.blog-share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-label {
  font-size: 14px;
  font-weight: 700;
  color: #33544e;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5fafa;
  border: 1px solid #e0e8e6;
  color: #33544e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-btn:hover {
  background: #33544e;
  color: #ffffff;
  border-color: #33544e;
  transform: translateY(-2px);
}

.share-btn svg path {
  fill: currentColor;
}

/* In-article Lead Form Box */
.blog-in-article-cta {
  background: linear-gradient(135deg, #33544e 0%, #121d1b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 44px;
  margin: 50px 0;
  text-align: center;
  box-shadow: 0 16px 36px rgba(51, 84, 78, 0.25);
  position: relative;
  overflow: hidden;
}

.blog-in-article-cta h3 {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.blog-in-article-cta p {
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 28px;
}

.blog-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-cta-actions .btn {
  padding: 14px 32px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 0;
}

.btn-white {
  background: #ffffff;
  color: #33544e;
  border: 1px solid #ffffff;
}

.btn-white:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .featured-blog-card {
    grid-template-columns: 1fr;
  }
  .featured-blog-content {
    padding: 30px;
  }
  .featured-blog-img-wrap {
    min-height: 260px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-hero-title {
    font-size: 36px;
  }
  .blog-details-main-title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .blog-hero {
    padding: 50px 0 40px;
  }
  .blog-hero-title {
    font-size: 28px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search-box {
    width: 100%;
  }
  .blog-details-main-title {
    font-size: 26px;
    line-height: 34px;
  }
  .blog-details-meta {
    flex-direction: column;
    gap: 8px;
  }
  .blog-in-article-cta {
    padding: 30px 20px;
  }
  .blog-in-article-cta h3 {
    font-size: 24px;
    line-height: 32px;
  }
}
