body {margin:0;font-family:Arial}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}
.head {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 10px 20px;
  border-bottom: 2px solid #ccc;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-container img {
  height: 100px;
}

.ad-container {
  overflow: hidden;
  white-space: nowrap;
  margin-left: 20px;
  flex-grow: 1;
  position: relative;
}

.ad-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 25s linear infinite;
  min-width: 200%; /* ensures room for looping */
}

.ad-item {
  display: inline-block;
  margin-right: 100px;
  font-size: 1rem;
}

.ad-item a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.active {
  background-color: #aa040400;
  color: white;
}

.topnav .icon {
  display: none;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 17px;    
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Product Section */
.Product_details {
      display: flex;
      min-height: 100vh;
      font-family: Arial, sans-serif;
    }

    .sidebar {
      width: 240px;
       background-color: #1e2a38;
       color: #fff;
       padding: 20px;
       box-shadow: 2px 0 5px rgba(0,0,0,0.1);
       flex-shrink:0;
       height:auto;
    }

    .sidebar h2 {
      font-size: 20px;
      margin-bottom: 30px;
      border-bottom: 1px solid #444;
      padding-bottom: 10px;
    }

    .nav-item {
      margin: 10px 0;
      cursor: pointer;
      padding: 10px;
      background-color: #2d3e50;
      transition: background-color 0.3s ease;
    }

    .nav-item:hover {
       background-color: #3e5771;
    }

    .content {
      flex-grow: 1;
      padding: 30px;
      overflow-y: auto;
      background-color: #f4f7fa;
    }

    .content-section {
      display: none;
      flex-direction: row;
      gap: 40px;
      align-items: flex-start;
    }

    .content-section.active {
      display: flex;
    }

    .text-and-image {
      display: flex;
      gap: 20px;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .text-content {
      flex: 1;
      min-width: 300px;
      font-size: 18px;
      color: #333;
      line-height: 2;
      width: 100%;
    }

    .image-content {
      flex: 1;
      min-width: 300px;
    }

    .image-content img {
      width: 100%;
      height: auto;
      max-width: 500px;
      border-radius: 8px;
    }

    h3 {
      margin-top: 0;
    }
/*footer style*/
footer {
  background-color: #615e5e;
  color: white;
  padding: 0px 0;
  font-family: Arial, sans-serif;
  bottom: 0%;
  position:inherit;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0%;
  padding: 10px;
}

.footer-section {
  flex: 1;
  padding: 10px;
  min-width: 200px;
}

.footer-section h2 {
  border-bottom: 2px solid orange;
  padding-bottom: 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: white;
  text-decoration: center;
}

.footer-section a img {
  width: 25px;
  margin: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #777;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}
/* Mobile Devices */
@media screen and (max-width: 480px) {
  .logo-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #img_001 {
    width: 70px;
    height: 70px;
  }

  #img_002 {
    width: 150px;
    height: 70px;
  }
}
/* Responsive for Screens Less Than 768px */
@media screen and (max-width: 768px) {
  .Product_details {
    flex-direction: column;
    padding: 10px;
    overflow:auto;
  }

  .sidebar {
    width: 100%;
    padding: 10px;
    height: auto;
    order: 1;
    font-size: 14px;
  }

  .content {
    order: 2;
    overflow:visible;
  }

  .nav-item {
    font-size: 14px;
    padding: 12px;
  }

  img {
    width: 100%;
    height: auto;
  }

  .brand-text {
    font-size: 15px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* Adjust main layout */
  .Product_details {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
  }

  /* Sidebar tweaks */
  .sidebar {
    width: 35%;
    padding: 15px;
    font-size: 15px;
  }

  .sidebar h2 {
    font-size: 20px;
  }

  .nav-item {
    font-size: 15px;
    padding: 12px 10px;
  }

  /* Content section */
  .content {
    width: 60%;
    padding: 20px;
    overflow-y: auto;
  }

  .brand-text {
    font-size: 15px;
  }

  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  h3 {
    font-size: 22px;
  }

  p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Navigation bar */
  .topnav a, .dropdown .dropbtn {
    font-size: 16px;
    padding: 12px;
  }

  /* Footer adjustments */
  .footer-container {
    flex-direction: row;
    padding: 10px 20px;
  }

  .footer-section h2 {
    font-size: 18px;
  }

  .footer-section ul li {
    font-size: 14px;
  }
}