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

.active {
  background-color: #aa040400;
  color: white;
}

.topnav .icon {
  display: none;
}
/*sample close */
.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%); }
}
.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;
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

/* Sidebar Styles */
.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;
}

.menu-item {
  margin: 10px 0;
  cursor: pointer;
  padding: 10px;
  background-color: #2d3e50;
  transition: background-color 0.3s ease;
}

.menu-item:hover {
  background-color: #3e5771;
}

/*sample */
.arrow {
  display: inline-block;
  font-size: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
  margin-left: 110px;
}

.rotate-90 {
  transform: rotate(90deg);
}
/* Submenu Styles */
.submenu {
  margin-left: 10px;
  margin-top: 5px;
  display: none;
  transition: all 0.3s ease;
}

.submenu div {
  padding: 8px;
  background-color: #394a5a;
  border-radius: 4px;
  margin: 5px 0;
  cursor: pointer;
}

.submenu div:hover {
  background-color: #4a6a88;
}

/* Content Area Styles */
.Content {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  background-color: #f4f7fa;
}

.content {
  display: none;
  gap: 40px;
  align-items: flex-start;
}

.content.active {
  display: flex;
}

.content h2 {
  color: #1e2a38;
  font-size: 24px;
  margin-bottom: 15px;
}

.content p {
 flex: 1;
 min-width: 300px;
 font-size: 18px;
 color: #333;
 line-height: 2;
 width: 100%;
}

.content img {
  max-width: 100%;
  height: 50%;
  border-radius: 35px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.p_image{
  flex: 1;
  min-width: 300px;
}
.p_image img{
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 8px;
}

/*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;
  color: white;
  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;
  }
}
/* Media Query for Mobile Screens */
@media screen and (max-width: 768px) {
  .Product_details {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
    padding: 10px;
  }

  .Content {
    width: 100%;
    padding: 10px;
  }

  .menu-item {
    font-size: 16px;
    padding: 12px;
  }

  .submenu div {
    font-size: 15px;
    padding-left: 20px;
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
    line-height: 1.6;
  }

  img {
    width: 100%;
    height: auto;
  }
}
@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;
  }
}
