/* =========================
   MTC Dashboard - main.css
   ========================= */

:root {
  --blue: #024a97;
  --black: #000000;
  --white: #ffffff;

  /* Button text closer to WP */
  --text-md: clamp(0.95rem, 0.45vw + 0.85rem, 1.1rem);
  --h2: clamp(2rem, 2.5vw + 1rem, 2.8rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(#000000, var(--blue), #000000);
  color: var(--white);
  min-height: 100vh;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 30px;
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: var(--h2);
  font-weight: 500;
  margin: 0 0 40px;
}

/* Grid with spacing like WP */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  margin-bottom: 60px;
}

/* Card look */
.card {
  width: 100%;
  max-width: 300px;
  min-height: 300px;
  background: rgba(0, 0, 0, 0.64);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}

/* --- Image frame controls size + radius --- */
.img-frame {
  width: 150px;
  height: 150px;
  border-radius: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Rounded rectangle variant */
.img-frame.square {
  border-radius: 12px;
}

/* Wider logo variant */
.img-frame.wide {
  width: 180px;
  height: 120px;
  border-radius: 12px;
}

.img-frame.wide img {
  object-fit: contain;
  background: transparent;
}

/* Bottom bar button */
.card a {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  padding: 12px 10px;
  font-size: var(--text-md);
  font-weight: 600;
  border-radius: 3px;
  transition: 0.25s ease-in-out;
  margin-top: 18px;
}

.card a:hover {
  background: var(--black);
  border: 1px solid var(--blue);
}
