.local-service-page {
    background: #f6f9fc;
}

.local-hero {
    padding: 150px 0 78px;
    background:
        linear-gradient(135deg, rgba(0, 43, 73, 0.88), rgba(0, 26, 45, 0.82)),
        url('../img/services-top-bg.png') center 34% / cover no-repeat;
    color: #fff;
    text-align: center;
}

.local-hero .eyebrow {
    margin: 0 0 14px;
    color: #9fd1f4;
    font-weight: 700;
}

.local-hero h1 {
    max-width: 920px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1.2;
}

.local-hero .summary {
    max-width: 860px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.9;
}

.local-main {
    padding: 70px 0;
}

.local-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.local-content section,
.local-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.local-content section {
    margin-bottom: 24px;
    padding: 34px;
}

.local-content h2 {
    margin-bottom: 18px;
    color: var(--primary-color);
    font-size: 1.55rem;
}

.local-content p,
.local-content li {
    color: var(--text-color);
    line-height: 1.9;
}

.local-content ul,
.local-content ol {
    padding-left: 22px;
}

.local-content li {
    margin-bottom: 10px;
}

.local-sidebar {
    position: sticky;
    top: 98px;
    padding: 28px;
}

.local-sidebar h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.local-sidebar p {
    color: var(--text-light);
    line-height: 1.8;
}

.local-sidebar .sidebar-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.local-sidebar .sidebar-list li {
    padding: 9px 0;
    border-bottom: 1px solid #edf1f5;
    color: var(--text-color);
}

.local-sidebar .btn {
    width: 100%;
    text-align: center;
}

.local-note {
    padding: 18px 20px;
    border-left: 4px solid var(--secondary-color);
    background: #eef7fd;
    color: var(--primary-color);
}

.service-entry-section {
    padding: 72px 0;
    background: transparent;
}

.service-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.service-entry-card {
    display: block;
    min-height: 158px;
    padding: 24px;
    border: 0;
    border-radius: 10px;
    color: inherit;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-entry-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.15rem;
}

.service-entry-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.75;
}

.visibility-hub-page {
    background-color: var(--bg-body);
    background-image: radial-gradient(#E6E9F0 1px, transparent 1px);
    background-size: 40px 40px;
}

.visibility-hub-hero {
    padding: 132px 0 58px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 43, 73, 0.9), rgba(0, 26, 45, 0.82)),
        url('../img/services-top-bg.png') center 34% / cover no-repeat;
    text-align: center;
}

.visibility-hub-hero h1 {
    max-width: 900px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 2.45rem;
    line-height: 1.18;
}

.visibility-hub-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.visibility-hub-hero .hero-subnote {
    margin-top: 12px;
    font-size: 0.95rem;
    opacity: 0.85;
}

.visibility-hub-main {
    padding: 66px 0 80px;
}

.scope-overview,
.path-panel,
.ai-topic-pages,
.priority-pages,
.compact-faq {
    margin-bottom: 60px;
}

.scope-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: stretch;
}

.scope-copy,
.scope-aside,
.path-card {
    padding: 30px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.scope-copy:hover,
.scope-aside:hover,
.path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.scope-copy .eyebrow {
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.scope-copy h2,
.scope-aside h3,
.path-card h3 {
    color: var(--primary-color);
}

.scope-copy h2 {
    margin-bottom: 14px;
    font-size: 1.65rem;
}

.scope-copy p,
.scope-aside p {
    margin: 0;
    color: var(--text-regular);
    line-height: 1.85;
}

.scope-copy p + p {
    margin-top: 14px;
}

.scope-aside {
    background: #fff;
}

.scope-aside h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.module-header.compact {
    margin-bottom: 28px;
}

.module-header.compact h2 {
    font-size: 1.8rem;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.path-card h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.path-card a {
    display: block;
    padding: 10px 0;
    border-bottom: 0;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.55;
}

.path-card a:last-child {
    border-bottom: 0;
}

.path-card a:hover {
    color: var(--secondary-color);
}

.visibility-hub-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-bottom: 34px;
}

.visibility-panel {
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.visibility-panel h2 {
    color: var(--primary-color);
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.visibility-panel p,
.visibility-panel li {
    color: var(--text-color);
    line-height: 1.85;
}

.visibility-panel ul {
    padding-left: 20px;
}

.insight-feed {
    margin-bottom: 34px;
    padding: 30px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.insight-feed-header {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
}

.insight-feed-header .eyebrow {
    margin: 0 0 8px;
    color: var(--secondary-color);
    font-weight: 700;
}

.insight-feed-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.insight-feed-header p:last-child {
    margin: 0;
    color: var(--text-regular);
    line-height: 1.8;
}

.insight-feed-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.insight-card {
    min-height: 168px;
    padding: 22px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: none;
    border-left: 3px solid rgba(197, 160, 101, 0.45);
}

.insight-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.88rem;
}

.insight-card h3 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.insight-card p {
    margin: 0;
    color: var(--text-regular);
    font-size: 0.92rem;
    line-height: 1.75;
}

.visibility-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .visibility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.module-section {
    margin-bottom: 60px;
}

.module-header {
    text-align: center;
    margin-bottom: 50px;
}

.module-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 22px;
    font-weight: 700;
    display: inline-block;
}

.module-header h2::after {
    content: '';
    display: none;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 68px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.module-header p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 860px;
    margin: 10px auto 0;
}

.faq-section {
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}


.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.toggle-icon {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 20px 24px;
    max-height: 1000px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-regular);
    line-height: 1.8;
    margin: 0;
}

.faq-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
}

.faq-ask-ai {
    appearance: none;
    border: 1px solid rgba(198, 157, 83, 0.55);
    background: rgba(198, 157, 83, 0.12);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-ask-ai:hover {
    background: rgba(198, 157, 83, 0.18);
    transform: translateY(-1px);
}

.visibility-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 32px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.visibility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.visibility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.visibility-card:hover::before {
    transform: scaleX(1);
}

.visibility-card h2 {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1.4;
}

.visibility-card p {
    flex: 1;
    margin-bottom: 0;
    color: var(--text-regular);
    font-size: 0.95rem;
    line-height: 1.8;
}

.visibility-card .card-link {
    margin-top: 24px;
    color: var(--secondary-color);
    font-weight: 700;
}

.visibility-update-note {
    margin-top: 28px;
    padding: 20px 24px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    background: #eef7fd;
    color: var(--primary-color);
    line-height: 1.8;
}

.visibility-article-page {
    background: #f6f9fc;
}

.visibility-article-hero {
    padding: 132px 0 70px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 43, 73, 0.92), rgba(0, 26, 45, 0.84)),
        url('../img/services-top-bg.png') center 34% / cover no-repeat;
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.article-breadcrumbs a {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
}

.article-breadcrumbs a:hover {
    color: var(--secondary-color);
}

.visibility-article-hero .eyebrow {
    margin: 0 0 14px;
    color: rgba(198, 157, 83, 0.95);
    font-weight: 800;
}

.visibility-article-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 2.45rem;
    line-height: 1.22;
}

.visibility-article-hero .summary {
    max-width: 880px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    line-height: 1.9;
}

.visibility-article-main {
    padding: 64px 0 84px;
}

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

.visibility-article-content,
.visibility-article-sidebar .sidebar-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 38px rgba(0, 43, 73, 0.06);
}

.visibility-article-content {
    padding: 42px;
}

.visibility-article-content h2 {
    margin: 38px 0 18px;
    padding-left: 14px;
    border-left: 4px solid var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.55rem;
    line-height: 1.35;
}

.visibility-article-content h3 {
    margin: 28px 0 10px;
    color: var(--text-main);
    font-size: 1.12rem;
    line-height: 1.45;
}

.visibility-article-content p,
.visibility-article-content li {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.9;
}

.visibility-article-content p {
    margin: 0 0 16px;
}

.visibility-article-content ul,
.visibility-article-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.visibility-article-content li {
    margin-bottom: 8px;
}

.visibility-article-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    background: #f6f9fc;
}

.visibility-article-content blockquote p {
    margin: 0;
    color: var(--primary-color);
}

.article-answer {
    margin-bottom: 34px;
    padding: 28px 30px;
    border: 1px solid rgba(198, 157, 83, 0.26);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fffaf0, #f8fbfd);
}

.article-answer .answer-label {
    margin: 0 0 14px;
    color: var(--secondary-color);
    font-weight: 800;
}

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

.article-cta-card {
    margin-top: 40px;
    padding: 28px 30px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0, 43, 73, 0.96), rgba(0, 26, 45, 0.92));
}

.article-cta-card h2 {
    margin: 0 0 12px;
    padding-left: 0;
    border-left: 0;
    color: #fff;
}

.article-cta-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.visibility-article-sidebar {
    position: sticky;
    top: 100px;
}

.visibility-article-sidebar .sidebar-panel {
    padding: 26px;
}

.visibility-article-sidebar .sidebar-panel + .sidebar-panel {
    margin-top: 20px;
}

.visibility-article-sidebar h2 {
    margin: 0 0 16px;
    color: var(--primary-color);
    font-size: 1.18rem;
}

.article-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-related-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.55;
}

.article-related-list li:last-child a {
    border-bottom: 0;
}

.article-related-list a:hover,
.article-related-list a.active {
    color: var(--secondary-color);
}

.visibility-article-sidebar .service-note {
    background: #f9fbfd;
}

.visibility-article-sidebar .service-note p {
    margin: 0 0 20px;
    color: var(--text-regular);
    line-height: 1.8;
}

.visibility-article-sidebar .service-note .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 900px) {
    .local-layout,
    .service-entry-grid,
    .visibility-hub-lead,
    .visibility-grid,
    .scope-overview,
    .path-grid,
    .visibility-article-layout,
    .insight-feed-header,
    .insight-feed-grid {
        grid-template-columns: 1fr;
    }

    .local-sidebar {
        position: static;
    }

    .visibility-article-sidebar {
        position: static;
    }

    .local-hero h1 {
        font-size: 2rem;
    }

    .visibility-hub-hero h1 {
        font-size: 2.05rem;
    }

    .visibility-article-hero h1 {
        font-size: 2.05rem;
    }
}

@media (max-width: 560px) {
    .local-hero {
        padding: 118px 0 58px;
    }

    .local-content section {
        padding: 24px;
    }

    .visibility-hub-hero {
        padding: 118px 0 58px;
    }

    .visibility-article-hero {
        padding: 112px 0 54px;
    }

    .visibility-panel,
    .visibility-card,
    .visibility-article-content,
    .visibility-article-sidebar .sidebar-panel,
    .article-answer,
    .article-cta-card {
        padding: 22px;
    }

    .insight-feed {
        padding: 22px;
    }
}
