/* ===================================
   EZG MANUFACTURING BLOG - MAIN STYLES
   Industrial B2B Design System
   =================================== */

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #ff4d00; /* Safety Orange */
    --primary-dark: #cc3d00;
    --dark: #1a1a1b;
    --dark-secondary: #2a2a2b;
    --gray: #555;
    --gray-light: #999;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --border: #ddd;
    --shadow: rgba(0, 0, 0, 0.1);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Arial Black', 'Arial Bold', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    font-size: 16px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* HEADER */
header {
    background: var(--dark);
    color: var(--white);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 2px 10px var(--shadow);
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
}

header .logo img {
    height: 60px;
    width: auto;
    display: block;
    max-width: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--white);
    z-index: 1001;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

main.container {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    color: var(--white);
    padding: 6rem 5% 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    border-left: 8px solid var(--primary);
    padding-left: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
    margin-top: 0;
    border-bottom: none;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 0 2rem 0;
    color: #e0e0e0;
    text-align: left;
    padding-left: 1.5rem;
}

/* HOMEPAGE SPECIFIC STYLES */
.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.homepage-section {
    margin-bottom: 64px;
}

@media (max-width: 768px) {
    .homepage-section {
        margin-bottom: 40px;
    }
}

/* INTRO SECTION */
.intro {
    background: var(--light-gray);
    padding: 3rem;
    margin: 3rem 0;
    border-left: 6px solid var(--primary);
    border-radius: 4px;
}

.intro h2 {
    border-bottom: none;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.intro p {
    margin-bottom: 1.25rem;
}

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

.stats-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    padding: 4rem 0;
    margin: 0;
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
}

.stats-section .homepage-container {
    padding: 0 20px;
}

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

.stat-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: bold;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ===================================
   CATEGORIES SHOWCASE (SLIDER)
   =================================== */

.categories-showcase {
    margin: 0;
    padding: 0;
}

.categories-showcase h2 {
    margin-top: 0;
    margin-bottom: 2rem;
}

.category-slider {
    position: relative;
    margin-bottom: 2rem;
}

.slider-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.category-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px var(--shadow);
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: categoryCardFadeIn 0.6s ease-out forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }

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

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.2);
    border-color: var(--primary);
}

.category-card.dragging {
    cursor: grabbing;
    transition: none;
}

.slider-track.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

.slider-track.dragging .category-card {
    pointer-events: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 77, 0, 0.3);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-btn.prev {
    left: -24px;
}

.slider-btn.next {
    right: -24px;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: var(--gray-light);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

.category-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: var(--light-gray);
}

.category-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.category-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    border-bottom: none;
    color: var(--dark);
}

.category-card-content p {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features-section {
    background: var(--light-gray);
    padding: 4rem 0;
    margin: 0;
    border-left: 6px solid var(--primary);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary);
}

.features-section .homepage-container {
    padding: 0 20px;
}

.features-section h2 {
    margin-top: 0;
    margin-bottom: 2rem;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.feature-item-content {
    flex: 1;
}

.feature-item h3 {
    font-size: clamp(18px, 2vw, 22px);
    margin: 0 0 0.5rem 0;
    border: none;
    color: var(--dark);
}

.feature-item p {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* GRID SYSTEMS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

section > h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

section:first-of-type > h2 {
    margin-top: 0;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* CARDS */
.card {
    border: 2px solid var(--border);
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.2);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    border-bottom: none;
    margin-top: 0;
}

.card-content .meta {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: none;
}

.card-content p {
    margin-bottom: 1rem;
    flex-grow: 1;
    color: var(--gray);
}

.card-content .btn {
    margin-top: 1rem;
    align-self: flex-start;
    width: auto;
}

.card-content p:last-of-type {
    margin-bottom: 0;
}

.card-content .category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.9rem 2rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover,
.btn:focus {
    background: var(--dark);
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin: 0;
    text-align: center;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.cta-banner .homepage-container {
    padding: 0 20px;
}

.cta-banner h2 {
    color: var(--white);
    border-bottom: none;
    margin-bottom: 1rem;
    margin-top: 0;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* TEXT SELECTION STYLES */
::selection {
    background: rgba(255, 138, 0, 0.25);
    color: inherit;
}

*::-moz-selection {
    background: rgba(255, 138, 0, 0.25);
    color: inherit;
}

/* BLOG POST LAYOUT */
.post-hero {
    background: #141414;
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
    margin: 0;
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.post-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: center;
}

.post-hero__badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 18px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.post-hero__badge:hover {
    background: var(--primary-dark);
}

.post-hero__title {
    color: #fff;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.06;
    margin: 0;
    text-transform: uppercase;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.post-hero__title * {
    background: transparent !important;
}

.post-hero__underline {
    height: 4px;
    background: var(--primary);
    width: 100px;
    margin-top: 18px;
}

.post-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #ccc;
    font-size: 0.95rem;
}

.post-hero__meta .meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-hero__meta .meta-label {
    color: #999;
    font-weight: 500;
}

.post-hero__meta .meta-value {
    color: #fff;
    font-weight: 600;
}

.post-hero__meta strong {
    background: transparent !important;
    color: #fff;
    font-weight: 600;
}

/* Post hero responsive */
@media (max-width: 992px) {
    .post-hero__inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .post-hero__meta {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .post-hero {
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .post-hero__inner {
        padding: 32px 16px;
        gap: 24px;
    }
    
    .post-hero__title {
        font-size: clamp(28px, 6vw, 42px);
    }
    
    .post-hero__meta {
        flex-direction: column;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
    }
    
    .post-hero__meta .meta-line {
        width: 100%;
    }
}

/* Legacy post-header styles for backward compatibility - remove if not needed */
.post-header {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.post-header .category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    border-bottom: 4px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    margin-top: 0;
    background: transparent !important;
}

.post-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent !important;
}

.post-meta strong {
    color: var(--dark);
    font-weight: 600;
    background: transparent !important;
}

.post-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 2rem 0;
    border: 3px solid var(--border);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.post-content h2 {
    margin-top: 2.5rem;
}

.post-content h3 {
    margin-top: 2rem;
    color: var(--gray);
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray);
}

/* TABLE OF CONTENTS */
.toc {
    background: var(--light-gray);
    border: 2px solid var(--border);
    padding: 2rem;
    margin: 2rem 0;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: none;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
}

.toc a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* QUICK TIPS CALLOUT */
.quick-tips {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    margin: 2.5rem 0;
    border-left: 6px solid var(--dark);
}

.quick-tips h3 {
    color: var(--white);
    margin-top: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.quick-tips ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.quick-tips li {
    margin-bottom: 0.5rem;
}

/* SEARCH BAR */
.search-bar {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light-gray);
    border: 2px solid var(--border);
}

.search-bar form {
    display: flex;
    gap: 1rem;
}

.search-bar input[type="search"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    font-size: 1rem;
    font-family: var(--font-main);
}

.search-bar input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

.search-bar button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* CATEGORY NAV */
.category-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border: 2px solid var(--border);
}

.category-nav a {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--dark);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.category-nav a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* CATEGORY HEADER */
.category-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    color: var(--white);
    padding: 4rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    background-size: cover;
    background-position: center;
}

.category-header > * {
    position: relative;
    z-index: 1;
}

.category-header h1 {
    color: var(--white);
    border-bottom: 4px solid var(--primary);
    padding-bottom: 1rem;
    display: inline-block;
}

/* CONTACT FORM */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    font-size: 1rem;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* FOOTER */
/* === Mega Footer (ezgmfg.INFO) === */
footer {
    background: #111;
    color: #e0e0e0;
    margin-top: 4rem;
    font-size: 0.95rem;
}

.footer-cta-strip {
    background: #1a1a1a;
    padding: 3rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-cta-headline {
    color: var(--white);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.footer-cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.footer-cta-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-main {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    border-bottom: none;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

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

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

.footer-company-block {
    color: #e0e0e0;
}

.footer-company-block p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.footer-company-block a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-company-block a:hover {
    color: var(--primary);
}

.footer-email-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-email-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.footer-certification {
    margin-top: 1.5rem;
    display: inline-block;
}

.footer-certification img {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
}

.footer-bottom-bar {
    background: #0a0a0a;
    padding: 1.5rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.footer-social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.footer-social-icons a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.footer-social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

.footer-legal-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-cta-strip {
        padding: 2rem 5%;
    }
    
    .footer-main {
        padding: 3rem 5%;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
}

/* 404 PAGE */
.error-page {
    text-align: center;
    padding: 5rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: none;
}

.error-page h2 {
    border-bottom: none;
    margin-bottom: 1rem;
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 1rem 5%;
        position: static;
    }

    header .logo {
        flex: 1;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 5%;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* Show menu when toggle is active */
    .menu-toggle[aria-expanded="true"] + nav,
    nav:target {
        display: flex;
    }

    nav a {
        font-size: 0.8rem;
        padding: 0.25rem;
    }

    .hero {
        padding: 4rem 5% 3rem;
    }

    .hero h1 {
        font-size: 2rem;
        padding-left: 1rem;
        border-left-width: 6px;
    }

    .hero p {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .intro {
        padding: 2rem;
        margin: 2rem 0;
    }

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

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn.prev {
        left: -20px;
    }

    .slider-btn.next {
        right: -20px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .category-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .slider-track {
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 3rem 2rem;
        margin: 3rem 0 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

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

    .search-bar form {
        flex-direction: column;
    }

    .post-hero-image {
        height: 250px;
    }

    .post-content {
        font-size: 1rem;
    }

    .error-page h1 {
        font-size: 4rem;
    }

    .container {
        width: 95%;
        padding: 1rem 0;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn.prev {
        left: -20px;
    }

    .slider-btn.next {
        right: -20px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .category-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .slider-track {
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 2%;
    }

    .hero h1 {
        font-size: 1.75rem;
        padding-left: 0.75rem;
        border-left-width: 4px;
    }

    .hero p {
        padding-left: 0.75rem;
    }

    .intro {
        padding: 1.5rem;
    }

    .stats-section {
        padding: 2.5rem 0;
    }

    .features-section {
        padding: 2.5rem 0;
    }

    .cta-banner {
        padding: 2.5rem 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: clamp(24px, 5vw, 32px);
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }

    .slider-btn.prev {
        left: 5px;
    }

    .slider-btn.next {
        right: 5px;
    }

    .category-card {
        flex: 0 0 100%;
    }

    .slider-track {
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .feature-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ===================================
   COOKIE BANNER & MODAL
   =================================== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--primary);
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cookie-banner.show {
    display: flex;
    justify-content: space-between;
}

/* Hide banner when hash targets accept/decline actions */
#accept-cookies:target ~ #cookie-banner,
#decline-cookies:target ~ #cookie-banner,
#accept-all-preferences:target ~ #cookie-banner,
#save-preferences:target ~ #cookie-banner {
    display: none;
}

/* Hide banner if user has already consented (handled by JS) */
.cookie-banner.hidden,
body.cookies-accepted #cookie-banner,
body.cookies-declined #cookie-banner {
    display: none;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-content {
    flex: 1;
    min-width: 250px;
}

.cookie-banner p {
    margin: 0 0 0.5rem 0;
    color: var(--white);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-overlay:target {
    display: flex;
}

.cookie-modal {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cookie-modal-header {
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--primary);
}

.cookie-modal-header h2 {
    color: var(--white);
    margin: 0;
    border-bottom: none;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.cookie-modal-close:hover,
.cookie-modal-close:focus {
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary);
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle.disabled .cookie-toggle-slider {
    background-color: var(--primary);
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner .btn {
        width: 100%;
    }

    .cookie-modal {
        max-width: 100%;
    }
}

/* Focus styles - using :focus-visible only */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hide default focus outline */
:focus:not(:focus-visible) {
    outline: none;
}
