/* SEO Content Styles with Responsive Tables */
.textSeo p {
    line-height: 1.6;
    color: #fff;
    margin-bottom: 15px;
}

.textSeo ul, .textSeo ol {
    margin: 20px 0;
    padding-left: 25px;
    color: #fff;
}

.textSeo li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.textSeo strong {
    color: #ffd700;
    font-weight: 600;
}

/* Table Styles */
.textSeo table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(30, 34, 93, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.textSeo thead {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.3));
}

.textSeo th {
    background: rgba(138, 43, 226, 0.2);
    color: #ffd700;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.textSeo td {
    padding: 12px 16px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.textSeo tbody tr {
    transition: background 0.2s ease;
}

.textSeo tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.textSeo tbody tr:hover {
    background: rgba(138, 43, 226, 0.1);
}

.textSeo tr:last-child td {
    border-bottom: none;
}

/* Responsive Tables for Mobile */
@media (max-width: 767px) {
    .textSeo table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -12px;
        width: calc(100% + 24px);
        border-radius: 0;
    }
    
    .textSeo th,
    .textSeo td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .textSeo th {
        font-size: 13px;
        letter-spacing: 0.3px;
    }
    
    .textSeo ul, .textSeo ol {
        padding-left: 20px;
        margin: 15px 0;
    }
    
    .textSeo li {
        margin-bottom: 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .textSeo table {
        font-size: 12px;
    }
    
    .textSeo th,
    .textSeo td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ===== Animated SEO tables & lists ===== */
@keyframes seoTableIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes seoRowIn {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes seoHeadShine {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes seoListIn {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Tables start hidden, reveal when scrolled into view */
.textSeo table {
    opacity: 0;
    will-change: opacity, transform;
}
.textSeo table.in-view {
    animation: seoTableIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.textSeo table.in-view thead {
    position: relative;
    background: linear-gradient(110deg,
        rgba(138, 43, 226, 0.30) 0%,
        rgba(255, 215, 0, 0.18) 45%,
        rgba(138, 43, 226, 0.30) 90%);
    background-size: 200% 100%;
    animation: seoHeadShine 3.5s ease-in-out infinite;
}
.textSeo table.in-view tbody tr {
    animation: seoRowIn 0.55s ease both;
}
.textSeo table.in-view tbody tr:nth-child(1) { animation-delay: 0.12s; }
.textSeo table.in-view tbody tr:nth-child(2) { animation-delay: 0.20s; }
.textSeo table.in-view tbody tr:nth-child(3) { animation-delay: 0.28s; }
.textSeo table.in-view tbody tr:nth-child(4) { animation-delay: 0.36s; }
.textSeo table.in-view tbody tr:nth-child(5) { animation-delay: 0.44s; }
.textSeo table.in-view tbody tr:nth-child(6) { animation-delay: 0.52s; }
.textSeo table.in-view tbody tr:nth-child(7) { animation-delay: 0.60s; }
.textSeo table.in-view tbody tr:nth-child(8) { animation-delay: 0.68s; }
.textSeo table.in-view tbody tr:nth-child(9) { animation-delay: 0.76s; }

.textSeo tbody tr {
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.textSeo tbody tr:hover {
    transform: translateX(6px);
    box-shadow: inset 3px 0 0 0 #ffd700;
}

/* First column emphasis */
.textSeo td:first-child {
    font-weight: 600;
    color: #ffd700;
}

/* Optional caption above tables */
.textSeo .tableCaption {
    display: block;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #ffd700;
    margin: 26px 0 -14px;
    opacity: 0.85;
}

/* Animated lists */
.textSeo ul {
    list-style: none;
    padding-left: 0;
}
.textSeo ul li {
    position: relative;
    padding-left: 30px;
}
.textSeo ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #8a2be2);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.textSeo ul li:hover::before {
    transform: scale(1.35);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
}
.textSeo ul.in-view li {
    animation: seoListIn 0.5s ease both;
}
.textSeo ul.in-view li:nth-child(1) { animation-delay: 0.08s; }
.textSeo ul.in-view li:nth-child(2) { animation-delay: 0.16s; }
.textSeo ul.in-view li:nth-child(3) { animation-delay: 0.24s; }
.textSeo ul.in-view li:nth-child(4) { animation-delay: 0.32s; }
.textSeo ul.in-view li:nth-child(5) { animation-delay: 0.40s; }
.textSeo ul.in-view li:nth-child(6) { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    .textSeo table, .textSeo table.in-view,
    .textSeo table.in-view tbody tr,
    .textSeo ul.in-view li,
    .textSeo table.in-view thead {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
