/* InsureGuide Styles */
:root {
    --lp-primary-blue: #0070f3;
    --lp-text-main: #1a1a1a;
    --lp-text-secondary: #666;
    --lp-bg-light: #f9f9f9;
    --lp-border-color: #eee;
    --lp-tech-header: #dbeafe;
    --lp-health-header: #dcfce7;
    --lp-business-header: #f3e8ff;
    --lp-education-header: #ffedd5;
    --lp-lifestyle-header: #fce7f3;
    --lp-science-header: #e0f2fe;
}

.lp-clone-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--lp-text-main);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.lp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: #fff;
}

.lp-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    text-decoration: none;
}

.lp-logo a {
    text-decoration: none;
}

.lp-nav {
    display: flex;
    gap: 25px;
}

.lp-nav a {
    text-decoration: none;
    color: var(--lp-text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Hero Section */
.lp-hero {
    text-align: center;
    padding: 60px 20px;
}

.lp-hero h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6366f1;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.4;
}

.lp-search-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.lp-search-container form {
    display: flex;
    align-items: center;
    width: 100%;
}

.lp-search-container input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #666;
    padding-left: 15px;
    background: transparent;
}

.lp-search-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Section Headings */
.lp-section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.lp-section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.lp-section-title p {
    color: #888;
    font-size: 1rem;
}

/* Category Grid */
.lp-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 80px;
}

.lp-category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.lp-card-header {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.lp-card-body {
    padding: 20px;
    background: #fafafa;
}

.lp-category-link {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #444;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.lp-category-link:hover {
    border-color: #ddd;
    background: #fdfdfd;
}

.header-tech { background-color: var(--lp-tech-header); }
.header-health { background-color: var(--lp-health-header); }
.header-business { background-color: var(--lp-business-header); }
.header-education { background-color: var(--lp-education-header); }
.header-lifestyle { background-color: var(--lp-lifestyle-header); }
.header-science { background-color: var(--lp-science-header); }

/* New Articles Section */
.lp-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.lp-article-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.lp-article-tag {
    background: #f3e8ff;
    color: #9333ea;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.lp-article-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.4;
}

.lp-article-card p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 15px;
}

.lp-article-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
}

.lp-keep-reading {
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 2px;
    transition: border-color 0.2s;
    width: fit-content;
    margin-top: auto;
}

.lp-keep-reading:hover {
    border-color: #000;
}

/* Mid-page article row — image left, info right */
.lp-mid-article-card {
    display: flex;
    align-items: stretch;
    gap: 28px;
    margin: 40px 0 48px;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.lp-mid-article-image {
    flex: 0 0 42%;
    max-width: 42%;
    display: block;
    text-decoration: none;
}

.lp-mid-article-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.lp-mid-article-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lp-mid-article-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 14px;
    color: #000;
}

.lp-mid-article-title a {
    color: inherit;
    text-decoration: none;
}

.lp-mid-article-title a:hover {
    color: #2563eb;
}

.lp-mid-article-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-explore-btn {
    display: block;
    width: fit-content;
    margin: 0 auto 80px;
    padding: 12px 30px;
    border: 1px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.lp-footer-top {
    border-top: 1px solid #eee;
    padding: 60px 0;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.8;
}

.lp-footer-top h4 {
    color: #000;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.lp-footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.lp-footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
}

.lp-footer-links {
    display: flex;
    gap: 20px;
}

.lp-footer-links a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
}

.lp-footer-bottom {
    text-align: center;
    padding: 40px 0;
    font-size: 0.7rem;
    color: #999;
    border-top: 1px solid #eee;
}

/* Featured grid (homepage + articles) */
.lp-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.lp-featured-section h2 {
    font-size: 2rem;
    margin-bottom: 48px;
    text-align: left;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.02em;
}

.lp-news-grid,
.lp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

/* Large article cards — LightingPort News layout */
.lp-category-articles-grid .lp-article-card,
.lp-featured-grid .lp-featured-topic-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.lp-category-articles-grid .lp-article-card img,
.lp-featured-grid .lp-featured-topic-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

.lp-home-featured-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lp-featured-grid .lp-featured-topic-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.35;
    color: #000;
    letter-spacing: -0.01em;
}

.lp-featured-grid .lp-featured-topic-card p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-featured-grid .lp-featured-topic-card .lp-featured-date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 12px;
}

.lp-category-articles-grid .lp-article-card img {
    min-height: 220px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.lp-category-articles-grid .lp-article-card h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.25;
    color: #000;
    letter-spacing: -0.01em;
}

.lp-category-articles-grid .lp-article-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-category-articles-grid .lp-article-card:hover h3,
.lp-featured-grid .lp-featured-topic-card:hover h3 {
    color: #2563eb;
}

.lp-load-more-wrap {
    text-align: center;
    margin: 40px 0 80px;
}

.lp-load-more-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.lp-load-more-btn:hover {
    background: #222;
}

.lp-category-articles {
    margin-bottom: 20px;
}

.lp-category-page-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin: 20px 0 64px;
    letter-spacing: -0.02em;
    color: #000;
}

.lp-category-articles {
    margin-bottom: 48px;
}

.lp-article-page-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    color: #000;
    letter-spacing: -0.02em;
}

.lp-article-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.lp-article-body-text {
    text-align: left;
    margin-bottom: 50px;
}

/* Blog / article body — clean black-on-white (LightingPort style) */
.lp-blog-article {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #111;
    font-weight: 400;
}

.lp-blog-article h2,
.lp-blog-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin: 40px 0 16px;
    line-height: 1.4;
}

.lp-blog-article h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000;
    margin: 32px 0 14px;
    line-height: 1.4;
}

.lp-blog-article p {
    margin: 0 0 18px;
}

.lp-blog-article p strong {
    font-weight: 700;
    color: #000;
}

.lp-blog-article ul,
.lp-blog-article ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

.lp-blog-article ul {
    list-style: disc;
}

.lp-blog-article ol {
    list-style: decimal;
}

.lp-blog-article li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.lp-blog-article a {
    color: #2563eb;
    text-decoration: underline;
}

.lp-blog-article a.lp-union-btn-blue,
.lp-blog-article a.lp-union-btn-green,
.lp-union-results a.lp-union-btn-blue,
.lp-union-results a.lp-union-btn-green {
    color: #fff;
    text-decoration: none;
}

.lp-blog-article a.lp-union-btn-blue:hover,
.lp-blog-article a.lp-union-btn-green:hover,
.lp-union-results a.lp-union-btn-blue:hover,
.lp-union-results a.lp-union-btn-green:hover {
    color: #fff;
}

html {
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .lp-category-grid,
    .lp-article-grid,
    .lp-featured-grid,
    .lp-news-grid,
    .lp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-section-title h2 {
        font-size: 1.75rem;
    }

    .lp-category-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .lp-clone-container {
        padding: 0 16px;
    }

    .lp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .lp-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        gap: 14px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .lp-nav::-webkit-scrollbar {
        display: none;
    }

    .lp-nav a {
        white-space: nowrap;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .lp-hero {
        padding: 36px 12px;
    }

    .lp-hero h1 {
        font-size: 1.25rem;
        max-width: 100%;
    }

    .lp-search-container {
        max-width: 100%;
    }

    .lp-search-container input {
        font-size: 16px;
    }

    .lp-search-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .lp-category-grid,
    .lp-article-grid,
    .lp-featured-grid,
    .lp-news-grid,
    .lp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .lp-section-title {
        margin: 40px 0 24px;
    }

    .lp-section-title h2 {
        font-size: 1.5rem;
    }

    .lp-category-page-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .lp-footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px 0;
    }

    .lp-footer-links {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .lp-footer-top {
        padding: 40px 0;
    }

    .lp-article-body {
        padding: 24px 16px !important;
        max-width: 100% !important;
    }

    .lp-article-page-title {
        font-size: 1.75rem;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .lp-article-body-text {
        font-size: 1rem;
        line-height: 1.75;
    }

    .lp-mid-article-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .lp-mid-article-image {
        flex: none;
        max-width: 100%;
    }

    .lp-mid-article-image img {
        min-height: 180px;
    }

    .lp-mid-article-title {
        font-size: 1.15rem;
    }

    .lp-featured-section h2 {
        font-size: 1.35rem;
        margin-bottom: 24px;
    }

    .lp-quiz-wrapper .lp-header {
        padding: 16px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .lp-quiz-container {
        padding: 24px 18px;
        margin: 16px;
        width: calc(100% - 32px);
        max-width: 100%;
    }

    .lp-quiz-title {
        font-size: 1.35rem;
    }

    .lp-quiz-btn-container {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .lp-quiz-btn {
        width: 100%;
        text-align: center;
    }

    .lp-offer-top {
        flex-direction: column;
        gap: 16px;
    }

    .lp-offer-stats {
        flex-direction: column;
        gap: 14px;
    }

    .lp-related-grid {
        grid-template-columns: 1fr !important;
    }

    .lp-apply-btn-blue,
    .lp-apply-btn-green {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .lp-logo-text {
        font-size: 1.2rem;
    }

    .lp-category-page-title,
    .lp-article-page-title {
        font-size: 1.5rem;
    }
}

/* Google Publisher Tag ad slots */
.lp-article-ad-wrap,
.lp-mid-content-ad,
.lp-gpt-ad-wrap { margin: 32px auto 40px; text-align: center; }
.lp-results-ad-label { display: block; font-size: 0.7rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.lp-gpt-ad-frame { position: relative; width: 100px; height: 100px; margin: 0 auto; }
.lp-gpt-ad-slot { position: absolute; inset: 0; z-index: 2; min-width: 100px; min-height: 100px; background: transparent; }
.lp-gpt-ad-frame-compact .lp-gpt-ad-fallback-inner { padding: 8px; align-items: center; text-align: center; }
.lp-gpt-ad-frame-compact .lp-gpt-ad-fallback-title { font-size: 0.62rem; margin: 0; line-height: 1.2; }
.lp-gpt-ad-frame-compact .lp-gpt-ad-fallback-text,
.lp-gpt-ad-frame-compact .lp-gpt-ad-fallback-cta { display: none; }
.lp-gpt-ad-frame-compact .lp-gpt-ad-fallback-badge { margin-bottom: 4px; font-size: 0.55rem; padding: 2px 5px; }
.lp-gpt-ad-loading { display: none; position: absolute; inset: 0; z-index: 3; align-items: center; justify-content: center; background: #f8fafc; color: #64748b; font-size: 0.85rem; font-weight: 500; border: 1px solid #e2e8f0; border-radius: 8px; }
.lp-gpt-ad-loading.lp-gpt-ad-loading-active { display: flex; }
.lp-gpt-ad-fallback { position: absolute; inset: 0; z-index: 1; display: none; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12); }
.lp-gpt-ad-fallback.lp-gpt-ad-fallback-visible { display: block; }
.lp-gpt-ad-fallback-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; height: 100%; padding: 20px 22px; box-sizing: border-box; text-decoration: none; color: #fff; background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%); }
.lp-gpt-ad-fallback-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; }
.lp-gpt-ad-fallback-title { font-size: 1.15rem; font-weight: 800; line-height: 1.25; margin: 0 0 8px; color: #fff; }
.lp-gpt-ad-fallback-text { font-size: 0.82rem; line-height: 1.45; margin: 0 0 14px; color: rgba(255,255,255,0.92); }
.lp-gpt-ad-fallback-cta { display: inline-block; background: #fff; color: #1d4ed8; font-size: 0.85rem; font-weight: 700; padding: 8px 16px; border-radius: 6px; }
.lp-gpt-close-hidden,
.lp-gpt-gated-hidden { visibility: hidden !important; pointer-events: none !important; }
.lp-gpt-overlay-inner { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.35); text-align: center; }
.lp-quiz-ad-overlay { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(55, 55, 55, 0.94); align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.lp-quiz-ad-overlay.active { display: flex; }
.lp-quiz-ad-close { position: fixed; top: 16px; right: 24px; background: rgba(0, 0, 0, 0.45); border: none; color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; z-index: 100000; padding: 10px 16px; font-family: inherit; border-radius: 6px; }
.lp-quiz-ad-close:disabled { cursor: not-allowed; opacity: 0.85; }
.lp-quiz-ad-close:not(:disabled) { background: rgba(0, 0, 0, 0.65); }
.lp-quiz-ad-close:hover { opacity: 0.85; }
