/*
Theme Name: Engineering Shield
Theme URI: https://eshield.pl
Author: Engineering Shield Team
Author URI: https://eshield.pl
Description: Professional WordPress theme for Engineering Shield - industrial automation and machine safety services.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eshield
*/

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */

:root {
    --primary-color: #0066FF;
    --primary-dark: #0052cc;
    --warning-color: #FF4800;
    --dark-bg: #0b0f19;
    --dark-secondary: #161b2c;
    --glass-bg: rgba(11, 15, 25, 0.65);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-tech: #e0e6ed;
    --neon-glow: 0 0 20px rgba(0, 102, 255, 0.3);
    --text-body: #333;
    --input-bg: #f8faff;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    background-color: #f8f9fa;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
    font-weight: 600 !important;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 2000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   Hero Grid Overlay (used across templates)
   ========================================================================== */

.has-bg-grid {
    position: relative;
    overflow: hidden;
}

.has-bg-grid > .bg-grid {
    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: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.has-bg-grid > .container,
.has-bg-grid > .container-fluid,
.has-bg-grid > .hero-content,
.has-bg-grid > .content-layer {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-weight: 500;
    color: #fff !important;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
    cursor: pointer;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: #1a1a1a !important;
}

.navbar.scrolled .navbar-brand {
    color: #000 !important;
}

.navbar-brand span {
    letter-spacing: -0.5px;
}

.navbar-toggler {
    border: 0;
    color: white;
}

.navbar.scrolled .navbar-toggler {
    color: black;
}

/* Fix: some themes override `.collapse` with `visibility: collapse` */
.navbar .collapse,
.navbar .navbar-collapse {
    visibility: visible !important;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        /* Keep it compact + enterprise */
        padding: 1.25rem 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }

    .navbar-collapse .nav-link {
        color: #000 !important;
        margin: 0.5rem 0;
        margin-left: 0;
    }

    /* Mobile mega menu becomes an accordion */
    .nav-item.has-mega-menu > .nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .nav-item.has-mega-menu .mega-menu {
        display: none;
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-top: 1px solid var(--border-tech);
        border-radius: 6px;
        background: #f8faff;
        padding: 0.75rem;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 0.35rem;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-item.has-mega-menu.mega-open .mega-menu {
        display: grid;
    }

    .nav-item.has-mega-menu .mega-menu-item {
        padding: 0.75rem;
    }
}

/* ==========================================================================
   Mega Menu
   ========================================================================== */

.nav-item.has-mega-menu {
    position: relative;
}

.nav-item.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: min(1200px, calc(100vw - 24px));
    max-width: min(1200px, calc(100vw - 24px));
    box-sizing: border-box;
    background: white;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1050;
    border-radius: 0 0 8px 8px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Desktop fix: prevent mega menu from going off-screen on smaller widths.
   Make it position relative to the navbar container, not the hovered li. */
@media (min-width: 992px) {
    .navbar .nav-item.has-mega-menu { position: static; }
    .navbar .mega-menu {
        left: 50%;
        transform: translateX(-50%) translateY(20px);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .mega-menu {
        padding: 1.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 6px;
    transition: background 0.2s;
    text-decoration: none;
    color: #1a1a1a;
}

.mega-menu-item:hover {
    background: #f4f7fe;
}

.mega-menu-item:hover .mm-title {
    color: var(--primary-color);
}

.mm-icon {
    color: var(--primary-color);
    margin-right: 1rem;
}

.mm-title {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.mm-desc {
    font-size: 0.85rem;
    color: #666;
    display: block;
    line-height: 1.4;
}

/* ==========================================================================
   Language Picker (grid like safetysoftware.eu)
   ========================================================================== */

.esh-lang-item { position: relative; }

.esh-lang-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    cursor: pointer;
}
.navbar.scrolled .esh-lang-btn{
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.03);
    color: #0b0f19;
}
.esh-lang-btn svg.lucide{ width: 18px; height: 18px; }
.esh-lang-code{ font-size: 0.85rem; }

.esh-lang-panel{
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(560px, calc(100vw - 32px));
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 30px 90px rgba(0,0,0,0.18);
    padding: 12px;
    z-index: 1200;
}

/* Defensive: some themes override `[hidden]` behavior */
.esh-lang-panel[hidden],
.esh-lang-backdrop[hidden]{
    display: none !important;
}
.esh-lang-head{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 12px 6px;
}
.esh-lang-title{
    font-weight: 800;
    font-size: 0.95rem;
    color: #0b0f19;
    letter-spacing: -0.01em;
}
.esh-lang-close{
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}
.esh-lang-close:hover{ color:#0b0f19; }

.esh-lang-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.esh-lang-cell{
    display:flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,0.10);
    text-decoration: none;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.esh-lang-cell:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
    border-color: rgba(0,102,255,0.35);
}
.esh-lang-cell-code{
    font-weight: 900;
    color: #0b0f19;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}
.esh-lang-cell-name{
    color:#64748b;
    font-size: 0.75rem;
    font-weight: 600;
}
.esh-lang-cell.is-active{
    border-color: rgba(0,102,255,0.65);
    box-shadow: 0 14px 32px rgba(0,102,255,0.12);
}
.esh-lang-cell.is-disabled{
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.esh-lang-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.35);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    /* Keep below Bootstrap `.navbar.fixed-top` (z-index: 1030) so the language panel/close remains clickable. */
    z-index: 1020;
}

@media (max-width: 991px){
    .esh-lang-panel{
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
        border-radius: 12px;
    }
    .esh-lang-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-tech {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-tech:hover {
    background: #0052cc;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-outline-tech {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-tech:hover {
    background: white;
    color: black;
    border-color: white;
}

.btn-warning-tech {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-warning-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-warning-tech:hover {
    background: #e64100;
    color: white;
    box-shadow: 0 0 20px rgba(255, 72, 0, 0.4);
}

.btn-warning-tech:hover::before {
    left: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 4px;
    max-width: 650px;
}

.hero-title {
    font-weight: 700 !important;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-section {
    background: #fff;
    position: relative;
    z-index: 2;
    margin-top: -50px;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    height: 100%;
    background: #fff;
}

.service-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    z-index: 2;
    position: relative;
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #0b0f19;
}

.arrow-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-item:hover .arrow-link {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Industries Section
   ========================================================================== */

.industries-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.industry-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.industry-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.industry-icon {
    color: #333;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.industry-card:hover .industry-icon {
    color: var(--primary-color);
}

/* ==========================================================================
   Client Logos
   ========================================================================== */

.client-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.client-logo {
    height: 60px;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
}

.client-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* ==========================================================================
   Process Section
   ========================================================================== */

.process-section {
    background: white;
    padding: 6rem 0;
}

.process-step {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 0;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--dark-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    border: 4px solid white;
}

.process-step:hover .step-number {
    background: var(--primary-color);
}

@media (max-width: 991px) {
    .process-step::after {
        display: none;
    }
}

/* ==========================================================================
   About Section (Dark)
   ========================================================================== */

.about-section {
    background-color: var(--dark-bg);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.about-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 50px 50px;
    pointer-events: none;
}

.shield-list-item {
    padding: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shield-list-item:hover,
.shield-list-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--primary-color);
}

.shield-letter {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    width: 40px;
    display: inline-block;
}

.shield-word {
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 10px;
}

.shield-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: block;
}

.shield-desc-text {
    color: rgba(255, 255, 255, 0.6);
}

.shield-desc-text.text-white {
    color: #fff !important;
}

/* ==========================================================================
   Risk Radar CTA
   ========================================================================== */

.risk-radar-section {
    background: #050505;
    color: white;
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

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

.risk-item {
    background: rgba(255, 72, 0, 0.08);
    border: 1px solid rgba(255, 72, 0, 0.2);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.risk-item:hover {
    background: rgba(255, 72, 0, 0.15);
    border-color: var(--warning-color);
    transform: translateX(5px);
}

.risk-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 72, 0, 0.2);
    border-radius: 4px;
    color: var(--warning-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.risk-code {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--warning-color);
    opacity: 0.8;
    display: block;
    margin-bottom: 0.25rem;
}

.risk-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.pulse-ring {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 72, 0, 0.1);
    border-radius: 50%;
    top: 50%;
    left: -200px;
    transform: translateY(-50%);
    pointer-events: none;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid rgba(255, 72, 0, 0.1);
    border-radius: 50%;
}

@media (max-width: 991px) {
    .radar-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Knowledge Section
   ========================================================================== */

.knowledge-section {
    background: #fff;
    padding: 6rem 0;
}

.knowledge-tab {
    padding: 1rem 2rem;
    border: 1px solid #eee;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.knowledge-tab.active {
    background: var(--dark-bg);
    color: white;
    border-color: var(--dark-bg);
}

.article-card {
    border: 1px solid #eee;
    padding: 2rem;
    height: 100%;
    transition: all 0.2s;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tag-badge {
    background: #f0f4ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.knowledge-content {
    display: none;
}

.knowledge-content.active {
    display: flex;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.reviews-section {
    background: #f4f6f9;
    padding: 6rem 0;
}

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100%;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: var(--dark-bg);
    padding: 6rem 0;
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-section {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

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

.iso-box {
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Article Body / Gutenberg Content Styles
   ========================================================================== */

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #0b0f19;
    letter-spacing: -0.5px;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #0b0f19;
}

.article-body ul,
.article-body ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    background: #f8faff;
    padding: 2rem;
    font-style: italic;
    font-size: 1.25rem;
    color: #0b0f19;
    margin: 2.5rem 0;
    border-radius: 0 4px 4px 0;
}

.article-body blockquote cite {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
}

.article-body img,
.article-body figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.article-body figure {
    margin: 0;
}

.article-body figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--primary-dark);
    text-decoration-thickness: 2px;
}