[hidden] { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.main-pad { padding-top: 48px; padding-bottom: 48px; }
.page-title { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 48px; margin: 8px 0 24px; }
.section-title { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 34px; margin: 56px 0 20px; }

/* ---------- Cards and forms ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.card-form { max-width: 420px; margin: 40px auto; }
.card-form form, .card form { display: grid; gap: 12px; }

input, textarea, select {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
textarea { resize: vertical; }

.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.check input { width: auto; }

.sec { display: grid; gap: 12px; background: var(--cream); border: none; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { background: none; border: none; color: #a33; cursor: pointer; font: inherit; font-size: 14px; }
.thumb { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; }
.msg { font-size: 14px; color: var(--green-900); min-height: 20px; }
.err { font-size: 14px; color: #a33; min-height: 20px; }
.who { font-size: 13px; color: var(--muted); }

/* ---------- Admin tabs and lists ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tabs button { cursor: pointer; }
.items { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; }
.items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.items li > span:first-of-type { flex: 1; }
.item-actions button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  margin-left: 6px;
}
.item-actions button[data-del] { color: #a33; }

/* ---------- Blog list ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: block; border-radius: 14px; overflow: hidden; background: var(--cream); }
.post-card img { width: 100%; height: 180px; object-fit: cover; }
.post-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  padding: 16px 18px 4px;
}
.post-card span { display: block; padding: 0 18px 18px; font-size: 13px; color: var(--muted); }

/* ---------- Reports list ---------- */
.report-list { display: grid; gap: 20px; }
.report-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.report-row img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; }
.report-row h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 24px;
  margin: 4px 0 8px;
}
.report-row p { font-size: 15px; color: var(--muted); }

/* ---------- Single blog post ---------- */
.post { max-width: 720px; margin: 24px auto 0; }
.post-cover { width: 100%; height: 360px; object-fit: cover; border-radius: 16px; margin: 24px 0 32px; }
.post-sec { margin-bottom: 36px; }
.post-sec h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 30px;
  margin-bottom: 14px;
}
.post-sec img { width: 100%; height: 320px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.post-sec p { font-size: 17px; line-height: 1.75; color: #2c3026; margin-bottom: 14px; }

/* ---------- Gallery ---------- */
#gallery { width: 100%; }

.ring {
  position: relative;
  display: grid;
  place-items: center;
  height: 340px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--cream);
  touch-action: pan-y;
  outline: none;
}

.ring-card {
  grid-area: 1 / 1;
  width: min(340px, 70%);
  height: 250px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(63, 107, 58, .14);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s ease;
}
.ring-card.is-active { box-shadow: 0 20px 44px rgba(63, 107, 58, .26); }

.ring-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  display: block;
}

.ring-caption {
  text-align: center;
  margin-top: 14px;
  min-height: 22px;
  font-size: 15px;
  color: var(--muted);
}

.ring-ctrl { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.ring-ctrl button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--green-900);
  background: #fff;
  color: var(--green-900);
  font-size: 18px;
}
.ring-ctrl button:hover { background: var(--green-900); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .report-row { grid-template-columns: 1fr; }
  .report-row img { width: 100%; height: 180px; }
  .page-title { font-size: 38px; }
}

@media (max-width: 899px) {
  .ring { height: 300px; touch-action: auto; }
  .ring-card { width: min(300px, 74%); height: 210px; }
  .ring-ctrl button { transform: rotate(90deg); }
}

@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-cover, .post-sec img { height: 220px; }
}