/*
Theme Name: Astra Child - Workforce Rights & Injury Compensation
Theme URI: https://rights.mobeai.com
Description: High-Authority Custom Child Theme for Workforce Rights & Injury Compensation Procedural Portal.
Author: Marcus Vance, CSP
Author URI: https://rights.mobeai.com/about-us/
Template: astra
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Rubik:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --primary-navy: #0f172a;
    --secondary-slate: #1e293b;
    --accent-amber: #d97706;
    --accent-amber-hover: #b45309;
    --accent-blue: #0284c7;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .entry-title, .entry-title a, .site-title, .site-title a {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--primary-navy) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Header & Navigation */
.main-header-bar {
    background-color: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}

.site-title a {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--primary-navy) !important;
    text-transform: none;
    letter-spacing: -0.5px;
}

.main-navigation a {
    font-family: 'Rubik', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--secondary-slate) !important;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--accent-amber) !important;
}

/* --- High-Authority 3 Articles Per Row Grid (Homepage & Archives like ios.e5tarle.net) --- */
.site-content {
    background-color: #f1f5f9 !important;
    padding-top: 40px !important;
    padding-bottom: 60px !important;
}

.ast-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#primary.content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

#primary #main {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The true grid wrapper in Astra */
.ast-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 1024px) {
    .ast-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 680px) {
    .ast-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Article Cards like ios.e5tarle.net */
.ast-row article.ast-article-post {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    padding: 24px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    float: none !important;
}

.ast-row article.ast-article-post:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 20px -3px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.ast-row article .post-content {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.ast-row article .cat-links a {
    color: #0284c7 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
}

.ast-row article .entry-title {
    font-family: 'Rubik', sans-serif !important;
    font-size: 18.5px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    margin: 6px 0 12px 0 !important;
}

.ast-row article .entry-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ast-row article .entry-title a:hover {
    color: #d97706 !important;
}

.ast-row article .entry-meta {
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
}

.ast-row article .ast-excerpt-container p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin: 0 !important;
}


/* Card Read More Link */
.ast-read-more {
    display: inline-flex !important;
    align-items: center !important;
    font-family: 'Rubik', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--accent-amber) !important;
    text-decoration: none !important;
    margin-top: auto !important;
    padding-top: 12px !important;
}

.ast-read-more:hover {
    color: var(--accent-amber-hover) !important;
    text-decoration: underline !important;
}

/* Single Article Styling */
.single .ast-article-single {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    margin-top: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .single .ast-article-single {
        padding: 22px;
        margin-top: 20px;
    }
}

.single .entry-title {
    font-size: 32px !important;
    line-height: 1.35 !important;
    margin-bottom: 20px !important;
    color: var(--primary-navy) !important;
}

@media (max-width: 768px) {
    .single .entry-title {
        font-size: 24px !important;
    }
}

/* Author Byline & E-E-A-T Banner */
.author-byline-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    border-left: 4px solid var(--primary-navy);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    color: #475569;
    margin: 22px 0 28px 0;
}

.author-byline-banner strong {
    color: var(--primary-navy);
}

.author-byline-banner .badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e2e8f0;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Quick Answer Box */
.quick-answer-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 6px solid var(--accent-amber);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 28px 0;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.06);
}

.quick-answer-box .qa-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quick-answer-box p {
    font-size: 15.5px;
    line-height: 1.65;
    color: #78350f;
    margin: 0;
}

/* Action CTA Box */
.action-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 24px 28px;
    margin: 32px 0;
    color: #ffffff;
    box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.15);
}

.action-cta h4 {
    font-family: 'Rubik', sans-serif !important;
    color: #f8fafc !important;
    font-size: 20px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

.action-cta p {
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.action-cta .cta-button {
    display: inline-block;
    background: var(--accent-amber);
    color: #ffffff !important;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.action-cta .cta-button:hover {
    background: var(--accent-amber-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Table of Contents Box */
.table-of-contents-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px 26px;
    margin: 30px 0;
}

.table-of-contents-box .toc-title {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-of-contents-box ol {
    margin: 0;
    padding-left: 20px;
}

.table-of-contents-box li {
    margin-bottom: 8px;
    font-size: 14.5px;
    line-height: 1.5;
}

.table-of-contents-box li a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents-box li a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

/* Procedural Script Box */
.procedural-script-box {
    background: #f8fafc;
    border-left: 5px solid #2563eb;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 28px 0;
    font-family: 'Poppins', sans-serif;
}

.procedural-script-box .script-label {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e40af;
    margin-bottom: 8px;
    display: block;
}

.procedural-script-box blockquote {
    font-style: italic;
    color: #1e293b;
    border-left: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* Official Sources Box */
.official-sources-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 22px 26px;
    margin: 34px 0;
}

.official-sources-box h4 {
    font-family: 'Rubik', sans-serif !important;
    font-size: 16px !important;
    color: var(--primary-navy) !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.official-sources-box ul {
    margin: 0;
    padding-left: 20px;
}

.official-sources-box li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.5;
}

.official-sources-box a {
    color: #0369a1;
    text-decoration: underline;
    font-weight: 500;
}

/* Statutory Disclaimer Box */
.statutory-disclaimer-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 32px 0 20px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.statutory-disclaimer-box strong {
    color: #475569;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
}

.faq-section h3 {
    font-size: 22px !important;
    margin-bottom: 20px !important;
    color: var(--primary-navy) !important;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.faq-question {
    font-family: 'Rubik', sans-serif;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14.5px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

/* --- High-Authority Responsive Data Tables --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

table.historic-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

table.historic-data-table thead th {
    background-color: #0f172a !important;
    color: #ffffff !important;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

table.historic-data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}

table.historic-data-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

table.historic-data-table tbody tr:hover {
    background-color: #f1f5f9;
}

table.historic-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Footer Styling */
.site-footer {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    padding-top: 30px;
    padding-bottom: 20px;
    border-top: 3px solid #1e293b;
    margin-top: 60px;
}

.site-footer a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #f59e0b !important;
}

.site-footer .footer-quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.site-footer .footer-quick-links li {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.site-footer .footer-copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid #1e293b;
    padding-top: 16px;
}
