/* ===========================================
   BLOG FIGMA DESIGN IMPLEMENTATION
   Based on Figma specifications
   =========================================== */

/* Blog Archive Page Styles */
.blog-archive-page {
  background-color: #faf7f5;
  min-height: 100vh;
}

.blog-archive-hero {
  background: linear-gradient(135deg, #093855 0%, #0f4c75 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-archive-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.blog-archive-hero .container {
  position: relative;
  z-index: 2;
}

.blog-archive-hero h1 {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.blog-archive-hero .hero-subtitle {
  font-family: "Adrianna", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* Featured Post Section - Based on Figma Design */
.featured-post-section {
  background: white;

  position: relative;
  z-index: 3;
}

.featured-post-card {
  background: white;

  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
}

.featured-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(9, 56, 85, 0.15);
}

.featured-post-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-post-image img {
  transform: scale(1.05);
}

.featured-post-content {
  padding: 63px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Featured Post Typography - Exact Figma Specs */
.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.featured-post-category {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 50px;
  background: transparent;
}

.featured-post-category i {
  width: 16px;
  height: 16px;
  color: #093855;
}

.featured-post-category-text {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #093855;
  text-transform: none;
  letter-spacing: 0.4px;
  line-height: 1.66;
  white-space: nowrap;
}

.featured-post-overline {
  font-family: "Adrianna", sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 266%; /* 1.995rem */
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
}

.featured-post-title {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 3rem;
  font-style: normal;
  font-weight: 600;
  line-height: 123.5%; /* 3.705rem */
  letter-spacing: 0.01563rem;
}
.featured-post-title a {
  text-decoration: none;
  color: #093855;
}

.featured-post-subtitle {
  font-family: "Adrianna", sans-serif;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 133.4%; /* 2.001rem */
}

.featured-post-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eb6929;
  color: #fff7ed;
  padding: 8px 32px;
  border-radius: 24px;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.15px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: fit-content;
  height: 40px;
}

.featured-post-read-more:hover {
  background: #d45a1f;
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}

/* Regular Posts Grid */
.regular-posts-section {
  background: #faf7f5;
}

.regular-posts-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-blog-posts {
  padding: 0 56px;
}

/* Blog Layout Wrapper - 70/30 Split */
.blog-layout-wrapper {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 48px;
  flex-direction: column;
}

/* Posts Grid Container (70% width) */
.posts-grid-container {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.regular-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
}

.regular-post-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(9, 56, 85, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 620px;
}

.regular-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(9, 56, 85, 0.12);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.post-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.regular-post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.regular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.regular-post-card:hover .regular-post-image img {
  transform: scale(1.05);
}

.regular-posts-heading {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 2.125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 2.125rem */
  letter-spacing: 0.01563rem;
  text-align: center;
  color: #093855;
  margin-bottom: 32px;
  width: 100%;
}

.regular-post-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.container-blog-posts {
  padding: 56px;
}

.regular-post-title {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #093855;
  margin-bottom: 12px;
  line-height: 1.4;
}

.regular-post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.regular-post-title a:hover {
  color: #eb6929;
}

.regular-post-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-family: "Roboto", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #093855;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.regular-post-tag i {
  font-size: 0.7rem;
  color: #093855;
}

.regular-post-excerpt {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  flex-grow: 1;
}

/* Show All Articles Button */
.show-all-articles {
  text-align: center;
  margin-top: 0;
}

.btn-show-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 32px;
  background: #093855;
  color: white;
  border-radius: 24px;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.15px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-show-all:hover:not(:disabled) {
  background: #eb6929;
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}

.btn-show-all:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-loader i {
  font-size: 14px;
}

/* Additional Posts Container */
.additional-posts-container {
  margin-top: 48px;
}

.additional-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Blog Filters Sidebar (30% width) */
.blog-filters-sidebar {
  flex: 0 0 30%;
  max-width: 270px;
  position: sticky;
  top: 20px;
}

.filters-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(9, 56, 85, 0.08);
  padding: 32px;
  position: sticky;
  top: 20px;
}

.filters-title {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #093855;
  margin-bottom: 24px;
  text-align: center;
}

/* Filter Sections */
.filter-section {
  margin-bottom: 0;
}

/* Filter Options */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.filter-option:hover {
  background: #f0f9ff;
  color: #093855;
  border-color: #e0f2fe;
}

.filter-option.active {
  background: #093855;
  color: white;
  border-color: #093855;
}

.post-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Pagination */
.blog-pagination {
  padding: 60px 0 80px;
  text-align: center;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pagination-wrapper .page-numbers:not(.current) {
  color: #093855;
  background: #f8fafc;
}

.pagination-wrapper .page-numbers:not(.current):hover {
  background: #e0f2fe;
  border-color: #093855;
}

.pagination-wrapper .current {
  background: #093855;
  color: white;
  border-color: #093855;
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
  width: auto;
  padding: 0 16px;
  font-size: 0.875rem;
}

/* Single Blog Post Styles */
.single-blog-post {
  background: white;
  min-height: 100vh;
}

/* Blog Breadcrumbs */
.blog-breadcrumbs {
  background: white;
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  color: #093855;
}

.breadcrumb-link {
  color: #093855;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #eb6929;
}

.breadcrumb-separator {
  color: #093855;
}

.breadcrumb-current {
  color: #093855;
  font-weight: 700;
}

.blog-post-hero {
  background: white;
  color: #093855;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

/* Hero background pattern removed for white background */

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

.blog-post-title {
  font-family: "Adobe Caslon Pro", serif !important;
  font-size: 3rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  color: #093855 !important;
  line-height: 1.2 !important;
}

/* Featured Article Label */
.blog-post-featured-label {
  font-family: "Adrianna", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #093855;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Blog Post Subtitle */
.blog-post-subtitle {
  font-family: "Adrianna", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #093855;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Blog Post Tag */
.blog-post-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  color: #093855;
}

.blog-post-tag i {
  font-size: 1rem;
}

/* Old date and category styles removed */

.blog-post-content-section {
  background: white;
  padding: 80px 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
  border-radius: 20px 20px 0 0;
}

.blog-post-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-featured-image {
  margin-bottom: 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(9, 56, 85, 0.1);
}

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

.blog-post-content {
  font-family: "Roboto", sans-serif !important;
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: #333 !important;
}

.blog-post-content h2 {
  font-family: "Adobe Caslon Pro", serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #093855 !important;
  margin: 3rem 0 1.5rem !important;
}

.blog-post-content h3 {
  font-family: "Adobe Caslon Pro", serif !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #093855 !important;
  margin: 2.5rem 0 1rem !important;
}

.blog-post-content h4 {
  font-family: "Adobe Caslon Pro", serif !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #093855 !important;
  margin: 2rem 0 1rem !important;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

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

.blog-post-content blockquote {
  background: #f8fafc;
  border-left: 4px solid #093855;
  padding: 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: #093855;
}

.blog-post-content a {
  color: #093855;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-content a:hover {
  color: #b14007;
}

.blog-post-footer {
  background: white;
  padding: 60px 0;

  text-align: center;
}

/* Footer Image Placeholder */
.blog-post-footer-image {
  margin-bottom: 40px;
}

.footer-placeholder-img {
  max-width: 270px;
  height: auto;
}

/* Back to Blog Button */
.blog-post-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #faf7f5;
  color: #333333;
  padding: 8px 32px;
  border: 1px solid #333333;
  border-radius: 25px;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.blog-post-back-button:hover {
  background-color: #f0f0f0;
  color: #333333;
  transform: translateX(-3px);
}

.blog-post-icon {
  font-size: 1rem;
  color: #333333;
}

.btn-back-to-blog {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}

/* Old tags and navigation styles removed - replaced with back button */

/* Responsive Design */
@media (max-width: 768px) {
  .blog-archive-hero h1 {
    font-size: 2.5rem;
  }

  .blog-archive-hero .hero-subtitle {
    font-size: 1.1rem;
  }

  .featured-post-section {
    padding: 60px 0;
    margin-top: -20px;
  }

  .featured-post-content {
    padding: 32px;
  }

  .featured-post-title {
    font-size: 2.5rem;
  }

  .featured-post-subtitle {
    font-size: 1.5rem;
  }

  /* Blog Layout Responsive */
  .container-blog-posts {
    padding: 0 20px;
    display: flex;
  }

  .blog-layout-wrapper {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
  }

  .posts-grid-container {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blog-filters-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    position: static;
  }

  .filters-container {
    position: static;
  }

  .regular-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-post-title {
    font-size: 2.25rem;
  }

  .blog-post-meta {
    flex-direction: column;
    gap: 16px;
  }

  .blog-post-content-section {
    padding: 60px 0;
    margin-top: -20px;
  }

  .blog-post-content {
    font-size: 1rem;
  }

  .blog-post-content h2 {
    font-size: 1.75rem;
  }

  .blog-post-content h3 {
    font-size: 1.375rem;
  }

  .blog-post-navigation {
    flex-direction: column;
    gap: 16px;
  }

  .blog-post-nav-link {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .blog-archive-hero {
    padding: 80px 0 60px;
  }

  .blog-archive-hero h1 {
    font-size: 2rem;
  }

  .featured-post-content {
    padding: 24px;
  }

  .featured-post-title {
    font-size: 2rem;
  }

  .featured-post-subtitle {
    font-size: 1.25rem;
  }

  .regular-post-content {
    padding: 20px;
  }

  .blog-post-title {
    font-size: 1.875rem;
  }

  .blog-post-content-section {
    padding: 40px 0;
  }
}
