/* ==========================================================================
   Tirto Grid Widget CSS — Tirto.id Style
   ========================================================================== */

.tirto-grid-wrapper {
    font-family: 'Inter', Arial, sans-serif;
}

.tirto-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tirto-grid-card {
    display: flex;
    flex-direction: column;
}

.tirto-grid-card-imglink {
    display: block;
    text-decoration: none;
}

.tirto-grid-card-image {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    line-height: 0;
    background: #f0f0f0;
}

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

.tirto-grid-card:hover .tirto-grid-card-image img {
    transform: scale(1.04);
}

.tirto-grid-card-body {
    padding-top: 10px;
}

.tirto-grid-card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1;
}

.tirto-grid-card-cat {
    color: #2d5bd1;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    margin-right: 6px;
}
.tirto-grid-card-cat:hover {
    text-decoration: underline;
}

.tirto-grid-card-time {
    color: #888;
    font-size: 11px;
}

.tirto-grid-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.tirto-grid-card-title a {
    color: #111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.tirto-grid-card-title a:hover {
    color: #0d47a1;
}

/* Tablet */
@media (max-width: 1024px) {
    .tirto-grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .tirto-grid-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   Tirto List Widget CSS — Tirto.id Style
   ========================================================================== */

.tirto-list-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
}

.tirto-list-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f1f1;
}
.tirto-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tirto-list-imglink {
    display: block;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.tirto-list-image {
    margin: 0;
    padding: 0;
    width: 80px;
    height: 80px;
    line-height: 0;
    overflow: hidden;
    background: #f0f0f0;
}
.tirto-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.tirto-list-item:hover .tirto-list-image img {
    transform: scale(1.05);
}

.tirto-list-content {
    flex: 1;
}

.tirto-list-meta {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
}

.tirto-list-cat {
    color: #2d5bd1;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    margin-right: 6px;
}
.tirto-list-cat:hover {
    text-decoration: underline;
}

.tirto-list-time {
    color: #888;
    font-size: 11px;
}

.tirto-list-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}
.tirto-list-title a {
    color: #111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.tirto-list-title a:hover {
    color: #0d47a1;
}

/* Mobile */
@media (max-width: 768px) {
    .tirto-list-image {
        width: 64px;
        height: 64px;
    }
    .tirto-list-title {
        font-size: 13px;
    }
}

/* ==========================================================================
   Tirto Popular Post Widget CSS — Tirto.id Style
   ========================================================================== */

.tirto-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: popular-counter;
    font-family: 'Inter', Arial, sans-serif;
}

.tirto-popular-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f1f1;
}
.tirto-popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tirto-popular-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #d32f2f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 2px;
}

.tirto-popular-imglink {
    display: block;
    flex-shrink: 0;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.tirto-popular-thumb {
    margin: 0;
    padding: 0;
    width: 60px;
    height: 60px;
    line-height: 0;
    overflow: hidden;
    background: #f0f0f0;
}
.tirto-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.tirto-popular-item:hover .tirto-popular-thumb img {
    transform: scale(1.05);
}

.tirto-popular-info {
    flex: 1;
}

.tirto-popular-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 3px;
}
.tirto-popular-title a {
    color: #111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.tirto-popular-title a:hover {
    color: #0d47a1;
}

.tirto-popular-date {
    font-size: 11px;
    color: #999;
}

/* Mobile */
@media (max-width: 768px) {
    .tirto-popular-thumb {
        width: 50px;
        height: 50px;
    }
    .tirto-popular-title {
        font-size: 13px;
    }
}
