/**
 * Aris Foundry Blog — Enterprise Design System & Stylesheet
 * 1200px Block Layout Architecture | Mobile 12px Gutter & Center Alignment
 * Typography: Outfit (Headings) + Inter (Body) | Multi-Color Button System
 * 2-Column FAQ Accordion Grid | Article Single Detail Overhaul | 350px Responsive
 */

:root {
    /* Brand & Foundry Palette */
    --primary: #c8102e;             /* Aris Crimson */
    --primary-dark: #9e0c23;
    --primary-light: #fee2e2;
    --primary-glow: rgba(200, 16, 46, 0.18);
    
    --secondary: #0c1f3f;           /* Deep Industrial Navy */
    --secondary-dark: #071326;
    --secondary-light: #1e3a6d;
    
    /* Logical Action Colors */
    --color-amber-start: #ea580c;   /* Foundry High-Heat Amber / RFQ CTA */
    --color-amber-end: #f59e0b;
    --color-blue-start: #1d4ed8;    /* Steel Engineering Blue / Read & Explore */
    --color-blue-end: #2563eb;
    --color-teal-start: #0f766e;    /* Metallurgy ISO Emerald / Tech Specs */
    --color-teal-end: #0d9488;
    --color-slate-start: #0f172a;   /* Industrial Charcoal / Filters */
    --color-slate-end: #1e293b;

    /* Neutrals & Surfaces */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --bg-card: #ffffff;
    
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --border-subtle: rgba(226, 232, 240, 0.8);
    
    /* Typography Colors */
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: #cbd5e1;

    /* Shadows & Elevation */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 6px 0 rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px -2px rgba(12, 31, 63, 0.08), 0 2px 4px -2px rgba(12, 31, 63, 0.04);
    --shadow-lg: 0 12px 28px -4px rgba(12, 31, 63, 0.12), 0 4px 8px -2px rgba(12, 31, 63, 0.06);
    --shadow-xl: 0 20px 35px -5px rgba(12, 31, 63, 0.16);

    /* Dimensions & Radii */
    --block-radius: 16px;
    --block-radius-lg: 20px;
    --card-radius: 14px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-full: 9999px;
    
    --container-max: 1200px;
    --min-touch-target: 44px;

    /* Font Stacks */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==============================================================================
   Reset & Base Styles
   ============================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-page);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.25;
    font-weight: 700;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==============================================================================
   Uniform 1200px Block Container Architecture
   ============================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Base Block Card Shared Across Sections */
.section-block {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 1.25rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--block-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    box-sizing: border-box;
}

/* ==============================================================================
   Top Contact Bar Block (1200px Width)
   ============================================================================== */
.topbar-block {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 0.75rem auto 0;
    background-color: var(--secondary-dark);
    color: var(--text-on-dark);
    font-size: 0.8125rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.topbar-contact span {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.topbar-contact a {
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-weight: 500;
}

.topbar-contact a:hover {
    color: #ffffff;
}

/* ==============================================================================
   Header Navigation Block (1200px Centered Card | Single-Line Menu)
   ============================================================================== */
.site-header {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 0.75rem auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--block-radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 8px;
    z-index: 1000;
    padding: 0.6rem 1.25rem;
}

.site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 52px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* Single-Line Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9125rem;
    padding: 0.45rem 0.75rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--bg-surface-alt);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Dropdown Menu for Product Divisions */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 250px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 1050;
    list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.55rem 1.15rem;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background-color: var(--bg-surface-alt);
    color: var(--primary);
}

.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0.5rem;
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
    color: var(--secondary);
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background-color: var(--bg-surface-alt);
}

/* ==============================================================================
   Logical Multi-Color Button System
   ============================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9125rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    min-height: var(--min-touch-target);
    box-sizing: border-box;
}

/* 1. Amber Flame (High-Conversion RFQ / Submit) */
.btn-amber,
.nav-btn-rfq {
    background: linear-gradient(135deg, var(--color-amber-start) 0%, var(--color-amber-end) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-amber:hover,
.nav-btn-rfq:hover {
    background: linear-gradient(135deg, #c2410c 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}

/* 2. Steel Blue (Read Article / Explore Guide) */
.btn-blue,
.read-more-link {
    background: linear-gradient(135deg, var(--color-blue-start) 0%, var(--color-blue-end) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-blue:hover,
.read-more-link:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38);
}

/* 3. Metallurgy Teal / Emerald (Quality Specs & Standards) */
.btn-teal {
    background: linear-gradient(135deg, var(--color-teal-start) 0%, var(--color-teal-end) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
}

.btn-teal:hover {
    background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.38);
}

/* 4. Industrial Slate (Filters & Search) */
.btn-slate {
    background: linear-gradient(135deg, var(--color-slate-start) 0%, var(--color-slate-end) 100%);
    color: #ffffff !important;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-slate:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

/* 5. Outline / Ghost */
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--secondary);
}

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

/* ==============================================================================
   Hero Section Block (1200px Centered Card)
   ============================================================================== */
.blog-hero {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 1rem auto;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: #ffffff;
    padding: 3.5rem 2rem;
    border-radius: var(--block-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.2) 0%, rgba(200, 16, 46, 0) 70%);
    pointer-events: none;
}

.blog-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fca5a5;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.blog-hero h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero p {
    color: var(--text-on-dark-muted);
    font-size: 1.125rem;
    max-width: 760px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Search Form */
.hero-search-form {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.35rem 0.35rem 0.35rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    min-height: 42px;
}

.hero-search-input::placeholder {
    color: var(--text-light);
}

.hero-search-btn {
    background-color: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9125rem;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    min-height: var(--min-touch-target);
    transition: background 0.2s ease;
}

.hero-search-btn:hover {
    background-color: var(--primary-dark);
}

/* ==============================================================================
   Category Filter Block (1200px Width)
   ============================================================================== */
.category-bar {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 0 auto 1.25rem;
    box-sizing: border-box;
}

.category-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--block-radius);
    box-shadow: var(--shadow-xs);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.category-bar-inner::-webkit-scrollbar {
    height: 4px;
}

.category-bar-inner::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.category-chip {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.category-chip:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: #ffffff;
}

.category-chip.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ==============================================================================
   Main Articles Grid (1200px Block Container)
   ============================================================================== */
.content-block {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 0 auto 1.5rem;
    box-sizing: border-box;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 16, 46, 0.4);
}

.post-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--secondary-dark);
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(12, 31, 63, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.post-card-title a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.post-card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* ==============================================================================
   Article Pagination (1200px Centered & Responsive Grid)
   ============================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.95rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.925rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xs);
    user-select: none;
    box-sizing: border-box;
}

.page-btn:hover:not(.active):not(.disabled) {
    background-color: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
    cursor: default;
}

.page-btn.disabled {
    background-color: var(--bg-surface-alt);
    color: var(--text-light);
    border-color: var(--border-color);
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 42px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
    user-select: none;
}

.page-prev,
.page-next {
    font-weight: 700;
    padding: 0 1.15rem;
}

/* ==============================================================================
   Themed Capabilities & Keyword Showcase Section (1200px Block)
   ============================================================================== */
.showcase-block {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 1.5rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--block-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.section-header-wrap {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2rem;
}

.section-header-wrap .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.section-header-wrap h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-header-wrap p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.showcase-card {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: #ffffff;
}

.showcase-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.showcase-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.showcase-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

/* ==============================================================================
   Metallurgical Grade Benchmark Table (1200px Block)
   ============================================================================== */
.comparison-block {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 1.5rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--block-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.benchmark-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

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

.benchmark-table th {
    background: var(--secondary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.benchmark-table tr:nth-child(even) {
    background-color: var(--bg-surface-alt);
}

.benchmark-table tr:hover {
    background-color: #f8fafc;
}

/* ==============================================================================
   2-Column Side-by-Side FAQ Accordion Grid (1200px Block)
   ============================================================================== */
.faq-block {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 1.5rem auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--block-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.faq-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 1.75rem;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item[open] {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.975rem;
    color: var(--secondary);
    cursor: pointer;
    user-select: none;
    list-style: none;
    gap: 0.75rem;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    stroke: var(--primary);
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.65;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

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

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

/* ==============================================================================
   Engineering Consultation & RFQ CTA Block (1200px Block)
   ============================================================================== */
.lead-cta-block {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 1.5rem auto;
    background: linear-gradient(135deg, var(--secondary) 0%, #08162b 100%);
    color: #ffffff;
    border-radius: var(--block-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}

.lead-cta-block h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.lead-cta-block p {
    color: var(--text-on-dark-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 1.75rem;
}

.lead-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.lead-cta-actions .btn {
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    min-height: 48px;
}

/* ==============================================================================
   Single Article View (1200px Centered Layout)
   ============================================================================== */
.article-container {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 1.25rem auto 2.5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    box-sizing: border-box;
    align-items: start;
}

.article-main {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--block-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumbs-sep {
    color: var(--border-dark);
    font-size: 0.95rem;
}

.breadcrumbs-current {
    color: var(--text-main);
    font-weight: 600;
}

/* Article Header */
.article-header {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0.5rem 0 1rem;
    color: var(--secondary);
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

/* Featured Hero Image */
.article-featured-img {
    margin-bottom: 2rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--secondary-dark);
    box-shadow: var(--shadow-xs);
}

.article-featured-img img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* Article Body Content & Rich Typography */
.article-body,
.article-content {
    font-size: 1.075rem;
    line-height: 1.8;
    color: #1e293b;
    word-break: break-word;
}

.article-body h2, .article-content h2 {
    font-size: 1.65rem;
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--secondary);
}

.article-body h3, .article-content h3 {
    font-size: 1.3rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--secondary);
}

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

.article-body ul, .article-content ul,
.article-body ol, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li, .article-content li {
    margin-bottom: 0.5rem;
}

.article-body table, .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.95rem;
}

.article-body th, .article-content th,
.article-body td, .article-content td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
}

.article-body th, .article-content th {
    background: var(--secondary);
    color: #ffffff;
    font-weight: 700;
}

.article-body tr:nth-child(even), .article-content tr:nth-child(even) {
    background-color: var(--bg-surface-alt);
}

.article-body a, .article-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover, .article-content a:hover {
    color: var(--primary-dark);
}

/* Tags Wrap */
.article-tags-wrap {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.article-tags-wrap strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Share Bar */
.article-share-bar {
    margin: 2rem 0;
    padding: 1.25rem;
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-share-bar span {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

.share-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Related Articles Section */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-section h2 {
    font-size: 1.45rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-card {
    background: var(--bg-surface-alt);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s, transform 0.2s;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: #ffffff;
}

.related-card h3 {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.related-card h3 a {
    color: var(--secondary);
    text-decoration: none;
}

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

.related-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* ==============================================================================
   Sidebar & Widgets
   ============================================================================== */
.sidebar,
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.sidebar-widget.rfq-widget {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.sidebar-widget.rfq-widget .widget-title {
    color: #ffffff;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget.rfq-widget p {
    color: var(--text-on-dark-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.sidebar-widget.rfq-widget label {
    color: #e2e8f0;
}

.widget-title {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.sidebar-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-link-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.65rem;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.sidebar-link-list li a:hover {
    background: var(--bg-surface-alt);
    color: var(--primary);
}

.count-badge {
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

/* ==============================================================================
   RFQ Global Modal
   ============================================================================== */
.rfq-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(12, 31, 63, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    overflow-y: auto;
}

.rfq-modal-backdrop.active {
    display: flex;
}

.rfq-modal-card {
    background-color: #ffffff;
    border-radius: var(--block-radius-lg);
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rfq-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

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

.rfq-form-group {
    margin-bottom: 1rem;
}

.rfq-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

.rfq-input, .rfq-select, .rfq-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s;
}

.rfq-input:focus, .rfq-select:focus, .rfq-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.rfq-textarea {
    min-height: 90px;
    resize: vertical;
}

.rfq-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-amber-start) 0%, var(--color-amber-end) 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    transition: all 0.2s;
}

.rfq-submit-btn:hover {
    background: linear-gradient(135deg, #c2410c 0%, #d97706 100%);
    transform: translateY(-1px);
}

/* ==============================================================================
   Mobile Navigation Offcanvas Drawer
   ============================================================================== */
.mobile-nav-drawer {
    display: none;
}

@media (max-width: 991px) {
    .mobile-nav-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background-color: #ffffff;
        z-index: 99998;
        padding: 2rem 1.5rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .mobile-nav-drawer.active {
        transform: translateX(0);
    }

    body.drawer-open {
        overflow: hidden;
    }
}

/* ==============================================================================
   Footer Block (1200px Width Centered Block)
   ============================================================================== */
.site-footer {
    max-width: var(--container-max);
    width: calc(100% - 32px);
    margin: 1.5rem auto 2rem;
    background-color: var(--secondary-dark);
    color: var(--text-on-dark-muted);
    border-radius: var(--block-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    padding: 3.5rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.5rem;
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    display: inline-block;
    padding: 0.2rem 0;
    min-height: 32px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* ==============================================================================
   Responsive Media Queries & 350px Mobile Overhaul
   ============================================================================== */

/* Tablets & Small Desktops (<=991px) */
@media (max-width: 991px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

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

    .main-nav {
        display: none;
    }

    .hamburger-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile Devices (<=768px): Strict 12px Gutter & Center Alignment */
@media (max-width: 768px) {
    :root {
        --block-radius: 12px;
        --block-radius-lg: 14px;
        --card-radius: 12px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .topbar-block,
    .site-header,
    .section-block,
    .blog-hero,
    .category-bar,
    .content-block,
    .showcase-block,
    .comparison-block,
    .faq-block,
    .lead-cta-block,
    .article-container,
    .site-footer {
        margin-left: 12px !important;
        margin-right: 12px !important;
        width: calc(100% - 24px) !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    /* Topbar Mobile Alignment */
    .topbar-block {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.35rem;
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    .topbar-contact {
        justify-content: center;
        gap: 0.75rem;
    }

    /* Header Mobile */
    .site-header {
        top: 6px;
        padding: 0.5rem 12px !important;
    }

    /* Hero Banner Mobile */
    .blog-hero {
        padding: 2.5rem 12px !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }

    .blog-hero h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .blog-hero p {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    .hero-search-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 0.6rem;
    }

    .hero-search-input {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-full);
        padding: 0.75rem 1.25rem;
        min-height: var(--min-touch-target);
        text-align: center;
    }

    .hero-search-btn {
        width: 100%;
        border-radius: var(--radius-full);
    }

    /* Category Filter Horizontal Scroll */
    .category-bar-inner {
        padding: 0.5rem 0.75rem;
        border-radius: 12px;
        justify-content: flex-start;
    }

    /* Posts Grid 1 Column */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .post-card-body {
        padding: 1.25rem;
    }

    .post-card-title {
        font-size: 1.15rem;
    }

    /* Showcase & FAQ Responsive 1 Column */
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Lead CTA Actions on Mobile */
    .lead-cta-block {
        padding: 2.5rem 14px !important;
    }

    .lead-cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .lead-cta-actions .btn {
        width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
        font-size: 0.925rem !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box !important;
        display: flex;
        justify-content: center;
        line-height: 1.35;
    }

    /* Article Single Detail Mobile */
    .article-main {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .article-header h1 {
        font-size: 1.65rem;
    }

    .article-meta-bar {
        justify-content: flex-start;
        gap: 0.6rem;
        font-size: 0.8125rem;
    }

    .article-body, .article-content {
        font-size: 1rem;
    }

    .article-share-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .share-btns {
        width: 100%;
        justify-content: center;
    }

    .share-btns .btn {
        flex: 1;
        min-width: 90px;
    }

    /* Footer Mobile Center Alignment */
    .site-footer {
        padding: 2.5rem 12px 1.25rem !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
        text-align: center;
    }

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

    .footer-col h3 {
        border-left: none;
        border-bottom: 2px solid var(--primary);
        display: inline-block;
        padding-left: 0;
        padding-bottom: 0.35rem;
        margin-bottom: 1rem;
    }

    /* RFQ Modal Mobile Full Padding */
    .rfq-modal-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }
}

/* Extra Small Phones (350px Viewport) */
@media (max-width: 380px) {
    .blog-hero h1 {
        font-size: 1.55rem;
    }
    
    .section-header-wrap h2 {
        font-size: 1.5rem;
    }

    .article-header h1 {
        font-size: 1.4rem;
    }
    
    .logo-img {
        height: 36px;
    }

    .topbar-contact span,
    .topbar-contact a {
        font-size: 0.75rem;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .faq-answer {
        font-size: 0.875rem;
        padding: 0 1rem 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .lead-cta-actions .btn {
        font-size: 0.875rem !important;
        padding: 0.65rem 0.75rem !important;
    }
}
