/* ==========================================================
   GOLDEN BAKERY SOCIAL CONNECT
   ========================================================== */

.gbsx {
  --gbsx-wine: #741522;
  --gbsx-gold: #eba900;
  --gbsx-gold-light: #f4b817;
  --gbsx-gold-dark: #d49700;
  --gbsx-cream: #fffaf1;
  --gbsx-white: #ffffff;
  --gbsx-text: #251d19;

  display: block;
  width: 100%;

  margin: 0;
  padding: 52px 20px 58px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(235, 169, 0, 0.08),
      transparent 30%
    ),
    var(--gbsx-cream);
}

.gbsx,
.gbsx *,
.gbsx *::before,
.gbsx *::after {
  box-sizing: border-box;
}


/* Khung nội dung */

.gbsx__inner {
  width: 100%;
  max-width: 1080px;

  margin: 0 auto;
  padding: 0;
}


/* Tiêu đề */

.gbsx__title {
  width: 100%;
  max-width: 820px;

  margin: 0 auto 38px;
  padding: 0;

  color: var(--gbsx-text);

  font-family:
    "Playfair Display",
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -1.2px;

  text-align: center;
  text-transform: none;
}


/* Grid ba card */

.gbsx__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

  align-items: stretch;
  justify-items: stretch;

  width: 100%;
  max-width: 720px;

  margin: 0 auto;
  padding: 0;

  gap: 20px;
}


/* Xử lý thẻ p/br còn sót lại */

.gbsx__grid > p {
  display: contents !important;

  margin: 0 !important;
  padding: 0 !important;
}

.gbsx__grid > p:empty {
  display: none !important;
}

.gbsx__grid br,
.gbsx__item br {
  display: none !important;
}


/* Card */

.gbsx__item {
  position: relative;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-width: 0 !important;

  aspect-ratio: 1 / 1;

  margin: 0 !important;
  padding: 22px 14px !important;

  overflow: hidden;

  border: 2px solid transparent !important;
  border-radius: 22px !important;

  background:
    linear-gradient(
      145deg,
      var(--gbsx-gold-light) 0%,
      var(--gbsx-gold) 55%,
      #dc9e00 100%
    ) !important;

  color: var(--gbsx-white) !important;

  text-align: center !important;
  text-decoration: none !important;

  box-shadow:
    0 12px 26px rgba(163, 112, 0, 0.15) !important;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


/* Loại bỏ card rỗng nếu Flatsome tạo */

.gbsx__item:empty {
  display: none !important;
}


/* Xóa pseudo-element do theme */

.gbsx__item::before,
.gbsx__item::after {
  display: none !important;
  content: none !important;
}


/* Hover */

.gbsx__item:hover {
  border-color: rgba(116, 21, 34, 0.18) !important;

  background:
    linear-gradient(
      145deg,
      #efad00 0%,
      var(--gbsx-gold-dark) 100%
    ) !important;

  color: var(--gbsx-white) !important;
  text-decoration: none !important;

  transform: translateY(-6px);

  box-shadow:
    0 18px 34px rgba(116, 21, 34, 0.2) !important;
}

.gbsx__item:focus-visible {
  outline: 3px solid rgba(116, 21, 34, 0.55);
  outline-offset: 4px;
}


/* Icon */

.gbsx__icon {
  display: flex !important;
  flex: 0 0 76px !important;
  align-items: center !important;
  justify-content: center !important;

  width: 76px !important;
  height: 76px !important;

  margin: 0 0 12px !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  color: var(--gbsx-white) !important;

  box-shadow: none !important;
}

.gbsx__icon svg {
  display: block !important;

  width: 58px !important;
  height: 58px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible;

  fill: currentColor !important;
  color: var(--gbsx-white) !important;
}


/* Icon Google Map cân nhỏ hơn */

.gbsx__item[data-social="map"] .gbsx__icon svg {
  width: 54px !important;
  height: 54px !important;
}


/* Tên kênh */

.gbsx__label {
  display: block !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  color: var(--gbsx-white) !important;

  font-family:
    Arial,
    Helvetica,
    sans-serif !important;

  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;

  text-align: center !important;
  text-transform: none !important;

  box-shadow: none !important;
}


/* Tablet */

@media screen and (max-width: 849px) {
  .gbsx {
    padding: 44px 18px 50px;
  }

  .gbsx__title {
    margin-bottom: 32px;

    font-size: clamp(34px, 6vw, 48px);
  }

  .gbsx__grid {
    max-width: 650px;
    gap: 16px;
  }

  .gbsx__item {
    padding: 18px 12px !important;
    border-radius: 20px !important;
  }

  .gbsx__icon {
    flex-basis: 68px !important;

    width: 68px !important;
    height: 68px !important;
  }

  .gbsx__icon svg {
    width: 52px !important;
    height: 52px !important;
  }
}


/* Mobile */

@media screen and (max-width: 549px) {
  .gbsx {
    padding: 36px 14px 42px;
  }

  .gbsx__title {
    max-width: 390px;

    margin-bottom: 27px;

    font-size: clamp(29px, 8.3vw, 36px);
    line-height: 1.16;
    letter-spacing: -0.7px;
  }

  .gbsx__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    max-width: 430px;
    gap: 10px;
  }

  .gbsx__item {
    aspect-ratio: 0.88 / 1;

    padding: 14px 5px !important;

    border-radius: 15px !important;
  }

  .gbsx__icon {
    flex-basis: 52px !important;

    width: 52px !important;
    height: 52px !important;

    margin-bottom: 7px !important;
  }

  .gbsx__icon svg {
    width: 40px !important;
    height: 40px !important;
  }

  .gbsx__label {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .gbsx__item:hover {
    transform: none;
  }
}


/* Mobile rất nhỏ */

@media screen and (max-width: 359px) {
  .gbsx {
    padding-right: 9px;
    padding-left: 9px;
  }

  .gbsx__grid {
    gap: 7px;
  }

  .gbsx__item {
    padding: 11px 3px !important;
    border-radius: 13px !important;
  }

  .gbsx__icon {
    flex-basis: 44px !important;

    width: 44px !important;
    height: 44px !important;
  }

  .gbsx__icon svg {
    width: 34px !important;
    height: 34px !important;
  }

  .gbsx__label {
    font-size: 10px !important;
  }
}


/* Giảm chuyển động */

@media (prefers-reduced-motion: reduce) {
  .gbsx__item {
    transition: none;
  }

  .gbsx__item:hover {
    transform: none;
  }
}