/* Company profile — StPageFlip 3D flipbook */

.profile-flipbook-section {
  background:
    radial-gradient(ellipse at top, rgba(26, 88, 88, 0.07), transparent 55%),
    linear-gradient(180deg, #f7f8f4 0%, #ffffff 42%, #f7f8f4 100%);
}

.profile-flipbook-label {
  display: inline-block;
  color: var(--primary-color-1, #1a5858);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.profile-flipbook-intro h3 {
  margin-bottom: 10px;
}

.profile-flipbook-intro p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--body-color, #555);
}

.profile-flipbook-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.profile-flip-page {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-heading-color, #222);
}

.profile-flip-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--primary-color-1, #1a5858);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
}

.profile-flip-download:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.profile-flipbook-stage {
  position: relative;
  min-height: 560px;
  padding: 28px 72px 40px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, rgba(26, 88, 88, 0.05), transparent 65%),
    linear-gradient(145deg, #fbfbf8, #eef0ea);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.profile-flip-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  min-width: 52px;
  height: 96px;
  padding: 0 10px;
  border: none;
  background: var(--primary-color-1, #1a5858);
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 28px rgba(26, 88, 88, 0.28);
  font-size: 16px;
  line-height: 1;
}

.profile-flip-side span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-flip-side--left {
  left: 0;
  border-radius: 0 12px 12px 0;
}

.profile-flip-side--right {
  right: 0;
  border-radius: 12px 0 0 12px;
}

.profile-flip-side:hover:not(:disabled) {
  background: #154848;
  box-shadow: 0 12px 32px rgba(26, 88, 88, 0.38);
}

.profile-flip-side--left:hover:not(:disabled) {
  transform: translateY(-50%) translateX(2px);
}

.profile-flip-side--right:hover:not(:disabled) {
  transform: translateY(-50%) translateX(-2px);
}

.profile-flip-side:disabled {
  background: #c9cec8;
  color: #f4f5f1;
  box-shadow: none;
  cursor: not-allowed;
}

.profile-flipbook-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 20;
  padding: 30px;
  text-align: center;
  background: rgba(247, 248, 244, 0.94);
}

.profile-flipbook-loader[hidden],
.profile-flipbook-wrap[hidden] {
  display: none !important;
}

.profile-flipbook-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(26, 88, 88, 0.15);
  border-top-color: var(--primary-color-1, #1a5858);
  border-radius: 50%;
  animation: profile-spin 0.8s linear infinite;
}

@keyframes profile-spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-flipbook-progress {
  width: min(280px, 70%);
  height: 6px;
  border-radius: 999px;
  background: rgba(26, 88, 88, 0.12);
  overflow: hidden;
}

.profile-flipbook-progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--primary-color-1, #1a5858);
  transition: width 0.25s ease;
}

.profile-flipbook-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  width: 100%;
}

.profile-flipbook {
  margin: 0 auto;
}

/* StPageFlip page shell */
.profile-flipbook .page {
  background: #fff;
  overflow: hidden;
}

.profile-flipbook .page.--hard {
  background: #f4f5f1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.profile-flip-page-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
}

.profile-flip-page-inner canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.profile-flip-page-inner.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(26, 88, 88, 0.06), transparent),
    #f7f8f4;
  background-size: 200% 100%, auto;
  animation: profile-shimmer 1.2s linear infinite;
}

@keyframes profile-shimmer {
  0% {
    background-position: 100% 0, 0 0;
  }
  100% {
    background-position: -100% 0, 0 0;
  }
}

.profile-flipbook-hint {
  margin-top: 22px;
  font-size: 14px;
  color: var(--body-color, #666);
}

.profile-flipbook-empty {
  padding: 60px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed var(--border-color-1, #edeee7);
}

.profile-flipbook-empty i {
  font-size: 48px;
  color: var(--primary-color-1, #1a5858);
  margin-bottom: 16px;
  display: block;
}

/* StPageFlip parent sizing */
.stf__parent {
  margin: 0 auto;
}

.stf__block {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

@media (max-width: 991px) {
  .profile-flipbook-stage {
    padding: 20px 56px 32px;
    min-height: 480px;
  }

  .profile-flip-side {
    min-width: 44px;
    height: 80px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .profile-flipbook-stage {
    min-height: 420px;
    padding: 16px 46px 24px;
  }

  .profile-flipbook-wrap {
    min-height: 340px;
  }

  .profile-flipbook-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-flip-download {
    justify-content: center;
  }

  .profile-flip-side {
    min-width: 40px;
    height: 72px;
    gap: 4px;
  }

  .profile-flip-side span {
    font-size: 10px;
  }
}
