/**
 * devexperts.css — Devexperts-inspired design for propfirmprovider.com
 * Dark hero, orange CTA, clean white sections, sharp corners, professional tech look
 */

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */

* {
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: var(--font-main);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================================
   HEADER — Dark + orange CTA
   ============================================================ */

.header {
    background: #0a0e17;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

.header-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    padding: 0.5rem 0.85rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: transparent;
    color: #ffffff;
}

.nav-dropdown {
    border-radius: 0;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.nav-dropdown-link {
    font-size: 0.875rem;
    color: #333;
    border-radius: 0;
}

.nav-dropdown-link:hover {
    background: #f5f5f5;
    color: var(--color-primary);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    background: var(--color-primary);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 0;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
    margin-left: 0.5rem;
}

.header-cta:hover {
    background: var(--color-primary-dark);
    color: #ffffff !important;
}

/* ============================================================
   HERO — Dark cinematic like devexperts
   ============================================================ */

.dx-hero {
    position: relative;
    background: #0a0e17;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dx-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/ref/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    opacity: 0.12;
}

/* Orange diagonal decorative shapes — like devexperts */
.dx-hero-deco-left {
    position: absolute;
    left: -60px;
    top: 0;
    bottom: 0;
    width: 300px;
    pointer-events: none;
    overflow: hidden;
}

.dx-hero-deco-left::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, transparent 0%, rgba(244,81,30,0.15) 40%, transparent 70%);
    transform: skewX(-8deg);
}

.dx-hero-deco-left::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 20px;
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(244,81,30,0.6), transparent);
}

.dx-hero-deco-right {
    position: absolute;
    right: -60px;
    top: 0;
    bottom: 0;
    width: 300px;
    pointer-events: none;
    overflow: hidden;
}

.dx-hero-deco-right::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(225deg, transparent 0%, rgba(244,81,30,0.15) 40%, transparent 70%);
    transform: skewX(8deg);
}

.dx-hero-deco-right::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 20px;
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(244,81,30,0.6), transparent);
}

/* Grid pattern overlay */
.dx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.dx-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px var(--container-padding) 60px;
    text-align: center;
}

.dx-hero-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.dx-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.02em;
    max-width: 780px;
    margin: 0 auto 1.5rem;
}

.dx-hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.dx-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-dx-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 0;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-dx-primary:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-dx-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 2rem;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-dx-outline:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
}

.btn-dx-orange-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0;
    border: none;
    transition: color 0.2s;
    text-decoration: none;
}

.btn-dx-orange-outline:hover {
    color: var(--color-primary-dark);
}

.btn-dx-orange-outline::after {
    content: ' →';
}

/* ============================================================
   PRODUCTS TABS SECTION (inside hero)
   ============================================================ */

.dx-products-tabs {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0;
}

.dx-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.dx-tabs-nav::-webkit-scrollbar { display: none; }

.dx-tab-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-main);
}

.dx-tab-btn:hover {
    color: rgba(255,255,255,0.85);
}

.dx-tab-btn.active {
    color: #ffffff;
    border-bottom-color: var(--color-primary);
}

.dx-tab-content {
    display: none;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem var(--container-padding);
}

.dx-tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.dx-tab-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.dx-tab-info p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    font-size: 0.925rem;
    margin-bottom: 1.2rem;
}

.dx-tab-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dx-tab-bullets li {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    padding-left: 1.2rem;
    position: relative;
}

.dx-tab-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.dx-tab-screenshot {
    position: relative;
}

.dx-tab-screenshot img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   SECTION COMMON STYLES
   ============================================================ */

.dx-section {
    padding: 80px 0;
}

.dx-section-white {
    background: #ffffff;
}

.dx-section-light {
    background: #f7f7f7;
}

.dx-section-dark {
    background: #1a202c;
}

.dx-section-header {
    margin-bottom: 3rem;
}

.dx-section-header.center {
    text-align: center;
}

.dx-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.dx-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.dx-section-title.white {
    color: #ffffff;
}

.dx-section-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
}

.dx-section-desc.white {
    color: rgba(255,255,255,0.65);
}

.dx-section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}

.dx-section-link:hover {
    gap: 0.5rem;
    color: var(--color-primary-dark);
}

.dx-section-link::after { content: ' →'; }

.dx-section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

/* ============================================================
   ABOUT / INTRO SECTION — Bold text block like devexperts
   ============================================================ */

.dx-about {
    padding: 80px 0;
    background: #ffffff;
}

.dx-about-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.dx-about-headline {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.dx-about-text {
    color: #555;
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dx-logos-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.dx-logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
}

.dx-logo-pill {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    border-radius: 2px;
    letter-spacing: 0.02em;
}

/* ============================================================
   STATS / AWARDS SECTION
   ============================================================ */

.dx-stats {
    padding: 70px 0;
    background: #f7f7f7;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.dx-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.dx-stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

.dx-stat-label {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

/* ============================================================
   CATEGORIES / SERVICES SECTION
   ============================================================ */

.dx-categories {
    padding: 80px 0;
    background: #ffffff;
}

.dx-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5px;
    background: #e5e5e5;
    border: 1.5px solid #e5e5e5;
}

.dx-cat-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.2s;
    display: block;
}

.dx-cat-card:hover {
    background: #fafafa;
    color: #1a1a1a;
}

.dx-cat-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.2rem;
    color: var(--color-primary);
}

.dx-cat-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.dx-cat-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.dx-cat-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.dx-cat-count {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================================
   ARTICLES GRID — like case studies
   ============================================================ */

.dx-articles {
    padding: 80px 0;
    background: #f7f7f7;
}

.dx-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5px;
    background: #e5e5e5;
    border: 1.5px solid #e5e5e5;
}

.dx-article-card {
    background: #ffffff;
    text-decoration: none;
    color: #1a1a1a;
    display: block;
    transition: background 0.2s;
}

.dx-article-card:hover {
    background: #fafafa;
}

.dx-article-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #111;
}

.dx-article-body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.dx-article-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.dx-article-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.dx-article-card:hover .dx-article-title {
    color: var(--color-primary);
}

.dx-article-excerpt {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   TAGS / KEYWORDS SECTION
   ============================================================ */

.dx-tags {
    padding: 70px 0;
    background: #ffffff;
}

.dx-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dx-tag-pill {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    color: #444;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.dx-tag-pill:hover {
    background: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ============================================================
   CTA SECTION — "Schedule a call" style
   ============================================================ */

.dx-cta {
    padding: 80px 0;
    background: #f7f7f7;
    border-top: 1px solid #e5e5e5;
}

.dx-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.dx-cta-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.dx-cta-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.dx-cta-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dx-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dx-form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dx-form-field input,
.dx-form-field select,
.dx-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    font-family: var(--font-main);
    transition: border-color 0.2s;
}

.dx-form-field input:focus,
.dx-form-field select:focus,
.dx-form-field textarea:focus {
    border-color: var(--color-primary);
}

/* ============================================================
   FOOTER — Dark like devexperts
   ============================================================ */

.footer {
    background: #0a0e17;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin: 0.2rem 0;
}

.footer-disclaimer {
    margin-bottom: 0.5rem;
}

/* ============================================================
   PAGE HERO — internal pages
   ============================================================ */

.page-hero {
    background: #0a0e17;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.page-hero-breadcrumb a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.page-hero-breadcrumb a:hover {
    color: rgba(255,255,255,0.8);
}

.page-hero-breadcrumb span {
    color: rgba(255,255,255,0.25);
}

.page-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    line-height: 1.65;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.dx-article-page {
    padding: 0;
}

.dx-article-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2.5rem var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.dx-article-main {
    min-width: 0;
}

.dx-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dx-article-meta-cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.dx-article-meta-date {
    font-size: 0.8rem;
    color: #999;
}

.dx-article-h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.dx-article-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
}

.dx-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.dx-article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 0.75rem;
}

.dx-article-content p {
    margin-bottom: 1.2rem;
}

.dx-article-content ul,
.dx-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.dx-article-content li {
    margin-bottom: 0.4rem;
}

.dx-article-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.dx-article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Sidebar */
.dx-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.dx-sidebar-box {
    background: #f7f7f7;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 3px solid var(--color-primary);
}

.dx-sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.dx-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dx-sidebar-links a {
    font-size: 0.875rem;
    color: #444;
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e5e5e5;
    transition: color 0.15s;
    line-height: 1.4;
}

.dx-sidebar-links a:last-child {
    border-bottom: none;
}

.dx-sidebar-links a:hover {
    color: var(--color-primary);
}

/* ============================================================
   CATEGORY / SUBCATEGORY PAGE
   ============================================================ */

.dx-listing {
    padding: 2.5rem 0 4rem;
}

.dx-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5px;
    background: #e5e5e5;
    border: 1.5px solid #e5e5e5;
    margin-bottom: 2rem;
}

.dx-listing-card {
    background: #ffffff;
    text-decoration: none;
    color: #1a1a1a;
    display: block;
    transition: background 0.2s;
}

.dx-listing-card:hover {
    background: #fafafa;
}

.dx-listing-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.dx-listing-body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.dx-listing-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.dx-listing-card:hover .dx-listing-title {
    color: var(--color-primary);
}

.dx-listing-excerpt {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Subcategory cards */
.dx-subcats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5px;
    background: #e5e5e5;
    border: 1.5px solid #e5e5e5;
    margin-bottom: 3rem;
}

.dx-subcat-card {
    background: #ffffff;
    padding: 1.5rem;
    text-decoration: none;
    color: #1a1a1a;
    display: block;
    transition: background 0.2s;
}

.dx-subcat-card:hover {
    background: #fafafa;
}

.dx-subcat-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.dx-subcat-card:hover .dx-subcat-name {
    color: var(--color-primary);
}

.dx-subcat-count {
    font-size: 0.78rem;
    color: #aaa;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.dx-pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.dx-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    color: #444;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.15s;
    background: #fff;
}

.dx-page-link:hover,
.dx-page-link.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.dx-contact-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem var(--container-padding) 5rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.dx-contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.dx-contact-info p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.dx-contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dx-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.dx-contact-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dx-contact-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.dx-contact-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.dx-contact-item-value {
    font-size: 0.95rem;
    color: #333;
}

.dx-contact-form-wrapper {
    background: #f7f7f7;
    padding: 2.5rem;
    border-top: 3px solid var(--color-primary);
}

.dx-contact-form-wrapper h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */

.dx-404 {
    text-align: center;
    padding: 6rem var(--container-padding);
    max-width: 600px;
    margin: 0 auto;
}

.dx-404-code {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    position: relative;
}

.dx-404-code::after {
    content: '404';
    position: absolute;
    inset: 0;
    color: #1a1a1a;
    font-size: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
    font-size: clamp(4rem, 12vw, 8rem);
}

.dx-404 h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.dx-404 p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-nav {
    background: #0a0e17;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-primary);
    background: rgba(255,255,255,0.04);
}

.mobile-nav-dropdown a {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    padding: 0.6rem 1rem 0.6rem 2rem;
}

.mobile-nav-dropdown a:hover {
    color: rgba(255,255,255,0.9);
}

.mobile-nav-all {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   ARTICLE CONTENT — ensure dark text on white background
   ============================================================ */

.dx-article-content {
    color: #333333;
    font-size: 1.02rem;
    line-height: 1.8;
}

.dx-article-content h1,
.dx-article-content h2,
.dx-article-content h3,
.dx-article-content h4,
.dx-article-content h5,
.dx-article-content h6 {
    color: #1a1a1a;
    font-weight: 700;
}

.dx-article-content p,
.dx-article-content li {
    color: #333333;
}

.dx-article-content strong {
    color: #1a1a1a;
}

/* Override old article-content colors */
.article-content,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1a1a1a !important;
}

.article-content p,
.article-content li {
    color: #333333 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .dx-tab-content.active {
        grid-template-columns: 1fr;
    }

    .dx-about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dx-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dx-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dx-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dx-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dx-subcats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dx-article-layout {
        grid-template-columns: 1fr;
    }

    .dx-sidebar {
        position: static;
    }

    .dx-contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .dx-cta-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .dx-hero {
        min-height: auto;
    }

    .dx-hero-inner {
        padding: 50px var(--container-padding) 35px;
    }

    .dx-products-tabs {
        width: 100%;
    }

    .dx-tab-content.active {
        grid-template-columns: 1fr;
        padding: 1.5rem var(--container-padding);
    }

    .dx-tab-screenshot {
        display: none;
    }

    .dx-hero-deco-left,
    .dx-hero-deco-right {
        width: 100px;
        opacity: 0.5;
    }

    .dx-section {
        padding: 55px 0;
    }

    .dx-about {
        padding: 55px 0;
    }

    .dx-stats {
        padding: 50px 0;
    }

    .dx-categories {
        padding: 55px 0;
    }

    .dx-articles {
        padding: 55px 0;
    }

    .dx-cat-grid {
        grid-template-columns: 1fr;
    }

    .dx-articles-grid,
    .dx-listing-grid {
        grid-template-columns: 1fr;
    }

    .dx-subcats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero {
        padding: 40px 0;
    }

    .dx-contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dx-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .dx-subcats-grid {
        grid-template-columns: 1fr;
    }

    .dx-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dx-tabs-nav {
        justify-content: flex-start;
    }
}
