/**
 * Digital Wellness Labs - Homepage Custom Styles
 *
 * Styling for 8 AEO Layers:
 * 1. Identity Header
 * 2. Trust Box
 * 3. Labs Grid
 * 4. Direct Answers
 * 5. Data Table
 * 6. Query Loop Sections
 * 7. FAQ
 * 8. E-E-A-T Footer
 */

/* ===== HEADER & MENU FIX ===== */
header .logo-section {
    padding-left: 120px !important;
}

nav.top_menu > ul {
    margin-left: 120px !important;
}


/* Global Container Centering */
.rh-container {
    max-width: 100%;
}

.rh-content-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.main-side.page.clearfix {
    float: left;
    width: calc(100% - 340px);
    padding: 0;
    padding-right: 30px;
}

.sidebar {
    float: right;
    width: 310px;
    padding: 0;
}

/* Content padding for wide screens */
@media (min-width: 1200px) {
    .rh-content-wrap {
        max-width: 1300px;
        padding: 0 40px;
    }
}

@media (min-width: 1530px) {
    .rh-content-wrap {
        max-width: 1400px;
        padding: 0 60px;
    }
}

/* ===== LAYER 1: SEMANTIC HEADER ===== */
.dwl-aeo-identity-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    margin: 0 0 80px 0;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.dwl-aeo-identity-header .identity-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.dwl-aeo-identity-header .identity-h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.dwl-aeo-identity-header .identity-tagline {
    font-size: 20px;
    color: #cbd5e1;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .main-side.page.clearfix {
        width: calc(100% - 300px);
        padding-right: 20px;
    }

    .sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .dwl-aeo-identity-header {
        padding: 60px 30px;
        margin-bottom: 60px;
    }

    .dwl-aeo-identity-header .identity-h1 {
        font-size: 32px;
    }

    .dwl-aeo-identity-header .identity-tagline {
        font-size: 16px;
    }

    .main-side.page.clearfix {
        float: none;
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .sidebar {
        float: none;
        width: 100%;
    }
}

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

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

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

.dwl-trust-box .trust-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 35px;
    justify-content: center;
}

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

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

@media (max-width: 768px) {
    .dwl-trust-box {
        padding: 30px;
        margin: 0 auto 60px auto;
    }

    .dwl-trust-box h2 {
        font-size: 20px;
    }
}

/* ===== LAYER 3: LABS GRID ===== */
.dwl-labs-grid-section {
    margin: 0 0 100px 0;
}

.dwl-labs-grid-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #0f172a;
    text-align: left;
}

.dwl-labs-grid-section .labs-intro {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 50px 0;
    line-height: 1.6;
    text-align: left;
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

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

@media (max-width: 1024px) {
    .labs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

.lab-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.lab-card:hover {
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.2);
    transform: translateY(-4px);
}

.lab-card-header {
    padding: 25px;
    border-bottom: 3px solid var(--lab-bright, #06b6d4);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, transparent 100%);
}

.lab-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #0f172a;
    line-height: 1.3;
    min-height: 45px;
    display: flex;
    align-items: flex-start;
}

.lab-card h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lab-card h3 a:hover {
    color: #06b6d4;
}

/* Color Variants - Using CSS Custom Properties */
/* Colors set via inline styles in front-page.php */

.lab-card h3 a {
    color: var(--lab-dark, #0f172a);
    transition: color 0.3s ease;
}

.lab-card h3 a:hover {
    color: var(--lab-bright, #06b6d4);
}

.lab-card-header {
    border-bottom: 3px solid var(--lab-bright, #06b6d4);
}

.lab-card .lab-cta {
    background: var(--lab-bright, #06b6d4);
    border-color: var(--lab-bright, #06b6d4);
    color: white;
}

.lab-card .lab-cta:hover {
    background: white;
    color: var(--lab-bright, #06b6d4);
}

.lab-card .lab-top-pick {
    border-left-color: var(--lab-bright, #06b6d4);
    background: rgba(6, 182, 212, 0.05);
}

.lab-card .lab-top-pick a {
    color: var(--lab-dark, #0f172a);
}

.lab-card .lab-count {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    font-weight: 700;
    min-height: 16px;
}

.lab-card .lab-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 auto 0;
    flex-grow: 1;
    min-height: 60px;
    padding: 0 25px;
}

.lab-card .lab-description:first-of-type {
    padding-top: 25px;
}

.lab-card .lab-top-pick {
    background: #f1f5f9;
    padding: 12px 25px;
    border-radius: 0;
    margin: 15px 0 15px 0;
    font-size: 13px;
    border-left: 3px solid #06b6d4;
}

.lab-card .lab-top-pick .top-pick-label {
    color: #64748b;
    margin: 0 0 6px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-card .lab-top-pick a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color 0.3s ease;
    font-size: 13px;
    line-height: 1.4;
}

.lab-card .lab-top-pick a:hover {
    color: #0891b2;
}

.lab-card .lab-cta {
    display: block;
    width: 100%;
    background: #06b6d4;
    color: white;
    padding: 14px 24px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #06b6d4;
    text-align: center;
    margin-top: auto;
}

.lab-card .lab-cta:hover {
    background: white;
    color: #06b6d4;
}

@media (max-width: 768px) {
    .dwl-labs-grid-section {
        margin-bottom: 80px;
    }

    .dwl-labs-grid-section h2 {
        font-size: 26px;
    }

    .dwl-labs-grid-section .labs-intro {
        margin-bottom: 35px;
    }

    .labs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lab-card {
        padding: 25px;
    }
}

/* ===== LAYER 4: DIRECT ANSWERS ===== */
.dwl-direct-answers {
    margin: 0 0 100px 0;
}

.dwl-direct-answers h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #0f172a;
}

.dwl-direct-answers .answers-intro {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 40px 0;
}

.answer-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

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

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

.answer-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #0f172a;
}

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

.answer-box .answer-link {
    display: inline-block;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .dwl-direct-answers h2 {
        font-size: 24px;
    }

    .answer-boxes {
        grid-template-columns: 1fr;
    }
}

/* ===== LAYER 5: DATA TABLE ===== */
.dwl-data-table-section {
    margin: 0 0 100px 0;
}

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

.dwl-data-table-section .table-intro {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 30px 0;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.dwl-benchmarks-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.dwl-benchmarks-table thead {
    background: #0f172a;
    color: white;
}

.dwl-benchmarks-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.dwl-benchmarks-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #475569;
}

.dwl-benchmarks-table tbody tr:hover {
    background: #f8fafc;
}

.dwl-benchmarks-table strong {
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 768px) {
    .dwl-data-table-section h2 {
        font-size: 24px;
    }

    .dwl-benchmarks-table th,
    .dwl-benchmarks-table td {
        padding: 12px;
        font-size: 13px;
    }
}

/* ===== LAYER 6: QUERY LOOP SECTIONS ===== */
.dwl-query-section {
    margin: 0 0 100px 0;
}

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

.dwl-query-section .section-intro {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 40px 0;
}

/* Research and Reviews Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

.research-card,
.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.research-card:hover,
.review-card:hover {
    border-color: #06b6d4;
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.1);
}

.research-card .card-header,
.review-card .card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #64748b;
}

.research-card h3,
.review-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.research-card h3 a,
.review-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.research-card h3 a:hover,
.review-card h3 a:hover {
    color: #06b6d4;
}

.card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.card-link {
    display: inline-block;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Comparisons List */
.comparisons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.comparison-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e2e8f0;
    color: #0f172a;
    padding: 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 80px;
}

.comparison-button:hover {
    border-color: #06b6d4;
    background: #f0f9fc;
    color: #06b6d4;
}

@media (max-width: 768px) {
    .dwl-query-section h2 {
        font-size: 24px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LAYER 7: FAQ SECTION ===== */
.dwl-faq-section {
    margin: 0 0 100px 0;
}

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

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    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;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    background: white;
    transition: all 0.3s 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: 12px;
    transition: transform 0.3s ease;
}

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

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

.faq-answer {
    display: none;
    padding: 20px;
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
}

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

.faq-answer p {
    margin: 0;
}

@media (max-width: 768px) {
    .dwl-faq-section h2 {
        font-size: 24px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px;
    }

    .faq-answer {
        padding: 16px;
        font-size: 14px;
    }
}

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

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

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

.eeat-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #0f172a;
}

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

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

.eeat-box li {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin: 8px 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;
    margin-top: 10px;
    transition: all 0.3s ease;
}

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

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

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

.stat .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 10px;
}

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

@media (max-width: 768px) {
    .dwl-eeat-footer {
        padding: 40px 20px;
    }

    .dwl-eeat-footer h2 {
        font-size: 24px;
    }

    .eeat-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dwl-stats-footer {
        padding: 30px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===== GENERAL RESPONSIVE ===== */
@media (max-width: 480px) {
    h1, h2 {
        word-break: break-word;
    }
}
