/* ==========================================================================
   Editorial Blog Theme - Boundless Book Publishers Brand Integration
   ========================================================================== */

:root {
  --blog-brand-orange: #ec7b19;
  --blog-brand-orange-hover: #f47c2a;
  --blog-brand-navy: #17333c;
  --blog-brand-navy-dark: #071338;
  --blog-dark-bg: #071338;
  --blog-dark-card: #17333c;
  --blog-text-main: #333333;
  --blog-text-muted: #666666;
  --blog-text-light: #888888;
  --blog-bg-cream: #f9f9f9;
  --blog-border-brand: rgba(236, 123, 25, 0.3);
  --blog-font-heading: 'Gilroy Medium', sans-serif;
  --blog-font-body: 'VisbyCF-Regular', sans-serif;
  --blog-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Editorial Typography */
.blog-editorial-body {
  font-family: var(--blog-font-body);
  color: var(--blog-text-main);
  line-height: 1.8;
  background-color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.blog-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(7, 19, 56, 0.95) 0%, rgba(23, 51, 60, 0.92) 100%), 
              url('../images/s-banner-bg.png') center/cover no-repeat;
  padding: 120px 0 90px;
  color: #ffffff;
  overflow: hidden;
}

.blog-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blog-brand-orange), transparent);
}

.blog-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--blog-brand-orange);
}

.blog-eyebrow {
  display: inline-block;
  font-family: var(--blog-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blog-brand-orange);
  margin-bottom: 18px;
  position: relative;
  padding-left: 35px;
}

.blog-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background-color: var(--blog-brand-orange);
}

.blog-hero-title {
  font-family: var(--blog-font-heading);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.blog-hero-subtitle {
  font-family: var(--blog-font-body);
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Detail Hero Specific */
.blog-detail-hero {
  padding: 130px 0 100px;
  text-align: center;
}

.blog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
  font-family: var(--blog-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.blog-meta-item i {
  color: var(--blog-brand-orange);
}

.blog-meta-divider {
  width: 4px;
  height: 4px;
  background-color: var(--blog-brand-orange);
  border-radius: 50%;
}

/* ==========================================================================
   Blog Listing Cards & Grid
   ========================================================================== */

.blog-listing-wrapper {
  padding: 90px 0;
  background-color: #ffffff;
}

.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--blog-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(236, 123, 25, 0.15);
  border-color: var(--blog-brand-orange);
}

.blog-card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--blog-brand-navy-dark);
}

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

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

.blog-card-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--blog-brand-navy);
  color: var(--blog-brand-orange);
  font-family: var(--blog-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid var(--blog-border-brand);
  z-index: 2;
}

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

.blog-card-title {
  font-family: var(--blog-font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
  margin-bottom: 16px;
  transition: var(--blog-transition);
}

.blog-card:hover .blog-card-title {
  color: var(--blog-brand-orange);
}

.blog-card-excerpt {
  font-family: var(--blog-font-body);
  font-size: 15px;
  color: var(--blog-text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-card-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--blog-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blog-brand-navy);
  text-decoration: none;
  transition: var(--blog-transition);
  position: relative;
}

.blog-read-btn i {
  color: var(--blog-brand-orange);
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-btn {
  color: var(--blog-brand-orange);
}

.blog-card:hover .blog-read-btn i {
  transform: translateX(6px);
}

/* ==========================================================================
   Blog Detail Layout & Article Reading Experience
   ========================================================================== */

.blog-detail-wrapper {
  padding: 70px 0 100px;
  background-color: #ffffff;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
}

.article-featured-image-box {
  margin: -60px auto 50px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--blog-border-brand);
  z-index: 10;
}

.article-featured-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.article-featured-caption {
  background-color: var(--blog-brand-navy);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--blog-font-body);
  font-size: 14px;
  padding: 12px 25px;
  text-align: center;
  border-top: 1px solid var(--blog-border-brand);
}

/* Article Body Typography & Spacing */
.article-content {
  font-family: var(--blog-font-body);
  font-size: 17px;
  color: #333333;
  line-height: 1.9;
}

.article-lead {
  font-family: var(--blog-font-body);
  font-size: 21px;
  line-height: 1.75;
  color: #111111;
  font-weight: 600;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

.article-lead::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--blog-brand-orange);
}

.article-section {
  margin-bottom: 45px;
}

.article-section-title {
  font-family: var(--blog-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  margin-top: 40px;
  margin-bottom: 18px;
  line-height: 1.3;
  position: relative;
  padding-left: 20px;
}

.article-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--blog-brand-orange);
  border-radius: 2px;
}

.article-content p {
  font-family: var(--blog-font-body);
  font-size: 16px;
  color: #444444;
  line-height: 1.85;
  margin-bottom: 22px;
}

/* Luxury Editorial Quotes & Highlights */
.editorial-quote {
  margin: 40px 0;
  padding: 35px 40px;
  background: var(--blog-bg-cream);
  border-left: 4px solid var(--blog-brand-orange);
  border-radius: 0 12px 12px 0;
  position: relative;
}

.editorial-quote-text {
  font-family: var(--blog-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  line-height: 1.6;
  margin-bottom: 12px;
}

.editorial-quote-author {
  font-family: var(--blog-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blog-brand-orange);
}

/* Dark Editorial Callout Banner */
.editorial-callout-dark {
  background: linear-gradient(135deg, var(--blog-brand-navy-dark) 0%, var(--blog-brand-navy) 100%);
  color: #ffffff;
  padding: 45px;
  border-radius: 16px;
  margin: 50px 0;
  position: relative;
  border: 1px solid var(--blog-border-brand);
}

.editorial-callout-dark h4 {
  font-family: var(--blog-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--blog-brand-orange);
  margin-bottom: 15px;
}

.editorial-callout-dark p {
  font-family: var(--blog-font-body);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

/* Article Navigation & Footer Links */
.article-footer-nav {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.back-to-blogs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background-color: var(--blog-brand-navy);
  color: #ffffff;
  border-radius: 5px;
  font-family: var(--blog-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: var(--blog-transition);
}

.back-to-blogs-btn:hover {
  background-color: var(--blog-brand-orange);
  color: #ffffff;
}

.next-article-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--blog-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  transition: var(--blog-transition);
}

.next-article-link:hover {
  color: var(--blog-brand-orange);
}

/* Primary Brand Buttons in Callouts */
.btn-brand-primary {
  background: var(--blog-brand-orange);
  color: #ffffff !important;
  border: 2px solid var(--blog-brand-orange);
  border-radius: 5px;
  font-family: var(--blog-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 30px;
  letter-spacing: 1px;
  transition: var(--blog-transition);
  text-decoration: none;
  display: inline-block;
}

.btn-brand-primary:hover {
  background: var(--blog-brand-navy);
  border-color: var(--blog-brand-navy);
  color: #ffffff !important;
}

.btn-brand-secondary {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid #ffffff;
  border-radius: 5px;
  font-family: var(--blog-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 30px;
  letter-spacing: 1px;
  transition: var(--blog-transition);
  text-decoration: none;
  display: inline-block;
}

.btn-brand-secondary:hover {
  background: var(--blog-brand-orange);
  border-color: var(--blog-brand-orange);
  color: #ffffff !important;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 991px) {
  .blog-hero-title {
    font-size: 40px;
  }
  .blog-hero-subtitle {
    font-size: 18px;
  }
  .article-featured-image-box {
    margin-top: -30px;
  }
  .article-section-title {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .blog-hero-section {
    padding: 90px 0 60px;
  }
  .blog-hero-title {
    font-size: 32px;
  }
  .blog-card-body {
    padding: 25px 20px;
  }
  .blog-card-title {
    font-size: 20px;
  }
  .editorial-quote {
    padding: 25px 20px;
  }
  .editorial-quote-text {
    font-size: 18px;
  }
  .editorial-callout-dark {
    padding: 30px 20px;
  }
}
