/* ============================================
   Narrav - AIO / AI Search Content Components
   ============================================ */

.definition-section,
.faq-section,
.article-hub,
.service-detail-section {
    padding: 6rem 0;
    background: #fff;
}

.definition-section.alt,
.faq-section.alt,
.article-hub.alt,
.service-detail-section.alt {
    background: #f8fafc;
}

.definition-block {
    max-width: 920px;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #1E40AF;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.definition-block h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #0f172a;
}

.definition-block p {
    color: #475569;
    line-height: 2;
}

.definition-block .direct-answer,
.direct-answer {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.last-updated {
    display: inline-flex;
    margin-top: 1.5rem;
    padding: 0.35rem 0.75rem;
    background: #eff6ff;
    color: #1E40AF;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.facts-grid,
.benefit-grid,
.article-grid,
.process-grid {
    display: grid;
    gap: 1.5rem;
}

.facts-grid {
    grid-template-columns: repeat(4, 1fr);
}

.benefit-grid,
.article-grid {
    grid-template-columns: repeat(3, 1fr);
}

.process-grid {
    grid-template-columns: repeat(4, 1fr);
}

.fact-card,
.benefit-card,
.article-card,
.process-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.fact-label,
.article-label,
.process-number {
    display: block;
    margin-bottom: 0.75rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1E40AF;
    text-transform: uppercase;
}

.fact-card h3,
.benefit-card h3,
.article-card h3,
.process-card h3 {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.fact-card p,
.benefit-card p,
.article-card p,
.process-card p {
    color: #64748b;
    line-height: 1.8;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.article-card a {
    margin-top: auto;
    padding-top: 1rem;
    color: #1E40AF;
    font-weight: 700;
}

.faq-list {
    display: grid;
    gap: 1rem;
    max-width: 960px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 2rem;
}

.faq-item h3 {
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.faq-item p {
    color: #475569;
    line-height: 1.9;
}

.comparison-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #eff6ff;
    color: #0f172a;
    font-weight: 700;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td {
    color: #475569;
}

.service-hero {
    padding: 11rem 0 6rem;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.service-hero h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.service-hero-lead {
    font-size: 1.125rem;
    line-height: 2;
    color: #475569;
    margin-bottom: 2rem;
}

.service-hero-panel {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.service-hero-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-hero-panel ul {
    display: grid;
    gap: 0.75rem;
}

.service-hero-panel li {
    position: relative;
    padding-left: 1.5rem;
    color: #475569;
}

.service-hero-panel li::before {
    content: '';
    position: absolute;
    top: 0.8rem;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1E40AF;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
    align-items: start;
}

.article-body {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 3rem;
}

.article-body h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.45;
    margin: 3rem 0 1rem;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.article-body p {
    color: #475569;
    line-height: 2;
    margin-bottom: 1rem;
}

.article-body ul {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}

.article-body li {
    position: relative;
    padding-left: 1.5rem;
    color: #475569;
}

.article-body li::before {
    content: '';
    position: absolute;
    top: 0.8rem;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1E40AF;
}

.article-side {
    position: sticky;
    top: 7rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.article-side h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.article-side ul {
    display: grid;
    gap: 0.75rem;
}

.article-side a {
    color: #475569;
    font-size: 0.9375rem;
}

.article-side a:hover {
    color: #1E40AF;
}

@media (max-width: 1024px) {
    .facts-grid,
    .benefit-grid,
    .article-grid,
    .process-grid,
    .service-hero-grid,
    .article-layout {
        grid-template-columns: 1fr 1fr;
    }

    .article-side {
        position: static;
    }
}

@media (max-width: 768px) {
    .definition-section,
    .faq-section,
    .article-hub,
    .service-detail-section {
        padding: 4rem 0;
    }

    .definition-block,
    .article-body,
    .service-hero-panel {
        padding: 1.5rem;
    }

    .facts-grid,
    .benefit-grid,
    .article-grid,
    .process-grid,
    .service-hero-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .service-hero {
        padding: 8rem 0 4rem;
    }

    .faq-item,
    .fact-card,
    .benefit-card,
    .article-card,
    .process-card {
        padding: 1.5rem;
    }
}
