/*
Theme Name: AFF Theme
Theme URI: https://example.com/aff-theme
Author: AFF Team
Author URI: https://example.com
Description: Module-based theme for affiliate content với giao diện hiện đại
Version: 1.0.0
Requires at least: 5.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aff-theme
*/

/* Black-White-Silver Color Scheme */
:root {
    --color-black: #000000;
    --color-black-dark: #1a1a1a;
    --color-black-light: #2d2d2d;
    --color-white: #ffffff;
    --color-white-light: #f5f5f5;
    --color-accent: #C0C0C0;
    --color-accent-dark: #808080;
    --color-accent-light: #E5E5E5;
    --color-accent-bg: #F5F5F5;
}

/* Google Fonts */
body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Custom Styles (Tailwind sẽ override nhiều styles này) */

/* Screen Reader Only - Hide visually but keep in HTML for SEO/accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Smart Sidebar Styles */
.aff-smart-sidebar {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.aff-smart-sidebar::-webkit-scrollbar {
    width: 6px;
}

.aff-smart-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.aff-smart-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.aff-smart-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.aff-smart-sidebar-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aff-smart-sidebar-content .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.6s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.5s ease-out;
}

/* Smooth scrollbar */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth transitions */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Pros/Cons */
.aff-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.aff-pros, .aff-cons {
    padding: 1rem;
    border-radius: 8px;
}

.aff-pros {
    background: #d4edda;
}

.aff-cons {
    background: #f8d7da;
}

.aff-pros ul, .aff-cons ul {
    list-style: none;
    padding: 0;
}

.aff-pros li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

.aff-cons li:before {
    content: "✗ ";
    color: #dc3545;
    font-weight: bold;
}

/* Comparison Table */
.aff-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.aff-comparison-table th,
.aff-comparison-table td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.aff-comparison-table th {
    background: #f5e6d3;
    font-weight: bold;
    color: #3d2817;
}

/* FAQ */
.aff-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
}

.aff-faq-item:hover {
    border-color: #8b4513;
}

.aff-faq-question {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Disclosure */
.aff-disclosure {
    background: #f5f5f5;
    border: 1px solid #C0C0C0;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Mobile Sticky CTA */
@media (max-width: 768px) {
    .aff-pros-cons {
        grid-template-columns: 1fr;
    }
    
    body {
        padding-bottom: 80px; /* Space for sticky CTA */
    }
}

/* Hero Section */
.aff-hero {
    background: linear-gradient(135deg, #8b4513 0%, #6b3410 50%, #5a2d0a 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Product Grid */
.aff-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .aff-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Brown theme buttons and links */
a:hover {
    transition: color 0.2s ease;
}

/* Ensure consistent brown theme */
.bg-brown {
    background-color: var(--color-brown);
}

.text-brown {
    color: var(--color-brown);
}

.border-brown {
    border-color: var(--color-brown);
}

/* Carousel styles */
.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Entry Content Formatting */
.entry-content,
.prose {
    color: #1f2937;
    line-height: 1.75;
    font-size: 1rem;
}

/* Headings */
.entry-content h1,
.prose h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.entry-content h2,
.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    color: #111827;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.entry-content h3,
.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.entry-content h4,
.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
    color: #374151;
}

.entry-content h5,
.prose h5 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.entry-content h6,
.prose h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 0.875rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

/* Paragraphs */
.entry-content p,
.prose p {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #374151;
}

.entry-content p:first-child,
.prose p:first-child {
    margin-top: 0;
}

.entry-content p:last-child,
.prose p:last-child {
    margin-bottom: 0;
}

/* Links */
.entry-content a,
.prose a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.entry-content a:hover,
.prose a:hover {
    color: #1d4ed8;
    text-decoration-thickness: 2px;
}

.entry-content a:focus,
.prose a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Lists */
.entry-content ul,
.entry-content ol,
.prose ul,
.prose ol {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li,
.prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.75;
    color: #374151;
}

/* Table of Contents specific styles */
nav[aria-label="Table of Contents"] .toc-list,
nav[aria-label="Table of Contents"] ol {
    list-style-position: outside;
    margin: 0;
}

nav[aria-label="Table of Contents"] .toc-list li,
nav[aria-label="Table of Contents"] ol li {
    white-space: nowrap;
    overflow: visible;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    display: block;
}

nav[aria-label="Table of Contents"] .toc-list li a,
nav[aria-label="Table of Contents"] ol li a {
    display: inline;
    white-space: nowrap;
    word-break: keep-all;
}

.entry-content li > p,
.prose li > p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul,
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.entry-content ul ul {
    list-style-type: circle;
}

.entry-content ul ul ul {
    list-style-type: square;
}

/* Images */
.entry-content img,
.prose img {
    width: 100%;
    height: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.entry-content figure,
.prose figure {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.entry-content figcaption,
.prose figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* Blockquotes */
.entry-content blockquote,
.prose blockquote {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 4px solid #C0C0C0;
    font-style: italic;
    color: #4b5563;
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
}

.entry-content blockquote p,
.prose blockquote p {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.entry-content blockquote p:last-child,
.prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.entry-content code,
.prose code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', Courier, monospace;
    color: #dc2626;
    font-weight: 500;
}

.entry-content pre,
.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.entry-content pre code,
.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

/* Tables */
.entry-content table,
.prose table {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.entry-content table thead,
.entry-content table tbody,
.prose table thead,
.prose table tbody {
    display: table;
    width: 100%;
    table-layout: auto;
}

.entry-content thead,
.prose thead {
    background-color: #f9fafb;
}

.entry-content th,
.prose th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.entry-content td,
.prose td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    white-space: nowrap;
}

.entry-content tbody tr:last-child td,
.prose tbody tr:last-child td {
    border-bottom: none;
}

.entry-content tbody tr:hover,
.prose tbody tr:hover {
    background-color: #f9fafb;
}

/* Strong and Emphasis */
.entry-content strong,
.entry-content b,
.prose strong,
.prose b {
    font-weight: 700;
    color: #111827;
}

.entry-content em,
.entry-content i,
.prose em,
.prose i {
    font-style: italic;
}

/* Horizontal Rule */
.entry-content hr,
.prose hr {
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: none;
    border-top: 2px solid #e5e7eb;
}

/* Definition Lists */
.entry-content dl,
.prose dl {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.entry-content dt,
.prose dt {
    font-weight: 600;
    color: #111827;
    margin-top: 1rem;
}

.entry-content dd,
.prose dd {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    color: #374151;
}

/* Address */
.entry-content address,
.prose address {
    font-style: italic;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Abbreviations */
.entry-content abbr,
.prose abbr {
    text-decoration: underline;
    text-decoration-style: dotted;
    cursor: help;
}

/* Mark/Highlight */
.entry-content mark,
.prose mark {
    background-color: #fef08a;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Small text */
.entry-content small,
.prose small {
    font-size: 0.875em;
    color: #6b7280;
}

/* Subscript and Superscript */
.entry-content sub,
.entry-content sup,
.prose sub,
.prose sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.entry-content sub {
    bottom: -0.25em;
}

.entry-content sup {
    top: -0.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entry-content h1,
    .prose h1 {
        font-size: 1.875rem;
    }
    
    .entry-content h2,
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3,
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .entry-content img,
    .prose img {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Fade in animation */
.fade-in {
    animation: fade-in 0.6s ease-out;
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Product card hover effect */
.aff-product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aff-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth page transitions */
body {
    opacity: 1;
    /* Animation sẽ được trigger bởi JavaScript */
}

body.fade-in {
    animation: fade-in 0.5s ease-out;
}

/* Button hover effects */
button, .button, a.button {
    position: relative;
    overflow: hidden;
}

button::before, .button::before, a.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, .button:hover::before, a.button:hover::before {
    width: 300px;
    height: 300px;
}

/* Image lazy load fade */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img.fade-in {
    opacity: 1;
}

/* Sticky header transition */
header {
    transition: all 0.3s ease-out;
}

/* Mobile Logo - Match menu button height */
@media (max-width: 767px) {
    header .custom-logo-link img,
    header .custom-logo-link {
        height: 40px;
        max-height: 40px;
        width: auto;
        object-fit: contain;
    }
}

/* Mobile menu animation */
/* Mobile Menu Button Animation */
#mobile-menu-toggle {
    position: relative;
    z-index: 100;
}

#mobile-menu-toggle:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.mobile-menu-line {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu:not(.hidden) {
    max-height: 1000px;
}

/* Smooth menu item animations */
#mobile-menu a,
#mobile-menu li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu:not(.hidden) a,
#mobile-menu:not(.hidden) li {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu:not(.hidden) li:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu:not(.hidden) li:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu:not(.hidden) li:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu:not(.hidden) li:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu:not(.hidden) li:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu:not(.hidden) li:nth-child(6) { transition-delay: 0.3s; }
#mobile-menu:not(.hidden) li:nth-child(7) { transition-delay: 0.35s; }
#mobile-menu:not(.hidden) li:nth-child(8) { transition-delay: 0.4s; }

/* Pros/Cons Section - SEO Class Naming */
.pros-cons {
    margin: 0;
}

.pros-cons__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pros-cons__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pros-cons .pros,
.pros-cons .cons {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
}

.pros-cons .pros {
    border-left: 4px solid #10b981;
    background-color: #f0fdf4;
}

.pros-cons .cons {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}

.pros-cons .what-we-like,
.pros-cons .what-to-improve {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: #1f2937;
}

.pros-cons .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons .feature {
    padding: 0.75rem 0;
    line-height: 1.6;
    color: #374151;
    display: flex;
    align-items: flex-start;
}

.pros-cons .feature i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.pros-cons .feature--yes i {
    color: #10b981;
}

.pros-cons .feature--no i {
    color: #ef4444;
}

.pros-cons .feature:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pros-cons .pros .feature:not(:last-child) {
    border-bottom-color: rgba(16, 185, 129, 0.1);
}

.pros-cons .cons .feature:not(:last-child) {
    border-bottom-color: rgba(239, 68, 68, 0.1);
}

/* Footer Widgets */
footer .widget {
    margin-bottom: 0;
}

footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .widget ul li {
    margin-bottom: 0.5rem;
}

footer .widget ul li a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

footer .widget ul li a:hover {
    color: #ffffff;
}

footer .widget p {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.6;
}

footer .widget p:last-child {
    margin-bottom: 0;
}

footer .widget h3,
footer .widget h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

footer .widget .textwidget {
    color: #9ca3af;
}

footer .widget .textwidget a {
    color: #c0c0c0;
    text-decoration: underline;
}

footer .widget .textwidget a:hover {
    color: #ffffff;
}

/* Footer Bottom Widgets */
footer .footer-bottom .widget {
    text-align: center;
}

@media (min-width: 768px) {
    footer .footer-bottom .widget {
        text-align: left;
    }
}

/* ============================================
   SEO Content Blocks - Semantic HTML Styling
   ============================================ */

/* Content Block Container */
.content-block {
    margin: 2.5rem 0;
    padding: 0;
}

.content-block:first-child {
    margin-top: 0;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* Answer First - Featured Section */
.content-block.answer-first {
    background: linear-gradient(to bottom, #f9fafb 0%, transparent 100%);
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid #3b82f6;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .content-block.answer-first {
        padding: 1.25rem;
    }
}

/* Semantic Kicker - Small Label */
.semantic-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
}

.content-block.answer-first .semantic-kicker {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Semantic Lede - Opening Paragraph */
.semantic-lede {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 1rem 0 1.5rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .semantic-lede {
        font-size: 1.25rem;
    }
}

.content-block.answer-first .semantic-lede {
    color: #374151;
    font-weight: 500;
}

/* Answer Core - Core Answer */
.answer-core {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #1f2937;
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-left: 4px solid #10b981;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

@media (min-width: 768px) {
    .answer-core {
        font-size: 1.125rem;
        padding: 1rem 1.25rem;
    }
}

.content-block.answer-first .answer-core {
    background-color: #f0fdf4;
    border-left-color: #10b981;
}

/* Answer Detail - Detailed Content */
.answer-detail {
    margin: 1.5rem 0;
    line-height: 1.8;
    color: #374151;
}

.answer-detail p {
    margin-bottom: 1rem;
}

.answer-detail p:last-child {
    margin-bottom: 0;
}

.answer-detail ul,
.answer-detail ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.answer-detail li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.answer-detail li:last-child {
    margin-bottom: 0;
}

.answer-detail strong {
    color: #1f2937;
    font-weight: 600;
}

.answer-detail img {
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

/* Section Content */
.section-content {
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.section-content > *:first-child {
    margin-top: 0;
}

.section-content > *:last-child {
    margin-bottom: 0;
}

/* Relationship Types - Feature, Benefit, Solution, Proof, Conclusion, Problem */
.rel-feature,
.rel-benefit,
.rel-solution,
.rel-proof,
.rel-conclusion,
.rel-problem {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: visible;
}

.rel-feature h3,
.rel-benefit h3,
.rel-solution h3,
.rel-proof h3,
.rel-conclusion h3,
.rel-problem h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.rel-feature {
    border-left: 4px solid #3b82f6;
    background-color: #eff6ff;
}

.rel-benefit {
    border-left: 4px solid #10b981;
    background-color: #f0fdf4;
}

.rel-solution {
    border-left: 4px solid #8b5cf6;
    background-color: #f5f3ff;
}

.rel-proof {
    border-left: 4px solid #f59e0b;
    background-color: #fffbeb;
}

.rel-conclusion {
    border-left: 4px solid #6366f1;
    background-color: #eef2ff;
}

.rel-problem {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}

.rel-feature p,
.rel-benefit p,
.rel-solution p,
.rel-proof p,
.rel-conclusion p,
.rel-problem p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #374151;
}

.rel-feature p:last-child,
.rel-benefit p:last-child,
.rel-solution p:last-child,
.rel-proof p:last-child,
.rel-conclusion p:last-child,
.rel-problem p:last-child {
    margin-bottom: 0;
}

.rel-feature ul,
.rel-benefit ul,
.rel-solution ul,
.rel-proof ul,
.rel-conclusion ul,
.rel-problem ul,
.rel-feature ol,
.rel-benefit ol,
.rel-solution ol,
.rel-proof ol,
.rel-conclusion ol,
.rel-problem ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.rel-feature li,
.rel-benefit li,
.rel-solution li,
.rel-proof li,
.rel-conclusion li,
.rel-problem li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Table wrapper for horizontal scroll in relationship blocks */
.rel-feature table,
.rel-benefit table,
.rel-solution table,
.rel-proof table,
.rel-conclusion table,
.rel-problem table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rel-feature table > *,
.rel-benefit table > *,
.rel-solution table > *,
.rel-proof table > *,
.rel-conclusion table > *,
.rel-problem table > * {
    display: table;
    width: auto;
    min-width: 800px;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0;
}

.rel-feature table thead,
.rel-benefit table thead,
.rel-solution table thead,
.rel-proof table thead,
.rel-conclusion table thead,
.rel-problem table thead {
    background-color: #f9fafb;
}

.rel-feature table th,
.rel-benefit table th,
.rel-solution table th,
.rel-proof table th,
.rel-conclusion table th,
.rel-problem table th {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: middle;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.rel-feature table td,
.rel-benefit table td,
.rel-solution table td,
.rel-proof table td,
.rel-conclusion table td,
.rel-problem table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
    text-align: left;
    word-wrap: break-word;
}

.rel-feature table tr:last-child td,
.rel-benefit table tr:last-child td,
.rel-solution table tr:last-child td,
.rel-proof table tr:last-child td,
.rel-conclusion table tr:last-child td,
.rel-problem table tr:last-child td {
    border-bottom: none;
}

.rel-feature img,
.rel-benefit img,
.rel-solution img,
.rel-proof img,
.rel-conclusion img,
.rel-problem img {
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

/* FAQ Block */
.faq-block {
    margin: 3rem 0;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
}

.faq-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3b82f6;
}

@media (min-width: 768px) {
    .faq-block h2 {
        font-size: 2rem;
    }
}

/* FAQ Wrapper */
.vlink-faq {
    margin: 0;
}

/* FAQ Item */
.faq-item {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-item:first-child {
    margin-top: 0;
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* FAQ Label */
.faq-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    background-color: #3b82f6;
    color: #ffffff;
}

.faq-label + p {
    display: none;
}

/* FAQ Question (h3) */
.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .faq-item h3 {
        font-size: 1.25rem;
    }
}

/* FAQ Answer Container */
.faq-a {
    margin-top: 1rem;
}

/* FAQ Answer Core */
.faq-answer-core {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 0.375rem;
}

/* FAQ Answer Detail */
.faq-answer-detail {
    margin: 1rem 0;
    line-height: 1.8;
    color: #374151;
}

.faq-answer-detail p {
    margin-bottom: 0.75rem;
}

.faq-answer-detail p:last-child {
    margin-bottom: 0;
}

.faq-answer-detail strong {
    color: #1f2937;
    font-weight: 600;
}

/* FAQ Proof - Evidence/Reference */
.faq-proof {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #78350f;
}

.faq-proof strong {
    color: #92400e;
    font-weight: 600;
}

/* Content Block Headings */
.content-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
    line-height: 1.3;
    scroll-margin-top: 2rem;
}

@media (min-width: 768px) {
    .content-block h2 {
        font-size: 2rem;
    }
}

.content-block h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 1rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .content-block h3 {
        font-size: 1.75rem;
    }
}

/* Tables in Content Blocks */
.content-block {
    overflow: visible;
}

.content-block table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-block table > * {
    display: table;
    width: auto;
    min-width: 800px;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0;
}

.content-block table thead {
    background-color: #f9fafb;
}

.content-block table th {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: middle;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.content-block table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.9375rem;
    vertical-align: top;
    text-align: left;
    word-wrap: break-word;
}

.content-block table tr:last-child td {
    border-bottom: none;
}

.content-block table tbody tr:hover {
    background-color: #f9fafb;
}

/* Images in Content Blocks */
.content-block img {
    margin: 1.5rem auto;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Lists in Content Blocks */
.content-block ul,
.content-block ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #374151;
}

.content-block li:last-child {
    margin-bottom: 0;
}

.content-block li strong {
    color: #1f2937;
    font-weight: 600;
}

/* Entry Content Adjustments */
.entry-content .content-block {
    max-width: 100%;
}

.entry-content .content-block p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #374151;
}

.entry-content .content-block p:last-child {
    margin-bottom: 0;
}

.entry-content .content-block strong {
    color: #1f2937;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .content-block.answer-first {
        padding: 0.75rem;
        margin: 2rem 0;
    }
    
    .rel-feature,
    .rel-benefit,
    .rel-solution,
    .rel-proof,
    .rel-conclusion,
    .rel-problem {
        padding: 0.75rem;
    }
    
    .faq-block {
        padding: 0.75rem;
    }
    
    .faq-item {
        padding: 0.75rem;
    }
    
    .content-block table {
        font-size: 0.875rem;
    }
    
    .content-block table th,
    .content-block table td {
        padding: 0.5rem;
    }
}

/* ============================================
   User Reviews System
   ============================================ */

.aff-user-reviews {
    margin-top: 3rem;
}

.aff-user-reviews h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.aff-user-reviews h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Review Form */
#aff-review-form input[type="text"],
#aff-review-form input[type="email"],
#aff-review-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#aff-review-form input:focus,
#aff-review-form textarea:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Rating Stars */
#rating-stars .rating-star {
    transition: transform 0.2s ease;
}

#rating-stars .rating-star:hover {
    transform: scale(1.1);
}

#rating-stars .rating-star i.fas {
    color: #fbbf24 !important;
}

#rating-stars .rating-star i.far {
    color: #d1d5db !important;
}

#rating-text {
    min-height: 1.5rem;
    font-weight: 500;
    color: #6b7280;
}

/* Review List */
.aff-user-reviews .space-y-6 > div {
    animation: fade-in-up 0.4s ease-out;
}

.aff-user-reviews .space-y-6 > div:nth-child(1) {
    animation-delay: 0.1s;
}

.aff-user-reviews .space-y-6 > div:nth-child(2) {
    animation-delay: 0.2s;
}

.aff-user-reviews .space-y-6 > div:nth-child(3) {
    animation-delay: 0.3s;
}

/* Message Styles */
#review-message.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

#review-message.alert-danger {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 767px) {
    .aff-user-reviews h2 {
        font-size: 1.5rem;
    }
    
    .aff-user-reviews h3 {
        font-size: 1.125rem;
    }
    
    #rating-stars .rating-star {
        font-size: 1.5rem;
    }
}
.fa-bag-shopping:before, .fa-shopping-bag:before {
    content: "\f290";
    padding: 0 15px;
    font-size: 31px;
}