/* CSS for section section:Article */
.article-section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.article-header {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-title {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.2;
}
.article-subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-actions {
  position: relative;
  display: flex;
  gap: 4px;
}

.card-actions img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.like-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.like-button:hover {
  background-color: rgba(255, 107, 0, 0.1);
  border-color: var(--primary-orange);
}

.like-button.liked {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.like-button.liked img {
  filter: brightness(0) invert(1);
}

.like-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.like-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-orange);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.share-container {
  position: relative;
  display: inline-block;
}

.share-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.share-button:hover {
  background-color: rgba(255, 107, 0, 0.1);
  border-color: var(--primary-orange);
}

.share-options {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 148px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.share-container.active .share-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(text-dark);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.share-option:hover {
  background-color: var(--background-gray);
  color: var(text-dark);
}

.share-option img {
  width: 16px;
  height: 16px;
  border-radius: 0;
}

.share-option.whatsapp:hover {
  background-color: #25d366;
  color: white;
}

.copy-tooltip {
  position: fixed;
  background-color: var(--primary-orange);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  pointer-events: none;
}

.post-date {
  font-size: 14px;
  font-weight: 300;
  color: #504f4f;
}
.article-layout {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.main-article-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
}
.main-content p,
.main-content li {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}
.main-content strong {
  font-weight: 600;
}
.main-content em {
  font-weight: 500;
  font-style: normal;
}
.main-content a {
  text-decoration: underline;
  color: #0e6fdf;
}
.separator {
  border: none;
  border-top: 1px solid #b6bbbe;
  margin: 10px 0;
}
.recipe-intro h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
}
.recipe-image {
  border-radius: 20px;
}
.recipe-details ul,
.recipe-details ol {
  padding-left: 20px;
  margin-top: 1em;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.recipe-title-2 {
  font-size: 20px;
  font-weight: 700;
}
.sidebar {
  width: 344px;
  flex-shrink: 0;
}
.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.related-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-white);
}
.related-card.large .related-card-img {
  width: 100%;
}
.related-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(4px);
  color: var(text-dark);
  font-size: 16px;
  font-weight: 500;
}
.related-card.small {
  display: flex;
  gap: 20px;
  align-items: center;
}

.related-card-img-small {
  width: 162px;
  height: 102px;
  object-fit: cover;
  border-radius: 8px;
}

.related-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-tags {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 200px;
  left: 14px;
}

.tag {
  background-color: var(--background-light);
  border: 0.5px solid var(--background-gray);
  border-radius: 60px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-light);
}

.tag:hover {
  background-color: var(--primary-orange);
  color: var(--color-white);
  border-color: var(--primary-orange);
}

.related-card-content p {
  font-size: 16px;
  line-height: 1.5;
}

.related-card-special {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.related-card-overlay-special {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #34657f;
  color: var(--color-white);
  padding: 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-card-overlay-special p {
  font-size: 18px;
  font-weight: 500;
}

.magazine-block {
  position: relative;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
}

.magazine-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.magazine-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.magazine-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.magazine-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #34657f;
  color: var(--color-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px;
  border-radius: 16px;
}

.magazine-overlay h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.magazine-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.9;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-nav-icons {
  display: flex;
  gap: 8px;
}
.icon-btn {
  background: none;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.icon-btn img {
  width: 16px;
  height: 16px;
}
@media (max-width: 1024px) {
  .article-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 40px;
  }
  .article-title {
    font-size: 48px;
  }
}
@media (max-width: 768px) {
  .article-title {
    font-size: 36px;
  }
  .article-subtitle {
    font-size: 18px;
  }
}

/* CSS for section section:RecentArticles */
.recent-articles-section {
  padding: 24px 0;
}
.recent-articles-section .container {
  padding-left: 48px;
  padding-right: 48px;
}
.recent-articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.recent-articles-header h2 {
  font-size: 32px;
  font-weight: 600;
}
.carousel-nav {
  display: flex;
  gap: 16px;
}
.nav-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-arrow img {
  width: 44px;
  height: 44px;
}

.articles-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* gap: 20px; */
  /* display: flex; */
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px; /* For scrollbar */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.articles-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.article-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-image-container {
  background-color: #ffe353;
  border-radius: 16px;
  height: 235px;
  overflow: hidden;
}
.card-image-placeholder {
  /* Placeholder for image from node 191:970 which has no imageSrc */
  width: 100%;
  height: 100%;
  background-image: url(https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070);
  background-size: cover;
  background-position: center;
}
.card-content {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-date {
  font-size: 14px;
  color: #4f4f52;
}
.card-content h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}
.card-content p {
  font-size: 14px;
  color: #4f4f52;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-tag {
  margin-top: auto;
}

@media (max-width: 992px) {
  .articles-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .recent-articles-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .articles-carousel {
    grid-template-columns: repeat(1, 1fr);
  }
  .recent-articles-header h2 {
    font-size: 24px;
  }
}
