/* FullSoftware - Stylesheet */

:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-alt: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: #1e3a8a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Navbar */
.navbar-custom {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 600;
}

/* Header Section */
.hero-section {
    padding: 2.5rem 1rem 1.5rem 1rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Search Box Container */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.search-bar-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-icon-left {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    background: transparent;
    color: var(--text-primary);
    outline: none;
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 0.75rem;
    font-size: 1rem;
    display: none;
}

.search-clear-btn:hover {
    color: var(--text-primary);
}

.search-submit-btn {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-submit-btn:hover {
    background-color: #2563eb;
}

/* Quick Software Tags */
.quick-tags-container {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tag-badge {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.825rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.tag-badge:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Category Tabs (Matches screenshot exactly) */
.category-tabs-container {
    max-width: 1050px;
    margin: 2rem auto 1rem auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-tab-item {
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.category-tab-item:last-child {
    border-right: none;
}

.category-tab-item:hover {
    background-color: var(--bg-alt);
}

.category-tab-item.active {
    background-color: var(--bg-card);
}

.category-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-icon {
    font-size: 1.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.35rem;
    transition: var(--transition);
}

.category-tab-item.active .tab-icon {
    color: var(--primary-color);
}

.tab-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.tab-count {
    color: var(--danger-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Results Section */
.results-container {
    max-width: 1050px;
    margin: 1rem auto 3rem auto;
    padding: 0 1rem;
    width: 100%;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.results-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-size-select {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
}

/* File Results List */
.file-list {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.file-row {
    display: flex;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    gap: 1.25rem;
}

.file-row:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .file-row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.file-row:last-child {
    border-bottom: none;
}

.file-row:hover {
    background-color: var(--bg-alt);
}

/* Left Icon */
.file-icon-box {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    position: relative;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.65rem;
}

[data-theme="dark"] .file-icon-box {
    background: #1e293b;
    color: #94a3b8;
}

.file-icon-box.file-dmg {
    background: #f0fdf4;
    color: #16a34a;
}

.file-icon-box.file-exe {
    background: #eff6ff;
    color: #2563eb;
}

.file-icon-box.file-rar {
    background: #fef2f2;
    color: #dc2626;
}

.file-icon-box.file-zip {
    background: #fffbeb;
    color: #d97706;
}

.file-icon-box.file-iso {
    background: #f5f3ff;
    color: #7c3aed;
}

.file-icon-box.file-doc {
    background: #f0fdfa;
    color: #0d9488;
}

.file-icon-box.file-video {
    background: #fae8ff;
    color: #a21caf;
}

.file-icon-box.file-audio {
    background: #fff1f2;
    color: #e11d48;
}

.file-icon-box.file-image {
    background: #ecfeff;
    color: #0891b2;
}

[data-theme="dark"] .file-icon-box.file-dmg {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .file-icon-box.file-exe {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .file-icon-box.file-rar {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

[data-theme="dark"] .file-icon-box.file-zip {
    background: rgba(217, 119, 6, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .file-icon-box.file-iso {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

[data-theme="dark"] .file-icon-box.file-doc {
    background: rgba(13, 148, 136, 0.15);
    color: #2dd4bf;
}

[data-theme="dark"] .file-icon-box.file-video {
    background: rgba(162, 28, 175, 0.15);
    color: #e879f9;
}

[data-theme="dark"] .file-icon-box.file-audio {
    background: rgba(225, 29, 72, 0.15);
    color: #fb7185;
}

[data-theme="dark"] .file-icon-box.file-image {
    background: rgba(8, 145, 178, 0.15);
    color: #22d3ee;
}

/* File Badges */
.ext-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 4px;
    border-radius: 4px;
    color: #ffffff;
    background-color: #64748b;
}

.ext-badge.rar {
    background-color: #8b1e1e;
}

.ext-badge.dmg {
    background-color: #65a30d;
}

.ext-badge.exe {
    background-color: #0284c7;
}

.ext-badge.zip {
    background-color: #d97706;
}

.ext-badge.iso {
    background-color: #7c3aed;
}

.ext-badge.pdf {
    background-color: #dc2626;
}

/* Main Content */
.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.file-name a {
    color: #2563eb;
    text-decoration: none;
    transition: var(--transition);
}

[data-theme="dark"] .file-name a {
    color: #60a5fa;
}

.file-name a:hover {
    text-decoration: underline;
}

.file-url {
    display: none !important;
}

.file-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.file-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Action Buttons (Matches screenshot Download button) */
.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-download-primary {
    background-color: #2b7cd3;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(43, 124, 211, 0.25);
    white-space: nowrap;
}

.btn-download-primary:hover {
    background-color: #1f65b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(43, 124, 211, 0.35);
}

.btn-icon-action {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-icon-action:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-icon-action.bookmarked {
    color: #eab308;
    background-color: rgba(234, 179, 8, 0.1);
    border-color: #eab308;
}

/* Pagination */
.pagination-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-nav {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.page-btn {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background-color: var(--bg-alt);
    border-color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading & Empty States */
.state-container {
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.state-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-dialog-custom {
    transform: translateY(0);
}

.modal-header-custom {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-custom h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body-custom {
    padding: 1.5rem;
}

.modal-file-box {
    background-color: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}

.modal-timer-box {
    text-align: center;
    padding: 1.25rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.timer-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.timer-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-tip-box {
    background-color: rgba(59, 130, 246, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.info-tip-box strong {
    color: var(--primary-color);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-item {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideUp 0.25s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 2.25rem 1rem 1.75rem 1rem;
    transition: var(--transition);
}

.footer-container {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 500px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
}

.footer-link:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.footer-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.footer-sep {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 0.8rem;
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    width: 100%;
}

/* Article Pages */
.article-page-wrapper {
    max-width: 920px;
    margin: 2.5rem auto 4rem auto;
    padding: 0 1rem;
    width: 100%;
}

.article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem 2.5rem;
    transition: var(--transition);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-sep {
    opacity: 0.5;
}

.article-breadcrumb .active {
    color: var(--primary-color);
    font-weight: 600;
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-body {
    color: var(--text-primary);
    font-size: 1.025rem;
    line-height: 1.75;
}

.article-lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.article-body h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 2.25rem 0 1rem 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-list {
    margin: 1rem 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.article-list li {
    padding-left: 0.25rem;
}

/* Callout Alert Boxes */
.article-callout {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.75rem 0;
    border-left: 4px solid transparent;
}

.article-callout.info {
    background-color: rgba(59, 130, 246, 0.08);
    border-color: #3b82f6;
    color: var(--text-primary);
}

.article-callout.success {
    background-color: rgba(16, 185, 129, 0.08);
    border-color: #10b981;
    color: var(--text-primary);
}

.article-callout.warning {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: #f59e0b;
    color: var(--text-primary);
}

.callout-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.article-callout.info .callout-icon {
    color: #3b82f6;
}

.article-callout.success .callout-icon {
    color: #10b981;
}

.article-callout.warning .callout-icon {
    color: #f59e0b;
}

.callout-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Article Table */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0 2rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
    text-align: left;
}

.article-table th {
    background-color: var(--bg-alt);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.article-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.article-table tr:hover td {
    background-color: var(--bg-alt);
}

/* Step Cards */
.article-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}

.step-card {
    display: flex;
    gap: 1.25rem;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
}

.step-number {
    width: 38px;
    height: 38px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.step-info p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.55;
}

.article-cta-box {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    text-align: center;
}

.article-cta-box h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.article-cta-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 1.25rem auto;
}

@media (max-width: 768px) {
    .article-card {
        padding: 1.75rem 1.25rem;
    }

    .article-title {
        font-size: 1.65rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-sep {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-tab-item:nth-child(3) {
        border-right: none;
    }

    .category-tab-item:nth-child(4),
    .category-tab-item:nth-child(5),
    .category-tab-item:nth-child(6) {
        border-top: 1px solid var(--border-color);
    }

    .file-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-download-primary {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   Adsterra Ad Placement Blocks (Top, Bottom, Modal, Left & Right Skyscraper)
   ========================================================================== */
.adsterra-ad-wrapper {
    margin: 1.5rem auto;
    text-align: center;
    width: 100%;
    max-width: 1050px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.adsterra-ad-container {
    margin: 0 auto;
    max-width: 728px;
    min-height: 90px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.adsterra-ad-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.adsterra-ad-placeholder {
    width: 100%;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.825rem;
    gap: 0.25rem;
    background: rgba(59, 130, 246, 0.03);
    border-radius: var(--radius-sm);
    border: 1px dotted rgba(59, 130, 246, 0.2);
    box-sizing: border-box;
}

.adsterra-ad-placeholder i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.adsterra-ad-placeholder .placeholder-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Modal Ad Block (300x250 Medium Rectangle or Native) */
.adsterra-modal-ad {
    margin: 1rem 0;
    width: 100%;
}

.adsterra-modal-ad .adsterra-ad-container {
    max-width: 320px;
    min-height: 100px;
    background: var(--bg-secondary);
}

.adsterra-modal-ad .adsterra-ad-placeholder {
    min-height: 100px;
    padding: 0.75rem;
}

/* ==========================================================================
   Left & Right Side Sticky Skyscraper Ads (160x600 / 120x600)
   ========================================================================== */
.adsterra-side-ad {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 160px;
    height: 600px;
    z-index: 999;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
}

.adsterra-side-left {
    left: 12px !important;
}

.adsterra-side-right {
    right: 12px !important;
}

/* On wide screens (1440px+), anchor right alongside the central content container */
@media (min-width: 1440px) {
    .adsterra-side-left {
        left: calc(50% - 525px - 175px) !important;
    }

    .adsterra-side-right {
        right: calc(50% - 525px - 175px) !important;
    }
}

/* On laptops & standard desktop screens (1024px to 1439px), dynamically constrain content so side ads stay sticky without overlapping */
@media (min-width: 1024px) and (max-width: 1439px) {
    .category-tabs-container,
    .results-container,
    .hero-section,
    .adsterra-ad-wrapper {
        max-width: calc(100vw - 370px) !important;
    }
}

/* Vertical responsiveness for displays with smaller viewport height */
@media (max-height: 670px) {
    .adsterra-side-ad {
        top: 70px !important;
        transform: none !important;
        height: auto;
    }
}

.adsterra-side-content {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
    position: relative;
}

.adsterra-side-close {
    position: absolute;
    top: -10px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 2;
}

.adsterra-side-close:hover {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.adsterra-ad-placeholder.skyscraper {
    width: 100%;
    min-height: 560px;
    padding: 1.5rem 0.5rem;
    gap: 0.5rem;
}

/* Only hide on tablets and mobile screens narrower than 1024px */
@media (max-width: 1023px) {
    .adsterra-side-ad {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .adsterra-ad-container {
        max-width: 320px;
        min-height: 50px;
        padding: 0.35rem;
    }
}