.main-header {
  width: 100%;
  height: calc(100vh - 71px);
  background-image: url('../images/subsidiaries/subsidiaries.jpg');
  background-position: center;
  background-size: cover;
  position: relative
}

.cover-title {
  font-family: db_heavent;
  font-size: 50px;
  color: #fff;
  padding: 113px 52px;
  background: rgba(0, 0, 0, 0.6);
  width: fit-content;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: calc(50% - 171px);
}

@media (max-width: 992px) {
  .cover-title {
    top: calc(50% - 71px);

  }
}
.content-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 50px 50px 0;
  display: flex;
  flex-direction: column;
}

.arrow {
  background-image: url(https://www.sena.co.th/images/icon-tri.svg);
  padding-right: 20px;
  margin-right: 12px;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
}

.title-wrapper {
  font-family: db_heavent;
  font-weight: 500;
  font-size: 40px;
  color: #333333;
  border-bottom: 1px solid #DEDEDE;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-list-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 50px 50px 0;
}

.card-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-horizontal {
  position: relative;
  border-radius: 10px;
  width: 100%;
  padding-top: 48.5%;
}

.card-vertical {
  position: relative;
  border-radius: 10px;
  width: 100%;
  padding-top: 145.34%;
}

.card-square {
  position: relative;
  border-radius: 10px;
  width: 100%;
  padding-top: 100.0028%;
}

.card-horizontal img,
.card-vertical img,
.card-square img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.card-name {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: db_heavent;
  font-weight: 500;
  font-size: 24px;
  color: #ffffff;
}

.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  background: rgba(51, 51, 51, 0.82);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-family: db_heavent;
  color: #ffffff;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s linear, opacity 0.3s linear;
}

.backdrop .card-detail-name {
  font-size: 24px;
  font-weight: 500;
}

.backdrop .card-detail-description {
  font-family: db_heavent;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.backdrop a {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 0);
  font-family: db_heavent;
  color: #ffffff;
  font-size: 16px;
  padding: 6px 60px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  text-decoration: none;
  width: max-content;
}

.card-horizontal:hover .backdrop,
.card-vertical:hover .backdrop,
.card-square:hover .backdrop {
  visibility: visible;
  opacity: 1;
}

.mobile {
  display: none;
}

@media screen and (max-width: 992px) {
  .main-header {
    height: 50vh;
  }

  .cover-title {
    font-size: 36px;
    padding: 100px 30px;
    width: max-content;
  }

  .content-wrapper {
    padding: 30px 15px;
  }

  .title-wrapper {
    font-size: 34px;
  }

  .card-list-wrapper {
    padding: 20px 0 0;
  }

  .card-list-wrapper>.d-lg-none>.card-column {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-row,
  .card-column {
    gap: 8px;
  }

  .card-name {
    line-height: 1;
  }

  .mobile {
    display: block;
  }

  .card-horizontal:hover .backdrop,
  .card-vertical:hover .backdrop,
  .card-square:hover .backdrop {
    visibility: none;
    opacity: 0;
  }
}