/* ==========================================================================
   RightSpace Blog & Article Styles
   ========================================================================== */

.blog_page {
  width: 100%;
  background-color: #f8fafc;
  padding: 140px 10% 100px 10%;
  box-sizing: border-box;
  min-height: 100vh;
}

.blog_container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

/* Header Section */
.blog_header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.blog_subtitle {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b73524;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
  display: inline-block;
}

.blog_title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: #10222e;
  line-height: 1.18;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}

.blog_description {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* Controls: Search & Category Filters */
.blog_controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  background-color: #ffffff;
  padding: 16px 24px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.category_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter_pill {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.filter_pill:hover {
  color: #10222e;
  background-color: #e2e8f0;
}

.filter_pill.active {
  background-color: #10222e;
  color: #ffffff;
}

.blog_search_form {
  position: relative;
  min-width: 260px;
}

.blog_search_input {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 25px;
  padding: 10px 42px 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: #10222e;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.blog_search_input:focus {
  background-color: #ffffff;
  border-color: #b73524;
}

.search_btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search_btn:hover {
  color: #b73524;
}

/* Featured Blog Hero Card */
.featured_hero_card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 60px;
  transition: transform 0.3s ease;
}

.featured_hero_card:hover {
  transform: translateY(-4px);
}

.featured_card_image_wrapper {
  position: relative;
  width: 100%;
  min-height: 380px;
  height: 100%;
  overflow: hidden;
}

.featured_card_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured_hero_card:hover .featured_card_image {
  transform: scale(1.04);
}

.featured_badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background-color: #b73524;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
}

.featured_card_body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured_meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
}

.meta_dot {
  color: #cbd5e1;
}

.featured_card_title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #10222e;
  line-height: 1.25;
  margin: 0 0 16px 0;
}

.featured_card_title a {
  color: #10222e;
  text-decoration: none;
  transition: color 0.25s ease;
}

.featured_card_title a:hover {
  color: #b73524;
}

.featured_card_excerpt {
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 28px 0;
}

.featured_card_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured_author {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.read_featured_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #10222e;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 15px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.25s ease;
}

.read_featured_btn:hover {
  background-color: #b73524;
}

/* Grid Layout for Other Blog Cards */
.blog_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Standard Blog Card */
.blog_card {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.blog_card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
}

.blog_card_image_link {
  display: block;
  text-decoration: none;
}

.blog_card_image_wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #e2e8f0;
}

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

.blog_card:hover .blog_card_image {
  transform: scale(1.05);
}

.blog_card_badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(16, 34, 46, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 14px;
}

.blog_card_body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog_card_meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 10px;
}

.blog_card_title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.blog_card_title a {
  color: #10222e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog_card_title a:hover {
  color: #b73524;
}

.blog_card_excerpt {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.blog_card_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}

.blog_card_author {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.blog_card_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #b73524;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.blog_card_link:hover {
  gap: 10px;
}

/* ==========================================================================
   Article Detail Page Styles
   ========================================================================== */

.article_page {
  width: 100%;
  background-color: #ffffff;
  padding: 130px 10% 100px 10%;
  box-sizing: border-box;
}

.article_container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.article_breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 30px;
}

.article_breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article_breadcrumbs a:hover {
  color: #b73524;
}

.article_header {
  margin-bottom: 40px;
}

.article_category {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b73524;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 14px;
}

.article_title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #10222e;
  line-height: 1.2;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

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

.article_author_info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author_avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.author_meta_text {
  display: flex;
  flex-direction: column;
}

.author_name {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #10222e;
}

.author_role {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #64748b;
}

.article_time_meta {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: #64748b;
}

.article_hero_image_wrapper {
  width: 100%;
  max-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 50px;
}

.article_hero_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Editorial Typography */
.article_body {
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #334155;
}

.article_body p {
  margin-bottom: 24px;
}

.article_body p.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #10222e;
  font-weight: 500;
}

.article_body h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #10222e;
  margin: 44px 0 20px 0;
  letter-spacing: -0.3px;
}

.article_body blockquote {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-style: italic;
  color: #10222e;
  border-left: 4px solid #b73524;
  padding: 10px 0 10px 24px;
  margin: 36px 0;
  line-height: 1.5;
}

.takeaways_box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #b73524;
  border-radius: 16px;
  padding: 30px;
  margin: 36px 0;
}

.takeaways_box h4 {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #10222e;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.takeaways_box ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.takeaways_box li {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* Related Posts Section */
.related_posts_section {
  background-color: #f8fafc;
  padding: 80px 10%;
  border-top: 1px solid #e2e8f0;
}

.related_posts_container {
  max-width: 1240px;
  margin: 0 auto;
}

.related_header {
  text-align: center;
  margin-bottom: 44px;
}

.related_title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #10222e;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .blog_page,
  .article_page,
  .related_posts_section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .featured_hero_card {
    grid-template-columns: 1fr;
  }

  .featured_card_image_wrapper {
    height: 280px;
    min-height: 280px;
  }

  .featured_card_body {
    padding: 30px;
  }

  .blog_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .blog_page {
    padding-top: 110px;
  }

  .blog_controls {
    flex-direction: column;
    align-items: stretch;
  }

  .blog_search_form {
    min-width: 100%;
  }

  .blog_grid {
    grid-template-columns: 1fr;
  }
}
