:root {
  --box-shadow-default: 0px 0px 20px -5px rgba(0, 0, 0, 0.1);
}

a:hover,
a:visited,
a:visited {
  text-decoration: none;
}

.hosting-pros-cons .grid {
  display: grid;
  grid-template-columns: 50% 50%;
  /* 4 columns */
  gap: 10px;
}


.single-review {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.review-ratings {
  list-style: none;
  padding-left: 0;
}

.review-ratings li {
  margin-bottom: 4px;
}

.mh-average-ratings ul {
  list-style: none;
  padding: 0;
}

.mh-average-ratings li {
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}


.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
}

.star-rating input[type="radio"]:checked~label {
  color: #ccc;
}

.star-rating input[type="radio"]:checked+label,
.star-rating input[type="radio"]:checked+label~label {
  color: gold;
}

.star-rating label:hover,
.star-rating label:hover~label {
  color: gold;
}


.hosting-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--box-shadow-default);
  font-family: Arial, sans-serif;
  max-width: 100%;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;

  .card-badge {
    background-color: #f0f2f4;
    border-radius: 0 8px 8px 0;
    color: rgba(22, 24, 29, .4);
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;

    top: 16px;

    .count {
      color: rgba(22, 24, 29, .7);
      background-color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 6px;
      height: 26px;
      min-width: 26px;
      font-size: 18px;
      font-weight: 700;
      line-height: normal;
      border-radius: 50%;
    }

    .label {
      font-weight: 700;
      font-size: 16px;
      line-height: 20px;
    }
  }

  .card-badge:before {
    display: block;
    content: "";
    position: absolute;
    top: -7px;
    width: 0;
    height: 0;
    border-bottom: 7px solid red;
    border-left: 10px solid rgba(0, 0, 0, 0);
  }

  .hosting-info {
    display: grid;
    grid-template-columns: auto 3fr 1fr;
    gap: 1rem;
  }

  .hosting-info .position {
    position: absolute;
    left: 0;
    top: 0;
    background: purple;
    padding: 10px 16px;
    color: #fff;
  }

  .hosting-info img {
    width: 220px;
    height: auto;
  }

  .hosting-details {
    display: grid;
    gap: 0.5rem;
    color: #0b0c0f;
    font-size: 16px;
    align-content: center;
  }

  .hosting-details a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
  }

  .hosting-details ul {
    margin: 0;
    padding-left: 1.2rem;
  }

  .hosting-details ul li {
    list-style-type: "✔ ";
    margin-bottom: 0.25rem;
    margin-top: 0;
  }

  .hosting-logo {
    align-content: center;
    padding-right: 24px;
  }

  .price-deal {
    text-align: center;
  }

  .price {
    font-size: 3rem;
    font-weight: bold;
    line-height: normal;
  }

  .price small {
    font-size: 1.5rem;
    color: #555;
  }

  .claim-button {
    background: #0073e6;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    border: none;
    margin: 0.5rem 0;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
  }

  .coupon-count {
    background: #28a745;
    color: white;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 13px;
    display: inline-block;
    margin-left: 0.5rem;
  }

  .toggle-plans {
    cursor: pointer;
    color: #0073e6;
    font-weight: bold;
    text-align: center;
  }

  .plan-details {
    display: none;
    transition: all 0.3s ease;

    table {
      margin: 0;
    }
  }

  .plan-details.is-visible {
    display: block;
  }

}

#respond {
  .rev-rating {
    display: flex;
  }

  label {
    width: 200px;
  }

  .star-rating {
    display: flex;
    flex-direction: row-reverse;

    label {
      display: inline-block;
      width: auto;
      font-size: 16px;
      margin-right: 6px;
    }
  }
}

.home-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.home-banner {
  width: 30%;
  text-align: center;
}


.btn-banner {
  background: #0073e6;
  color: white;
  padding: 0.2rem 0.8rem;
  border: none;
  margin: 0.5rem 0;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;

  &:hover {
    background: #2e75c1;
    color: #fff;
  }
}

.large-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  padding: 10px 20px;
  /* border-radius: 40px; */
  background-color: #0d80f2;
  color: #f6f7f8;
  &:hover {
    background-color: #0b66c2;
    color: #fff;
  }
}


/* Hosting Banner Styles */
.hosting-home-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 0 20px 0;
  position: relative;
  width: 100%;
  gap: 16px;
  align-items: center;

  &.list {
    display: inline-block;
  }


  .banner-item {
    flex: 1 1;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: var(--box-shadow-default);
    position: relative;
    overflow: hidden;
    padding-top: 36px;

    .hosting-rank {
      background-color: #f4f4f5;
      color: rgba(22, 24, 29, .4);
      padding: 4px 16px 4px 24px;
      border-radius: 0 0 8px 0;
      font-size: 18px;
      line-height: 24px;
    }

    .top-badge {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      display: flex;
      justify-content: space-between;
    }

    .expert-badge {
      background-color: #299b17;
      padding: 6px 16px 6px 24px;
      border-radius: 0 0 0 8px;
      font-size: 16px;
      line-height: 20px;
      color: #f6f7f8;
    }
  }

  .banner-item h3 {
    margin-top: 0;
    color: #333;
  }

  .banner-item img {
    max-width: 75%;
    height: 100%;
    object-fit: contain;
    /* makes the image cover the container */
  }

  .banner-center {
    order: 2;
    margin: 0 auto;
    gap: 24px 16px;
    display: flex;
    flex-direction: column;
  }

  .banner-top {
    display: flex;
  }

  .banner-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .banner-left {
    order: 1;
    margin-right: auto;
  }

  .banner-right {
    order: 3;
    margin-left: auto;
  }



  .banner-image {
    width: 100%;
    /* or any fixed width */
    height: 75px;
    /* set desired height */
    overflow: hidden;
    /* hides any overflow from the image */
    position: relative;
    object-fit: contain;
    margin-bottom: 15px;
  }



}


.hosting-rating {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 14px;
  text-align: center;

  .star-rating {
    color: #f39c12;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  h4 {
    margin: 0;
    font-size: 36px;

    i {
      font-size: 24px;
      color: #f39c12;
    }
  }

  a {
    line-height: normal;
  }
}

.single-hostings {
  .entry-title {
    color: #000;
  }

  .featured-image {
    border: solid 4px;
  }

  .entry-header {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;

    h3 {
      margin: 0;
      font-size: 16px;
    }

    .featured-image {
      align-content: center;
    }
  }

  .entry-content {
    grid-column: span 2;
  }

  .short-info {
    box-shadow: var(--box-shadow-default);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: center;

    ul {
      margin: 0;
      padding: 0;
    }

    li {
      list-style: none;
      justify-content: space-between;
      display: flex;
      strong {
        font-weight: 500;
      }
    }
  }
  tr td {
    font-size: 12px;
  }
  .hosting-servers {
    ul {
      column-count: 2;

      li {
        margin: 0
      }
    }
  }

  .plan-group {
    margin-bottom: 32px;
  }

  .plan-summary {
    flex: 2;

  }


  ul.two-columns {
    display: flex;
    flex-wrap: wrap;
    list-style-position: inside;
    padding: 0;
    margin: 0;
  }

  ul.two-columns li {
    width: 50%;
    /* 2 columns */
  }
}

.scroll-link {
  cursor: pointer;
}



.wd-hosting-list {
  display: flex;
  flex-direction: column;
  gap: 20px;

  .wd-hosting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .wd-hosting-logo img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
  }

  .wd-hosting-info {
    flex-grow: 1;
    padding-left: 20px;
    line-height: normal;
  }

  .host-title {
    font-size: 14px;
    font-weight: bold;
  }

  .read-more {
    font-size: 12px !important;
    color: #333;
    text-decoration: underline;
  }

  .hosting-button {
    padding-left: 20px;
  }

  .visit-site {
    color: #0066cc;
    font-size: 12px !important;
    text-decoration: none;
  }

  .visit-site:hover {
    text-decoration: underline;
  }
}





/* Responsive adjustments */
@media (max-width: 768px) {
  .hosting-home-container {
    flex-direction: column;
  }

  .banner-item,
  .banner-center,
  .banner-left,
  .banner-right {
    width: 100%;
    margin: 0 0 20px 0 !important;
    order: 0 !important;
  }
}

@media (max-width: 768px) {
  .hosting-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hosting-info {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .price-deal {
    text-align: center;
  }
}