/* Blogs Section Styles */
.blogs-section {
  max-width: var(--container-max-width);
  margin: 40px auto 60px;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.blogs-section h1 {
  font-family: "SangBleuMedium", serif;
  font-size: 48px;
  font-weight: 500;
  color: #1f2225;
  margin-bottom: 20px;
}

.blogs-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #1f2225;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
}

.blogs-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 30px;
  background-color: #f5f5f5;
  border-radius: 50px;
  padding: 5px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.blogs-tabs::-webkit-scrollbar {
  display: none;
}

/* Scroll indicators for mobile */
@media (max-width: 768px) {
  .blogs-tabs.has-scroll::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, #f5f5f5);
    pointer-events: none;
    border-radius: 0 50px 50px 0;
  }
}

.blogs-tab {
  padding: 10px 16px;
  background-color: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: var(--fluid-14-16);
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  min-width: fit-content;
}

/* .blogs-tab:first-child {
  background-color: #6b3305;
  color: #fff;
} */

.blogs-tab.active {
  background-color: #6b3305;
  color: #fff;
  box-shadow: 0 2px 8px rgba(107, 51, 5, 0.2);
}

.blogs-tab:hover:not(.active) {
  color: var(--color-primary);
  background-color: rgba(107, 51, 5, 0.1);
}

.blog-card-date {
  font-size: 12px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
}

/* Media query for large screens - distribute tabs evenly */
@media (min-width: 1200px) {
  .blogs-tabs {
    gap: 8px;
  }
  
  .blogs-tab {
    flex: 1 1 0;
    padding: 10px 12px;
  }
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .blogs-tabs {
    width: 100%;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    justify-content: flex-start;
  }

  .blogs-tab {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    flex: 0 0 auto;
    min-width: max-content;
  }
  
  .year-tabs {
    gap: 0;
    padding-bottom: 8px;
  }
  
  .year-tab {
    font-size: 14px;
    padding: 10px 16px;
  }
  
  .year-separator {
    height: 20px;
  }
}

/* Year tabs styling */
.year-tabs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0ede9;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.year-tabs::-webkit-scrollbar {
  display: none;
}

/* Scroll fade for year tabs on mobile */
@media (max-width: 768px) {
  .year-tabs.has-scroll::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 10px;
    width: 30px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
  }
}

.year-tab {
  padding: 12px 24px;
  background-color: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: var(--fluid-16-18);
  font-weight: 600;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.year-tab.active {
  color: #6b3305;
}

.year-tab.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background-color: #6b3305;
  border-radius: 2px;
}

.year-tab:hover:not(.active) {
  color: #6b3305;
}

.year-separator {
  display: inline-block;
  width: 1px;
  height: 24px;
  background-color: #e0dad1;
  margin: 0;
  flex-shrink: 0;
}

/* Additional mobile responsive styles */
@media (max-width: 480px) {
  .blogs-section {
    padding: 0 12px;
  }
  
  .blogs-tabs {
    width: 100%;
    border-radius: 20px;
    padding: 3px;
  }

  .blogs-tab {
    font-size: 12px;
    padding: 6px 12px;
    font-weight: 500;
  }
  
  .year-tabs {
    width: 100%;
    padding: 0 0 6px;
  }
  
  .year-tab {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .year-tab.active::after {
    height: 2px;
    bottom: -7px;
  }
  
  .year-separator {
    height: 16px;
  }
}

/* Blog Content Container */
.blogs-content {
  width: 100%;
  margin-top: 20px;
}

/* Blog Cards Grid */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin-bottom: 40px;
}

/* Individual Blog Card */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.blog-card:hover .blog-image-container img {
  transform: scale(1.05);
}

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

.blog-card-content h3 {
  font-family: "SangBleuMedium", serif;
  font-size: 20px;
  font-weight: 500;
  color: #1f2225;
  line-height: 1.3;
  margin: 0;
}

.blog-card-content p {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #6b6661;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.blog-card-line {
  width: 40px;
  height: 2px;
  background-color: #6b3305;
  margin: 8px 0;
}

.blog-card .btn-link {
  align-self: flex-start;
  color: #6b3305;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.blog-card .btn-link:hover {
  gap: 10px;
}

/* Featured Blog Card Styles */
.featured-blog-card {
  display: flex;
  width: 100%;
  margin-bottom: 40px;
  background-color: #fff;
  border: 1px solid #eedecd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-blog-card:last-child {
  margin-bottom: 20px;
}

.featured-blog-image {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
}

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

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

.featured-blog-content {
  flex: 0 0 40%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  text-align: left; /* Ensure text alignment is explicitly set to left */
  gap: 6px;
}

.featured-blog-meta {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  text-align: left;
}

.featured-blog-title {
  font-family: "SangBleuMedium", serif;
  font-size: 28px;
  font-weight: 500;
  color: #1f2225;
  line-height: 1.3;
  text-align: left;
}

.featured-blog-excerpt {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #3f3b37;
  line-height: 1.6;
  text-align: left;
}

/* Responsive Styles - Tablet */
@media (max-width: 991px) {
  .blog-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Responsive Styles - Mobile Large */
@media (max-width: 768px) {
  .blogs-content {
    margin-top: 16px;
  }
  
  .blog-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .blog-card-content {
    padding: 20px;
  }
  
  .blog-card-content h3 {
    font-size: 18px;
  }
  
  .featured-blog-card {
    flex-direction: column;
  }

  .featured-blog-image {
    flex: 0 0 auto;
    height: 250px;
  }

  .featured-blog-content {
    flex: 0 0 auto;
    padding: 24px;
  }
  
  .featured-blog-title {
    font-size: 24px;
  }
  
  .featured-blog-excerpt {
    font-size: 14px;
  }
}

/* Responsive Styles - Mobile Small */
@media (max-width: 480px) {
  .blog-cards {
    gap: 16px;
  }
  
  .blog-image-container {
    height: 180px;
  }
  
  .blog-card-content {
    padding: 16px;
    gap: 8px;
  }
  
  .blog-card-content h3 {
    font-size: 16px;
  }
  
  .blog-card-content p {
    font-size: 13px;
  }
  
  .featured-blog-card {
    margin-bottom: 24px;
    border-radius: 12px;
  }
  
  .featured-blog-image {
    height: 200px;
  }
  
  .featured-blog-content {
    padding: 20px;
    gap: 8px;
  }
  
  .featured-blog-title {
    font-size: 20px;
  }
  
  .featured-blog-excerpt {
    font-size: 13px;
  }
  
  .blog-card .btn-link {
    font-size: 13px;
  }
}

.cover-image-container {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.full-width-cover {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Page Styles */
.article-header {
  max-width: var(--container-max-width);
  padding: 0;
  position: relative;
  margin: 40px auto 30px;
}

.article-header h1 span {
  background-image: linear-gradient(to top, #6b3305 100%, #ae734e 41%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .article-meta {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
  }
}

.article-meta-left {
  display: flex;
  align-items: center;
}

.article-date {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
}

.article-separator {
  display: inline-block;
  width: 1px;
  height: 100%;
  min-height: 20px;
  background-color: var(--color-primary);
  margin: 0 10px;
}

.article-category {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
}

.article-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #fff;
  border: solid 1.3px #e0dad1;
  border-radius: 29.9px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: #44372c;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 50px;
  right: 20px;
}

.article-badge img {
  width: 20px;
  height: 20px;
}

.article-title {
  font-family: var(--font-family-heading);
  font-size: 48px;
  font-weight: 500;
  color: #1f2225;
  margin-bottom: 15px;
  line-height: 1.2;
}

.article-author {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  color: #6c757d;
  margin-bottom: 30px;
}

/* See More Button */
.see-more-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  padding: 0 20px;
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 29px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.see-more-btn i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.see-more-btn:hover i {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .see-more-container {
    margin: 30px 0;
    padding: 0 15px;
  }
  
  .see-more-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}
