/*
Theme Name: GeneratePress Child - Review Blog
Template: generatepress
Description: Affiliate review blog child theme
Version: 1.4
Text Domain: gp-child
*/

:root {
    --brand: #2563eb;
    --text: #1f2937;
    --muted: #6b7280;
    --bg-soft: #f3f4f6;
    --cta: #16a34a;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
}
h1, h2, h3, h4, .cta-button { font-family: 'Poppins', sans-serif; line-height: 1.25; }

/* Review hero */
.review-hero {
    display: flex;
    gap: 28px;
    align-items: center;
    background: var(--bg-soft);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}
.review-hero img { max-width: 260px; height: auto; border-radius: 8px; }
.review-hero .meta { color: var(--muted); margin: 6px 0; }
.review-hero .rating { font-size: 22px; font-weight: 600; color: #f59e0b; }

/* CTA */
.cta-button {
    display: inline-block;
    background: var(--cta);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s ease, opacity .15s ease;
}
.cta-button:hover { opacity: .92; transform: translateY(-1px); }

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.pros-cons ul { list-style: none; padding: 16px 20px; border-radius: 10px; margin: 0; }
.pros-cons .pros { background: #ecfdf5; }
.pros-cons .cons { background: #fef2f2; }
.pros-cons li { margin: 6px 0; }

/* Disclaimer */
.affiliate-disclaimer {
    font-size: 14px;
    color: var(--muted);
    border-left: 4px solid var(--brand);
    padding: 12px 16px;
    background: var(--bg-soft);
    margin: 32px 0;
}

/* Footer */
.site-footer-custom {
    text-align: center;
    padding: 24px 16px;
    color: var(--muted);
    font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
    .review-hero { flex-direction: column; text-align: center; }
    .pros-cons { grid-template-columns: 1fr; }
}

/* Home page: post list ও pagination */
.home-intro { margin: 8px 0 28px; }
.home-intro h1 { font-size: 32px; margin: 0 0 6px; }
.home-intro p { color: var(--muted); margin: 0; }

.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-row {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}
.post-row-thumb {
    flex: 0 0 240px;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
}
.post-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-row-body { flex: 1; min-width: 0; }
.post-row h2 { font-size: 20px; margin: 0 0 6px; }
.post-row h2 a { color: var(--text); text-decoration: none; }
.post-row h2 a:hover { color: var(--brand); }
.post-row-meta { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.post-row p { margin: 0; }

.post-pagination { margin-top: 36px; text-align: center; }
.post-pagination ul { list-style: none; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0; }
.post-pagination a,
.post-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
}
.post-pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 640px) {
    .post-row { flex-direction: column; align-items: flex-start; }
    .post-row-thumb { flex: none; width: 100%; }
}

/* Review card-এর rating ও price */
.post-row-stats { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 8px !important; font-size: 15px; }
.stat-rating { color: #f59e0b; font-weight: 600; }
.stat-price { color: var(--text); background: var(--bg-soft); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
