/* ============================================
   YANCHENG JI CHENG INDUSTRIES CO. LTD
   Main Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3c6d;
    --primary-dark: #0f2645;
    --primary-light: #2a5caa;
    --accent: #e74c3c;
    --accent-hover: #c0392b;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg: #ffffff;
    --bg-light: #f5f7fa;
    --bg-dark: #1a1a2e;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #27ae60;
    --warning: #f39c12;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.12);
    --radius: 6px;
    --radius-lg: 10px;
    --transition: all 0.3s ease;
    --max-width: 1280px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: relative;
    z-index: 1000;
}

.header-top {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact span {
    margin-right: 20px;
}

.header-contact i {
    margin-right: 5px;
}

.header-social a {
    color: #fff;
    margin-left: 12px;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: var(--transition);
}

.header-social a:hover {
    opacity: 1;
    color: #fff;
}

.header-main {
    background: var(--bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-list > li > a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--primary);
}

.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
    transform: scaleX(1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--text);
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    z-index: 2000;
    padding: 80px 20px 20px;
    transition: right 0.3s;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: var(--text);
    font-size: 1rem;
}

.mobile-submenu {
    display: none;
    padding-left: 15px;
}

.mobile-submenu.open {
    display: block;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

/* ============================================
   Hero Banner
   ============================================ */
.hero-banner {
    position: relative;
    height: 550px;
    overflow: hidden;
    background: var(--primary);
}

.banner-slider {
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s;
    display: flex;
    align-items: center;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15,38,69,0.85), rgba(15,38,69,0.3));
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Banner Arrows */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.banner-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-certifications {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.cert-item i {
    font-size: 1.3rem;
    color: var(--success);
}

.about-standards {
    margin: 20px 0;
}

.about-standards h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 3px;
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.product-info h3 a {
    color: var(--text);
}

.product-info h3 a:hover {
    color: var(--primary);
}

.product-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-specs-table {
    width: 100%;
    font-size: 0.88rem;
    margin-bottom: 15px;
    border-collapse: collapse;
}

.product-specs-table td {
    padding: 4px 0;
    border-bottom: 1px dashed var(--border-light);
    vertical-align: top;
}

.product-specs-table td:first-child {
    font-weight: 600;
    color: var(--text-light);
    width: 35%;
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
    background: var(--bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: block;
}

.category-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card:hover * {
    color: #fff;
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: rgba(255,255,255,0.2);
}

.category-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.category-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.category-card h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   Business Scope
   ============================================ */
.scope-section {
    background: var(--primary);
    color: #fff;
}

.scope-section .section-header h2 {
    color: #fff;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.scope-item {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.scope-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.scope-item i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.scope-item h4 {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ============================================
   Page Banner
   ============================================ */
.page-banner {
    background: url('../images/page-banner-about.jpg') center center / cover no-repeat;
    padding: 50px 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 54, 93, 0.75);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.85;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ============================================
   Products Page Layout
   ============================================ */
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.products-sidebar {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 95px;
}

.products-sidebar h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-categories {
    list-style: none;
}

.sidebar-categories li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-categories a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    font-size: 0.93rem;
    transition: var(--transition);
}

.sidebar-categories a:hover,
.sidebar-categories a.active {
    color: var(--primary);
    padding-left: 8px;
}

.cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-toggle a {
    flex: 1;
}

.toggle-icon {
    cursor: pointer;
    padding-right: 4px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.sub-categories {
    list-style: none;
    padding-left: 16px;
    margin-top: 2px;
}

.sub-categories li {
    border-bottom: none;
    border-left: 2px solid #e0e0e0;
    margin-left: 8px;
}

.sub-categories li:last-child {
    border-left: none;
}

.sub-categories a {
    padding: 7px 10px;
    font-size: 0.87rem;
    color: var(--text-secondary);
}

.sub-categories a:hover,
.sub-categories a.active {
    color: var(--primary);
    padding-left: 14px;
}

.category-description {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
}

.products-grid-list {
    grid-template-columns: repeat(2, 1fr);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-lighter);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
    color: var(--text-lighter);
}

/* ============================================
   Product Detail
   ============================================ */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-gallery {
    position: sticky;
    top: 95px;
}

.gallery-main {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg-light);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.gallery-main:hover img {
    transform: scale(1.5);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: var(--transition);
}

.thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-category-label {
    display: inline-block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.product-category-label a {
    color: var(--accent);
    font-weight: 600;
}

.product-description {
    margin-bottom: 25px;
    line-height: 1.8;
}

.product-specifications {
    margin-bottom: 25px;
}

.product-specifications h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.93rem;
}

.spec-table td:first-child {
    width: 35%;
    color: var(--text-light);
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-content {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.product-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ============================================
   Content Body (Rich Text)
   ============================================ */
.content-body {
    line-height: 1.9;
    font-size: 1.02rem;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    color: var(--primary);
    margin: 25px 0 15px;
}

.content-body p {
    margin-bottom: 15px;
}

.content-body ul,
.content-body ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.content-body img {
    border-radius: var(--radius);
    margin: 15px 0;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.content-body table td,
.content-body table th {
    border: 1px solid var(--border);
    padding: 10px 12px;
}

.content-body table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* ============================================
   Related Products
   ============================================ */
.related-products {
    background: var(--bg-light);
}

/* ============================================
   News Page
   ============================================ */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.news-filter a {
    padding: 8px 24px;
    border: 2px solid var(--border);
    border-radius: 30px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.news-filter a:hover,
.news-filter a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.news-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-info {
    padding: 18px;
}

.news-date {
    font-size: 0.82rem;
    color: var(--text-lighter);
    display: block;
    margin-bottom: 8px;
}

.news-info h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.news-info h3 a {
    color: var(--text);
}

.news-info h3 a:hover {
    color: var(--primary);
}

.news-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* News Detail */
.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.news-article-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.news-article-image img {
    width: 100%;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-type-badge {
    background: var(--primary);
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    gap: 20px;
}

.news-nav-link {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.news-nav-link:hover {
    border-color: var(--primary);
}

.news-nav-link span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-lighter);
    margin-bottom: 5px;
}

.news-nav-link strong {
    color: var(--text);
    font-size: 0.93rem;
}

.news-nav-link.next {
    text-align: right;
}

/* News Sidebar */
.news-sidebar {
    position: sticky;
    top: 95px;
}

.sidebar-widget {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-widget h4 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-widget ul li a {
    display: block;
    padding: 8px 0;
    color: var(--text);
    font-size: 0.9rem;
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

.recent-news small {
    display: block;
    color: var(--text-lighter);
    font-size: 0.78rem;
    margin-top: 3px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: #ccc;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #bbb;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--accent);
    width: 16px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-social-links {
    display: flex;
    gap: 10px;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #bbb;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social-links a:hover {
    background: var(--accent);
    color: #fff;
}

/* Friend Links */
.footer-links {
    background: rgba(255,255,255,0.03);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links h5 {
    color: #aaa;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-list a {
    color: #888;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.friend-links-list a:hover {
    color: #fff;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ============================================
   Content Section (Generic)
   ============================================ */
.content-section {
    padding: 50px 0;
}

.content-section .content-body {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    margin-bottom: 3px;
    color: var(--text);
}

.contact-detail-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,60,109,0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .scope-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .products-layout { grid-template-columns: 220px 1fr; }
    .products-grid-list { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-detail-layout { grid-template-columns: 1fr 260px; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .nav { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-menu { display: block; }

    .hero-banner { height: 400px; }
    .banner-content h1 { font-size: 2rem; }
    .banner-content p { font-size: 1rem; }

    section { padding: 50px 0; }
    .section-header h2 { font-size: 1.6rem; }

    .about-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .scope-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .products-layout { grid-template-columns: 1fr; }
    .products-sidebar { position: static; margin-bottom: 20px; }
    .products-grid-list { grid-template-columns: repeat(2, 1fr); }

    .product-detail-layout { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { position: static; }

    .contact-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-detail-layout { grid-template-columns: 1fr; }
    .news-sidebar { position: static; }
    .news-navigation { flex-direction: column; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .scope-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .products-grid-list { grid-template-columns: 1fr; }
    .hero-banner { height: 300px; }
    .banner-content h1 { font-size: 1.5rem; }
    .banner-arrow { width: 36px; height: 36px; font-size: 0.9rem; }
}
