/* ============================================
   RedEDA Corporate Website - CETC SOE Style
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #c8102e;
  --red-dark: #8b0000;
  --red-light: #e8314a;
  --dark: #1a1a2e;
  --dark-navy: #0a1628;
  --white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-gray: #f0f0f0;
  --text-heading: #333333;
  --text-body: #666666;
  --text-light: #999999;
  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 4px;
  --radius-sm: 2px;
  --container: 1200px;
  --section-pad: 60px 0;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--red);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.4;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Utility Bar --- */
.utility-bar {
  background: var(--dark);
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #b0b0b0;
  position: relative;
  z-index: 1001;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-right a {
  color: #b0b0b0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.utility-right a:hover {
  color: var(--white);
}

.utility-search {
  cursor: pointer;
  font-size: 14px;
}

/* --- Main Navigation --- */
.main-nav {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.logo span {
  color: var(--dark);
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.nav-menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  position: relative;
  white-space: nowrap;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
  width: 100%;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--red);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 2px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 999;
}

.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  border-left: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--red);
  border-left-color: var(--red);
}

.dropdown .dropdown-group {
  padding: 8px 20px 4px;
  margin-top: 4px;
  border-top: 1px solid #eee;
}
.dropdown .dropdown-group:first-child {
  margin-top: 0;
  border-top: none;
}
.dropdown-group-title {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Banner --- */
.hero-banner {
  width: 100%;
  height: 500px;
  background:
    linear-gradient(135deg, var(--dark-navy) 0%, rgba(10,22,40,0.7) 40%, transparent 80%),
    linear-gradient(225deg, rgba(200,16,46,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0f2040 0%, #1a3a6a 50%, #0d2847 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(10,22,40,0.5), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 44px;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  letter-spacing: 2px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200,16,46,0.4);
}

/* Quick Links Row */
.quick-links {
  position: relative;
  z-index: 3;
  margin-top: -40px;
  margin-bottom: 20px;
}

.quick-links .container {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.quick-link-item:hover {
  transform: translateY(-4px);
}

.quick-link-icon {
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(200,16,46,0.35);
  transition: var(--transition);
}

.quick-link-item:hover .quick-link-icon {
  background: var(--red-dark);
  box-shadow: 0 6px 20px rgba(200,16,46,0.5);
}

.quick-link-label {
  font-size: 13px;
  color: var(--text-heading);
  font-weight: 600;
}

/* --- Section Title --- */
.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: 26px;
  font-weight: 700;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  color: var(--text-heading);
}

.section-title-right {
  margin-left: auto;
}

.section-more {
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
}

.section-more:hover {
  color: var(--red-dark);
}

/* --- News Section --- */
.section-news {
  padding: var(--section-pad);
  background: var(--white);
}

.news-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}

.news-tab {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border: none;
  background: none;
}

.news-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.news-tab:hover,
.news-tab.active {
  color: var(--red);
}

.news-tab.active::after {
  transform: scaleX(1);
}

.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-tab-content {
  display: none;
}

.news-tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.news-date {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.news-date .day {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.news-date .month {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.9;
}

.news-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-info h4:hover {
  color: var(--red);
}

.news-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Product Showcase --- */
.section-products {
  padding: var(--section-pad);
  background: var(--bg-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-stripe {
  height: 3px;
  background: var(--red);
}

.product-card-body {
  padding: 32px 28px;
}

.product-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-link:hover {
  color: var(--red-dark);
  gap: 8px;
}

/* --- Statistics Bar --- */
.section-stats {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 15px;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* --- About Preview --- */
.section-about-preview {
  padding: var(--section-pad);
  background: var(--white);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.about-text p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 24px;
}

.btn-red {
  display: inline-block;
  padding: 12px 32px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-red:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,16,46,0.3);
}

.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid var(--red);
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-gallery-item {
  height: 140px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-gallery-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  font-size: 12px;
  text-align: left;
}

.about-gallery-item:nth-child(1) {
  background: linear-gradient(135deg, #1a3a6a, #0d2847);
}

.about-gallery-item:nth-child(2) {
  background: linear-gradient(135deg, #c8102e, #8b0000);
}

.about-gallery-item:nth-child(3) {
  background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.about-gallery-item:nth-child(4) {
  background: linear-gradient(135deg, #0f2040, #1a3a6a);
}

/* --- Partners --- */
.section-partners {
  padding: var(--section-pad);
  background: var(--bg-light);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.partner-item {
  height: 80px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #bbb;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  color: var(--red);
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: #b0b0b0;
  border-top: 3px solid var(--red);
}

.footer-main {
  padding: 48px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #b0b0b0;
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.footer-bottom a {
  color: #999;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* =============================================
   INNER PAGE SECTIONS
   ============================================= */

/* --- Page Section (generic) --- */
.page-section {
  padding: var(--section-pad);
}

.page-section.alt {
  background: var(--bg-light);
}

/* --- Product Detail Page --- */
.product-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--dark-navy) 0%, #0f2040 100%);
  text-align: center;
  color: var(--white);
}

.product-hero h1 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 12px;
}

.product-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

.product-detail {
  padding: var(--section-pad);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.product-main h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-heading);
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.product-main p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 20px;
}

.feature-list {
  margin-bottom: 32px;
}

.feature-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px solid var(--border-color);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

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

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}

.sidebar-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.sidebar-card ul li:last-child {
  border-bottom: none;
}

.sidebar-card ul li a:hover {
  color: var(--red);
  padding-left: 6px;
}

/* --- News List Page --- */
.news-list-page {
  padding: var(--section-pad);
}

.news-full-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-full-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.news-full-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.news-full-date {
  width: 72px;
  height: 72px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.news-full-date .day {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.news-full-date .month {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 2px;
}

.news-full-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.news-full-info h3:hover {
  color: var(--red);
}

.news-full-info h3 a {
  color: inherit;
  text-decoration: none;
}

.news-full-info h3 a:hover {
  color: var(--red);
}

.news-full-info p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 8px;
}

.news-full-info .news-meta {
  font-size: 12px;
  color: var(--text-light);
}

/* --- Cases Page --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.case-card-image {
  height: 180px;
  position: relative;
}

.case-card-image::after {
  content: attr(data-industry);
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.case-card:nth-child(1) .case-card-image {
  background: linear-gradient(135deg, #1a3a6a, #0a1628);
}

.case-card:nth-child(2) .case-card-image {
  background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.case-card:nth-child(3) .case-card-image {
  background: linear-gradient(135deg, #c8102e, #6b0a1a);
}

.case-card:nth-child(4) .case-card-image {
  background: linear-gradient(135deg, #0f2040, #1a3a6a);
}

.case-card-body {
  padding: 24px;
}

.case-card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.case-card-body p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-tag {
  padding: 4px 12px;
  background: var(--bg-light);
  font-size: 12px;
  color: var(--text-body);
  border-radius: var(--radius-sm);
}

/* --- Solutions Industry Grid (4-column) --- */
.solutions-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-text h2 {
  font-size: 28px;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.about-intro-text p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
}

.about-intro-image {
  height: 320px;
  background: linear-gradient(135deg, var(--dark-navy), #1a3a6a);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.15);
  font-weight: 800;
}

/* Timeline */
.timeline-section {
  padding: var(--section-pad);
  background: var(--bg-light);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-size: 20px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-body);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-heading);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--white);
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.contact-info-text p {
  font-size: 14px;
  line-height: 1.7;
}

.contact-map {
  height: 220px;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

/* --- Product Overview Cards (products.html) --- */
.products-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-overview-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.product-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-overview-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.4);
  font-weight: 800;
  overflow: hidden;
  background: #f5f5f5;
}

.product-overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-overview-card .product-overview-image {
  background: #f5f5f5;
}

.product-overview-body {
  padding: 28px;
}

.product-overview-body h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.product-overview-body p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* --- News Sub-category Nav --- */
.news-sub-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.news-sub-nav a {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.news-sub-nav a:hover,
.news-sub-nav a.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.search-overlay-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.search-overlay input {
  width: 100%;
  padding: 18px 24px;
  font-size: 20px;
  border: none;
  border-bottom: 3px solid var(--red);
  background: transparent;
  color: var(--white);
  font-family: inherit;
}

.search-overlay input::placeholder {
  color: rgba(255,255,255,0.4);
}

.search-overlay input:focus {
  outline: none;
}

.search-close {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 36px;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-menu > li > a {
    padding: 0 14px;
    font-size: 14px;
  }

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

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

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

  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 40px 0;
  }

  /* Hamburger */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 0 20px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
    gap: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu > li {
    height: auto;
    width: 100%;
    flex-direction: column;
  }

  .nav-menu > li > a {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu > li > a::after {
    display: none;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    background: var(--bg-light);
  }

  .nav-menu > li:hover .dropdown,
  .nav-menu > li.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 40px;
  }

  .dropdown .dropdown-group {
    padding: 6px 40px 2px;
    margin-top: 2px;
    border-top: 1px solid #eee;
  }

  /* Hero */
  .hero-banner {
    height: 320px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  /* Quick Links */
  .quick-links .container {
    gap: 20px;
    flex-wrap: wrap;
  }

  .quick-link-icon {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  /* Grids */
  .news-tab-content.active,
  .news-list {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .products-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .stat-number {
    font-size: 36px;
  }

  .about-preview-grid,
  .about-intro,
  .contact-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

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

  .product-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .utility-bar {
    display: none;
  }

  .news-tabs {
    flex-wrap: wrap;
  }

  .news-sub-nav {
    flex-wrap: wrap;
  }

  .news-full-item {
    flex-direction: column;
  }

  .news-full-date {
    width: 100%;
    height: 48px;
    flex-direction: row;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 260px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .quick-links .container {
    gap: 14px;
  }

  .quick-link-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .quick-link-label {
    font-size: 11px;
  }

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

  .section-title h2 {
    font-size: 20px;
  }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* Mobile overlay for nav */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}


.news-full-item { display: flex; gap: 24px; align-items: flex-start; }
.news-full-thumb { flex: 0 0 200px; }
.news-full-thumb img { width: 200px; height: 140px; object-fit: cover; border-radius: 6px; }
@media (max-width: 768px) { .news-full-thumb { display: none; } }
