/* --- pSEO Page Specific Styles --- */
.p-seo-page-container {
  max-width: 1200px;
  margin: var(--space-md) auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.p-seo-hero-content {
  text-align: center;
}

.p-seo-hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.p-seo-intro-paragraph {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.p-seo-main-image-container {
  width: 100%;
  text-align: center;
  position: relative;
}

.p-seo-main-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.p-seo-cta-section {
  text-align: center;
}

.p-seo-internal-linking-module {
  width: 100%;
  border-top: 1px solid #e0e0e0;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.p-seo-section-title {
  font-family: var(--font-serif-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.p-seo-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.p-seo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.p-seo-grid-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.p-seo-image-wrapper {
  position: relative; /* This is the key to making the overlay position correctly */
  display: inline-block; /* Or block, depending on your layout */
  max-width: 600px;
  width: 100%;
}

/* --- Navigation Chevron Arrows --- */
.p-seo-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10; /* Ensure arrows are above the image */

  /* Appearance */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(253, 253, 253, 0.8); /* Semi-transparent white */
  color: var(--color-text-primary);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 1.2rem;
  text-decoration: none;
  backdrop-filter: blur(2px);

  /* Animation */
  transition: all 0.2s ease-in-out;
}

.p-seo-nav-arrow:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.p-seo-nav-arrow--prev {
  left: 1rem; /* Position on the left */
}

.p-seo-nav-arrow--next {
  right: 1rem; /* Position on the right */
}

/* On smaller screens, move arrows slightly more inward */
@media (max-width: 768px) {
  .p-seo-nav-arrow--prev {
    left: 0.5rem;
  }
  .p-seo-nav-arrow--next {
    right: 0.5rem;
  }
}
