/**
 * seo-content.css — บล็อกเนื้อหา SEO + FAQ + ลิงก์บริการ
 * โหลดหลัง site-tokens.css | breakpoints: 480 / 768 / 1024
 */

.seo-section {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) var(--space-page-x, 1.25rem);
    color: #e4e4e7;
}

.seo-section--home {
    max-width: 1100px;
    padding-top: clamp(1.25rem, 3vw, 2rem);
    padding-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.seo-section h2 {
    font-size: clamp(1.25rem, 2.8vw, 1.65rem);
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem;
    line-height: var(--leading-tight, 1.35);
}

.seo-section h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 0.65rem;
    border-radius: 2px;
    background: linear-gradient(90deg, #a855f7, #6366f1);
}

.seo-section h3 {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    color: #f4f4f5;
    margin: 2rem 0 1rem;
}

.seo-section p {
    font-size: clamp(0.9375rem, 1.05rem + 0.15vw, 1.05rem);
    line-height: 1.72;
    color: #d4d4d8;
    margin: 0 0 1rem;
}

.seo-section p:last-child {
    margin-bottom: 0;
}

.seo-section .en {
    display: block;
    font-size: 0.92em;
    color: #a1a1aa;
    margin-top: 0.35rem;
}

.seo-section a:not(.seo-service-card):not(.seo-cta-btn) {
    color: #c084fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seo-section a:not(.seo-service-card):not(.seo-cta-btn):hover {
    color: #e9d5ff;
}

/* ---------- กริดบริการ (หน้าแรก) ---------- */
.seo-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.seo-service-card {
    display: block;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #18181b 0%, #0f0f12 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(168, 85, 247, 0.15);
}

.seo-service-card strong {
    display: block;
    font-size: clamp(1rem, 1.1rem + 0.1vw, 1.08rem);
    color: #fff;
    margin-bottom: 0.35rem;
}

.seo-service-card span {
    display: block;
    font-size: clamp(0.8125rem, 0.85rem + 0.1vw, 0.9rem);
    color: #a1a1aa;
    line-height: 1.55;
}

@media (min-width: 481px) and (max-width: 768px) {
    .seo-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 769px) {
    .seo-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

/* ---------- FAQ ---------- */
.seo-faq {
    margin-top: 0.5rem;
}

.seo-faq details {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.65);
    margin-bottom: 10px;
    overflow: hidden;
}

.seo-faq summary {
    cursor: pointer;
    padding: 0.9rem 1rem;
    font-size: clamp(0.9375rem, 1rem + 0.1vw, 1rem);
    font-weight: 600;
    color: #f4f4f5;
    list-style: none;
    line-height: 1.45;
}

.seo-faq summary::-webkit-details-marker {
    display: none;
}

.seo-faq summary::after {
    content: "+";
    float: right;
    color: #a855f7;
    font-weight: 700;
}

.seo-faq details[open] summary::after {
    content: "−";
}

.seo-faq details p {
    padding: 0 1rem 1rem;
    margin: 0;
    font-size: clamp(0.875rem, 0.9rem + 0.08vw, 0.97rem);
    color: #a1a1aa;
}

/* ---------- CTA ---------- */
.seo-cta {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.seo-cta-btn {
    display: inline-block;
    margin: 0.35rem 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #a855f7, #6b21a8);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: clamp(0.875rem, 0.9rem + 0.08vw, 0.95rem);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.seo-cta-btn--outline {
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.55);
    box-shadow: none;
}

.seo-cta-btn--outline:hover {
    background: rgba(168, 85, 247, 0.12);
}

@media (max-width: 480px) {
    .seo-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .seo-cta-btn {
        display: block;
        margin: 0.5rem auto;
        max-width: 280px;
    }
}
