/*
 * Pro Review Article Styles (v2.0)
 */

:root {
    --pra-primary-color: #d9534f; /* A nice review/alert red */
    --pra-primary-hover: #c9302c;
    --pra-secondary-color: #f9f9f9;
    --pra-border-color: #e5e5e5;
    --pra-text-color: #333;
    --pra-meta-color: #777;
    --pra-star-color: #f0ad4e; /* A gold/yellow for stars */
    --pra-pro-color: #5cb85c;
    --pra-con-color: #d9534f;
    --pra-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --pra-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
    --pra-radius: 8px;
}

/* --- Main Article Wrapper --- */
.review-article-single {
    color: var(--pra-text-color);
    line-height: 1.7;
}

.review-article-single .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.review-article-single .entry-summary {
    font-size: 1.1rem;
    color: var(--pra-meta-color);
    border-bottom: 1px solid var(--pra-border-color);
    padding-bottom: 1.5em;
}

.review-section {
    margin: 3em 0;
    padding: 2.5em 0;
    border-bottom: 1px solid var(--pra-border-color);
}
.review-section:last-child {
    border-bottom: none;
}

.review-section > h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--pra-primary-color);
    display: inline-block;
}

/* --- General Button Style --- */
.pra-button {
    display: inline-block;
    padding: 0.8em 1.5em;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--pra-radius);
    background-color: var(--pra-secondary-color);
    color: var(--pra-primary-color);
    border: 2px solid var(--pra-primary-color);
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.pra-button:hover,
.pra-button-primary {
    background-color: var(--pra-primary-color);
    color: #fff;
    border-color: var(--pra-primary-color);
}

.pra-button-primary:hover {
    background-color: var(--pra-primary-hover);
    border-color: var(--pra-primary-hover);
}

/* --- 4. Top 5 Picks Summary --- */
.top-picks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.top-pick-item {
    background: #fff;
    border: 1px solid var(--pra-border-color);
    border-radius: var(--pra-radius);
    box-shadow: var(--pra-shadow);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.top-pick-item:hover {
    box-shadow: var(--pra-shadow-hover);
}

.top-pick-item .top-pick-image {
    padding: 1em;
    text-align: center;
    border-bottom: 1px solid var(--pra-border-color);
}
.top-pick-item .top-pick-image img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
}

.top-pick-item .top-pick-content {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.top-pick-item h3 {
    margin-top: 0;
    font-size: 1.2rem;
}
.top-pick-item p {
    font-size: 0.9rem;
    color: var(--pra-meta-color);
    flex-grow: 1;
}
.top-pick-item .pra-button {
    width: 100%;
}

/* --- 5. Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    text-align: center;
}
.comparison-table th,
.comparison-table td {
    padding: 1em;
    border: 1px solid var(--pra-border-color);
    vertical-align: middle;
}
.comparison-table thead {
    background-color: #fff;
    font-size: 0.9rem;
}
.comparison-table thead th:first-child {
    text-align: left;
    font-size: 1.1rem;
}
.comparison-table tbody td:first-child {
    text-align: left;
}
.comparison-table .comparison-header-image img {
    max-height: 150px;
    width: auto;
    max-width: 100%;
    margin-bottom: 0.5em;
}
.comparison-table thead a {
    text-decoration: none;
    color: var(--pra-text-color);
    font-weight: 600;
}
.comparison-table .button-row td {
    background-color: var(--pra-secondary-color);
    padding: 1.5em 1em;
}

/* --- 6. Individual Product Reviews --- */
.product-review-item {
    background: #fff;
    border: 1px solid var(--pra-border-color);
    border-radius: var(--pra-radius);
    box-shadow: var(--pra-shadow);
    margin-bottom: 2em;
    position: relative;
    overflow: hidden;
}
.product-review-item.top-pick {
    border-color: var(--pra-star-color);
    box-shadow: 0 4px 16px rgba(240, 173, 78, 0.2);
}

.top-pick-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--pra-star-color);
    color: #fff;
    padding: 0.5em 1em;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom-left-radius: var(--pra-radius);
}

.product-review-item h3 {
    font-size: 1.5rem;
    margin: 0;
    padding: 1em 1.5em;
    background: var(--pra-secondary-color);
}
.product-review-item.top-pick h3 {
    background: #fffaf0;
}

.product-review-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2em;
    padding: 2em 1.5em;
}

.product-image img {
    max-width: 100%;
    height: auto;
}

.product-details {
    font-size: 0.95rem;
}
.product-details p:first-child {
    margin-top: 0;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    margin-top: 2em;
    font-size: 0.9rem;
    padding: 2em 1.5em;
}
.pros-cons h4 {
    margin-top: 0;
    border-bottom: 1px solid var(--pra-border-color);
    padding-bottom: 0.5em;
}
.pros-cons ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: none;
}
.pros-cons ul li {
    position: relative;
    margin-bottom: 0.5em;
}
.pros-cons .pros ul li::before {
    content: '✔';
    color: var(--pra-pro-color);
    position: absolute;
    left: -1.4em;
    font-weight: 700;
}
.pros-cons .cons ul li::before {
    content: '✖';
    color: var(--pra-con-color);
    position: absolute;
    left: -1.4em;
    font-weight: 700;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em;
    background: var(--pra-secondary-color);
    border-top: 1px solid var(--pra-border-color);
}
.product-verdict {
    color: var(--pra-meta-color);
    font-size: 0.9rem;
}
.product-verdict strong {
    color: var(--pra-text-color);
}

/* --- 8. FAQ Section --- */
.faq-item {
    border: 1px solid var(--pra-border-color);
    border-radius: var(--pra-radius);
    margin-bottom: 1em;
}
.faq-item summary {
    padding: 1em 1.5em;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none; /* Hide default arrow */
}
.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow */
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--pra-primary-color);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-answer {
    padding: 0 1.5em 1.5em 1.5em;
    border-top: 1px solid var(--pra-border-color);
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .review-article-single .entry-title {
        font-size: 2rem;
    }
    .review-section > h2 {
        font-size: 1.7rem;
    }
    .product-review-content {
        grid-template-columns: 1fr;
    }
    .product-image {
        max-width: 300px;
        margin: 0 auto 1.5em auto;
    }
    .pros-cons {
        grid-template-columns: 1fr;
    }
    .product-footer {
        flex-direction: column;
        gap: 1em;
    }
    .product-footer .pra-button {
        width: 100%;
    }
}

/* --- 5. Comparison Table (Updates for Auto-Pros) --- */
.comparison-table .rating-cell strong {
    font-size: 1.2rem;
    color: var(--pra-text-color);
    white-space: nowrap;
}

.comparison-table .pros-cell {
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
}

.comparison-table .pros-cell ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: none;
}

.comparison-table .pros-cell ul li {
    position: relative;
    margin-bottom: 0.3em;
}

.comparison-table .pros-cell ul li::before {
    content: '✔';
    color: var(--pra-pro-color);
    position: absolute;
    left: -1.4em;
    font-weight: 700;
}


/* --- 9. Author Bio Section --- */
.author-bio-box {
    display: flex;
    align-items: flex-start;
    gap: 2em;
    background: var(--pra-secondary-color);
    padding: 2em;
    border-radius: var(--pra-radius);
    border: 1px solid var(--pra-border-color);
}

.author-avatar {
    flex-shrink: 0; /* Prevents avatar from shrinking */
}

.author-avatar-img {
    border-radius: 50%; /* Makes avatar circular */
    display: block;
}

.author-info h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.5rem;
}

.author-info h3 a {
    text-decoration: none;
    color: var(--pra-text-color);
    transition: color 0.2s ease;
}

.author-info h3 a:hover {
    color: var(--pra-primary-color);
}

.author-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive styles for author box */
@media (max-width: 600px) {
    .author-bio-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5em;
    }
}
.author-bio-box{
  display: flex;
  justify-content: center;
  align-items: center;
}
.author-bio-box>.author-avatar{flex: 1; display: flex; justify-content: center;}
.author-bio-box>.author-info{flex: 4}
.ast-separate-container .ast-article-single{padding: 0; }

/*
 * Pro Review Article Styles (v2.3)
 */

:root {
    --pra-primary-color: #d9534f; /* A nice review/alert red */
    --pra-primary-hover: #c9302c;
    --pra-secondary-color: #f9f9f9;
    --pra-border-color: #e5e5e5;
    --pra-text-color: #333;
    --pra-meta-color: #777;
    --pra-star-color: #f0ad4e; /* A gold/yellow for stars */
    --pra-pro-color: #5cb85c;
    --pra-con-color: #d9534f;
    --pra-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --pra-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
    --pra-radius: 8px;
}

/*
 * 1. GENERAL BUTTON STYLE
 */
.pra-button {
    display: inline-block;
    padding: 0.8em 1.5em;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--pra-radius);
    background-color: var(--pra-secondary-color);
    color: var(--pra-primary-color);
    border: 2px solid var(--pra-primary-color);
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.pra-button:hover,
.pra-button-primary {
    background-color: var(--pra-primary-color);
    color: #fff;
    border-color: var(--pra-primary-color);
}

.pra-button-primary:hover {
    background-color: var(--pra-primary-hover);
    border-color: var(--pra-primary-hover);
}

/*
 * 2. SINGLE REVIEW POST STYLES
 */

/* --- Main Article Wrapper --- */
.review-article-single {
    color: var(--pra-text-color);
    line-height: 1.7;
}

.review-article-single .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.review-article-single .entry-summary {
    font-size: 1.1rem;
    color: var(--pra-meta-color);
    border-bottom: 1px solid var(--pra-border-color);
    padding-bottom: 1.5em;
}

.review-section {
    margin: 3em 0;
    padding: 2.5em 0;
    border-bottom: 1px solid var(--pra-border-color);
}
.review-section:last-child {
    border-bottom: none;
}

.review-section > h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--pra-primary-color);
    display: inline-block;
}

/* --- Top 5 Picks Summary --- */
.top-picks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.top-pick-item {
    background: #fff;
    border: 1px solid var(--pra-border-color);
    border-radius: var(--pra-radius);
    box-shadow: var(--pra-shadow);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.top-pick-item:hover {
    box-shadow: var(--pra-shadow-hover);
}

.top-pick-item .top-pick-image {
    padding: 1em;
    text-align: center;
    border-bottom: 1px solid var(--pra-border-color);
    height: 215px !important;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.top-pick-item .top-pick-image img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
}

.top-pick-item .top-pick-content {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.top-pick-item h3 {
    margin-top: 0;
    font-size: 1.2rem;
}
.top-pick-item p {
    font-size: 0.9rem;
    color: var(--pra-meta-color);
    flex-grow: 1;
}
.top-pick-item .pra-button {
    width: 100%;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    text-align: center;
}
.comparison-table th,
.comparison-table td {
    padding: 1em;
    border: 1px solid var(--pra-border-color);
    vertical-align: middle;
}
.comparison-table thead {
    background-color: #fff;
    font-size: 0.9rem;
}
.comparison-table thead th:first-child {
    text-align: left;
    font-size: 1.1rem;
}
.comparison-table tbody td:first-child {
    text-align: left;
}
.comparison-table .comparison-header-image img {
    max-height: 150px;
    width: auto;
    max-width: 100%;
    margin-bottom: 0.5em;
}
.comparison-table thead a {
    text-decoration: none;
    color: var(--pra-text-color);
    font-weight: 600;
}
.comparison-table .button-row td {
    background-color: var(--pra-secondary-color);
    padding: 1.5em 1em;
}

.comparison-table .rating-cell strong {
    font-size: 1.2rem;
    color: var(--pra-text-color);
    white-space: nowrap;
}

.comparison-table .pros-cell {
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
}

.comparison-table .pros-cell ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: none;
}

.comparison-table .pros-cell ul li {
    position: relative;
    margin-bottom: 0.3em;
}

.comparison-table .pros-cell ul li::before {
    content: '✔';
    color: var(--pra-pro-color);
    position: absolute;
    left: -1.4em;
    font-weight: 700;
}


/* --- Individual Product Reviews --- */
.product-review-item {
    background: #fff;
    border: 1px solid var(--pra-border-color);
    border-radius: var(--pra-radius);
    box-shadow: var(--pra-shadow);
    margin-bottom: 2em;
    position: relative;
    overflow: hidden;
}
.product-review-item.top-pick {
    border-color: var(--pra-star-color);
    box-shadow: 0 4px 16px rgba(240, 173, 78, 0.2);
}

.top-pick-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--pra-star-color);
    color: #fff;
    padding: 0.5em 1em;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom-left-radius: var(--pra-radius);
}

.product-review-item h3 {
    font-size: 1.5rem;
    margin: 0;
    padding: 1em 1.5em;
    background: var(--pra-secondary-color);
}
.product-review-item.top-pick h3 {
    background: #fffaf0;
}

.product-image {
    text-align: center;
    height: 215px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.product-image img {
    max-width: 100%;
    height: auto;
}

.product-details {
    font-size: 0.95rem;
}
.product-details p:first-child {
    margin-top: 0;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    margin-top: 2em;
    font-size: 0.9rem;
}
.pros-cons h4 {
    margin-top: 0;
    border-bottom: 1px solid var(--pra-border-color);
    padding-bottom: 0.5em;
}
.pros-cons ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: none;
}
.pros-cons ul li {
    position: relative;
    margin-bottom: 0.5em;
}
.pros-cons .pros ul li::before {
    content: '✔';
    color: var(--pra-pro-color);
    position: absolute;
    left: -1.4em;
    font-weight: 700;
}
.pros-cons .cons ul li::before {
    content: '✖';
    color: var(--pra-con-color);
    position: absolute;
    left: -1.4em;
    font-weight: 700;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em;
    background: var(--pra-secondary-color);
    border-top: 1px solid var(--pra-border-color);
}
.product-verdict {
    color: var(--pra-meta-color);
    font-size: 0.9rem;
}
.product-verdict strong {
    color: var(--pra-text-color);
}

/* --- FAQ Section --- */
.faq-item {
    border: 1px solid var(--pra-border-color);
    border-radius: var(--pra-radius);
    margin-bottom: 1em;
}
.faq-item summary {
    padding: 1em 1.5em;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none; /* Hide default arrow */
}
.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow */
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--pra-primary-color);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-answer {
    padding: 0 1.5em 1.5em 1.5em;
    border-top: 1px solid var(--pra-border-color);
}

/* --- Author Bio Section --- */
.author-bio-box {
    display: flex;
    align-items: flex-start;
    gap: 2em;
    background: var(--pra-secondary-color);
    padding: 2em;
    border-radius: var(--pra-radius);
    border: 1px solid var(--pra-border-color);
}
.author-avatar {
    flex-shrink: 0;
}
.author-avatar-img {
    border-radius: 50%;
    display: block;
}
.author-info h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.5rem;
}
.author-info h3 a {
    text-decoration: none;
    color: var(--pra-text-color);
    transition: color 0.2s ease;
}
.author-info h3 a:hover {
    color: var(--pra-primary-color);
}
.author-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/*
 * 3. REVIEW ARCHIVE PAGE (SHORTCODE) STYLES
 */
.review-archive-grid {
    display: grid;
    /* This creates a responsive grid */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2em;
    margin-bottom: 3em;
}

.review-archive-card {
    background: #fff;
    border: 1px solid var(--pra-border-color);
    border-radius: var(--pra-radius);
    box-shadow: var(--pra-shadow);
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.review-archive-card:hover {
    box-shadow: var(--pra-shadow-hover);
    transform: translateY(-5px); /* Eye-catchy hover effect */
}

.card-thumbnail-link {
    display: block;
    text-decoration: none;
}

.card-thumbnail {
    border-top-left-radius: var(--pra-radius);
    border-top-right-radius: var(--pra-radius);
    overflow: hidden;
    height: 220px;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the space */
}

.card-thumbnail-placeholder {
    height: 220px;
    background-color: var(--pra-secondary-color);
    background-image: linear-gradient(45deg, var(--pra-border-color) 25%, transparent 25%, transparent 75%, var(--pra-border-color) 75%, var(--pra-border-color)), 
                      linear-gradient(45deg, var(--pra-border-color) 25%, transparent 25%, transparent 75%, var(--pra-border-color) 75%, var(--pra-border-color));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.5;
}

.card-content {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This makes the card footers align */
}

.card-content .entry-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.card-content .entry-title a {
    text-decoration: none;
    color: var(--pra-text-color);
}
.card-content .entry-title a:hover {
    color: var(--pra-primary-color);
}

.card-content .entry-summary {
    font-size: 0.95rem;
    color: var(--pra-meta-color);
    flex-grow: 1; /* Pushes button to the bottom */
    margin-bottom: 1.5em;
}

.card-content .pra-button {
    width: 100%;
}

/* --- Pagination --- */
.pagination-container {
    margin-top: 3em;
    text-align: center;
}
.pagination-container .page-numbers {
    padding: 0.5em 1em;
    margin: 0 0.25em;
    border: 1px solid var(--pra-border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--pra-primary-color);
    transition: all 0.2s ease;
}
.pagination-container .page-numbers:hover {
    background: var(--pra-secondary-color);
}
.pagination-container .page-numbers.current {
    background: var(--pra-primary-color);
    color: #fff;
    border-color: var(--pra-primary-color);
}

/*
 * 4. RESPONSIVE STYLES
 */
@media (max-width: 768px) {
    .review-article-single .entry-title {
        font-size: 2rem;
    }
    .review-section > h2 {
        font-size: 1.7rem;
    }
    .product-review-content {
        grid-template-columns: 1fr;
    }
    .product-image {
        max-width: 300px;
        margin: 0 auto 1.5em auto;
    }
    .pros-cons {
        grid-template-columns: 1fr;
    }
    .product-footer {
        flex-direction: column;
        gap: 1em;
    }
    .product-footer .pra-button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .author-bio-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5em;
    }
}

.entry-header{
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.entry-title{
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #1C0D0A;
  margin: 0;
  text-align: center !important;
}

/*
*
* Custom CSS by - Maher Hossain
*
*/
