/*
Theme Name: Plotland Guide
Theme URI: https://plotlandguide.com
Author: Plotland Guide
Description: Fully editable block theme for Plotland Guide. Edit the header, footer, homepage, blog and posts from Appearance → Editor, or click any text on the page.
Version: 2.0
Requires at least: 6.4
Text Domain: plotlandguide
*/

/* Testimonial tiles */
.pg-tile {
  background: var(--wp--preset--color--surface);
  border: 1px solid #262a36;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.pg-tile .pg-avatar img,
.pg-tile .pg-avatar figure {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}
.pg-tile .pg-quote { text-align: left; }
.pg-tile h3 { font-size: 1.1rem; margin: 0 0 6px; }
.pg-tile p { font-size: 0.85rem; line-height: 1.5; }
.pg-tile .wp-block-paragraph.has-small-font-size { font-size: 0.8rem; }
.pg-tile .pg-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
}
.pg-tile .pg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.wp-block-group.alignwide h2 { font-size: 1.9rem; }

/* Blog cards */
.pg-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid #262a36;
  border-radius: 14px;
  overflow: hidden;
}
.pg-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pg-card .wp-block-post-title { font-size: 1.2rem; }

/* Blog lists: three cards side by side, stacking on smaller screens */
.wp-block-query .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wp-block-query .wp-block-post-template > li { margin: 0; }
.wp-block-query .pg-card img,
.wp-block-query .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 900px) {
  .wp-block-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wp-block-query .wp-block-post-template { grid-template-columns: 1fr; }
}

/* FAQ */
.pg-faq details { border-bottom: 1px solid #262a36; padding: 16px 0; }
.pg-faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; }

/* Header/footer spacing */
.pg-header { border-bottom: 1px solid #262a36; }
.pg-footer { border-top: 1px solid #262a36; background: #14161e; }
