/* ===== Henkel Video Gallery — Editorial Premium ===== */

@keyframes hk-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hk-line-grow {
  from { width: 0; }
  to { width: 60px; }
}

:root {
  --hk-bg: #fafbfe;
  --hk-card: #ffffff;
  --hk-navy: #0c2d57;
  --hk-navy-mid: #1a4578;
  --hk-navy-light: #eaeff6;
  --hk-navy-10: rgba(12, 45, 87, 0.06);
  --hk-navy-20: rgba(12, 45, 87, 0.10);
  --hk-gold: #c9a227;
  --hk-gold-light: #dbb83a;
  --hk-gold-soft: rgba(201, 162, 39, 0.08);
  --hk-text: #1a1e2e;
  --hk-muted: #6b7194;
  --hk-border: rgba(12, 45, 87, 0.08);
  --hk-r: 16px;
  --hk-r-lg: 20px;
  --hk-shadow-sm: 0 1px 3px rgba(12, 45, 87, 0.04);
  --hk-shadow: 0 4px 20px rgba(12, 45, 87, 0.06);
  --hk-shadow-md: 0 8px 32px rgba(12, 45, 87, 0.09);
  --hk-shadow-lg: 0 16px 48px rgba(12, 45, 87, 0.14);
  --hk-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════
   CONTAINER
   ══════════════════════════════════════════ */
.hk-gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  position: relative;
  z-index: 1;
  margin-top: .2rem;
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.hk-gallery__header {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: hk-enter 0.5s var(--hk-ease) both;
}

.hk-gallery__header-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hk-gallery__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--hk-gold);
  background: var(--hk-gold-soft);
  border: 1px solid rgba(201, 162, 39, 0.15);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hk-gallery__tag svg {
  opacity: 0.7;
}

.hk-gallery__title {
  font-size: 2.8rem !important;
  font-weight: 900 !important;
  color: var(--hk-navy) !important;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 1rem;
  display: block !important;
}

.hk-gallery__subtitle {
  margin: 0;
  font-size: 1.3rem;
  color: var(--hk-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* (Featured section removed — all videos use uniform cards) */

/* ══════════════════════════════════════════
   GRID SECTION
   ══════════════════════════════════════════ */
.hk-grid {
  animation: hk-enter 0.6s 0.2s var(--hk-ease) both;
}

.hk-grid__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: flex-start;
  margin-bottom: 1.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--hk-navy-light);
}

.hk-grid__section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--hk-navy);
  margin: 0;
  letter-spacing: -0.02em;
}

.hk-grid__head i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal; /* in case an icon font is used */
  width: 36px;
  height: 36px;
  background: var(--hk-gold-soft);
  color: var(--hk-gold);
  border-radius: 8px;
  font-size: 1rem;
}

.hk-grid__count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hk-navy);
  background: var(--hk-navy-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.hk-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ══════════════════════════════════════════
   CARD
   ══════════════════════════════════════════ */
.hk-card {
  position: relative;
  background: var(--hk-card);
  border-radius: var(--hk-r);
  border: 1px solid var(--hk-border);
  box-shadow: var(--hk-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--hk-ease),
    box-shadow 0.35s var(--hk-ease),
    border-color 0.35s ease;
}

.hk-card,
.hk-card * {
  box-sizing: border-box;
}

.hk-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hk-shadow-md);
  border-color: rgba(201, 162, 39, 0.2);
}

/* ── Subtle gold line on hover ── */
.hk-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hk-gold), var(--hk-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--hk-ease);
}

.hk-card:hover::after {
  transform: scaleX(1);
}

/* ── Media ── */
.hk-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--hk-navy);
  overflow: hidden;
}

.hk-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transition: transform 0.5s var(--hk-ease);
}

.hk-card:hover .hk-card__media iframe {
  transform: scale(1.02);
}

.hk-card__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 45, 87, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.hk-card:hover .hk-card__play-overlay {
  opacity: 0;
}

.hk-card__invalid {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  font-size: 0.85rem;
}

/* ── Card Body ── */
.hk-card__body {
  padding: 1.1rem 1.3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.hk-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hk-navy);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.hk-card:hover .hk-card__title {
  color: var(--hk-navy-mid);
}

.hk-card__desc {
  margin: 0;
  color: var(--hk-muted);
  font-size: 1rem !important;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hk-card__meta {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.6rem;
}

.hk-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--hk-navy);
  background: var(--hk-navy-light);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.hk-card__badge svg {
  display: block;
  width: 12px;
  height: 12px;
}

.hk-card__badge .hk-card__label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.hk-card:hover .hk-card__badge {
  background: var(--hk-gold-soft);
  color: var(--hk-gold);
}

/* ══════════════════════════════════════════
   TABLET (≤960px)
   ══════════════════════════════════════════ */
@media (max-width: 960px) {
  .hk-gallery {
    padding: 3rem 1.5rem 4rem;
  }

  .hk-gallery__title {
    font-size: 2.2rem;
  }

  .hk-gallery__subtitle {
    font-size: 1rem;
  }

  .hk-grid__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

/* ══════════════════════════════════════════
   MOBILE (≤580px)
   ══════════════════════════════════════════ */
@media (max-width: 580px) {
  .hk-gallery {
    padding: 2rem 1rem 3rem;
  }

  .hk-gallery__header {
    margin-bottom: 2.5rem;
  }

  .hk-gallery__tag {
    font-size: 0.6rem;
    padding: 0.35rem 0.9rem;
  }

  .hk-gallery__title {
    font-size: 1.8rem;
  }

  .hk-gallery__subtitle {
    font-size: 0.95rem;
  }

  .hk-grid__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hk-grid__items {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hk-card {
    border-radius: var(--hk-r);
  }

  .hk-card__title {
    font-size: 1rem;
  }

  .hk-card__desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
}
