
/* ===== Base layout & typography ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, serif;
  background: #ffffff;
  color: #333;
  line-height: 1.8;
}

/* ===== Header & nav ===== */
header {
  border-bottom: 1px solid #eee;
  padding: 1rem 1rem;
}

.site-title {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
}

nav {
  margin-top: 0.5rem;
  text-align: center;
}

nav a {
  color: #333;
  text-decoration: none;
  margin: 0 0.6rem;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
  font-weight: 600;
}

/* ===== Main content ===== */
main {
  max-width: 700px;
  margin: auto;
  padding: 2rem 1rem;
}

h1, h2, h3 {
  font-weight: 500;
}

section {
  margin-bottom: 2rem;
}

/* ===== Simple card pattern (for previews/reviews) ===== */
.card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  background: #fafafa;
}

.card img {
  max-width: 160px;
  display: block;
  margin-top: 0.5rem;
}

a {
  color: #0066cc;
}

a:hover {
  text-decoration: underline;
}

/* Small screens */
@media (max-width: 480px) {
  .site-title {
    font-size: 1.25rem;
  }
}

/* ===== Collapsible details/summary (optional) ===== */
details.card {
  margin: 1rem 0;
}

details.card summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none; /* hides the default arrow */
}

details.card[open] summary {
  text-decoration: underline; /* optional highlight when open */
}

details.card .content {
  margin-top: 0.5rem;
}


.workout-page img {
  display: block;
  margin: 1rem auto;   /* center the image */
  max-width: 100%;     /* responsive */
  width: 400px;        /* fixed size */
  border-radius: 8px;  /* optional rounded corners */
}

.blog-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 12px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

.blog-box summary {
  padding: 12px 16px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* remove default arrow */
  position: relative;
}

.blog-box[open] summary {
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.blog-box summary::after,
.exercise-box summary::after {
  content: " ➕";
  position: absolute;
  right: 16px;
  transition: transform 0.2s ease;
}

.blog-box[open] summary::after,
.exercise-box[open] summary::after {
  content: " ➖";
}

.blog-content {
  padding: 16px;
  background: #fafafa;
  font-size: 15px;
  line-height: 1.6;
}


/* ===== Workout page collapsible style ===== */
.exercise-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 12px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
}

.exercise-box summary {
  padding: 12px 16px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* remove default arrow */
  position: relative;
}

.exercise-box[open] summary {
  background: #f0f9ff; /* light blue highlight when opened */
  border-bottom: 1px solid #ddd;
}

.blog-box summary::after,
.exercise-box summary::after {
  content: " ➕";
  position: absolute;
  right: 16px;
  transition: transform 0.2s ease;
}

.blog-box[open] summary::after,
.exercise-box[open] summary::after {
  content: " ➖";
}

.exercise-content {
  padding: 16px;
  background: #fafafa;
  font-size: 15px;
  line-height: 1.6;
}

.exercise-content img {
  display: block;
  margin: 12px auto;
  max-width: 100%;
  border-radius: 6px;
}


.core-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 10px 0;
  padding: 8px 12px;
  background: #fdfdfd;
  transition: 0.3s ease;
}

.core-box[open] {
  background: #f9f9f9;
  border-color: #bbb;
}

.core-box summary {
  cursor: pointer;
  font-size: 1.1em;
  list-style: none;
}

.core-box summary::-webkit-details-marker {
  display: none; /* removes default arrow */
}

.core-box summary::after {
  content: " ➕";
  float: right;
  transition: transform 0.2s ease;
}

.core-box[open] summary::after {
  content: " ➖";
}



details {
  margin: 1em 0;
}
details summary {
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  padding: 0.5em;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
details summary:hover {
  background-color: #e0e0e0;
}
details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
details .card {
  border-top: none;
  padding: 1em;
  border: 1px solid #ccc;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: #fff;
}
