.article-page {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--bg);
    min-height: 100vh;
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

.article-detail-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 12px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 28px;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.back-link:hover {
    color: var(--muted);
    border-color: rgba(201, 83, 106, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.back-link:hover i {
    transform: translateX(4px);
    color: var(--muted);
}

/* Breadcrumb Container */
.breadcrumb-container {
    margin: 15px 0 20px 0;
    font-size: 0.82rem;
    width: 100%;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; 
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    width: 100%;
}

/* Items & Links */
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted, #a0a0a0);
    white-space: nowrap;
    flex-shrink: 0; 
}

.breadcrumb-item a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-item a:hover {
    color: #C8A96E; 
}

/* Separator Icon */
.breadcrumb-item + .breadcrumb-item::before {
    content: "◀";
    font-size: 0.55rem;
    color: #C8A96E;
    margin-left: 6px;
}

/* Active Page*/
.breadcrumb-item.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.article-wrapper {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(0, 0, 0, 0.01);
    overflow: hidden;
    padding: 40px;
    border-color: var(--primary-light);
}

.article-header {
    margin-bottom: 32px;
}

.article-header .badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(201, 83, 106, 0.12);
    margin-bottom: 16px;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.45;
    margin: 0 0 20px 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: var(--gold);
    opacity: 0.8;
    font-size: 16px;
}

.meta-icon {
    width: 22px;
    height: 22px;
}

.related-card-footer-meta-icon {
    width: 22px;
    height: 18px;
}

.article-image,
.article-in-the-text-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.07);
    margin-bottom: 35px;
}

.article-in-the-text-image {
    max-height: 500px;
}

.article-excerpt {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.85;
    background: var(--surface);
    border-right: 4px solid var(--primary);
    padding: 24px 28px;
    border-radius: var(--radius-sm);
    margin-bottom: 35px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}


/* Table of Contents */
.article-toc {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 35px;
    overflow: hidden;
}

.toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
}

.toc-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-toggle-label i {
    color: var(--primary);
}

.toc-toggle-icon {
    color: var(--gold);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.article-toc.open .toc-toggle-icon {
    transform: rotate(180deg);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.article-toc.open .toc-list {
    max-height: 600px;
    padding: 0 20px 18px;
    overflow-y: auto;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Chrome, Edge, Safari */
.article-toc.open .toc-list::-webkit-scrollbar {
    width: 6px;
}

.article-toc.open .toc-list::-webkit-scrollbar-track {
    background: transparent;
}

.article-toc.open .toc-list::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 100px;
}

.article-toc.open .toc-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
}

.toc-item {
    border-top: 1px dashed rgba(201, 83, 106, 0.15);
}

.toc-item:first-child {
    border-top: none;
}

.toc-item a {
    display: block;
    padding: 10px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.6;
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.toc-item a:hover {
    color: var(--primary);
}

.toc-item a.active {
    color: var(--primary);
    font-weight: 700;
    padding-right: 6px;
}

.toc-item-h3 a {
    padding-right: 22px;
    font-size: 0.87rem;
    color: var(--text-muted, #a0a0a0);
}

.toc-item-h3 a:hover,
.toc-item-h3 a.active {
    color: var(--primary);
}

.article-content {
    font-size: 1rem;
    color: var(--dark);
    line-height: 2;
    text-align: justify;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 24px 24px 15px;
    background-color: var(--bg);
    border-top: 1px dashed rgba(201, 83, 106, 0.2);
    padding-top: 25px;
    margin-top: 10px;
}

.article-content h2 {
    color: #C9536A; 
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0; 
}

.article-content h3 {
    color: var(--mid);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.article-content a {
    color: var(--muted);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #C8A96E; 
}

.article-content ul li strong,
.article-content ol li strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.article-content p {
    margin-bottom: 24px;
}


/* ==========================================================================
   Tables inside article content (previously unstyled — rendered as raw
   browser-default tables with no borders/spacing/RTL header alignment)
   ========================================================================== */
.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 28px 0;
    font-size: 0.92rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-content table thead {
    background-color: var(--gold-light);
}

.article-content table thead th {
    color: var(--primary-dark);
    font-weight: 700;
    padding: 14px 18px;
    white-space: nowrap;
}

.article-content table tbody tr {
    background-color: var(--card-bg, var(--white));
    transition: background-color 0.2s ease;
}

.article-content table tbody tr:nth-child(even) {
    background-color: var(--surface);
}

.article-content table tbody tr:hover {
    background-color: rgba(201, 83, 106, 0.06);
}

.article-content table td {
    padding: 14px 18px;
    border-top: 1px solid var(--border-color);
    color: var(--dark);
    line-height: 1.8;
    vertical-align: top;
}

.article-content table th:first-child,
.article-content table td:first-child {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Wide tables scroll horizontally on small screens instead of squeezing/breaking */
.article-content .table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* Article References Box Styles */
.article-sources {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border);
    border-radius: 12px;
}

.sources-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(200, 169, 110, 0.15);
}

.sources-header i {
    color:  var(--primary);
    font-size: 1.1rem; 
}

.sources-header span {
    color: var(--mid);
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sources-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a0a0a0;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.3s ease;
    direction: ltr; 
}

.sources-list li a:hover {
    color: var(--primary);
}

.sources-list li a i {
    font-size: 0.75rem;
}

.sources-list-wrapper li a {
    color: var(--muted);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sources-list-wrapper li a img {
    width: 18px;
    height: 20px;
}

.sources-list-wrapper li a i {
    color: var(--primary-dark); 
}

.sources-list-wrapper li a:hover {
    color: var(--primary); 
}

/* ==========================================================================
   FAQ Section 
   ========================================================================== */
.article-faq {
    margin-top: 40px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mid);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(200, 169, 110, 0.15);
}

.faq-header img {
    width: 22px;
    height: 22px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--card-bg, var(--white));
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item[open] {
    border-color: rgba(201, 83, 106, 0.35);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    content: '';
}

.faq-item:hover .faq-question {
    color: var(--primary);
}

.faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.3s ease, margin 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(225deg);
    margin-top: 3px;
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--dark);
    line-height: 1.9;
    font-size: 0.92rem;
    text-align: justify;
    animation: faqFadeIn 0.25s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
  (Related Articles Section)
   ========================================================================== */
.related-articles-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px dashed var(--border-color);
}

.related-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mid);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-section-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid rgba(201, 83, 106, 0.15);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 83, 106, 0.4);
    box-shadow: var(--shadow-md);
}

.related-card-img-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: #25181C;
}

.related-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-img-wrapper img {
    transform: scale(1.06);
}

.related-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.related-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.55;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.related-card:hover .related-card-title {
    color: var(--primary);
}

.related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    margin-top: auto;
}

.related-card-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-card-footer i {
    color: var(--gold);
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

.article-in-the-text-image,
.article-infographic-image {
    cursor: zoom-in;
}

.breadcrumb-home{
    display: flex;
    flex-shrink: 0;
}

.hook-block {
    position: relative;
}


/* Persistent "generated by AI" badge, sits above the hook/excerpt box */
.hook-ai-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    width: fit-content;
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(200,169,110,0.12), rgba(201,83,106,0.12));
}

.hook-ai-label::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 1px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hook-ai-label-icon {
    flex-shrink: 0;
    animation: hookSparkleRainbow 4.2s ease-in-out infinite;
}


.hook-text-wrap {
    position: relative;
}

/* Real text: always in the DOM, reserves the final height from the
   first paint (no layout shift). Just invisible until typing finishes. */
.hook-text-real {
    opacity: 0;
    margin: 0;
    transition: opacity 0.2s ease;
}

.hook-block.hook-typed .hook-text-real {
    opacity: 1;
}

/* Decorative overlay: purely visual, aria-hidden, sits exactly on top
   of the real text and disappears once typing is done. */
.hook-text-overlay {
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
}

.hook-block.hook-typed .hook-text-overlay {
    display: none;
}

.hook-block.is-typing .hook-text-overlay::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #C8A96E;
    margin-inline-start: 3px;
    vertical-align: text-bottom;
    animation: hookCursorBlink 0.8s steps(1) infinite;
}

@keyframes hookSparkleRainbow {
    0%   { color: #C8A96E; transform: scale(0.9); }
    14%  { color: #C9536A; transform: scale(1.1); }
    28%  { color: #B565D8; transform: scale(0.9); }
    42%  { color: #5B8DEF; transform: scale(1.1); }
    57%  { color: #3FC1C9; transform: scale(0.9); }
    71%  { color: #4CAF7D; transform: scale(1.1); }
    85%  { color: #E8A33D; transform: scale(0.9); }
    100% { color: #C8A96E; transform: scale(0.9); }
}

@keyframes hookCursorBlink {
    50% { opacity: 0; }
}

.hook-ai-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #C9536A;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease;
    margin-bottom: 0;
}

.hook-block.is-typing .hook-ai-indicator {
    opacity: 1;
    height: auto;
    margin-bottom: 8px;
}

.hook-ai-icon {
    color: #C8A96E;
    animation: hookSparklePulse 1.2s ease-in-out infinite;
}

@keyframes hookSparklePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Respect the user's OS-level motion preference entirely */
@media (prefers-reduced-motion: reduce) {
    .hook-text-real { opacity: 1 !important; transition: none !important; }
    .hook-text-overlay,
    .hook-ai-indicator { display: none !important; }
}

/* Pillar & Cluster internal-linking boxes (topic cluster / pillar page) */
.pillar-link-box,
.cluster-links-box {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 35px 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pillar-link-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.pillar-link-box::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background-color: #9B2C42;
    -webkit-mask: url('/images/icons/icon-link.svg') no-repeat center / contain;
    mask: url('/images/icons/icon-link.svg') no-repeat center / contain;
}

.pillar-link-box a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(201, 83, 106, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.pillar-link-box a:hover {
    color: #C8A96E;
    border-color: #C8A96E;
}

.cluster-links-box strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cluster-links-box strong::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #9B2C42;
    -webkit-mask: url('/images/icons/icon-link.svg') no-repeat center / contain;
    mask: url('/images/icons/icon-link.svg') no-repeat center / contain;
}

.cluster-links-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.cluster-links-box li {
    border-top: 1px dashed rgba(201, 83, 106, 0.15);
}

.cluster-links-box li:first-child {
    border-top: none;
}

.cluster-links-box li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.cluster-links-box li a::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background-color: #9B2C42;
    -webkit-mask: url('/images/icons/icon-chevron-left.svg') no-repeat center / contain;
    mask: url('/images/icons/icon-chevron-left.svg') no-repeat center / contain;
    transition: transform 0.2s ease;
}

.cluster-links-box li a:hover {
    color: var(--primary);
    padding-right: 4px;
}

.cluster-links-box li a:hover::before {
    transform: translateX(-3px);
}

.tool-cta-box {
  background: linear-gradient(135deg, var(--color-rose-50, #fff5f5), var(--color-gold-50, #fffaf0));
  border: 1px solid var(--primary-hover);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.tool-cta-text {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-weight: bold;
}

.tool-cta-btn {
  display: inline-block;
  background: var(--border-gold);
  color: #fff;
  padding: 5px 15px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  border: 2px solid var(--gold); 
  font-size: 15px;
}

.tool-cta-btn:hover {
  background: var(--gold-light);
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(200, 169, 110, 0.35);
}

.tools-showcase {
    position: relative;
    margin: 36px 0;
    padding: 28px;
    background: linear-gradient(135deg, rgba(201, 83, 106, 0.05), rgba(212, 175, 90, 0.06));
    border: 1px solid rgba(201, 83, 106, 0.15);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
}

.tools-showcase::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 175, 90, 0.15), transparent 70%);
    pointer-events: none;
}

.tools-showcase-header {
    margin-bottom: 20px;
}

.tools-showcase-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark, #a8425a);
    background: rgba(201, 83, 106, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.tools-showcase-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem !important;
}

.tools-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.tool-showcase-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--card-bg, #ffffff);
    border: 1px solid rgba(201, 83, 106, 0.12);
    border-radius: var(--radius-md, 16px);
    text-decoration: none !important;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-showcase-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 83, 106, 0.4);
    box-shadow: var(--shadow-md, 0 10px 24px rgba(0,0,0,0.08));
}

.tool-showcase-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--border-gold), #c8a96ea1);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(201, 83, 106, 0.25);
}

.tool-showcase-icon img{
    width:25px;
}

.tool-showcase-body {
    flex: 1;
}

.tool-showcase-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 6px 0;
    transition: color 0.2s ease;
}

.tool-showcase-card:hover .tool-showcase-name {
    color: var(--primary);
}

.tool-showcase-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 10px 0;
    margin-bottom: 5px !important;
}

.tool-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}

.tool-showcase-link i {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.tool-showcase-card:hover .tool-showcase-link i {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .article-page {
        padding-top: 110px;
        padding-bottom: 40px;
    }
    .article-wrapper {
        padding: 10px 8px 10px 10px;
        border-radius: var(--radius-md);
    }
    .article-title {
        font-size: 1.65rem;
    }
    .article-meta {
        gap: 16px;
        font-size: 13px;
    }
    .breadcrumb-container {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .breadcrumb-container::-webkit-scrollbar {
        display: none; 
    }

    .breadcrumb-list {
        display: inline-flex;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .breadcrumb-item {
        flex-shrink: 0; 
    }

    .breadcrumb-item a,
    .breadcrumb-item.active {
        white-space: nowrap;
    }

    .article-faq {
        padding: 16px 14px;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .faq-answer {
        padding: 0 16px 16px;
        font-size: 0.9rem;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: var(--shadow-sm);
        border-collapse: collapse;
        white-space: nowrap;
        font-size: 0.85rem;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--surface);
    }
    .article-content table::-webkit-scrollbar {
        height: 6px;
        display: block;
    }
    .article-content table::-webkit-scrollbar-track {
        background: var(--surface);
        border-radius: 10px;
    }
    .article-content table::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }
     .tools-showcase {
    padding: 18px;
    margin: 24px 0;
  }

  .tools-showcase-title {
    font-size: 1rem;
  }

  .tools-showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-showcase-card {
    padding: 14px;
    gap: 12px;
  }

  .tool-showcase-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .tool-showcase-name {
    font-size: 0.92rem;
  }

  .tool-showcase-desc {
    font-size: 0.8rem;
  }
}