:root {
  --bg: #f7f8fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fff3f5;
  --text: #191723;
  --muted: #655c69;
  --border: #e7c6cd;
  --accent: #9b1126;
  --accent-dark: #7d0d1e;
  --glow: 0 0 20px rgba(155, 17, 38, 0.2);
  --shadow: 0 12px 30px rgba(24, 31, 50, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at 20% 15%, #f7dfe5 0%, var(--bg) 45%),
    linear-gradient(160deg, var(--bg), var(--bg-alt));
  color: var(--text);
  line-height: 1.55;
  animation: backgroundShift 16s ease-in-out infinite alternate;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.top-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.header-logo {
  width: clamp(72px, 9vw, 108px);
  max-width: 100%;
  height: auto;
  display: block;
}

.header-btn {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(155, 17, 38, 0.45);
  background: linear-gradient(180deg, #b31931, var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(155, 17, 38, 0.28);
}

.header-btn:hover {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #c01f39, var(--accent-dark));
}

.hero {
  background: linear-gradient(135deg, rgba(253, 238, 242, 0.97), rgba(255, 255, 255, 0.97));
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  box-shadow: inset 0 -1px 0 rgba(155, 17, 38, 0.2);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  letter-spacing: 0.02em;
  text-shadow: var(--glow);
  animation: fadeUp 0.8s ease both;
}

.hero p {
  margin: 0;
  max-width: 65ch;
  color: var(--muted);
  animation: fadeUp 1s ease both;
}

.marquee {
  margin-top: 1rem;
  border: 1px solid rgba(155, 17, 38, 0.38);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(253, 235, 239, 0.86);
  box-shadow: var(--glow);
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding: 0.55rem 0;
  color: #8b1022;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  animation: marqueeMove 20s linear infinite;
}

.page-content {
  padding: 2rem 0 3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: fadeUp 0.75s ease both;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 17, 38, 0.58);
  box-shadow: 0 16px 36px rgba(5, 9, 24, 0.65), var(--glow);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(155, 17, 38, 0.32);
  margin-bottom: 0.85rem;
}

.testimonial-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.testimonial-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.testimonial-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.content-panel,
.sidebar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.85s ease both;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin-bottom: 1rem;
  border: 1px solid rgba(155, 17, 38, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.testimonial-banner {
  width: 100%;
  margin: 0 0 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(155, 17, 38, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.testimonial-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.testimonial-banner.portrait img {
  aspect-ratio: 4 / 5;
}

.sidebar-panel h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li + li {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 0 1.4rem;
}

.site-footer__inner {
  text-align: center;
}

.site-footer__brand {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-top: 0.45rem;
}

.site-footer__nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer__note {
  margin: 0.6rem auto 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__copy {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-footer-info {
  margin-top: 1.25rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.page-footer-info h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  color: var(--accent);
}

.page-footer-info p {
  margin: 0.75rem 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.page-footer-info ul {
  margin: 0.45rem 0 0.9rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-footer-info li + li {
  margin-top: 0.45rem;
}

.floating-home-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, #ffeab5, #ffcf4d);
  box-shadow: 0 14px 26px rgba(16, 18, 30, 0.32), 0 0 0 4px rgba(255, 189, 44, 0.28);
  overflow: hidden;
  animation: floatingHomePulse 1.5s ease-in-out infinite;
}

.floating-home-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-home-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 34px rgba(16, 18, 30, 0.4), 0 0 0 6px rgba(255, 189, 44, 0.33);
}

@keyframes floatingHomePulse {
  0%,
  100% {
    box-shadow: 0 14px 26px rgba(16, 18, 30, 0.32), 0 0 0 4px rgba(255, 189, 44, 0.28);
  }
  50% {
    box-shadow: 0 16px 30px rgba(16, 18, 30, 0.42), 0 0 0 9px rgba(255, 189, 44, 0.2), 0 0 28px rgba(255, 170, 26, 0.42);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes backgroundShift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@media (max-width: 860px) {
  .top-header-inner {
    padding: 0.55rem 0;
  }

  .header-logo {
    width: clamp(62px, 18vw, 92px);
  }

  .header-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
  }

  .testimonial-layout {
    grid-template-columns: 1fr;
  }

  .page-footer-info {
    padding: 1.15rem 0 1.45rem;
  }

  .page-footer-info h1 {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .page-footer-info p,
  .page-footer-info ul {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .floating-home-btn {
    right: 0.65rem;
    bottom: 0.65rem;
    width: 78px;
    height: 78px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
