@import url("../new_layout_style.4bbc7b96f812.css");
/* === Reviews Section === */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px; /* Limit grid width */
    margin: 0 auto; /* Center the grid */
    gap: 2rem;
    padding: 2rem; /* Less horizontal padding, better alignment */
    font-family: 'Inter', sans-serif;
    background: white;
}

.review {
    background: #f9fff9;
    padding: 3.5rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.1);
    border: 1px solid #c8e6c9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.review:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.1);
}

.review strong {
    font-size: 1.1rem;
    color: #2e7d32;
}

.review span {
    background-color: #00c853;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.review p {
    margin: 1rem 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.review small {
    color: #666;
    font-size: 0.85rem;
}

/* Optional: Star Rating Style */
.stars {
    font-size: 1.2rem;
    color: #ffc107; /* gold for filled stars */
}

.stars .empty {
    color: #ccc;
}

/* === Reviews Header === */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto 1rem;
    max-width: 1200px;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviews-header h2 {
    font-size: 2rem;
    color: #1b5e20;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

/* === Add Review Button === */
.btn-add-opinion {
    background-color: #00c853;
    color: white;
    padding: 0.75rem 1.3rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.15);
}

.btn-add-opinion:hover {
    background-color: #009c3f;
    box-shadow: 0 6px 18px rgba(0, 200, 83, 0.25);
}

/* Optional: secondary button (e.g. for login) */
.btn-login {
    background-color: #e0e0e0;
    color: #333;
    padding: 0.75rem 1.3rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #ccc;
}

/* Responsive */
@media (max-width: 600px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-header h2 {
        font-size: 1.6rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

.pagination {
    padding: 1rem;
    margin: 2rem 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem; /* tighter spacing */
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-flex;
    align-items: center;
}

.pagination a,
.pagination .page-info {
    font-size: clamp(0.75rem, 0.9vw + 0.6rem, 1rem); /* smaller base */
    font-weight: 600;
    padding: 0.35rem 0.9rem; /* smaller padding */
    border: 1px solid #00c853;
    border-radius: 0.35rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    min-width: 2rem;
    text-align: center;
}

/* Links */
.pagination a {
    color: #00c853;
}

.pagination a:hover {
    background: #00c853;
    color: #fff;
}

/* Info (disabled style) */
.pagination .page-info {
    background: #f1f8f4;
    color: #333;
    cursor: default;
    border-style: dashed;
}

/* Bigger size on larger screens */
@media (min-width: 1024px) {
    .pagination a,
    .pagination .page-info {
        font-size: 1.1rem;
        padding: 0.5rem 1.2rem;
        min-width: 2.3rem;
    }
}