/**
 * Digital Wellness Labs - Shared Component Styles
 *
 * Loaded site-wide. Contains the design system components
 * used across hub pages, category hub pages, and utility pages.
 *
 * Components:
 * - Trust Box
 * - Answer Boxes
 * - Post/Card Grids
 * - FAQ Accordion
 * - E-E-A-T Footer
 * - Stats Bar
 * - Hub Identity Header
 * - Breadcrumb
 * - Related Categories
 * - CTA Box
 */

/* ===== SHARED LAYOUT ===== */
.dwl-page-wrap {
    max-width: 100%;
}

/* ===== BREADCRUMB ===== */
.dwl-breadcrumb {
    font-size: 0.9em;
    color: #64748b;
    margin: 0 0 20px 0;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dwl-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.dwl-breadcrumb a:hover {
    color: #06b6d4;
}

.dwl-breadcrumb .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #06b6d4;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
}

.dwl-breadcrumb .back-link:hover {
    color: #0891b2;
}

/* ===== HUB IDENTITY HEADER ===== */
.dwl-hub-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 40px;
    margin: 0 0 60px 0;
    border-radius: 8px;
}

.dwl-hub-header h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.dwl-hub-header .hub-tagline {
    font-size: 18px;
    color: #cbd5e1;
    margin: 0;
    font-weight: 400;
}

.dwl-hub-header .hub-meta {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.dwl-hub-header .hub-meta span {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dwl-hub-header .hub-meta strong {
    color: #06b6d4;
}

@media (max-width: 768px) {
    .dwl-hub-header {
        padding: 40px 24px;
        margin-bottom: 40px;
    }
    .dwl-hub-header h1 {
        font-size: 28px;
    }
    .dwl-hub-header .hub-tagline {
        font-size: 16px;
    }
}

/* ===== TRUST BOX ===== */
.dwl-trust-box {
    background: #f8fafc;
    border-left: 5px solid #06b6d4;
    padding: 40px;
    margin: 0 0 60px 0;
    border-radius: 6px;
}

.dwl-trust-box h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #0f172a;
}

.dwl-trust-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px 0;
}

.dwl-trust-box p:last-of-type {
    margin-bottom: 0;
}

.dwl-trust-box .trust-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.dwl-trust-box .trust-link {
    display: inline-block;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid #06b6d4;
    transition: all 0.2s ease;
}

.dwl-trust-box .trust-link:hover {
    background: #06b6d4;
    color: white;
}

@media (max-width: 768px) {
    .dwl-trust-box {
        padding: 24px;
        margin-bottom: 40px;
    }
}

/* ===== SECTION HEADINGS ===== */
.dwl-section {
    margin: 0 0 80px 0;
}

/* Strong specificity so REHub theme h2 styles don't win */
.main-side .dwl-section h2,
.main-side .dwl-section > h2,
.dwl-section > h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
    text-transform: none !important;
}

.dwl-section .section-intro {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 36px 0;
    line-height: 1.6;
}

/* ===== ANSWER BOXES ===== */
.dwl-answer-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .dwl-answer-boxes {
        grid-template-columns: 1fr;
    }
}

.answer-box {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 28px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.answer-box:hover {
    border-color: #06b6d4;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.answer-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #0f172a;
    line-height: 1.4;
}

.answer-box p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 14px 0;
}

.answer-box .answer-link {
    display: inline-block;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.answer-box .answer-link:hover {
    color: #0891b2;
}

/* ===== RELATED CATEGORIES ===== */
.dwl-related-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .dwl-related-cats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dwl-related-cats {
        grid-template-columns: 1fr;
    }
}

/* Matches answer-box card style — left-aligned, same border/hover, arrow link */
.related-cat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.related-cat-card:hover {
    border-color: #06b6d4;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.related-cat-card h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0 !important;
}

.related-cat-card h3 a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.related-cat-card h3 a:hover {
    color: #06b6d4 !important;
}

.related-cat-card p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.5 !important;
    flex: 1;
}

/* Plain inline arrow link matching .answer-link style */
.related-cat-card .cat-link {
    display: inline-block;
    background: none !important;
    color: #06b6d4 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    transition: color 0.2s;
    align-self: flex-start;
}

.related-cat-card .cat-link:hover {
    color: #0891b2 !important;
    background: none !important;
}

/* ===== CTA BOX ===== */
.dwl-cta-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #06b6d4;
    border-radius: 8px;
    padding: 36px 40px;
    text-align: center;
    margin: 0 0 60px 0;
}

.dwl-cta-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.dwl-cta-box p {
    font-size: 15px;
    color: #475569;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.dwl-cta-box .cta-button {
    display: inline-block;
    background: #06b6d4;
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.dwl-cta-box .cta-button:hover {
    background: #0891b2;
    color: white;
}

/* ===== FAQ ACCORDION ===== */
.dwl-faq-section {
    margin: 0 0 80px 0;
}

.dwl-faq-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 32px 0;
    color: #0f172a;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    cursor: pointer;
    padding: 20px 24px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    background: white;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f8fafc;
    color: #06b6d4;
}

.faq-question::after {
    content: "▼";
    font-size: 11px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    background: #f0f9fc;
    color: #06b6d4;
}

.faq-answer {
    display: none;
    padding: 20px 24px;
    color: #475569;
    line-height: 1.7;
    font-size: 15px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .dwl-faq-section h2 {
        font-size: 22px;
    }
    .faq-question {
        font-size: 15px;
        padding: 16px 18px;
    }
    .faq-answer {
        padding: 16px 18px;
        font-size: 14px;
    }
}

/* ===== E-E-A-T FOOTER ===== */
.dwl-eeat-footer {
    background: #f8fafc;
    padding: 50px 40px;
    border-radius: 8px;
    margin: 0 0 50px 0;
}

.dwl-eeat-footer h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 36px 0;
    color: #0f172a;
    text-align: center;
}

.eeat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
}

.eeat-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #0f172a;
    padding-bottom: 10px;
    border-bottom: 2px solid #06b6d4;
}

.eeat-box p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 12px 0;
}

.eeat-box ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.eeat-box li {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin: 6px 0;
}

.eeat-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #06b6d4;
    font-weight: bold;
}

.eeat-box a {
    display: inline-block;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
    transition: color 0.2s;
}

.eeat-box a:hover {
    color: #0891b2;
}

@media (max-width: 768px) {
    .dwl-eeat-footer {
        padding: 32px 20px;
    }
    .eeat-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== STATS BAR ===== */
.dwl-stats-footer {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px;
    margin: 0 0 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 8px;
    display: block;
}

.stat .stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .dwl-stats-footer {
        padding: 24px 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat .stat-number {
        font-size: 26px;
    }
}

/* ===== CATEGORY HUB — QUERY BLOCK CARD GRID ===== */
/* Targets wp:query blocks inside the dwl-cat-content wrapper */
.dwl-cat-content {
    margin: 0 0 60px 0;
}

.dwl-cat-content .wp-block-post-template.columns-3,
.dwl-cat-content .wp-block-post-template.is-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .dwl-cat-content .wp-block-post-template.columns-3,
    .dwl-cat-content .wp-block-post-template.is-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .dwl-cat-content .wp-block-post-template.columns-3,
    .dwl-cat-content .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
    }
}

.dwl-cat-content .wp-block-post {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.dwl-cat-content .wp-block-post:hover {
    border-color: #06b6d4;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.12);
    transform: translateY(-2px);
}

.dwl-cat-content .wp-block-post-featured-image {
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}

.dwl-cat-content .wp-block-post-featured-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
}

.dwl-cat-content .wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
}

.dwl-cat-content .wp-block-post-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 16px 16px 8px !important;
}

.dwl-cat-content .wp-block-post-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.dwl-cat-content .wp-block-post-title a:hover {
    color: #06b6d4 !important;
}

.dwl-cat-content .wp-block-post-excerpt {
    padding: 0 16px 16px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dwl-cat-content .wp-block-post-excerpt__excerpt {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin: 0 0 10px 0 !important;
}

.dwl-cat-content .wp-block-post-excerpt__more-link {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #06b6d4 !important;
    text-decoration: none !important;
}

.dwl-cat-content .wp-block-post-excerpt__more-link:hover {
    color: #0891b2 !important;
}

/* Query section headings inside cat-content (e.g., "Latest Reviews") */
.dwl-cat-content .wp-block-heading {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 48px 0 8px;
    padding-top: 0;
}

.dwl-cat-content .wp-block-heading:first-child {
    margin-top: 0;
}

/* Paragraph subheadings under query section titles */
.dwl-cat-content > .wp-block-group > p,
.dwl-cat-content .has-text-align-center {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px;
}

/* Spacers: reduce theme defaults inside content wrapper */
.dwl-cat-content .wp-block-spacer {
    height: 24px !important;
}

/* Query pagination */
.dwl-cat-content .wp-block-query-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ===== CORE HUB — GUTENBERG CATEGORY BROWSE GRID ===== */
/* The "Browse by Category" H2 + column cards from Gutenberg content */
.dwl-hub-content {
    margin: 0 0 60px 0;
}

.dwl-hub-content .wp-block-heading {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 24px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: none !important;
}

/* ── Core Hub: gsbp Element blocks have ZERO CSS output from Greenshift.
      Target them with attribute-contains selector to apply card styling.    ── */
.dwl-hub-content [class*="gsbp-"] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
    transition: all 0.2s ease;
}

.dwl-hub-content [class*="gsbp-"]:hover {
    border-color: #06b6d4;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

/* h3 titles inside hub category cards */
.dwl-hub-content [class*="gsbp-"] h3,
.dwl-hub-content [class*="gsbp-"] .wp-block-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
    text-align: center;
}

.dwl-hub-content [class*="gsbp-"] h3 a {
    color: #0f172a !important;
    text-decoration: none !important;
}

.dwl-hub-content [class*="gsbp-"] h3 a:hover {
    color: #06b6d4 !important;
}

.dwl-hub-content [class*="gsbp-"] p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.5 !important;
    text-align: center;
}

/* ── Button colour override — needs 4 classes (specificity 0,4,0) to beat
      REHub inline style: .wp-block-button .wp-block-button__link (0,2,0)
      which uses !important and loads after linked CSS in document order.  ── */
.dwl-hub-content .wp-block-buttons .wp-block-button .wp-block-button__link,
.dwl-hub-content .wp-block-buttons .wp-block-button .wp-element-button {
    background: #06b6d4 !important;
    background-color: #06b6d4 !important;
    color: #ffffff !important;
    border-color: #06b6d4 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
}

.dwl-hub-content .wp-block-buttons .wp-block-button .wp-block-button__link:hover,
.dwl-hub-content .wp-block-buttons .wp-block-button .wp-element-button:hover {
    background: #0891b2 !important;
    background-color: #0891b2 !important;
    color: #ffffff !important;
    border-color: #0891b2 !important;
    box-shadow: none !important;
}

/* ===== SECTION SPACING — Core Hub vs Category Hub ===== */
/* Core Hub: slightly more generous spacing between sections */
.page-template-page-template-core-hub-php .dwl-section {
    margin-bottom: 100px;
}

/* Category Hub: tighter spacing to keep focused */
.page-template-page-template-category-hub-php .dwl-section {
    margin-bottom: 64px;
}

/* =====================================================================
   ABOUT / INFO PAGE TEMPLATE
   ===================================================================== */

/* ── Page header ── */
.dwl-about-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 56px 48px 48px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.dwl-about-header h1 {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 12px !important;
    line-height: 1.2 !important;
}

.dwl-about-tagline {
    font-size: 17px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
    max-width: 680px;
}

@media (max-width: 768px) {
    .dwl-about-header {
        padding: 36px 24px 32px;
    }
    .dwl-about-header h1 {
        font-size: 28px !important;
    }
}

/* ── Content area typography ── */
.dwl-about-content {
    max-width: 860px;
    padding: 0 0 48px;
}

.dwl-about-content h1,
.dwl-about-content h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 36px 0 12px !important;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.dwl-about-content h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 24px 0 8px !important;
}

.dwl-about-content h4 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin: 20px 0 6px !important;
}

.dwl-about-content p {
    font-size: 15px;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 16px;
}

.dwl-about-content ul,
.dwl-about-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.dwl-about-content li {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 6px;
}

.dwl-about-content a {
    color: #06b6d4;
    text-decoration: underline;
}

.dwl-about-content a:hover {
    color: #0891b2;
}

.dwl-about-content strong {
    color: #0f172a;
    font-weight: 600;
}

/* ── Legal pages: tighten spacing on numbered sections ── */
.page-id-225 .dwl-about-content h1,
.page-id-227 .dwl-about-content h1,
.page-id-194 .dwl-about-content h2,
.page-id-206 .dwl-about-content h2 {
    font-size: 20px !important;
    margin-top: 28px !important;
}

/* =====================================================================
   LATEST REVIEWS TEMPLATE
   ===================================================================== */

/* ── Category filter nav ── */
.dwl-review-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 36px;
    padding: 20px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dwl-filter-pill {
    display: inline-block;
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.dwl-filter-pill:hover,
.dwl-filter-pill.active {
    background: #06b6d4;
    border-color: #06b6d4;
    color: #ffffff !important;
}

/* ── Reviews content wrapper ── */
.dwl-reviews-content {
    margin-bottom: 60px;
}

.dwl-reviews-section-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 24px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* ── Featured recent posts grid (3-col) ── */
.dwl-reviews-featured {
    margin-bottom: 48px;
}

.dwl-recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .dwl-recent-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dwl-recent-posts-grid {
        grid-template-columns: 1fr;
    }
}

.dwl-recent-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dwl-recent-post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dwl-recent-post-thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.dwl-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dwl-recent-post-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dwl-recent-post-cats span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #06b6d4;
    margin-bottom: 8px;
}

.dwl-recent-post-body h3 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 0 0 8px !important;
}

.dwl-recent-post-body h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.dwl-recent-post-body h3 a:hover {
    color: #06b6d4 !important;
}

.dwl-recent-post-body p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}

.dwl-read-more-link {
    font-size: 13px;
    font-weight: 600;
    color: #06b6d4 !important;
    text-decoration: none !important;
    margin-top: auto;
}

.dwl-read-more-link:hover {
    color: #0891b2 !important;
}

/* ── Directory section (rehub block wrapper) ── */
.dwl-reviews-directory {
    padding-top: 8px;
}

/* =====================================================================
   BEST OF LISTS TEMPLATE
   ===================================================================== */

/* ── Hero ── */
.dwl-bol-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 64px 48px 52px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.dwl-bol-hero h1 {
    font-size: 38px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 14px !important;
    line-height: 1.2 !important;
}

.dwl-bol-hero-sub {
    font-size: 16px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.dwl-bol-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.dwl-bol-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #67e8f9;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .dwl-bol-hero {
        padding: 40px 24px 36px;
    }
    .dwl-bol-hero h1 {
        font-size: 28px !important;
    }
}

/* ── Quick Top Picks table ── */
.dwl-bol-picks {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 36px;
}

.dwl-bol-picks-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 16px !important;
}

.dwl-bol-picks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dwl-bol-picks-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 8px 12px;
    border-bottom: 2px solid #e2e8f0;
}

.dwl-bol-picks-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.dwl-bol-picks-table tr:last-child td {
    border-bottom: none;
}

.dwl-bol-picks-table a {
    color: #06b6d4 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.dwl-bol-picks-table a:hover {
    color: #0891b2 !important;
}

/* ── Section nav pills ── */
.dwl-bol-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
    padding: 18px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dwl-bol-pill {
    display: inline-block;
    padding: 7px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.dwl-bol-pill:hover {
    background: #06b6d4;
    border-color: #06b6d4;
    color: #ffffff !important;
}

/* ── Section ── */
.dwl-bol-section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.dwl-bol-section-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.dwl-bol-section-header h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 4px !important;
}

.dwl-bol-subtitle {
    font-size: 14px;
    color: #64748b;
}

/* ── Post cards grid (4-col) ── */
.dwl-bol-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .dwl-bol-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dwl-bol-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dwl-bol-grid {
        grid-template-columns: 1fr;
    }
}

.dwl-bol-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dwl-bol-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dwl-bol-card-thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.dwl-bol-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dwl-bol-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dwl-bol-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #06b6d4;
    margin-bottom: 6px;
}

.dwl-bol-card-body h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 0 0 auto !important;
    padding-bottom: 10px;
}

.dwl-bol-card-body h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.dwl-bol-card-body h3 a:hover {
    color: #06b6d4 !important;
}

.dwl-bol-read-more {
    font-size: 12px;
    font-weight: 600;
    color: #06b6d4 !important;
    text-decoration: none !important;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
}

.dwl-bol-read-more:hover {
    color: #0891b2 !important;
}
