.back-home {
  display: inline-block;
  margin-bottom: 20px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  background-color: #44499C;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
}
.back-home:hover {
  background-color: #3b3f8c;
}

body {
  font-family: 'Mulish', Arial, Helvetica, sans-serif;
  margin: 20px;
  text-align: center;
  color: #384967;
}
/* HEADER */
.header {
  max-width: 1400px;
  margin: 0 auto 30px;
}
.header img {
  width: 100%;
  display: block;
}

/* FOOTER */
.footer {
  width: 100vw;
  margin-top: 60px;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.footer img {
  width: 100%;
  display: block;
}

/* TITLES */
h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
h2 { font-size: 18px; font-weight: 600; margin-bottom: 24px; }
h3 { font-size: 22px; font-weight: 700; margin-bottom: 30px; }

/* FULL-WIDTH DIVIDER */
.full-divider {
  width: 100vw;
  height: 3px;
  background-color: #E7E6E6;
  margin: 24px 0 36px;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 300px);
  gap: 30px;
  justify-content: center;
}
.category-card img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}
.category-card img:hover {
  transform: scale(1.05);
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  justify-items: center;
  padding: 20px 0;
}

/* FLIP CARD */
.flip-card {
  width: 260px;
  height: 355px;
  perspective: 1200px;
}

/* STATIC SHELL */
.flip-card-shell {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 0.5px solid #E7E6E6;
  overflow: hidden;
}

/* ROTATING INNER */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* DESKTOP HOVER FLIP WITH DELAY */
@media (hover: hover) and (pointer: fine) {
  .flip-card-inner {
    transition-delay: 0.1s;
  }
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* MOBILE TAP FLIP */
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* CARD FACES */
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card-front { transform: rotateY(0deg); }
.flip-card-back  { transform: rotateY(180deg); }

/* IMAGES */
.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BACK BUTTON */
button {
  margin-bottom: 30px;
  padding: 12px 28px;
  font-size: 16px;
  font-family: 'Mulish', Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;

  background-color: #44499C;
  color: #ffffff;
  border: none;
  border-radius: 999px;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

button:hover {
  background-color: #3b3f8c;
  transform: translateY(-1px);
}
button:active {
  transform: translateY(0);
}

.back-website {
  background-color: #A5307C;
  color: #ffffff;
}

.back-website:hover {
  background-color: #922b6f;
}