/* ============================================
   SEO Pages Styles - Insights, Blog, FAQ, etc.
   Fixes UI issues and adds polished styling
   ============================================ */

/* ---------------------------
   OVERRIDES FOR CONTENT PAGES
   Remove uppercase from article/blog headings
   --------------------------- */
.article-body h2,
.article-body h3,
.article-content h2,
.article-content h3,
.article-hero h1,
.faq-question,
.faq-q-text,
.insight-content h3,
.featured-content h2,
.related-card h3 {
    text-transform: none !important;
}

/* ---------------------------
   INSIGHTS HUB PAGE
   --------------------------- */

/* Filter Bar */
.insights-filter {
    padding: 0 0 2rem;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(27, 27, 27,0.06);
}
.filter-btn {
    background: none;
    border: 1px solid rgba(27, 27, 27,0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(27, 27, 27,0.75);;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    text-transform: none;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--black, #1b1b1b);
    color: #fff;
    border-color: var(--black, #1b1b1b);
}

/* Featured Article Card */
.featured-article {
    padding: 0 0 3rem;
}
.featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    border-radius: 0;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(27, 27, 27,0.06);
}
.featured-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0.75rem 0;
    max-width: 600px;
    line-height: 1.25;
    text-transform: none !important;
}
.featured-content p {
    color: rgba(27, 27, 27,0.75);;
    line-height: 1.7;
    max-width: 540px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.featured-read-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--black, #1b1b1b);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}
.featured-card:hover .featured-read-link {
    gap: 0.6rem;
}
.featured-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
}
.featured-badge span {
    background: var(--black, #1b1b1b);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    border-radius: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Article Meta */
.article-category,
.featured-meta .article-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(27, 27, 27,0.75);;
}
.article-dot {
    color: rgba(27, 27, 27,0.75);;
    margin: 0 0.25rem;
}
.article-read-time {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(27, 27, 27,0.75);;
}
.article-date {
    display: none;
}

/* Insights Grid */
.insights-grid-section {
    padding: 0 0 6rem;
}
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.insight-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(27, 27, 27,0.06);
    border-radius: 0;
    padding: 1.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.insight-card::before,
.insight-card::after {
    display: none !important;
}
.insight-card:hover {
    border-color: rgba(27, 27, 27,0.75);;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27, 27, 27,0.04);
}
.insight-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.insight-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.6rem 0;
    line-height: 1.35;
    text-transform: none !important;
}
.insight-content p {
    font-size: 0.85rem;
    color: rgba(27, 27, 27,0.75);;
    line-height: 1.65;
    flex: 1;
}
.insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(27, 27, 27,0.04);
}
.tool-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--black, #1b1b1b);
    text-decoration: none;
    text-transform: none;
    transition: opacity 0.3s;
}
.tool-link:hover {
    opacity: 0.6;
}

/* Newsletter Form */
.inline-form {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
}
.newsletter-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.85rem 1.25rem;
    border-radius: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}
.newsletter-input::placeholder {
    color: rgba(255,255,255,0.35);
}
.newsletter-input:focus {
    border-color: rgba(255,255,255,0.35);
}

/* ---------------------------
   FAQ PAGE
   --------------------------- */
.faq-section {
    padding: 4rem 0 6rem;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid rgba(27, 27, 27,0.06);
}
.faq-item:first-child {
    border-top: 1px solid rgba(27, 27, 27,0.06);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--black);
    transition: color 0.3s ease;
    text-transform: none;
}
.faq-question:hover {
    color: rgba(27, 27, 27,0.75);;
}
.faq-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(27, 27, 27,0.75);;
    min-width: 2rem;
    letter-spacing: 0.05em;
}
.faq-q-text {
    flex: 1;
    text-transform: none !important;
}
.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
    color: rgba(27, 27, 27,0.75);;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0 0 3.5rem;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 0 1.75rem 3.5rem;
}
.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(27, 27, 27,0.75);;
    max-width: 640px;
}

/* ---------------------------
   BLOG POST DETAIL PAGE
   --------------------------- */
.article-hero {
    padding: 8rem 0 3rem;
}
.article-hero-inner {
    max-width: 720px;
}
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.article-breadcrumb a {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(27, 27, 27,0.75);;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: none;
}
.article-breadcrumb a:hover { color: var(--black); }
.breadcrumb-sep {
    font-size: 0.75rem;
    color: rgba(27, 27, 27,0.75);;
}
.article-breadcrumb span:last-child {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(27, 27, 27,0.75);;
}
.article-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: none !important;
    letter-spacing: -0.01em;
}
.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(27, 27, 27,0.75);;
    text-transform: none;
}
.article-meta-item svg { opacity: 0.5; }
.article-category-tag {
    background: rgba(27, 27, 27,0.04);
    padding: 0.3rem 0.75rem;
    border-radius: 0;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

/* Article Body */
.article-body {
    padding: 0 0 4rem;
}
.article-content {
    max-width: 720px;
    margin: 0 auto;
}
.article-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(27, 27, 27,0.75);;
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 3rem 0 1rem;
    color: var(--black);
    text-transform: none !important;
    letter-spacing: -0.01em;
}
.article-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--black);
    text-transform: none !important;
}
.article-content ul {
    margin: 0 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}
.article-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(27, 27, 27,0.75);;
}
.article-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(27, 27, 27,0.75);;
    font-size: 0.85rem;
}
.article-content blockquote {
    border-left: 3px solid var(--black, #1b1b1b);
    padding: 1.25rem 0 1.25rem 1.75rem;
    margin: 2rem 0;
    background: rgba(27, 27, 27,0.015);
    border-radius: 0;
}
.article-content blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(27, 27, 27,0.75);;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Callout Box */
.article-callout {
    background: linear-gradient(135deg, #f8f8f8, #f2f2f2);
    border-radius: 0;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    border-left: 3px solid var(--black, #1b1b1b);
}
.article-callout strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-transform: none;
}
.article-callout p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
    color: rgba(27, 27, 27,0.75); !important;
}

/* Table */
.article-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 0;
    border: 1px solid rgba(27, 27, 27,0.08);
}
.article-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.article-table-wrap th {
    background: rgba(27, 27, 27,0.03);
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(27, 27, 27,0.75);;
    border-bottom: 1px solid rgba(27, 27, 27,0.06);
}
.article-table-wrap td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(27, 27, 27,0.04);
    color: rgba(27, 27, 27,0.75);;
    line-height: 1.5;
    font-size: 0.85rem;
}
.article-table-wrap tr:last-child td { border-bottom: none; }

/* Tool CTA Banner */
.article-tool-cta {
    max-width: 720px;
    margin: 3rem auto;
}
.tool-cta-inner {
    background: var(--black, #1b1b1b);
    color: #fff;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.tool-cta-inner .section-label { color: rgba(255,255,255,0.4); }
.tool-cta-inner h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin: 0.5rem 0;
    text-transform: none !important;
}
.tool-cta-inner p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 0;
}
.tool-cta-inner .btn {
    white-space: nowrap;
    flex-shrink: 0;
    background-color: #fff;
    color: var(--black, #1b1b1b);
    border-color: #fff;
}
.tool-cta-inner .btn:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* Author & Share Bar */
.article-footer-bar {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(27, 27, 27,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.author-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
}
.author-role {
    font-size: 0.8rem;
    color: rgba(27, 27, 27,0.75);;
    text-transform: none;
}
.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.share-label {
    font-size: 0.8rem;
    color: rgba(27, 27, 27,0.75);;
    text-transform: none;
}
.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: rgba(27, 27, 27,0.04);
    text-decoration: none;
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.3s;
}
.share-link:hover { background: rgba(27, 27, 27,0.08); }

/* Related Articles */
.related-articles {
    padding: 4rem 0;
    border-top: 1px solid rgba(27, 27, 27,0.05);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.related-card {
    border: 1px solid rgba(27, 27, 27,0.06);
    border-radius: 0;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s ease;
}
.related-card:hover {
    border-color: rgba(27, 27, 27,0.75);;
    transform: translateY(-2px);
}
.related-card .article-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(27, 27, 27,0.75);;
}
.related-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.35;
    text-transform: none !important;
}
.related-card .article-read-time {
    font-size: 0.75rem;
    color: rgba(27, 27, 27,0.75);;
}

/* ---------------------------
   LOCATION & INDUSTRY PAGES
   --------------------------- */
.location-stats-card {
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    border-radius: 0;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.loc-stat h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.loc-stat span {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(27, 27, 27,0.75);;
    text-transform: none;
}

/* ---------------------------
   RESPONSIVE FIXES
   --------------------------- */
@media (max-width: 1200px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    .featured-card {
        padding: 2rem;
    }
    .featured-content h2 {
        font-size: 1.35rem;
    }
    .inline-form {
        flex-direction: column;
    }
    .faq-question {
        font-size: 0.95rem;
        gap: 1rem;
        padding: 1.25rem 0;
    }
    .faq-answer,
    .faq-item.active .faq-answer {
        padding-left: 2.5rem;
    }
    .article-hero { padding: 6rem 0 2rem; }
    .tool-cta-inner { flex-direction: column; text-align: center; }
    .article-footer-bar { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .related-grid { grid-template-columns: 1fr; }
    .location-stats-card { grid-template-columns: 1fr; gap: 1.5rem; }
}
