#site-content { margin-top: 150px; }

.fairbook-page {
	margin-top: 5vh;
}

/* Base section spacing */
.fairbook-section {
  padding: 100px 20px;
}

.fairbook-section .container {
  max-width: 1140px;
}

/* Hero */
.fairbook-hero {
  padding: 80px 0;
}

.fairbook-hero h1 {
  margin-bottom: 16px;
}

.fairbook-hero .wp-block-buttons {
  margin-top: 18px;
}

/* Text + Image */
.fairbook-text-image figure {
  margin: 0;
}

.fairbook-text-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* CTA */
.fairbook-cta {
  background: #fdf7fa;
  border-radius: 18px;
}

.fairbook-cta .container {
  padding: 32px 18px;
}

.fairbook-cta p {
  margin-bottom: 18px;
}

/* Testimonials */
.fairbook-testimonials .testimonial-card {
  max-width: 860px;
}

/* Blog teasers */
.fairbook-blog-teasers .wp-block-post-featured-image img {
  border-radius: 12px;
}

/* Make editor and frontend behave similarly */
.wp-block-group.fairbook-section {
  margin: 0;
}



/* =========================
   HERO – PRIMARY
========================= */

.fairbook-hero {
  position: relative;
  padding: 120px 0 160px;
  background: linear-gradient(
    135deg,
    #7a1e5a 0%,
    #8d2b68 45%,
    #8d2b68 100%
  );
  color: #fff;
  overflow: hidden;
}

/* Background diagonal layers */
.fairbook-hero::before,
.fairbook-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.fairbook-hero::before {
  background-image: linear-gradient(
    120deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.06) 50%,
    transparent 50%
  );
}

.fairbook-hero::after {
  background-image: linear-gradient(
    120deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.04) 40%,
    transparent 40%
  );
}

/* Text */
.fairbook-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.fairbook-hero p {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

/* Button */
.fairbook-hero .wp-block-button__link {
  background: #ffffff;
  color: #7a1e5a;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
}

.fairbook-hero .wp-block-button__link:hover {
  background: #f4f4f4;
  color: #7a1e5a;
}

/* Image */
.fairbook-hero .hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
}

/* Bottom wave */
.fairbook-hero::after {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C480,120 960,0 1440,120 L1440,0 L0,0 Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C480,120 960,0 1440,120 L1440,0 L0,0 Z'/%3E%3C/svg%3E");
  mask-size: 100% 120px;
  mask-repeat: no-repeat;
  mask-position: bottom;
  background-color: #7a1e5a;
}


/* =========================
   BLOG CARDS (BOOTSTRAP)
========================= */

.fairbook-blog-cards .wp-block-post-template {
  gap: 30px;
}

.fairbook-blog-cards .post-card {
  background: #fff;
}

.fairbook-blog-cards .post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.fairbook-blog-cards .wp-block-post-title a {
  color: #212529;
  text-decoration: none;
}

.fairbook-blog-cards .wp-block-post-title a:hover {
  text-decoration: underline;
}

.fairbook-blog-cards .wp-block-post-excerpt {
  margin-bottom: 1rem;
}
