body {
  font-family: var(--font-primary);
  margin: 0;
  background-color: var(--background-light);
}

.page-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 71px;
  margin-top: 100px; /* Added space for fixed header */
}

.page-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

.category-list {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.category-item {
  padding: 10px 20px;
  border: 1px solid #000;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.1);
}

.category-item a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #8e8e93;
  border-radius: 9999px;
  padding: 12px 16px;
  width: 100%;
  max-width: 871px;
  margin-bottom: 40px;
}

.search-bar__input {
  flex-grow: 1;
  font-size: 16px;
  font-family: var(--font-primary);
  color: var(--text-dark);
  border: none;
  background: none;
  outline: none;
  padding: 0;
}

.search-bar__input::placeholder {
  color: #b3b3b3;
}

.search-bar__button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar__icon {
  width: 24px;
  height: 24px;
}

.main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-card {
  display: flex;
  gap: 20px;
  padding: 15px;
  border-radius: 20px;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.1);
}

.post-card--featured {
  border: 2px solid var(--primary-color);
}

.post-card--list-item {
  border: 1px solid #ccc;
  border-radius: 15px;
}


.post-card__image-container {
  width: 25%;
}

.post-card__image {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.post-card__content {
  width: 75%;
}

.post-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.post-card__meta {
  font-size: 11px;
  color: #555;
  margin-bottom: 15px;
}

.post-card__excerpt {
  font-size: 12px;
  line-height: 1.6;
}

.post-card__link {
    display: block;
    text-align: right;
    font-size: 14px;
    text-decoration: underline;
    color: var(--text-dark);
    margin-top: 15px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post-list .post-card__image-container {
    width: 200px;
    flex-shrink: 0;
}

.post-list .post-card__title {
    font-size: 16px;
}

.post-list .post-card__meta {
    font-size: 12px;
}

.post-list .post-card__excerpt {
    font-size: 12px;
    line-height: 1.5;
}


.sidebar {
  background-color: var(--background-gray);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 120px; /* Further increased space between sidebar and footer */
}

.sidebar__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.sidebar-post-card {
  background-color: var(--background-light);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-small);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* Use flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically (if needed, but mainly for horizontal) */
}

.sidebar-post-card blockquote {
  width: 100% !important;
  max-width: 100% !important;
  margin: auto; /* Re-add margin: auto to center the blockquote within the flex container */
}

.sidebar-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.1);
}

.sidebar-post-card__image {
  width: 100%;
  height: auto;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.sidebar-post-card__info {
  padding: 15px;
}

.sidebar-post-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-post-card__author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #000;
}

.sidebar-post-card__date {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.sidebar-post-card__text {
  font-size: 14px;
  margin-bottom: 10px;
}

.sidebar-post-card__hashtags {
  font-size: 14px;
  color: #007bff;
  text-decoration: underline;
}

/* ===== Animations ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .dari-kami-untuk-anda {
        font-size: 38px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .frame-81 .niacinamide-body-ritual-lengkap-cerahkan-perkuat-skin-barrier-tubuh {
        font-size: 20px;
    }
}

@media (max-width: 992px) {    
    .dari-kami-untuk-anda {
        font-size: 32px;
        margin-top: 80px;
    }
    
    .categories {
        flex-wrap: wrap;
    }
    
    .frame-81 {
        flex-direction: column;
    }
    
    .frame-81 .image-12 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .frame-81 .text-content {
        width: 100%;
    }
    
    .post-list > div {
        flex-direction: column;
    }
    
    .post-list img {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .dari-kami-untuk-anda {
        font-size: 28px;
    }
    
    .search {
        max-width: 100%;
    }
}

@media (max-width: 480px) {    
    .dari-kami-untuk-anda {
        font-size: 24px;
    }
    
    .categories > div {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}