/* =========================================
   1. FONTS (Local Fonts)
   ========================================= */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   2. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #050806;
    --charcoal-trans: rgba(15, 20, 16, 0.95);
    --gold: #c5a046;
    --white: #ffffff;
    --gray: #888888;
    --light-gray-box: #e0e0e0;
    --dark-gray-box: #333333;
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }
.text-center { text-align: center; }

/* Icons SVG Helpers (Fixes SVG display issues) */
.icon-svg { 
    width: 24px; 
    height: 24px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    vertical-align: middle; 
    line-height: 1;
}
.icon-svg svg { 
    width: 100%; 
    height: 100%; 
    display: block; 
    fill: currentColor; 
}
.icon-xs { width: 16px; height: 16px; }
.icon-rotate-n90 { transform: rotate(-90deg); } /* Right */
.icon-rotate-90  { transform: rotate(90deg); }  /* Left */

/* =========================================
   3. HEADER
   ========================================= */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0; transition: all 0.4s ease;
    background: var(--charcoal-trans);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.site-header.sticky {
    padding: 10px 0; background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid rgba(197, 160, 70, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo-area a { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: 1px; color: #fff; }

/* Desktop Nav */
.desktop-nav { display: none; }
.nav-list { display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; }
.nav-list > li { position: relative; padding: 10px 0; }
.nav-list > li > a { font-size: 0.9rem; color: #ccc; font-weight: 500; text-transform: uppercase; position: relative; }
.nav-list > li > a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 50%;
    background-color: var(--gold); transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-list > li > a:hover, .nav-list > li.current-menu-item > a { color: var(--gold); text-shadow: 0 0 10px rgba(197, 160, 70, 0.3); }
.nav-list > li > a:hover::after, .nav-list > li.current-menu-item > a::after { width: 100%; }

/* Dropdown */
.sub-menu {
    position: absolute; top: 100%; left: 0; width: 220px;
    background: #0f1410; border: 1px solid #333; border-top: 2px solid var(--gold);
    padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); z-index: 1100;
}
.nav-list li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sub-menu a { display: block; padding: 12px 20px; font-size: 0.85rem; color: #bbb; }
.sub-menu a:hover { color: var(--gold); padding-left: 25px; background: rgba(255, 255, 255, 0.02); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 20px; z-index: 1001; }
.btn-catalog {
    border: 1px solid var(--gold); color: var(--gold); padding: 8px 25px;
    font-family: var(--font-head); text-transform: uppercase; font-size: 0.85rem;
    display: none; transition: all 0.4s ease; background: transparent;
    position: relative; overflow: hidden; z-index: 1;
}
.btn-catalog::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--gold); transition: 0.4s ease; z-index: -1;
}
.btn-catalog:hover { color: #000; box-shadow: 0 0 15px rgba(197, 160, 70, 0.4); }
.btn-catalog:hover::before { width: 100%; }

.hamburger {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
}

.hamburger .icon-svg {
    width: 24px;
    height: 24px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger .icon-svg svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

@media (min-width: 1100px) {
    .desktop-nav { display: block; }
    .hamburger { display: none; }
    .btn-catalog { display: inline-block; }
}

/* =========================================
   4. MOBILE SIDEBAR
   ========================================= */
.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 2000; opacity: 0; visibility: hidden;
    transition: 0.3s; backdrop-filter: blur(3px);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed; top: 0; left: 0; width: 280px; height: 100%;
    background: #0f1410; z-index: 2005; transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-right: 1px solid #222; overflow-y: auto; box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}
.mobile-sidebar.active { transform: translateX(0); }

.sidebar-header { padding: 20px; border-bottom: 1px solid #222; display: flex; justify-content: space-between; align-items: center; }
#closeMenuBtn { background: none; border: none; color: var(--gold); font-size: 2rem; cursor: pointer; padding: 0 10px; }
.mobile-nav { padding: 20px; }
.mobile-nav li { border-bottom: 1px solid #222; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; color: #fff; font-size: 1rem; }
.mobile-nav .sub-menu { display: none; position: static; opacity: 1; visibility: visible; transform: none; background: #050806; padding-left: 20px; border-top: 1px solid #222; width: 100%; box-shadow: none; }
.mobile-nav li:hover .sub-menu { display: block; }

/* =========================================
   5. HERO & COMPONENTS
   ========================================= */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; }
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/hero-bg.webp');
    background-size: cover; background-position: center; z-index: 0;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; }

.est-line { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: var(--gold); font-size: 0.85rem; }
.est-line .line { width: 40px; height: 1px; background: var(--gold); display: block; }
.hero-title { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; margin-bottom: 25px; text-transform: uppercase; }
.hero-desc { max-width: 500px; color: var(--gray); margin-bottom: 35px; }

.btn-outline {
    position: relative; border: 1px solid var(--gold); color: var(--gold);
    padding: 12px 30px; display: inline-block; font-family: var(--font-head);
    text-transform: uppercase; overflow: hidden; z-index: 1; transition: color 0.4s ease;
}
.btn-outline::after {
    content: ''; position: absolute; width: 0; height: 100%; top: 0; left: 0;
    background: var(--gold); z-index: -1; transition: width 0.3s ease;
}
.btn-outline:hover { color: #000; border-color: var(--gold); }
.btn-outline:hover::after { width: 100%; }

/* Analyzer */
.analyzer-wrapper { position: relative; z-index: 10; margin-top: -50px; margin-bottom: 60px; padding: 0 20px; }
.analyzer-box {
    background: rgba(10, 10, 10, 0.95); border-left: 4px solid var(--gold);
    padding: 30px; display: flex; flex-direction: column; gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px);
}
.an-icon { font-size: 1.5rem; color: var(--gold); width: 24px; }
.an-group { flex: 1; }
.an-group label { display: block; font-size: 0.7rem; color: var(--gray); margin-bottom: 5px; }
.an-group select { width: 100%; background: transparent; border: none; border-bottom: 1px solid #444; color: #fff; padding: 8px 0; outline: none; transition: 0.3s; }
.an-group select:focus { border-bottom-color: var(--gold); }
.an-btn {
    background: #fff; border: none; padding: 15px; font-weight: bold;
    cursor: pointer; width: 100%; display: flex; justify-content: center;
    align-items: center; gap: 10px; transition: 0.3s;
}
.an-btn:hover { background: var(--gold); color: #000; transform: translateY(-2px); }

@media (min-width: 992px) {
    .analyzer-box { flex-direction: row; align-items: center; }
    .an-btn { width: auto; padding: 15px 40px; }
}

.an-group select { color-scheme: dark; }

.an-group select optgroup,
.an-group select option {
    background-color: #0f1410;
    color: #fff;
}

.an-group select optgroup {
    color: var(--gold);
    font-weight: 700;
}

.an-group select option:hover,
.an-group select option:checked {
    background-color: #1c241d;
    color: var(--gold);
}

/* Safety: make sure JS-hidden options never show */
.an-group select option[hidden] { display: none; }
/* =========================================
   6. SECTIONS
   ========================================= */
.section { padding: 80px 0; }
.dark-bg { background: #030504; }
.split-header { display: flex; flex-wrap: wrap; align-items: flex-end; margin-bottom: 50px; gap: 30px; }
.split-left { flex: 1; min-width: 300px; }
.split-right { flex: 1; min-width: 300px; }
.gold-line-top { width: 50px; height: 2px; background: var(--gold); margin-bottom: 15px; }
.section-title { font-family: var(--font-head); font-size: 3.5rem; line-height: 0.9; text-transform: uppercase; }
.section-desc { color: var(--gray); font-size: 1rem; line-height: 1.6; }
@media (min-width: 992px) { .section-desc { text-align: right; margin-left: auto; max-width: 400px; } }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 60px; }
.stat-card {
    padding: 40px 20px; text-align: center; height: 100%; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    transition: all 0.4s; background: rgba(255, 255, 255, 0.01);
}
.stat-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.04); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); }
.stat-card.gold-border { border: 1px solid var(--gold); }
.stat-card.grey-border { border: 1px solid #333; }
.stat-card h3 { font-family: var(--font-head); font-size: 2.5rem; color: var(--gold); margin-bottom: 5px; }
.stat-card span { font-weight: 700; color: #fff; font-size: 1.1rem; }

/* Story Section (Fixed Layout) */
.story-section {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 50px; margin: 80px 0; position: relative;
}
.story-text { flex: 1; min-width: 300px; padding-right: 20px; }
.story-img { flex: 1; min-width: 300px; position: relative; }
.story-img img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); display: block; }
.story-text h3 {
    font-family: var(--font-head); font-size: 2.2rem;
    color: #fff; text-transform: uppercase; margin-bottom: 25px;
    line-height: 1.2; letter-spacing: 1px;
}
.story-text p {
    color: var(--gray); font-size: 1rem; line-height: 1.8;
    margin-bottom: 20px; text-align: justify;
}

/* Brands */
.brands-section { margin-top: 80px; width: 100%; overflow: hidden; position: relative; border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 20px 0; }
.brands-track { display: flex; width: max-content; animation: scrollBrands 35s linear infinite; }
.brand-box {
    width: 200px; height: 100px; background-color: var(--light-gray-box);
    color: #000; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: var(--font-head); font-size: 1.1rem;
    text-transform: uppercase; border-right: 1px solid #bbb; white-space: nowrap;
    transition: 0.3s; cursor: default;
}
.brand-box img { max-height: 60px; width: auto; }
@keyframes scrollBrands { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   7. SPOTLIGHT SECTION (FIXED)
   ========================================= */
.spotlight-section {
    background: #080a08;
    padding: 100px 0;
    border-top: 1px solid #222;
    position: relative;
}

.spotlight-flex {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 60px;
}

.spotlight-text, .spotlight-img { flex: 1; min-width: 300px; }

.spotlight-title {
    font-family: var(--font-head); font-size: 3.5rem;
    line-height: 1; margin-bottom: 25px;
    text-transform: uppercase; color: #fff;
}
.badge {
    border: 1px solid #333; padding: 8px 15px;
    font-size: 0.75rem; display: inline-block;
    margin-bottom: 25px; color: #888;
    letter-spacing: 1.5px; text-transform: uppercase;
}

/* Feature List Fix */
.check-list { margin-bottom: 30px; padding: 0; }
.check-list li {
    display: flex !important; align-items: flex-start;
    gap: 12px; color: #fff; margin-bottom: 12px; line-height: 1.5;
}
.check-list .icon-svg { flex-shrink: 0; color: var(--gold); margin-top: 3px; }

/* Float Tag Fix */
.spotlight-img { position: relative; display: block; }
.spotlight-img img { width: 100%; height: auto; display: block; }

.float-tag {
    position: absolute; bottom: 40px; left: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 15px 25px; border-left: 4px solid var(--gold);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.5); z-index: 5;
    min-width: 180px;
}
.float-tag strong {
    display: block; color: #fff;
    font-family: var(--font-head); font-size: 1.4rem;
    line-height: 1.1; margin-bottom: 5px; white-space: nowrap;
}
.float-tag span {
    display: block; color: #aaa;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
}

/* =========================================
   8. CATEGORIES & NEWS
   ========================================= */
/* Category Grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cat-card { position: relative; height: 450px; border: none; overflow: hidden; cursor: pointer; }
.cat-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; transition: 0.8s ease; }

/* Default Category Images */
.cat-bg-insecticides { background-image: url('../img/INSECTICIDES.webp'); }
.cat-bg-fungicides   { background-image: url('../img/FUNGICIDES.webp'); }
.cat-bg-herbicides   { background-image: url('../img/HERBICIDES.webp'); }
.cat-bg-fertilizers  { background-image: url('../img/FERTILIZERS.webp'); }

.cat-card:hover .cat-bg { transform: scale(1.15); }
.cat-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); transition: 0.4s; }
.cat-card:hover .cat-content { padding-bottom: 50px; }
.cat-content h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 5px; color: #fff; }
.cat-content span { color: var(--gray); font-size: 0.9rem; transition: color 0.3s; }
.cat-card:hover .cat-content span { color: var(--gold); }

/* News & Events Grid */
.news-grid { display: flex; gap: 50px; flex-wrap: wrap; }
.events-col { flex: 1; min-width: 300px; }
.news-col { flex: 1.5; min-width: 300px; }
.gold-head { color: var(--gold); letter-spacing: 2px; margin-bottom: 30px; font-size: 1rem; font-weight: 700; text-transform: uppercase; }

.event-item { display: flex; gap: 25px; margin-bottom: 30px; border-bottom: 1px solid #222; padding-bottom: 25px; transition: 0.3s; }
.event-item:hover { border-bottom-color: var(--gold); transform: translateX(10px); }
.date-box { font-size: 3.5rem; font-family: var(--font-head); line-height: 0.9; color: #fff; transition: 0.3s; }
.event-item:hover .date-box { color: var(--gold); }
.event-info h3 { font-size: 1.2rem; margin-bottom: 10px; }
.event-info a { color: var(--gold); font-weight: bold; font-size: 0.8rem; letter-spacing: 1px; }

.news-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.news-item img { width: 110px; height: 110px; object-fit: cover; transition: 0.3s; border-radius: 2px; }
.news-item:hover img { filter: brightness(1.1); transform: scale(1.02); }
.news-content h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: 8px; transition: 0.3s; }
.news-item:hover .news-content h3 { color: var(--gold); }
.news-content a { text-decoration: none; font-size: 0.85rem; border-bottom: 1px solid #333; padding-bottom: 2px; }
.news-content a:hover { border-bottom-color: var(--gold); color: var(--gold); }

/* =========================================
   9. FOOTER
   ========================================= */
.footer { background: #000; border-top: 2px solid var(--gold); padding-top: 80px; position: relative; overflow: hidden; }

.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 60px; }
.footer-left { max-width: 400px; }

.f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.f-logo img { height: 40px; width: auto; }

.f-address p { color: var(--gray); font-size: 0.95rem; line-height: 1.8; margin-bottom: 5px; }

.footer-right { display: flex; gap: 80px; }

.f-col h5 { color: #fff; margin-bottom: 25px; font-size: 0.9rem; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; }
.f-col li { margin-bottom: 12px; }
.f-col a { color: var(--gray); font-size: 0.95rem; transition: 0.3s; }
.f-col a:hover { color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }

.footer-watermark {
    font-family: var(--font-head); font-size: clamp(3rem, 11vw, 9rem);
    font-weight: 700; color: #111; text-transform: uppercase;
    line-height: 0.8; margin-bottom: 20px; margin-top: 20px;
    user-select: none; text-align: center;
}

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 30px; color: var(--gray); font-size: 0.85rem;
    border-top: 1px solid #1a1a1a; padding-top: 20px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--gold); }

/* =========================================
   10. ARCHIVE & SINGLE HELPERS
   ========================================= */
.page-header-bg {
    background-image: url('../img/hero-bg.webp');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    min-height: 300px; position: relative;
}
.page-header-bg::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(5,8,6,0.5) 0%, rgba(5,8,6,1) 100%);
}
.ph-content { position: relative; z-index: 2; }
.ph-title {
    font-size: 3.5rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    padding-top: 70px;
}
.breadcrumb { color: var(--gold); font-size: 0.9rem; margin-bottom: 10px; }
.breadcrumb a { color: #ccc; } .breadcrumb a:hover { color: var(--gold); }
.separator { margin: 0 10px; color: #555; }

/* Product Grid */
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.pro-card { position: relative; background: #0f1410; border: 1px solid #222; overflow: hidden; transition: 0.4s ease; }
.pro-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.pro-card.auto-height { min-height: auto; }

.pro-img-wrap { height: 280px; width: 100%; overflow: hidden; background: #151a16; }
.pro-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.pro-card:hover .pro-img-wrap img { transform: scale(1.1); opacity: 0.6; }
.fallback-img { object-fit: contain !important; padding: 40px; background: #000; width: 100%; height: 100%; }

.pro-info { padding: 20px; border-top: 1px solid #222; background: #0f1410; position: relative; z-index: 2; }
.pro-title { font-family: var(--font-head); font-size: 1.3rem; margin: 0; color: #fff; }
.meta-sub { font-size: 0.85rem; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; }
.pro-excerpt { margin-top: 15px; color: #aaa; font-size: 0.9rem; line-height: 1.6; }

.btn-read-more {
    display: flex; align-items: center; gap: 10px; margin-top: 20px;
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
    color: var(--gold); transition: 0.3s;
}
.btn-read-more:hover { color: #fff; padding-left: 5px; }

/* Pagination & Warning */
.pagination-wrapper { margin-top: 60px; display: flex; justify-content: center; gap: 10px; }
.page-numbers {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #333; color: #888; transition: 0.3s;
}
.page-numbers.current, .page-numbers:hover { border-color: var(--gold); color: var(--gold); }

.warning-box { text-align: center; padding: 50px; border: 1px dashed #333; background: rgba(255,255,255,0.02); margin-top: 30px; }
.warning-icon { width: 48px; height: auto; margin-bottom: 20px; }

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .story-section { flex-direction: column; gap: 30px; }
    .story-text, .story-img { min-width: 100%; padding-right: 0; }
    .story-text h3 { font-size: 1.8rem; text-align: left; }
    
    .spotlight-flex { flex-direction: column-reverse; }
    .float-tag { bottom: -20px; left: 20px; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .hero-title, .section-title, .ph-title { font-size: 2.5rem; }
    .hero { min-height: 500px; }
    .analyzer-wrapper { margin-top: 0; margin-bottom: 40px; }
    .analyzer-box { padding: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-right { flex-direction: column; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    
    .news-grid { gap: 30px; }
    .float-tag { min-width: auto; padding: 10px 15px; }
    .float-tag strong { font-size: 1.1rem; }
}
/* =========================================
   12. SINGLE POST & SIDEBAR LAYOUT
   ========================================= */

/* --- Layout Grid --- */
.sidebar-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    position: relative;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0; /* Prevents flex overflow */
    width: 100%;
}

.sidebar {
    flex: 0 0 340px;
    width: 340px;
    position: relative;
}

.sidebar-inner {
    position: sticky;
    top: 100px;
}

/* --- Single Post Content --- */
.single-post-box {
    margin-bottom: 40px;
}

.single-post-box .pro-img-wrap {
    width: 100%;
    height: auto !important;
    background: #0f1410;
    border: 1px solid #222;
    padding: 10px;
    margin-bottom: 30px;
}

.single-post-box .pro-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Typography & Elements inside Post */
.content-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #e0e0e0;
}

.content-body p {
    margin-bottom: 25px;
}

.content-body h2, 
.content-body h3, 
.content-body h4 {
    color: #fff;
    font-family: var(--font-head);
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.content-body ul, 
.content-body ol {
    margin-bottom: 25px;
    padding-left: 20px;
    color: #ccc;
}

.content-body li {
    margin-bottom: 10px;
}

.content-body a {
    color: var(--gold);
    text-decoration: underline;
}

.content-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    margin: 30px 0;
    font-style: italic;
    color: #fff;
}

/* --- Sidebar Widgets --- */
.filter-group {
    background: #0f1410;
    border: 1px solid #222;
    padding: 30px;
    margin-bottom: 30px;
}

.widget-title {
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    text-transform: uppercase;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background: var(--gold);
}

/* Search Widget */
.filter-group form {
    display: flex;
    height: 45px;
}

.filter-group .form-input {
    flex: 1;
    background: #050806;
    border: 1px solid #333;
    border-right: none;
    padding: 0 15px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.filter-group .form-input:focus {
    border-color: var(--gold);
}

.filter-group button[type="submit"] {
    width: 50px;
    background: var(--gold);
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.filter-group button[type="submit"]:hover {
    background: #fff;
}

/* Categories List */
.cat-list li {
    border-bottom: 1px solid #222;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.cat-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-list li a {
    color: #aaa;
    font-size: 0.95rem;
    transition: 0.3s;
}

.cat-list li span {
    font-size: 0.75rem;
    color: var(--gold);
    background: rgba(197, 160, 70, 0.1);
    padding: 2px 8px;
    border-radius: 2px;
}

.cat-list li:hover a {
    color: #fff;
    padding-left: 5px;
}

/* Recent Posts Widget */
.recent-posts-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-list a {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: 0.3s;
}

.recent-posts-list a:hover {
    color: var(--gold);
}

.recent-posts-list span {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

/* --- Post Navigation --- */
.post-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.9rem;
    border: 1px solid #333;
    padding: 12px 25px;
    transition: 0.3s;
    background: transparent;
    text-transform: uppercase;
}

.post-navigation a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* --- Tags --- */
.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.post-tags a {
    font-size: 0.85rem;
    color: #aaa;
    background: #1a1a1a;
    padding: 5px 12px;
    border-radius: 2px;
    transition: 0.3s;
}

.post-tags a:hover {
    background: var(--gold);
    color: #000;
}

/* =========================================
   13. RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 992px) {
    .sidebar-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex: auto;
    }
    
    .sidebar-inner {
        position: static;
    }
}
/* =========================================
   14. LIGHTBOX STYLES
   ========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 2px solid var(--gold);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

/* Cursor for images in posts */
.content-body img, .pro-img-wrap img {
    cursor: zoom-in;
    transition: opacity 0.3s;
}

.content-body img:hover, .pro-img-wrap img:hover {
    opacity: 0.9;
}
/* =========================================
   15. PROFESSIONAL CONTENT STYLING (Tables & Typos)
   ========================================= */

/* --- 1. WordPress Standard Alignments --- */
.aligncenter {
    display: block;
    margin: 0 auto 20px auto;
    text-align: center;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

/* Fix for centered paragraphs containing images */
.content-body p[style*="text-align: center"],
.content-body p[style*="text-align:center"] {
    text-align: center !important;
}

.content-body img.aligncenter {
    margin: 0 auto;
}

/* --- 2. Professional Data Tables --- */
.content-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 0.95rem;
    background: #0f1410;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.content-body table th,
.content-body table td {
    padding: 15px;
    border: 1px solid #2a2a2a;
    text-align: left;
    color: #ccc;
    vertical-align: middle;
}

/* Header / First Row Styling */
.content-body table thead th,
.content-body table tr:first-child td {
    background-color: #1a1f1b;
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold);
}

/* Row Hover Effect */
.content-body table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* Responsive Table Wrapper */
@media (max-width: 768px) {
    .content-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* --- 3. Typography Improvements --- */
.content-body strong, 
.content-body b {
    color: #fff;
    font-weight: 700;
}

/* Highlight product names usually bolded in content */
.content-body strong {
    color: var(--gold); /* Gold color for bold text implies product names */
}

/* Blockquote Styling */
.content-body blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: rgba(197, 160, 70, 0.05); /* Very light gold tint */
    border-left: 4px solid var(--gold);
    color: #e0e0e0;
    font-style: italic;
}

/* List Styling inside content */
.content-body ul {
    list-style: none;
    padding-left: 0;
}

.content-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.content-body ul li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Remove huge gaps from empty paragraphs */
.content-body p:empty {
    display: none;
}
/* =========================================
   16. COMMENTS SECTION STYLING
   ========================================= */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #222;
}

.comments-title, 
.comment-reply-title {
    font-family: var(--font-head);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-list {
    list-style: none;
    margin-bottom: 50px;
}

.comment-list li.comment {
    border-bottom: 1px solid #222;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.comment-list li.comment:last-child {
    border-bottom: none;
}

.comment-body {
    position: relative;
    padding-left: 70px; /* Space for avatar */
}

.comment-author .avatar {
    position: absolute;
    left: 0;
    top: 5px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.fn {
    font-family: var(--font-head);
    font-style: normal;
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
}

.comment-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
}

.comment-meta a {
    color: #666;
    text-decoration: none;
}

.comment-content p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 0.8rem;
    color: #fff;
    border: 1px solid #444;
    padding: 3px 12px;
    border-radius: 2px;
    transition: 0.3s;
}

.comment-reply-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Children Comments (Nested) */
.children {
    list-style: none;
    margin-left: 20px;
    margin-top: 30px;
    border-left: 1px solid #333;
    padding-left: 20px;
}

/* Comment Form */
.comment-respond {
    background: #0f1410;
    padding: 30px;
    border: 1px solid #222;
    border-radius: 4px;
}

.comment-form-row {
    display: flex;
    gap: 20px;
}

.comment-form-group {
    margin-bottom: 20px;
    flex: 1;
}

.comment-form-group input,
.comment-form-group textarea {
    width: 100%;
    background: #050806;
    border: 1px solid #333;
    padding: 15px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.comment-form-group input:focus,
.comment-form-group textarea:focus {
    border-color: var(--gold);
}

.logged-in-as, .comment-notes {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.logged-in-as a {
    color: var(--gold);
}

/* Mobile Fix */
@media (max-width: 768px) {
    .comment-form-row {
        flex-direction: column;
        gap: 0;
    }
    .children {
        margin-left: 10px;
        padding-left: 10px;
    }
}
/* =========================================
   17. ARCHIVE & CATEGORY STYLING (Professional)
   ========================================= */

/* --- 1. Neutral Placeholder (No Image) --- */
.neutral-placeholder, .cat-bg.no-img-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f100f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #222;
}

/* --- 2. Professional Sidebar Tree --- */
.sidebar-nav-box {
    padding: 0 !important; /* Reset padding for cleaner edge-to-edge look */
    border: 1px solid #333;
    overflow: hidden;
    background: #0f1410;
}

.sidebar-nav-box .widget-title {
    padding: 20px 25px;
    margin: 0;
    background: #050806;
    border-bottom: 1px solid #333;
}

.cat-list-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Parent Items */
.cat-list-tree > li {
    border-bottom: 1px solid #222;
}

.cat-list-tree > li:last-child {
    border-bottom: none;
}

.cat-list-tree a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    font-size: 0.95rem;
    color: #ccc;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* Hover Effect */
.cat-list-tree a:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--gold);
    padding-left: 30px; /* Slight slide effect */
}

/* Active State (Current or Ancestor) */
.cat-list-tree li.current-cat > a,
.cat-list-tree li.current-cat-parent > a,
.cat-list-tree li.current-cat-ancestor > a {
    background: rgba(197, 160, 70, 0.08);
    color: var(--gold);
    border-left: 3px solid var(--gold);
    font-weight: 700;
}

/* Sub-categories (Children) */
.cat-list-tree .children {
    display: none;
    background: #080a08; /* Darker bg for depth */
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.2);
    padding: 0;
}

.cat-list-tree .children li {
    border-bottom: 1px solid #1a1a1a;
}

.cat-list-tree .children a {
    padding: 12px 25px 12px 40px; /* Indent */
    font-size: 0.9rem;
    color: #888;
}

.cat-list-tree .children a:hover {
    color: #fff;
    padding-left: 45px;
}

.cat-list-tree .children li.current-cat > a {
    color: var(--gold);
}

/* Logic to show children */
.cat-list-tree li.current-cat > .children,
.cat-list-tree li.current-cat-parent > .children,
.cat-list-tree li.current-cat-ancestor > .children {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. Archive Product Cards --- */
.pro-card {
    background: #0f1410;
    border: 1px solid #222;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pro-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.pro-img-wrap-link {
    display: block;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.pro-img-wrap {
    height: 250px;
    width: 100%;
    background: #151a16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.pro-card:hover .pro-img-wrap img {
    transform: scale(1.1);
    opacity: 0.8;
}

.pro-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-badge {
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.pro-title {
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.pro-title a {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.pro-title a:hover {
    color: var(--gold);
}

.btn-read-more {
    margin-top: auto;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-read-more:hover {
    color: #fff;
    gap: 12px;
}

.pagination-wrapper ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.pagination-wrapper .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}