* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f7f7f7;
  color: #222;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* COMMON */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.main-header {
  border-radius: 0 0 10px 10px;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1000;
}

.header-flex {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  min-height: 88px;
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 78px;
  overflow: visible;
}

.logo a {
  display: inline-flex;
  align-items: center;
  height: 78px;
}

.logo img {
  height: 60px;
  
  width: auto;
  display: block;
  object-fit: contain;
  
  transform-origin: left center;
}


.navbar {
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}

.menu li {
  display: inline-block;
}

.menu a {
  text-decoration: none;
  color: #1f1f1f;
  font-size: 17px;
  font-weight: 600;
  transition: 0.3s ease;
}

.menu a:hover,
.menu a.active {
  color: red;
}

/* --- SUBMENU DROPDOWN STYLES --- */
.has-dropdown {
  position: relative;
}
.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.has-dropdown > a i {
  font-size: 12px;
  transition: 0.3s;
}
.has-dropdown:hover > a i {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px); /* Centers the wide menu */
  width: max-content; /* Adapts to horizontal width */
  background: #fff;
  list-style: none;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  
  /* Horizontal Grid Layout (4 columns) */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 25px;
}
.has-dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.submenu li {
  width: 100%;
}
.submenu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
  transition: 0.3s;
  border-radius: 5px;
  white-space: nowrap; /* Keeps items strictly on one line */
}
.submenu a:hover {
  background: #fff3f3;
  color: red;
  padding-left: 18px; /* Subtle horizontal slide effect */
}

.header-btn {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.btn {
  display: inline-block;
  background: red;
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 17px;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #c40000;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #222;
}

/* BANNER */
.detail-banner {
  width: 100%;
  height: 920px;
  background: url("../images/Contact us - Banner.webp") center center/cover no-repeat;
}

/* CONTACT SECTION */
.contact-section {
  padding: 60px 20px;
  background: #f7f7f7;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info,
.contact-form-box {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.contact-info h2,
.contact-form-box h2 {
  font-size: 26px;
  margin-bottom: 24px;
  color: #111;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.info-box i {
  font-size: 21px;
  color: red;
  min-width: 20px;
  margin-top: 3px;
}

.info-box h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #111;
}

.info-box p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: red;
}

.contact-form .btn {
  margin: 10px auto 0;
  padding: 12px 34px;
  font-size: 15px;
}

.map-box {
  width: 100%;
  margin-top: 25px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.map-box iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* FACTORY SECTION */
.factory-section {
  padding: 60px 20px;
  background: #fff;
}

.factory-container {
  max-width: 1200px;
  margin: 0 auto;
}

.factory-container h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  color: #111;
}

.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.factory-box {
  padding: 25px;
  background: #f7f7f7;
  border-radius: 12px;
}

.factory-box h3 {
  margin-bottom: 10px;
  color: red;
}

.factory-box p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #444;
}

/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  padding-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr 1.5fr;
  gap: 30px;
}
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.footer-box:first-child {
  text-align: center;
}

.footer-logo {
    width: 200px;
    height: auto;
    max-width: 100%;
  
  display: block;
  margin: -30px auto -90px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
  text-align: justify;
  max-width: 350px;
  margin: 0 auto;
}

.footer-box h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-box p {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 8px;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 16px;
  background: #222;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.social-icons a:hover {
  background: red;
}

.footer-bottom {
  text-align: center;
  padding: 15px 0;
  background: #000;
  margin-top: 30px;
}

.footer-bottom p {
  color: #aaa;
  font-size: 14px;
}

/* LAPTOP */
@media (max-width: 1199px) {
  .header-flex {
    grid-template-columns: 180px 1fr 140px;
  }

  .menu {
    gap: 20px;
  }

  .menu a {
    font-size: 15px;
  }
}

/* TABLET */
@media (max-width: 991px) {
  .header-flex {
    grid-template-columns: 160px 1fr 120px;
    gap: 14px;
  }

  .logo img {
    height: 64px;
  }

  .menu {
    gap: 14px;
  }

  .menu a {
    font-size: 14px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 15px;
  }

  .contact-container,
  .factory-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}
}

/* MOBILE */
@media (max-width: 767px) {
  .main-header {
  border-radius: 0 0 10px 10px;
    padding: 0;
  }

  .header-flex {
    width: 100%;
    min-height: 78px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo img {
    height: 54px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .header-btn {
    display: none;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .navbar.active {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .menu li {
    width: 100%;
    text-align: center;
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
  }

  .detail-banner {
    height: 220px;
  }

  .contact-section,
  .factory-section {
    padding: 40px 15px;
  }

  .contact-info,
  .contact-form-box,
  .factory-box {
    padding: 20px;
  }

  .contact-info h2,
  .contact-form-box h2,
  .factory-container h2 {
    font-size: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

  .footer-text {
    max-width: 100%;
  }
}







.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: red;
}

.footer-websites {
  margin-bottom: 12px;
  font-size: 15px;
  color: #ccc;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 15px;
}
@media (max-width: 767px) {
  .footer-websites {
    flex-direction: column;
    gap: 8px;
  }
  .footer-websites .sep {
    display: none;
  }
}

@media (max-width: 991px) {
  .submenu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    padding-left: 15px;
    margin-top: 10px;
    display: block;
    background: #f9f9f9;
    border-radius: 8px;
  }
  .has-dropdown:hover .submenu {
    transform: none;
  }
  .submenu a {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
  }
  .submenu a:last-child {
    border-bottom: none;
  }
}




@media (max-width: 991px) {
  .detail-banner {
    min-height: 250px !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center !important;
  }
}









@media (max-width: 991px) {
  .header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
}



@media (max-width: 991px) {
  .main-header { position: relative; }
  .navbar {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    margin-top: 0 !important;
  }
}



@media (max-width: 991px) {
  .logo img {
    transform: scale(2.5) !important;
    transform-origin: left center !important;
  }
}


@media (min-width: 992px) {
  .logo img {
    transform: scale(3.5) !important;
    transform-origin: left center !important;
  }
}





@media (max-width: 991px) {
  .submenu { 
    position: static !important; 
    transform: none !important; 
    box-shadow: none !important; 
    opacity: 1 !important; 
    visibility: visible !important; 
    width: 100% !important; 
    padding-left: 15px !important; 
    display: block !important; 
    background: #f9f9f9 !important; 
  }
  .submenu a {
    border-bottom: 1px solid #ddd !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
}

/* QUICK LINKS */
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-links li {
  margin-bottom: 10px;
}
.quick-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.quick-links a:hover {
  color: #ff3c00;
}






