/* Solution Content Detail Page Styles */

/* Banner Overlay */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Article Styles */
.solution-article {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-3xl);
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.meta-item i {
    color: var(--primary-color);
}

/* Article Excerpt */
.article-excerpt {
    background: var(--bg-section);
    padding: var(--space-xl);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2xl);
}

.article-excerpt p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Article Content */
.article-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: var(--font-size-base);
}

.article-content h2 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.article-content h3 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.article-content h4 {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.article-content p {
    margin-bottom: var(--space-lg);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article-content li {
    margin-bottom: var(--space-sm);
}

.article-content blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid var(--border-light);
    padding: var(--space-md);
    text-align: left;
}

.article-content table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

.article-tags i {
    color: var(--text-secondary);
    margin-right: var(--space-sm);
}

.tag-link {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
}

.tag-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Article Share */
.article-share {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

.article-share h5 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
}

.share-buttons {
    display: flex;
    gap: var(--space-md);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.share-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Recommended Products Section */
.recommended-products-section {
    margin-top: var(--space-3xl);
}

.recommended-products-section .section-title {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-lg);
}

.product-info {
    padding: var(--space-lg);
}

.product-name {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.product-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Related Solutions Section */
.related-solutions-section {
    margin-top: var(--space-3xl);
}

.related-solutions-section .section-title {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.related-solution-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
}

.related-solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.related-solution-card .card-image {
    width: 150px;
    flex-shrink: 0;
}

.related-solution-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-solution-card .card-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-solution-card .card-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.related-solution-card .card-title a {
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.related-solution-card .card-title a:hover {
    color: var(--primary-color);
}

.related-solution-card .card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sidebar Widgets */
.solution-sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-weight: 600;
    position: relative;
    padding-left: var(--space-lg);
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Contact Expert Widget */
.contact-expert-widget .widget-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.expert-info {
    margin-bottom: var(--space-lg);
}

.expert-info .info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.expert-info .info-item i {
    color: var(--primary-color);
    width: 20px;
}

.btn-block {
    width: 100%;
}

/* Download Widget */
.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: var(--space-md);
}

.download-link {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.download-link:hover {
    background: var(--primary-alpha-10);
    color: var(--primary-color);
}

.download-link i {
    font-size: 20px;
    margin-right: var(--space-md);
    color: var(--danger-color);
}

.download-link span {
    flex: 1;
}

.download-link small {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
}

/* TOC Widget */
.toc-nav {
    max-height: 400px;
    overflow-y: auto;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: var(--space-sm);
}

.toc-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    transition: var(--transition-normal);
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: var(--primary-alpha-10);
}

.toc-nav .toc-h3 {
    padding-left: var(--space-xl);
}

.toc-nav .toc-h4 {
    padding-left: calc(var(--space-xl) + var(--space-md));
}

/* CTA Section */
.cta-section {
    padding: var(--space-3xl) 0;
    margin-top: var(--space-3xl);
}

.cta-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.cta-desc {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 0;
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary-color);
    padding: var(--space-md) var(--space-2xl);
    font-weight: 600;
    border: none;
    transition: var(--transition-normal);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 991.98px) {
    .solution-sidebar {
        position: static;
        margin-top: var(--space-2xl);
    }

    .solution-article {
        padding: var(--space-xl);
    }
}

@media (max-width: 767.98px) {
    .article-meta {
        gap: var(--space-md);
    }

    .related-solution-card {
        flex-direction: column;
    }

    .related-solution-card .card-image {
        width: 100%;
        height: 200px;
    }

    .cta-section {
        text-align: center;
    }

    .cta-desc {
        margin-bottom: var(--space-lg);
    }
}


.service-content-section {
    padding: 0;
}

.service-content-wrapper {
    background: var(--bg-card, #fff);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.08));
    padding: 48px 32px;
    margin-bottom: 48px;
}

.service-content-wrapper .content {
    margin-bottom: 32px;
}

.service-content-wrapper .title-tag {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: bold;
    color: var(--primary-color, #2F80ED);
    background: var(--primary-alpha-10, #e8f1fa);
    padding: 3px 16px;
    border-radius: 99px;
    margin-bottom: 24px;
}

.service-content-wrapper h2.title {
    font-size: 2.2rem;
    color: var(--primary-dark, #1a5bb8);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.service-content-wrapper .content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color, #2F80ED);
    margin-top: 32px;
    margin-bottom: 12px;
}

.service-content-wrapper .content p {
    font-size: 1.08rem;
    color: var(--text-primary, #1a202c);
    margin-bottom: 18px;
    line-height: 1.8;
}

.service-content-wrapper .content p strong {
    color: var(--primary-dark, #1a5bb8);
    font-weight: 700;
}

.service-content-wrapper .content ul,
.service-content-wrapper .content ol {
    margin: 0 0 16px 1.2em;
    color: var(--text-primary, #1a202c);
    font-size: 1.08rem;
}

.image-group {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin: 56px 0;
}

.image-group .image {
    flex: 1 1 0;
    max-width: 360px;
}

.image-group .image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06));
    transition: transform 0.3s;
}
.image-group .image img:hover {
    transform: scale(1.045);
    box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,.12));
}

@media (max-width: 991px) {
    .service-content-wrapper {
        padding: 32px 10px;
    }
    .image-group {
        flex-direction: column;
        gap: 20px;
        margin: 32px 0;
    }
    .image-group .image {
        max-width: 100%;
    }
}