/* Default View */

.plans-header {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  width: 100%;
  font-family: "Roboto", sans-serif;
  background: #f09f18;
}

.plans-header h2 {
  font-family: "Roboto", sans-serif;
  background-color: transparent;
  font-size: 2.2rem;
  margin: auto;
  padding: 10px 0 10px 0;
  text-transform: uppercase;
  color: white;
}

.plans-header h5 {
  font-family: "Roboto", sans-serif;
  margin: auto;
  padding: 10px 0 10px 0;
  font-weight: normal;
  text-transform: uppercase;
  color: white;
}

.plans-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.plans-container.wp {
  grid-template-columns: repeat(4, 1fr);
}

.plans-container.vps {
  grid-template-columns: 25% 75%;
}

.plan-header,
.plan-feature {
  display: contents;
}

.feature-detail {
  display: flex;
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  text-align: center;
}

.header-item,
.feature-title,
.feature-detail {
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  border-bottom: 1px solid #e9e9e9;
  margin: 3px;
  margin-left: 8px;
  margin-right: 8px;
}

.feature-detail-na {
  color: #b9b9b9;
}

.header-item {
  background-color: #ff9900;
  color: #ffffff;
  font-weight: 400;
  margin: 8px;
  border-radius: 5px 5px 0 0;
}

.header-item.bronze {
  background-color: #9e7e52;
  color: #ffffff;
  font-weight: 400;
}
.header-item.silver {
  background-color: #c0c0c0;
  color: #ffffff;
  font-weight: 400;
}
.header-item.gold {
  background-color: #e6b800;
  color: #ffffff;
  font-weight: 400;
}
.header-item.platinum {
  background-color: #4f7c7c;
  color: #ffffff;
  font-weight: 400;
}

.header-item.emerald {
  background-color: #50c878;
  color: #fff;
}
.header-item.ruby {
  background-color: #e0115f;
  color: #fff;
}
.header-item.sapphire {
  background-color: #0f52ba;
  color: #fff;
}

.header-item.vps,
.plans-header.vps {
  background-color: #849aca;
  color: #fff;
}

.header-item.ded,
.plans-header.ded {
  background-color: #68a140;
  color: #fff;
}

.feature-title {
  background-color: #e9e9e9;
  color: black;
  font-weight: 500;
}

/* Mobile View */
@media (max-width: 600px) {
  .plans-container {
    display: block;
  }

  .plan-header {
    display: none; /* Hide header on mobile */
  }

  .plan-feature {
    margin-bottom: 20px;
  }

  .feature-title {
    color: #fff;
    background-color: #ff9900;
  }

  .feature-detail {
    background-color: #e9e9e9;
    border-bottom: 1px solid white;
    text-align: left;
    padding-left: 15px;
  }
}

/* Desktop view - Hiding the plan names in the feature details */
@media screen and (min-width: 768px) {
  /* Adjust the width as per your design */
  .feature-detail span.plan-name {
    display: none;
  }
}

/* Mobile view - Plan names are visible */
@media screen and (max-width: 767px) {
  .feature-detail span.plan-name {
    display: inline;
  }

  .plans-header h2 {
    font-size: 1.5rem;
  }
  .plans-header h5 {
    margin: auto;
    padding: 10px 0 10px 30px;
    font-weight: normal;
    text-transform: uppercase;
    color: white;
  }
}
