/**
 * TrueVantage pSEO Page Styles
 * Matches the site's Elementor page design system.
 */

/* ===== Page Layout ===== */
/* Uses Blocksy's ct-container for proper theme background/spacing integration */

.tv-pseo-content {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 64px;
}

.tv-pseo-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 52px 48px 64px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(25,42,61,0.06);
}

/* ===== Breadcrumbs (hidden visually, kept for schema) ===== */
.tv-breadcrumbs {
    display: none;
}

.tv-breadcrumbs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.tv-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tv-breadcrumbs__item a {
    color: #0B71D9;
    text-decoration: none;
    font-weight: 500;
}

.tv-breadcrumbs__item a:hover {
    color: #0956A5;
    text-decoration: underline;
}

.tv-breadcrumbs__sep {
    color: #9CA3AF;
    margin: 0 2px;
}

/* ===== Typography — white text for dark background ===== */
.tv-pseo-article {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.8;
}

.tv-pseo-article h1 {
    color: #ffffff;
    font-weight: 700;
}

.tv-pseo-article h2 {
    --theme-font-size: 22px;
    --theme-line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tv-pseo-article h3 {
    --theme-font-size: 18px;
    --theme-line-height: 1.4;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.tv-pseo-article p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    line-height: 1.8;
}

.tv-pseo-article strong {
    color: #ffffff;
    font-weight: 600;
}

.tv-pseo-article a {
    color: #7db8ff;
    text-decoration: none;
    font-weight: 500;
}

.tv-pseo-article a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.tv-pseo-article ul,
.tv-pseo-article ol {
    padding-left: 22px;
    margin: 12px 0 20px;
}

.tv-pseo-article li {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ===== Sections ===== */
.tv-pseo-section {
    margin-top: 48px;
}

.tv-pseo-section:first-of-type {
    margin-top: 40px;
}

/* ===== Hero ===== */
.tv-pseo-hero {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tv-pseo-hero__title {
    --theme-font-size: 22px;
    --theme-line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0 0 20px 0;
}

.tv-pseo-hero__intro {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.tv-pseo-hero__intro p {
    margin-bottom: 0;
}

.tv-pseo-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.tv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.tv-btn--primary {
    background: #2872fa;
    color: #fff !important;
    border-color: #2872fa;
}

.tv-btn--primary:hover {
    background: #1559ed;
    border-color: #1559ed;
    color: #fff !important;
}

.tv-btn--secondary {
    background: transparent;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.tv-btn--secondary:hover {
    background: #2872fa;
    color: #fff !important;
}

.tv-btn--outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.tv-btn--outline:hover {
    border-color: #2872fa;
    color: #ffffff !important;
}

.tv-btn--large {
    padding: 14px 32px;
    font-size: 17px;
}

/* ===== Service Cards ===== */
.tv-pseo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.tv-pseo-card {
    display: block;
    padding: 24px;
    background: #f8f9fb;
    border: 1px solid #eaeef3;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    position: relative;
}

.tv-pseo-card:hover {
    border-color: #2872fa;
    box-shadow: 0 4px 12px rgba(40, 114, 250, 0.1);
    transform: translateY(-1px);
}

.tv-pseo-card__title {
    margin: 0 0 8px 0;
    border-bottom: none;
    padding-bottom: 0;
}

.tv-pseo-card .tv-pseo-card__title {
    color: var(--e-global-color-primary, #FE4848) !important;
}

.tv-pseo-card__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563 !important;
    margin: 0;
}

.tv-pseo-card__arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #2872fa;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tv-pseo-card:hover .tv-pseo-card__arrow {
    opacity: 1;
}

/* ===== Feature Grid (Why TrueVantage) ===== */
.tv-pseo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.tv-pseo-feature {
    padding: 24px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid #eaeef3;
}

.tv-pseo-feature__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2872fa;
    border-radius: 8px;
    margin-bottom: 14px;
    color: #fff;
}

.tv-pseo-feature__icon svg {
    width: 20px;
    height: 20px;
}

.tv-pseo-feature h3 {
    --theme-font-size: 17px;
    --theme-line-height: 1.4;
    color: #192a3d;
    margin: 0 0 8px 0;
}

.tv-pseo-feature p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* ===== Alt CTA (Cross-Platform) ===== */
.tv-pseo-alt-cta {
    background: rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-pseo-alt-cta h2 {
    border-bottom: none;
    padding-bottom: 0;
}

/* ===== FAQ Accordion ===== */
.tv-pseo-faq {
    margin-top: 16px;
}

.tv-pseo-faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tv-pseo-faq__item:last-child {
    border-bottom: none;
}

.tv-pseo-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    line-height: 1.4;
}

.tv-pseo-faq__question::-webkit-details-marker {
    display: none;
}

.tv-pseo-faq__question::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: #6B7D8E;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tv-pseo-faq__item[open] .tv-pseo-faq__question::after {
    content: '−';
}

.tv-pseo-faq__answer {
    padding: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.tv-pseo-faq__answer p {
    margin: 0;
}

/* ===== Final CTA ===== */
.tv-pseo-final-cta {
    text-align: center;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-pseo-final-cta h2 {
    --theme-font-size: 24px;
    border-bottom: none;
    padding-bottom: 0;
}

.tv-pseo-final-cta p {
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 16px;
}

.tv-pseo-trust {
    font-size: 14px !important;
    color: #6B7D8E !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* ===== Related Pages (Tags) ===== */
.tv-pseo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tv-pseo-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tv-pseo-tag:hover {
    border-color: #2872fa;
    color: #ffffff !important;
    background: rgba(40, 114, 250, 0.2);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .tv-pseo-page {
        padding-top: 110px;
    }

    .tv-pseo-container {
        max-width: 100%;
        margin: 0 16px;
        padding: 40px 32px 48px;
    }
}

@media (max-width: 768px) {
    .tv-pseo-page {
        padding-top: 100px;
    }

    .tv-pseo-container {
        margin: 0 12px;
        padding: 28px 20px 36px;
        border-radius: 8px;
    }

    .tv-pseo-hero__title {
        font-size: 21px;
    }

    .tv-pseo-article h2 {
        font-size: 19px;
        margin-top: 0;
    }

    .tv-pseo-article h3 {
        font-size: 17px;
    }

    .tv-pseo-hero__cta {
        flex-direction: column;
    }

    .tv-btn {
        text-align: center;
        justify-content: center;
    }

    .tv-pseo-features {
        grid-template-columns: 1fr;
    }

    .tv-pseo-cards {
        grid-template-columns: 1fr 1fr;
    }

    .tv-pseo-alt-cta {
        padding: 24px 20px;
    }

    .tv-pseo-final-cta {
        padding: 32px 20px;
    }

    .tv-pseo-section {
        margin-top: 36px;
    }
}

@media (max-width: 480px) {
    .tv-pseo-container {
        margin: 0 8px;
        padding: 24px 16px 32px;
        border-radius: 6px;
    }

    .tv-pseo-hero__title {
        font-size: 19px;
    }

    .tv-pseo-article h2 {
        font-size: 18px;
    }
}
