* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', "Segoe UI", Arial, sans-serif;
  background: #f4f6f9;
  color: #333;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, rgb(6, 147, 227) 0%, rgb(155, 81, 224) 100%);
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Main layout ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* ── Shared info-box style ── */
.info-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 2rem 2.2rem;
}

.info-box h2 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #9b51e0;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ── How-to steps list ── */
.steps {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.steps li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
}

.steps li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  background: #9b51e0;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* ── MVE box ── */
.mve-box h2 {
  color: #E15759;
}

.mve-box p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1.2rem;
  max-width: 680px;
}

.mve-box img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  display: block;
  cursor: pointer;
  transition: box-shadow 0.18s;
}

.mve-box a:hover img {
  box-shadow: 0 6px 24px rgba(155, 81, 224, 0.35);
}

/* ── Cards grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.card-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}

/* Rainbow banner for the first card */
.rainbow-banner {
  background: linear-gradient(
    135deg,
    rgb(252, 185, 0) 0%,
    rgb(255, 105, 0) 20%,
    rgb(155, 81, 224) 50%,
    rgb(6, 147, 227) 75%,
    rgb(0, 208, 130) 100%
  );
}

.card-content {
  padding: 1.2rem 1.4rem 0.6rem;
  flex: 1;
}

.card-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9b51e0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}

.card-content p:not(.card-subtitle) {
  font-size: 0.87rem;
  color: #666;
  line-height: 1.6;
}

.tag {
  background: #f3e8fd;
  color: #9b51e0;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.73rem;
  font-weight: 500;
}

.card-footer {
  padding: 0.8rem 1.4rem 1.2rem;
}

.card-link {
  display: inline-block;
  background: #9b51e0;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.18s;
}

.card-link:hover {
  background: linear-gradient(135deg, rgb(252, 185, 0) 0%, rgb(255, 105, 0) 100%);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.8rem 1.5rem;
  font-size: 0.78rem;
  color: #999;
  border-top: 1px solid #e4e8ee;
  line-height: 1.7;
  max-width: 960px;
  margin: 0 auto;
}

footer a {
  color: #9b51e0;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
