.article-listing-page {
    padding-bottom: 4rem;
}

.article-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-listing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e7e7e9;
    overflow: hidden;
}

.article-listing-card__media {
    display: block;
}

.article-listing-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.article-listing-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px 14px 16px;
    text-align: start;
}

.article-listing-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
}

.article-listing-card__date i {
    color: var(--apt-secondary);
    font-size: 12px;
}

.article-listing-card__title {
    margin: 0 0 10px;
    min-height: 44px;
    color: var(--apt-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
}

.article-listing-card__title a {
    color: inherit;
    text-decoration: none;
}

.article-listing-card__excerpt {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-listing-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
}

.article-listing-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--apt-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.article-listing-card__link:hover,
.article-listing-card__title a:hover {
    color: var(--apt-secondary);
    text-decoration: underline;
}

.article-detail-page {
    max-width: 96rem;
    padding-bottom: 4rem;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.article-detail-main {
    min-width: 0;
    max-width: 100%;
}

.article-detail-card {
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.article-detail-image {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7ebf3;
    box-shadow: 0 10px 24px rgba(14, 26, 53, 0.05);
}

.article-detail-content {
    background: #fff;
    border: 1px solid #e7ebf3;
    box-shadow: 0 10px 24px rgba(14, 26, 53, 0.05);
    padding: 3rem;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.article-detail-content img,
.article-detail-content iframe,
.article-detail-content video,
.article-detail-content table {
    max-width: 100%;
}

.article-detail-content img {
    height: auto;
    display: block;
}

.article-detail-content p,
.article-detail-content li {
    color: #4b556f;
    line-height: 1.9;
}

.article-share {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e7ebf3;
}

.article-share__title {
    margin: 0 0 1rem;
    color: #000;
    font-size: 16px;
    font-weight: 700;
}

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

.article-share__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #e7ebf3;
    background: #fff;
    color: var(--apt-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.article-share__button:hover {
    color: #000;
    text-decoration: none;
}

.article-share__button--facebook:hover {
    color: #1877f2;
}

.article-share__button--whatsapp:hover {
    color: #25d366;
}

.article-share__button--x:hover {
    color: #000;
}

.article-share__button--instagram:hover {
    color: #e4405f;
}

.article-share__button--linkedin:hover {
    color: #0a66c2;
}

.article-share__button--instagram {
    appearance: none;
}

.article-share__note {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.article-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #6b7280;
}

.article-detail-date i {
    color: var(--apt-secondary);
    font-size: 14px;
}

.article-detail-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.article-sidebar-panel {
    background: #fff;
    border: 1px solid #e7ebf3;
    box-shadow: 0 10px 24px rgba(14, 26, 53, 0.05);
    padding: 18px;
    min-width: 0;
}

.article-sidebar-panel__title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7ebf3;
    color: #000;
    font-size: 18px;
    font-weight: 700;
}

.article-sidebar-posts,
.article-sidebar-products {
    display: grid;
    gap: 0;
}

.article-sidebar-post {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid #e7ebf3;
}

.article-sidebar-post:first-child {
    padding-top: 0;
    border-top: 0;
}

.article-sidebar-post__media {
    display: block;
}

.article-sidebar-post__media img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.article-sidebar-post__body {
    min-width: 0;
}

.article-sidebar-post__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
}

.article-sidebar-post__date i {
    color: var(--apt-secondary);
    font-size: 12px;
}

.article-sidebar-post__title {
    margin: 0 0 8px;
    color: var(--apt-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-sidebar-post__title a,
.article-sidebar-product__title a {
    color: inherit;
    text-decoration: none;
}

.article-sidebar-post__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--apt-secondary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.article-sidebar-post__link:hover,
.article-sidebar-post__title a:hover,
.article-sidebar-product__title a:hover {
    color: var(--apt-secondary);
    text-decoration: underline;
}

.article-sidebar-product {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #e7ebf3;
}

.article-sidebar-product:first-child {
    padding-top: 0;
    border-top: 0;
}

.article-sidebar-product__media {
    display: block;
}

.article-sidebar-product__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.article-sidebar-product__body {
    min-width: 0;
}

.article-sidebar-product__title {
    margin: 0 0 8px;
    color: var(--apt-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-sidebar-product__price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.article-sidebar-product__price-current {
    color: var(--apt-primary);
    font-weight: 700;
}

.article-sidebar-product__price.has-sale .article-sidebar-product__price-current {
    color: var(--apt-secondary);
}

.article-sidebar-product__price-old {
    color: #9ca3af;
    text-decoration: line-through;
}

.article-sidebar-product__price-old .price-with-symbol,
.article-sidebar-product__price-current .price-with-symbol {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 991.98px) {
    .article-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .article-listing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
