body {
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    margin: 0;
}

.container {
    width: 90%;
    margin: auto;
}

.author-page {
    margin-top: 30px;
    margin-bottom: 40px;
}

.author-header-card {
    display: flex;
    gap: 22px;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 28px;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f2f2;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    color: #111827;
}

.author-verified {
    display: inline-block;
    margin-left: 10px;
    color: #16a34a;
    font-size: 15px;
    font-weight: 700;
}

.author-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 10px;
}

.author-location {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
}

.author-email a {
    color: #0a58ca;
    text-decoration: none;
}

.author-email a:hover {
    text-decoration: underline;
}

.author-posts-head {
    margin-bottom: 18px;
}

.author-posts-head h2 {
    margin: 0;
    font-size: 26px;
    color: #111827;
}

.author-empty {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-row-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-row-thumb {
    width: 280px;
    min-width: 280px;
    position: relative;
    background: #f3f3f3;
    overflow: hidden;
}

.post-row-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-row-content {
    flex: 1;
    padding: 20px;
    width: 100%;
}

.post-row-top {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding-right: 52px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.post-row-price {
    font-size: 16px;
    font-weight: 700;
    color: #163333;
}

.post-row-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
}

.post-row-title a {
    color: inherit;
    text-decoration: none;
}

.category-favorite-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid #d9dfe8;
    border-radius: 50%;
    background: #fff;
    color: #8b95a7;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 2;
}

.category-favorite-btn:hover {
    border-color: #0a58ca;
    color: #0a58ca;
}

.category-favorite-btn.active {
    color: #0a58ca;
    border-color: #0a58ca;
    background: #eef4ff;
}

.featured-ribbon {
    position: absolute;
    top: 12px;
    right: -35px;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 5;
}

.featured-ribbon.elite {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #fff;
}

.featured-ribbon.prime {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
}

.post-row-location-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.post-row-location {
    font-size: 14px;
    color: #555;
}

.post-row-package-inline {
    flex-shrink: 0;
}

.package-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.package-tag.pro {
    background: #e8f1ff;
    color: #0d6efd;
    border: 1px solid #bcd3ff;
}

.package-tag.starter {
    background: #fff4df;
    color: #c97a00;
    border: 1px solid #ffd58a;
}

.package-tag.free,
.package-tag.default {
    background: #f3f4f6;
    color: #555;
    border: 1px solid #ddd;
}

.post-row-time-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.post-row-time {
    font-size: 13px;
    color: #777;
}

.post-row-installment {
    display: flex;
    justify-content: flex-end;
}

.installment-badge-left {
    background: #ff9800;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.post-row-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.post-row-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-row-actions-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.post-action-btn,
.post-action-btn:visited,
.post-action-btn:focus,
.post-action-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #0a58ca;
    background: #ffffff;
    color: #0a58ca !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

a.post-action-btn.email-btn:hover,
a.post-action-btn.whatsapp-btn:hover,
a.post-action-btn.call-btn:hover {
    background: #0a58ca;
    color: #ffffff !important;
    border: 1px solid #0a58ca;
}

.post-action-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.post-user-logo {
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.post-user-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pagination {
    margin: 40px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: white;
    background: #0a58ca;
    border-radius: 6px;
}

.pagination a.active {
    background: white;
    color: #0a58ca;
    border: 1px solid #0a58ca;
}

.pagination a.next {
    font-weight: bold;
}

@media (max-width: 900px) {
    .author-header-card {
        flex-direction: column;
        text-align: center;
    }

    .author-meta {
        justify-content: center;
    }

    .post-row-card {
        flex-direction: column;
    }

    .post-row-thumb {
        width: 100%;
        min-width: 100%;
    }

    .post-row-thumb img {
        height: 220px;
    }
}
