/* ==========================================================
   B2B Professional - Main Styles
   Homepage sections, content areas, sidebar, forms
   ========================================================== */

/* === Hero Banner === */
.hero-banner { position: relative; overflow: hidden; }
.hero-slide { display: none; min-height: 520px; background: linear-gradient(135deg, var(--bs-theme-color) 0%, #0d2240 100%); background-size: cover; background-position: center; align-items: center; }
.hero-slide.active { display: flex; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(13,34,64,.6); }
.hero-content { position: relative; z-index: 2; max-width: 650px; padding: 60px 0; }
.hero-content h1 { font-size: 42px; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.hero-content p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 28px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inquiry-btn { border-color: #fff !important; color: #fff !important; }
.hero-inquiry-btn:hover { background: #fff !important; color: var(--bs-theme-color) !important; }

.hero-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 12px; }
.hero-controls button { background: rgba(255,255,255,.2); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 14px; transition: background .2s; }
.hero-controls button:hover { background: rgba(255,255,255,.4); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: background .2s; }
.hero-dot.active { background: #fff; }
/* === Category Grid (Homepage) === */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { display: block; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; overflow: hidden; transition: all .25s; text-decoration: none; }
.category-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-4px); }
.category-card-img { height: auto; background: #f0f2f5 center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.category-card-img i { font-size: 48px; color: #ced4da; }
.category-card-body { padding: 16px; text-align: center; }
.category-card-body h3 { font-size: 16px; margin-bottom: 4px; color: #333; }
.category-card-body span { font-size: 13px; color: #6c757d; }

/* === Why Choose Us === */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why-item { text-align: center; padding: 30px 20px; }
.why-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--bs-theme-color), #2c5f8a); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.why-icon i { font-size: 28px; color: #fff; }
.why-item h3 { font-size: 18px; margin-bottom: 10px; }
.why-item p { font-size: 14px; color: #6c757d; line-height: 1.7; }

/* === Trust / Stats === */
.trust-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; }
.trust-item { padding: 20px; }
.trust-number { display: block; font-size: 48px; font-weight: 800; color: #fff; line-height: 1.2; }
.trust-label { font-size: 16px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* === News Archive === */
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0 0; border-bottom: 2px solid #e9ecef; margin-bottom: 30px; }
.news-tab { display: inline-block; padding: 10px 20px; font-size: 14px; font-weight: 600; color: #6c757d; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.news-tab:hover, .news-tab.active { color: var(--bs-theme-color); border-bottom-color: var(--bs-theme-color); }

.news-featured-card { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
.news-featured-thumb { height: 350px; overflow: hidden; }
.news-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-featured-body { padding: 24px; }
.news-featured-body h2 { font-size: 24px; margin-bottom: 12px; }
.news-featured-body h2 a { color: #333; }
.news-featured-body h2 a:hover { color: var(--bs-theme-color); }
.news-featured-body p { color: #6c757d; margin-bottom: 16px; }

.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-list-item { display: flex; gap: 20px; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 16px; transition: box-shadow .2s; }
.news-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.news-list-thumb { flex: 0 0 200px; height: 140px; overflow: hidden; border-radius: 6px; }
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; display: flex; flex-direction: column; }
.news-list-body h3 { font-size: 18px; margin-bottom: 8px; }
.news-list-body h3 a { color: #333; }
.news-list-body h3 a:hover { color: var(--bs-theme-color); }
.news-list-body p { font-size: 14px; color: #6c757d; flex: 1; }

.read-more { font-size: 14px; font-weight: 600; color: var(--bs-theme-color); display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { color: var(--bs-sec-theme-color); gap: 8px; }

/* === Single Article === */
.article-header { margin-bottom: 24px; }
.article-title { font-size: 32px; line-height: 1.3; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: #6c757d; }
.article-meta i { margin-right: 4px; color: #adb5bd; }
.article-meta a { color: var(--bs-theme-color); }
.article-featured { margin-bottom: 28px; border-radius: 8px; overflow: hidden; }
.article-featured-img { width: 100%; height: auto; }
.article-content { font-size: 16px; line-height: 1.8; color: #444; }
.article-content p { margin-bottom: 18px; }
.article-content h2 { font-size: 24px; margin: 32px 0 16px; }
.article-content h3 { font-size: 20px; margin: 24px 0 12px; }
.article-content blockquote { border-left: 4px solid var(--bs-theme-color); padding: 16px 20px; margin: 20px 0; background: #f8f9fa; font-style: italic; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; list-style: disc; }
.article-content img { border-radius: 6px; margin: 16px 0; }

.article-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px 0; border-top: 1px solid #e9ecef; margin-top: 30px; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.article-tags a { display: inline-block; background: #f0f2f5; padding: 4px 12px; border-radius: 3px; font-size: 13px; color: #495057; }
.article-tags a:hover { background: var(--bs-theme-color); color: #fff; }

.article-share { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.share-btn { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #f0f2f5; color: #495057; font-size: 14px; transition: all .2s; }
.share-btn:hover { background: var(--bs-theme-color); color: #fff; }

.catalog-badge { display: inline-block; background: #e8f4fd; color: var(--bs-theme-color); padding: 4px 14px; border-radius: 3px; font-size: 13px; font-weight: 600; }
.catalog-badge:hover { background: var(--bs-theme-color); color: #fff; }
.article-catalog-tags { margin-bottom: 12px; display: flex; gap: 8px; }

.author-box { display: flex; gap: 16px; padding: 20px; background: #f8f9fa; border-radius: 8px; margin: 30px 0; }
.author-avatar { flex: 0 0 80px; }
.author-avatar img { border-radius: 50%; }
.author-info h4 { font-size: 16px; margin-bottom: 4px; }
.author-info p { font-size: 14px; color: #6c757d; }

.post-navigation { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid #e9ecef; }
.nav-prev, .nav-next { flex: 1; }
.nav-next { text-align: right; }
.nav-label { display: block; font-size: 12px; text-transform: uppercase; color: #adb5bd; font-weight: 600; margin-bottom: 4px; }
.nav-prev a, .nav-next a { font-size: 15px; color: var(--bs-theme-color); font-weight: 600; }
.nav-prev a:hover, .nav-next a:hover { color: var(--bs-sec-theme-color); }

/* === Related Sections === */
.related-news, .related-products { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e9ecef; }
.section-title-left { font-size: 22px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--bs-theme-color); display: inline-block; }

/* === Sidebar === */
.site-sidebar { position: sticky; top: 100px; }
.widget { margin-bottom: 28px; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 20px; }
.widget-title { font-size: 16px; font-weight: 700; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--bs-theme-color); color: var(--bs-theme-color); }

.widget-product-list { display: flex; flex-direction: column; gap: 10px; }
.widget-product-item { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f2f5; }
.widget-product-item:last-child { border-bottom: none; }
.widget-product-thumb { flex: 0 0 60px; height: 60px; overflow: hidden; border-radius: 4px; }
.widget-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-product-title { display: block; font-size: 13px; font-weight: 600; color: #333; line-height: 1.4; }
.widget-product-date { display: block; font-size: 12px; color: #adb5bd; }

.widget-category-list { display: flex; flex-direction: column; }
.sidebar-category-list li { border-bottom: 1px solid #f0f2f5; }
.sidebar-category-list li:last-child { border-bottom: none; }
.sidebar-category-list li a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: #495057; transition: color .2s; }
.sidebar-category-list li a:hover, .sidebar-category-list li.active a { color: var(--bs-theme-color); font-weight: 600; }
.sidebar-category-list .count { color: #adb5bd; font-size: 13px; }

.sidebar-search-form { display: flex; }
.sidebar-search-input { display: flex; width: 100%; }
.sidebar-search-input input { flex: 1; padding: 8px 12px; border: 1px solid #ced4da; border-right: none; border-radius: 4px 0 0 4px; font-size: 14px; }
.sidebar-search-input button { background: var(--bs-theme-color); color: #fff; border: none; padding: 8px 14px; border-radius: 0 4px 4px 0; cursor: pointer; }

.contact-cta-box { font-size: 14px; }
.contact-cta-box p { margin-bottom: 8px; color: #6c757d; }
.cta-phone { font-size: 18px; font-weight: 700; color: var(--bs-theme-color); margin: 12px 0; }
.cta-phone i { margin-right: 8px; }

/* === Search Results === */
.search-form-box { margin-bottom: 30px; }
.search-input-group { display: flex; max-width: 600px; }
.search-input-group input { flex: 1; padding: 12px 16px; border: 2px solid #dee2e6; border-right: none; border-radius: 6px 0 0 6px; font-size: 15px; }
.search-input-group input:focus { border-color: var(--bs-theme-color); outline: none; }
.search-input-group button { border-radius: 0 6px 6px 0; padding: 12px 20px; }

.search-results { display: flex; flex-direction: column; gap: 20px; }
.search-result-item { display: flex; gap: 18px; padding: 18px; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; transition: box-shadow .2s; }
.search-result-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.result-thumb { flex: 0 0 120px; height: 90px; overflow: hidden; border-radius: 6px; }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-content { flex: 1; }
.result-meta { display: flex; gap: 12px; font-size: 12px; color: #adb5bd; margin-bottom: 6px; }
.result-type { color: var(--bs-sec-theme-color); font-weight: 600; }
.result-title { font-size: 18px; margin-bottom: 6px; }
.result-title a { color: #333; }
.result-title a:hover { color: var(--bs-theme-color); }
.result-excerpt { font-size: 14px; color: #6c757d; margin-bottom: 8px; }
.result-link { font-size: 13px; font-weight: 600; color: var(--bs-theme-color); }

.no-results { text-align: center; padding: 60px 20px; }
.no-results-icon i { font-size: 64px; color: #dee2e6; margin-bottom: 20px; }
.no-results h2 { margin-bottom: 12px; }
.no-results p { color: #6c757d; margin-bottom: 20px; }

/* === Page Header Inline === */
.page-header-inline { padding: 30px 0 20px; }
.page-header-inline h1 { font-size: 28px; }
.search-term { color: var(--bs-sec-theme-color); }

/* === 404 Page === */
.error-page { text-align: center; padding: 60px 20px; }
.error-code { font-size: 120px; font-weight: 900; color: #e9ecef; line-height: 1; }
.error-icon { margin: 10px 0 20px; }
.error-icon i { font-size: 48px; color: #e8590c; }
.error-page h1 { margin-bottom: 12px; }
.error-page > p { color: #6c757d; max-width: 500px; margin: 0 auto 30px; }
.error-actions { display: flex; justify-content: center; gap: 14px; margin-bottom: 40px; }
.error-search { max-width: 500px; margin: 0 auto 40px; }
.error-search h3 { margin-bottom: 14px; }
.error-suggestions { margin-top: 40px; }
.suggestion-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.suggestion-links a { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: #f8f9fa; border-radius: 6px; font-size: 14px; color: #495057; transition: all .2s; }
.suggestion-links a:hover { background: var(--bs-theme-color); color: #fff; }
.suggestion-links a i { color: var(--bs-sec-theme-color); }
.suggestion-links a:hover i { color: #fff; }

/* === Tags Cloud === */
.tags-section { margin-bottom: 40px; }
.tags-section h2 { font-size: 22px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #e9ecef; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud-item { display: inline-block; padding: 6px 16px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 4px; color: #495057; transition: all .2s; }
.tag-cloud-item:hover { background: var(--bs-theme-color); color: #fff; border-color: var(--bs-theme-color); }
.tag-category { background: #e8f4fd; border-color: #b8daff; color: var(--bs-theme-color); }
.tag-category:hover { background: var(--bs-theme-color); color: #fff; }
.tag-news { background: #fff3e0; border-color: #ffe0b2; color: #e8590c; }
.tag-news:hover { background: #e8590c; color: #fff; }
.tag-count { font-size: 11px; color: #adb5bd; }

/* === Inquiry Modal === */
.inquiry-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
.inquiry-modal.open { display: flex; }
.inquiry-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.inquiry-modal-content { position: relative; background: #fff; border-radius: 10px; padding: 30px; width: 90%; max-width: 550px; max-height: 90vh; overflow-y: auto; z-index: 1; }
.inquiry-modal-content h3 { margin-bottom: 20px; font-size: 22px; }
.inquiry-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: #999; }
.inquiry-modal-close:hover { color: #333; }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-message { margin-top: 12px; font-size: 14px; text-align: center; }
.form-message.success { color: #28a745; }
.form-message.error { color: #dc3545; }

/* === Back to Top === */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--bs-theme-color); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 16px; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 999; transition: all .2s; }
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: #14305a; transform: translateY(-3px); }
