/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
table,tr,th,td{margin:auto;padding:revert-layer;}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: #0099cc;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Language Bar ===== */
.lang-bar {
  background: #2c2c2c;
  padding: 6px 0;
  font-size: 12px;
}

.lang-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.lang-bar a {
  color: #ccc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-bar a:hover,
.lang-bar a.active {
  color: #fff;
}

.lang-bar img {
  width: 16px;
  height: 12px;
  object-fit: cover;
}

/* ===== Header ===== */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
}

/* ===== Navigation ===== */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 28px 2px;
  margin: 0 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: #0099cc;
  border-bottom-color: #0099cc;
}

/* Dropdown */
.nav-list > li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 200;
}

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

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
}

.dropdown li a:hover {
  background: #f0f8ff;
  color: #0099cc;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}

.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);
}

/* ===== Search ===== */
.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.header-search input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 13px;
  width: 160px;
  background: transparent;
}

.header-search button {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header-search button img {
  width: 16px;
  height: 16px;
}

/* ===== Banner ===== */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 58, 92, 0.35);
}

.banner-overlay h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-track img {
  min-width: 100%;
  height: auto;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots span.active {
  background: #fff;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: #888;
  border-bottom: 1px solid #eee;
}

.breadcrumb a {
  color: #888;
}

.breadcrumb a:hover {
  color: #0099cc;
}

.breadcrumb .current {
  color: #0099cc;
}

.breadcrumb .separator {
  margin: 0 6px;
  color: #ccc;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #1a3a5c;
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative;
}

.ipro{
  margin-top: 50px;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0099cc;
  margin: 12px auto 0;
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  padding: 0 0 40px;
}

.product-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  background: #0096c8;
}

.product-card:hover .card-body h3 {
  color: #fff;
}

.product-card:hover .card-body p {
  color: rgba(255,255,255,0.85);
}

.product-card:hover .btn-readmore {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.product-card .card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 20px;
  text-align: center;
}

.product-card .card-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a3a5c;
  text-transform: uppercase;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .card-body p {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-readmore {
  display: inline-block;
  padding: 8px 24px;
  background: #0099cc;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid #0099cc;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-readmore:hover {
  background: #007ba3;
  color: #fff;
}

/* ===== Company Profile ===== */
.company-profile {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}

.company-profile .text {
  flex: 1;
}

.company-profile .text h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1a3a5c;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.company-profile .text p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.company-profile .img {
  flex: 1;
}

.company-profile .img img {
  width: 100%;
  border-radius: 4px;
}

/* ===== News Cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  padding: 0 0 60px;
}

.news-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.news-card .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card .card-body {
  padding: 20px;
}

.news-card .card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-body p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== About / Content Layout ===== */
.content-layout {
  display: flex;
  gap: 40px;
  padding: 40px 0 60px;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar-title {
  background: #1a3a5c;
  color: #fff;
  text-align: center;
  padding: 18px;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
}

.sidebar-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: #0099cc;
  margin: 10px auto 0;
}

.sidebar-nav li a {
  display: block;
  padding: 12px 0 12px 20px;
  font-size: 16px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s, color 0.3s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: #0099cc;
  color: #fff;
}

.content-main {
  flex: 1;
  min-width: 0;
}

.content-main h2 {
  font-size: 32px;
  color: #1a3a5c;
  margin-bottom: 20px;
}

.content-main p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-main img {
  max-width: 100%;
  margin: 20px 0;
  border-radius: 4px;
}

/* ===== Product Tabs ===== */
.product-tabs {
  display: flex;
  border: 1px solid #fff;
  margin: 30px auto;
  flex-wrap: wrap;
  background: #eee;
}

.product-tabs li {
  flex: 1;
  min-width: 120px;
}

.product-tabs li a {
  display: block;
  text-align: center;
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  border-right: 1px solid #fff;
  transition: background 0.3s, color 0.3s;
}

.product-tabs li:last-child a {
  border-right: none;
}

.product-tabs li a:hover,
.product-tabs li a.active {
  background: #0099cc;
  color: #fff;
}

/* ===== News List ===== */
.news-list {
  padding: 30px 0 40px;
}

.news-list-item {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.news-list-item .thumb {
  width: 200px;
  height: 130px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
}

.news-list-item .info {
  flex: 1;
}

.news-list-item .info h3 {
  font-size: 24px;
  color: #1a3a5c;
  margin-bottom: 8px;
}

.news-list-item .info h3 a:hover {
  color: #0099cc;
}

.news-list-item .info p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-item .info .date {
  font-size: 12px;
  color: #bbb;
}

/* ===== News Detail ===== */
.news-detail {
  padding: 40px 0 60px;
}

.news-detail h1 {
  font-size: 36px;
  color: #1a3a5c;
  margin-bottom: 12px;
}

.news-detail .meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
}

.news-detail hr {
  border: none;
  border-top: 1px solid #eee;
  margin-bottom: 30px;
}

.news-detail .article-content {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.news-detail .article-content p {
  margin-bottom: 16px;
}

.news-detail .article-content img {
  max-width: 100%;
  margin: 20px 0;
  border-radius: 4px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 30px 0 60px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #555;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.pagination a:hover {
  background: #0099cc;
  color: #fff;
  border-color: #0099cc;
}

.pagination .active {
  background: #0099cc;
  color: #fff;
  border-color: #0099cc;
}

/* ===== Contact Form ===== */
.contact-form {
  margin-top: 30px;
  padding-top: 30px;
  border-top: solid 1px #ddd;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.contact-form .form-group {
  flex: 1;
}

.contact-form label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0099cc;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}
.error-tip { color: #dc3545; font-size: 13px; min-height: 18px; margin-top: 6px; display: none; }
.contact-form input.is-invalid,.contact-form textarea.is-invalid { border-color: #dc3545; }
.contact-form input:focus.is-invalid,.contact-form textarea:focus.is-invalid { border-color: #dc3545; }
.contact-form .btn-submit {
  display: inline-block;
  padding: 12px 36px;
  background: #0099cc;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.contact-form .btn-submit:hover {
  background: #007ba3;
}

.contact-info-block {
  margin-bottom: 30px;
}

.contact-info-block p {
  font-size: 16px;
  color: #555;
  line-height: 2;
}

.contact-info-block strong {
  color: #1a3a5c;
}

/* ===== Footer ===== */
.footer {
  background: #2c2c2c;
  color: #ccc;
  padding: 50px 0 0;
}

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

.footer-col h4 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 14px;
  color: #aaa;
  text-transform: uppercase;
}

.footer-col ul li a:hover {
  color: #0099cc;
}

.footer-col .contact-line {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-col .contact-line strong {
  color: #ccc;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding: 18px 0;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.5px;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1199px) {
  .logo img {
    height: 40px;
  }
  
  .nav-list > li > a {
    padding: 28px 0;
    font-size: 14px;
  }

  .header-search input {
    width: 80px;
  }

  .product-grid {
    gap: 20px 40px;
  }
  
  .product-card .card-img {
      height: 180px;
  }
  
  .company-profile {
    gap: 24px;
  }

  .footer-grid {
    gap: 24px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 767px) {
  .lang-bar .container {
    justify-content: right;
    gap: 12px;
  }

  .hamburger {
    display: flex;
  }

  .header .container {
    height: 80px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav.open {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-list > li > a {
    padding: 14px 20px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
  }
  
  .dropdown li a {
    font-size: 16px;
    padding: 10px 18px 10px 48px;
  }

  .nav-list > li > a:hover,
  .nav-list > li > a.active {
    border-bottom-color: #f0f0f0;
    border-left-color: #0099cc;
  }

  .nav-list > li .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f9f9f9;
    display: none;
  }

  .nav-list > li:hover .dropdown,
  .nav-list > li .dropdown.show {
    display: block;
  }

  .header-search {
    display: none;
  }

  .banner-overlay h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .carousel-track img,
  .banner img {
    min-height: 240px;
    object-fit: cover;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-card .card-img {
      height: 180px;
  }

  .company-profile {
    flex-direction: column;
    padding: 30px 0;
    gap: 20px;
  }

  .content-layout {
    flex-direction: column;
    padding: 24px 0 40px;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
  }

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

  .product-tabs li {
    min-width: 50%;
    flex: none;
  }

  .product-tabs li a {
    border-bottom: 1px solid #ddd;
  }

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

  .news-list-item .thumb {
    width: 100%;
    height: 180px;
  }

  .contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

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

  .pagination {
    flex-wrap: wrap;
  }
}
