body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
}

.page-header {
  background-color: #d51c1c;
  color: #ffffff;
  font-size: 24px;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}


.topnav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 10px;
  gap: 15px;
  border-bottom: 2px solid #d51c1c;
  position: relative;
  z-index: 1000;
}

.topnav a, .dropbtn {
  color: #000000;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
}

.topnav a.active {
  background-color: #d51c1c;
  color: #ffffff;
}

.dropdown, .sub-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid #d51c1c;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  min-width: 180px;
  z-index: 1000;
  font-size: 16px;
}



.sub-dropdown-content {
  position: absolute;
  left: 100%;  /* Position it completely to the right */
  top: 0;
  width: 200px;
  background-color: #ffffff;
  border: 1px solid #d51c1c;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  z-index: 1000;
  display: none;
  font-size: 16px;
  margin-left: 5px;  /* Slight offset to avoid clipping */
}

.sub-dropdown-content {
  left: 100%;
  top: 0;
  width: 200px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.sub-dropdown:hover .sub-dropdown-content {
  display: block;
}

.dropdown-content a, .sub-dropdown-content a {
  padding: 8px 12px;
  color: #000000;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.dropdown-content a:last-child,
.sub-dropdown-content a:last-child {
  margin-bottom: 0;
}

.dropdown-content a:hover,
.sub-dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #d51c1c;
}

/* Adjusted Sub-Dropdown Styling */
.sub-dropdown-content {
  left: 100%;
  top: 0;
  width: 200px;
  background-color: #ffffff;
  border: 1px solid #d51c1c;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  z-index: 1000;
  display: none;
  font-size: 16px;
}

/* Header Image Section */
.propellant-header {
  background-image: url('https://armyrecognition.com/images/stories/north_america/united_states/artillery_vehicle/m777/M777_155mm_ultralight_lightweight_towed_howitzer_United_States_925_001.jpg');
  background-size: cover;
  background-position: center;
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 5px solid #d51c1c;
  border-bottom: 5px solid #d51c1c;
  margin-bottom: 20px;
}

.propellant-header p {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px #000;
  margin: 0;
}

/* Section Titles */
.section-title {
  width: 100%;
  background-color: #ffffff;
  color: #000000;
  padding: 10px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  border-top: 2px solid #d51c1c;
  border-bottom: 2px solid #d51c1c;
  margin-bottom: 20px;
}

/* Content Wrapper */
.content-wrapper {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Grid Container */
.container {
  background-color: #d51c1c;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  border-radius: 8px;
  justify-content: center;
}

.grid-item {
  background-color: #ffffff;
  padding: 15px;
  border: 2px solid #d51c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
  width: 200px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.ammo-img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}

.label {
  background-color: #000000cc;
  color: #ffffff;
  padding: 5px;
  font-size: 14px;
  text-align: center;
  margin-bottom: 5px;
  border-radius: 4px;
}
