/* assets/arac-style.css */
.arac-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  padding: 0 20px;
}

/* card */
.arac-card {
  width: 48%;
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.arac-flipper {
  width: 100%;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}
.arac-front,
.arac-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

/* make them look like ATM cards */
.arac-front {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: #fff;
}
.arac-back {
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  color: #111;
  transform: rotateY(180deg);
}

/* flipped state */
.arac-card.flipped .arac-flipper {
  transform: rotateY(180deg);
}

/* caption */
.arac-caption {
  margin-top: 12px;
  text-align: center;
}
.arac-caption h3 { margin: 0; font-size: 1.05rem; }
.arac-caption p { margin: 2px 0 0 0; font-size: 0.9rem; color: #666; }

/* desktop: left/right placement */
@media(min-width: 800px) {
  .arac-wrapper { flex-direction: row; }
  .arac-card { width: 40%; }
}

/* mobile: stacked top/bottom */
@media(max-width: 799px) {
  .arac-wrapper { flex-direction: column; gap: 24px; padding: 0 12px; }
  .arac-card { width: 100%; }
}
