* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 10%;
  background-color: #111;
  color: #fff;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00c292;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00c292;
}

.hero {
  background: url('assets/hero-gym.jpg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  background-color: #00c292;
  color: #fff;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #019b7b;
}

.about, .highlight, .cta {
  padding: 4rem 10%;
  background-color: #fff;
  text-align: center;
}

.cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  background-color: #f0f0f0;
  padding: 2rem;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta {
  background-color: #00c292;
  color: #fff;
}

footer {
  text-align: center;
  padding: 2rem 0;
  background-color: #111;
  color: #ccc;
}

/* ===== Workouts page helpers ===== */
.page { background:#fff; }
.container{ width:min(1100px, 92%); margin-inline:auto; }
.page-hero{
  background: url('assets/hero-gym.jpg') center/cover no-repeat;
  min-height: 32vh; display:flex; align-items:center; justify-content:center;
  text-align:center; color:#fff; padding:2rem 1rem; position: relative;
}
.page-hero::after{ content:""; position:absolute; inset:0; background:rgba(0,0,0,0.45); }
.page-hero .page-hero-inner{ position:relative; z-index:1; }

.filters{ display:flex; gap:1rem; align-items:center; justify-content:space-between; padding:2rem 0 1rem; flex-wrap: wrap; }
.levels{ display:flex; gap:.5rem; flex-wrap:wrap; }
.chip{ border:1px solid #ddd; background:#f8f8f8; padding:.5rem .9rem; border-radius:999px; cursor:pointer; font-weight:600; }
.chip.is-active{ border-color:#00c292; background:#e7fbf6; color:#086f5c; }
.search-wrap input{ padding:.65rem .9rem; border-radius:8px; border:1px solid #ddd; min-width:240px; }

.grid{ display:grid; grid-template-columns: repeat( auto-fill, minmax(260px, 1fr) ); gap:1.25rem; padding:1rem 0 3rem; }
.card.workout-card{ padding:0; overflow:hidden; }
.card-img-wrap{ height:170px; overflow:hidden; }
.card-img-wrap img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-body{ padding:1.1rem; text-align:left; }
.card-title{ font-size:1.05rem; margin-bottom:.45rem; }
.badges{ display:flex; gap:.4rem; flex-wrap:wrap; margin:.25rem 0 .9rem; }
.badge{ display:inline-block; background:#eef2f3; color:#333; padding:.2rem .5rem; border-radius:6px; font-size:.8rem; font-weight:600; }
.btn-small{ font-size:.9rem; padding:.55rem 1rem; border-radius:10px; }
.modal[aria-hidden="true"]{ display:none; }
.modal{ position:fixed; inset:0; z-index:999; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); }
.modal-dialog{ position:relative; z-index:1; width:min(820px, 92%); margin:6vh auto; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 10px 40px rgba(0,0,0,.3); }
.modal-close{ position:absolute; top:.6rem; right:.8rem; background:#111; color:#fff; border:none; width:36px; height:36px; border-radius:50%; cursor:pointer; font-size:1.1rem; line-height:36px; text-align:center; }
.modal-body{ padding:1.2rem 1.2rem 1.6rem; }
.modal-img{ width:100%; max-height:280px; object-fit:cover; border-radius:10px; margin-bottom:1rem; }
.steps{ margin: .6rem 0 1rem 1.2rem; }
.tips summary{ cursor:pointer; font-weight:700; margin-top:.6rem; }
.muted{ color:#666; text-align:center; padding:1rem 0 2rem; }