/* --- Fasthosts brand theme --- */
* {
  box-sizing: border-box;
}

:root {
  --fh-blue: #0045cc;
  --fh-darkblue: #031A4A;
  --fh-lightblue: #1473E6;
  --fh-red: #F05556;
  --fh-gray: #444;
  --fh-border: #ddd;
  --fh-off-white: #E7F1FC;
}

body {
  font-family: Inter;
  background: #fff;
  color: var(--fh-darkblue);
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 400;
}

/* Header */
h2 {
  display: block;
  text-align: center;
  margin-top: 40px;
  font-weight: 500;
  color: var(--fh-darkblue);
}

strong {
  font-weight:500;
  font-size:1.1rem
}

ul {
  list-style: none;
  margin:0;
  padding:0;
  line-height: 1.3rem;
}

.top {
  display: block;
  margin-right:-15px;
  margin-left:-15px;
  text-align: center;
}

.subtitle {
  max-width: 60%;
  font-size: 1.2rem;
  margin: 10px auto 10px;
}

.features {
  text-align: center;
  margin-bottom: 30px;
}

.feature-highlight {
  max-width: 60%;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 10px auto 10px;
}

.features span {
  padding: 8px 15px;
  border-radius: 20px;
  color: var(--fh-darkblue);
  font-size: 1.1rem;
}
.features strong {
  font-size:1.2rem;
}

/* Layout */
.container {
  width: 90%;
  max-width: 128rem;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  position: relative
}

.server-container {
  width: 100%;
  display: flex;
  gap: 6rem;
  justify-content: center
}

/* Filters */
.filters {
  flex: 0 0 220px;
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filters h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--fh-darkblue);
}

.filters h5 {
  font-size: 14px;
  margin: 15px 0 5px;
  color: var(--fh-darkblue);
}

.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.filters input {
  accent-color: var(--fh-blue);
}

.clear-btn {
  margin-top: 15px;
  display: block;
  width: 100%;
  padding: 8px 0;
  border: 1px solid var(--fh-blue);
  background: transparent;
  color: var(--fh-blue);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.clear-btn:hover {
  background: var(--fh-blue);
  color: #fff;
}

.server-table-container{
  width: 100%;
  max-width: 105.6rem
}

@media (min-width: 1025px) {
  .server-table-header{
    display:flex;
  }
}

.server-table-header{
  height: 2rem;
  position: relative;
  gap: 1rem;
  padding-inline: 3rem;
  margin-bottom: 1rem;
}

.table-header-item{
  flex: 1 1 21.4rem;
}

.server-table {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

@media(min-width: 1025px) {
  .server-card {
    flex-direction:row;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-color: #0000;
    width: 100%
  }
}

@media(min-width: 1025px) {
  .spec,.price,.configure {
  flex: 1 1 21.4rem;
  }
}

.server-card {
  display: inline-flex;
  border-radius: 1rem;
  background-color: #f6f7f8;
  position: relative;
  gap: 1rem;
  transition: border-color .2s ease-in-out,background-color .2s ease-in-out;
  flex-shrink: 0;
}

.server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.server-card.highlight:hover {
  transform: translateY(-2px);
  background-color:var(--fh-red);
  border-color:var(--fh-red);
}

.server-card.highlight:hover .offer-period-red,
.server-card.highlight:hover .price .main {
  color: var(--fh-darkblue);
}

.server-card.highlight:hover .configure-btn {
  background: var(--fh-off-white);      /* button background becomes white */
  color: var(--fh-lightblue);        /* light blue text */
  border-color: #4da6ff; /* optional: match border to text */
}

.server-card.highlight {
  border: 2px solid var(--fh-lightblue);
}

.badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--fh-red);
  color: white;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: .2rem;
  font-weight: 400;
}

.badge.new {
  background: #ffc107;
  color: #000;
}

/*.details {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}*/

.logo {
  font-size: 22px;
  font-weight: 700;
  text-transform: lowercase;
}

.logo.intel {
  color: var(--fh-darkblue);
}

.logo.amd {
  color: #b00020;
}

.model-name{
  font-size: 1.3rem;
  font-weight:500;
  width: 15.8%;
  margin-bottom: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
}

.spec {
  font-size: 1rem;
}

.specs strong {
  display: block;
  font-size: 15px;
  color: var(--fh-darkblue);
}

.price {
  width: 16%;
  padding-block: 0;
  border: none;
  margin-top: 0;
}

.offer-period {
display: flex;  
flex-direction: row;
}

.offer-period-red {
  color: var(--fh-red);
  font-size: 1rem;
}

.price span {
  display: block;
  font-size: 1rem;
  color: var(--fh-darkblue);
  letter-spacing: normal;
}

.price .main {
  font-size: 2.5rem;
  color: var(--fh-red);
  font-weight: 500;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  line-height: .8;
  padding-block: .4rem .4rem;
  letter-spacing: .1rem;
}

.price .per {
  font-size: 1rem;
  font-weight: 500;
}

.price small {
  font-size: 13px;
  color: #555;
}

.configure{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.configure-btn {
  background: var(--fh-lightblue);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
  padding: 1rem 3rem;
}

.configure-btn:hover {
  background: var(--fh-blue);
}

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

  .filters {
    width: 100%;
    order: 2;
  }

  .servers {
    order: 1;
  }

  .server-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .price {
    text-align: left;
    margin-top: 15px;
  }
}
