/* ═══════════════════════════════════════════════════════════════════
   TheRobotInsider — Digital Resources Landing Page
   Template: page-resources.php
   ═══════════════════════════════════════════════════════════════════ */

.tri-resources-page {
    padding-top: 0;
}

/* ─── Hero ─────────────────────────────────────────────────────────── */

.tri-resources-hero {
    position: relative;
    padding: 5rem 0 3.5rem;
    overflow: hidden;
}

.tri-resources-hero-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.tri-resources-hero-title {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0.5rem 0 1rem;
}

.tri-resources-hero-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.tri-resources-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.tri-rh-stat {
    text-align: center;
}

.tri-rh-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tri-rh-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Value Propositions ───────────────────────────────────────────── */

.tri-resources-values {
    padding: 2rem 0 3rem;
}

.tri-resources-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tri-rv-card {
    padding: 1.75rem;
    text-align: center;
}

.tri-rv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #6366f1) 12%, transparent), color-mix(in srgb, var(--accent, #6366f1) 4%, transparent));
    color: var(--accent, #6366f1);
    margin-bottom: 1rem;
}

.tri-rv-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tri-rv-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ─── Products Grid ────────────────────────────────────────────────── */

.tri-resources-products {
    padding: 3rem 0;
}

.tri-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tri-resource-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tri-resource-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tri-resource-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tri-resource-card:hover .tri-resource-card-thumb img {
    transform: scale(1.05);
}

.tri-resource-type-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tri-resource-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.tri-resource-card-title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.tri-resource-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.tri-resource-card-title a:hover {
    color: var(--accent, #6366f1);
}

.tri-resource-card-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tri-resource-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-default, #e5e7eb);
}

.tri-resource-card-price {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ─── How It Works ─────────────────────────────────────────────────── */

.tri-resources-how {
    padding: 3rem 0;
    background: var(--bg-subtle, #f1f5f9);
}

.tri-resources-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tri-step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 280px;
}

.tri-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent, #6366f1);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.tri-step-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tri-step-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.tri-step-arrow {
    color: var(--text-muted, #9ca3af);
    flex-shrink: 0;
}

/* ─── FAQ ──────────────────────────────────────────────────────────── */

.tri-resources-faq {
    padding: 3rem 0;
}

.tri-resources-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.tri-faq-item {
    padding: 1.25rem;
    cursor: pointer;
}

.tri-faq-item summary {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tri-faq-item summary::-webkit-details-marker {
    display: none;
}

.tri-faq-item summary::before {
    content: '+';
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent, #6366f1);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.tri-faq-item[open] summary::before {
    content: '−';
}

.tri-faq-item p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-top: 0.75rem;
    padding-left: 1.75rem;
}

/* ─── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .tri-resources-values-grid {
        grid-template-columns: 1fr;
    }

    .tri-resources-grid {
        grid-template-columns: 1fr;
    }

    .tri-resources-steps {
        flex-direction: column;
    }

    .tri-step-arrow {
        transform: rotate(90deg);
    }

    .tri-resources-faq-grid {
        grid-template-columns: 1fr;
    }

    .tri-resources-hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tri-resources-hero {
        padding: 3rem 0 2rem;
    }

    .tri-resources-hero-title {
        font-size: 1.75rem;
    }
}
