/* ======================================
   AMORA – Digital Space (3 cards with overlay PNG)
   - No header block, only intro
   - Image floats above card, hover lifts
====================================== */

.amora-digital{
  --brown:#3C1F1A;
  --gold:#F1BF50;
  --ink:#2D2926;
  --paper:#fff;
  --soft:#F6F1EC;

  padding: clamp(26px, 4vw, 52px) 0;
}

.amora-digital *{ box-sizing: border-box; }

.amora-digital__intro{
  max-width: 980px;
  margin: 0 auto 22px;
  padding: 0 18px;
  text-align: center;

  color: rgba(45,41,38,.72);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.75;
}

/* Grid */
.amora-digital__grid{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;

  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px){
  .amora-digital__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .amora-digital__grid{ grid-template-columns: 1fr; }
}

/* Card */
.amora-digital__card{
  position: relative;
  overflow: visible; /* ✅ allow image to float out */
  border-radius: 20px;

  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, rgba(246,241,236,.72) 100%);
  border: 1px solid rgba(60,31,26,.08);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);

  padding: 120px 22px 22px; /* ✅ top padding to make room for floating PNG */
  min-height: 320px;

  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* subtle lift on hover (card) */
.amora-digital__card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0,0,0,.13);
  border-color: rgba(60,31,26,.12);
}

/* Floating image container */
.amora-digital__art{
  position: absolute;
  left: 18px;
  right: 18px;
  top: -58px;                 /* ✅ floats above */
  height: 165px;

  border-radius: 18px;
  pointer-events: auto;       /* ✅ hover works */
  display: flex;
  align-items: center;
  justify-content: center;

  /* soft glow behind image (like your sample) */
  background: radial-gradient(circle at 55% 60%,
    rgba(241,191,80,.20),
    rgba(241,191,80,.10) 45%,
    rgba(241,191,80,0) 70%
  );

  transition: transform .28s ease, filter .28s ease;
  will-change: transform, filter;
}

/* Image itself */
.amora-digital__art img{
  width: 100%;
  height: 100%;
  object-fit: contain;       /* ✅ never crop */
  filter: drop-shadow(0 18px 28px rgba(60,31,26,.22));
  transform: translateZ(0);
  transition: transform .28s ease, filter .28s ease;
}

/* Hover: image lifts “đè lên card” (clean) */
.amora-digital__card:hover .amora-digital__art{
  transform: translateY(-6px);
  filter: drop-shadow(0 20px 26px rgba(241,191,80,.18));
}
.amora-digital__card:hover .amora-digital__art img{
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 22px 34px rgba(60,31,26,.25));
}

/* Title & text */
.amora-digital__label{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.35;
}

.amora-digital__sub{
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(45,41,38,.70);
}

/* Button (fix hover text turning black) */
.amora-digital__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 42px;
  padding: 0 16px;
  border-radius: 999px;

  background: #2a1410;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: .02em;

  box-shadow: 0 12px 24px rgba(60,31,26,.26);
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
}

.amora-digital__btn:hover,
.amora-digital__btn:focus,
.amora-digital__btn:active,
.amora-digital__btn:visited{
  color: #fff !important;
  text-decoration: none !important;
}

.amora-digital__btn:hover{
  background: var(--brown);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(60,31,26,.32);
}

/* Reduce motion (accessibility) */
@media (prefers-reduced-motion: reduce){
  .amora-digital__card,
  .amora-digital__art,
  .amora-digital__art img,
  .amora-digital__btn{
    transition: none !important;
  }
}