/* ==========================================================================
   SINGLE BLOG POST — Gold Card Layout
   Loaded only on is_singular('post') pages.
   ========================================================================== */

/* --- Outer wrapper --- */
.ny-single-post {
  width: 100%;
  padding: 40px 0;
  box-sizing: border-box;
}

/* --- Category navigation bar --- */
.ny-single-post__categories {
  max-width: 980px;
  margin: 0 auto 20px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  position: relative;
}

.ny-single-post__categories-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ny-single-post__cat-link {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.ny-single-post__cat-link:hover {
  color: var(--color-primary);
}

.ny-single-post__cat-link--active {
  color: var(--color-primary);
  font-weight: 600;
}

.ny-single-post__cat-more {
  position: relative;
}

.ny-single-post__cat-more-btn {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: none;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ny-single-post__cat-more-btn i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.ny-single-post__cat-more.is-open .ny-single-post__cat-more-btn i {
  transform: rotate(180deg);
}

.ny-single-post__cat-more-btn:hover {
  color: var(--color-primary);
}

.ny-single-post__cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
}

.ny-single-post__cat-more.is-open .ny-single-post__cat-dropdown {
  display: flex;
}

/* --- Gold background card (the "border" is gold showing through) --- */
.ny-single-post__card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--color-primary);
  padding: 20px;
  overflow: hidden;
}

/* --- Featured image --- */
.ny-single-post__image {
  width: 100%;
  line-height: 0;
  margin-bottom: 24px;
}

.ny-single-post__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Title (static, not overlaid) --- */
.ny-single-post__title {
  margin: 0 0 20px 0;
  color: #000;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

/* --- White content inset --- */
.ny-single-post__inner {
  background: #fff;
  padding: 36px 78px;
}

/* --- Post meta (logo + "Natural Yachts BV · X days ago") --- */
.ny-single-post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #666;
  margin-bottom: 1.5em;
}

.ny-single-post__meta-logo {
  width: 28px;
  height: auto;
  display: block;
}

.ny-single-post__meta-updated {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #999;
  margin-left: auto;
}

/* --- Body: paragraphs and list items --- */
.ny-single-post__body p,
.ny-single-post__body li {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
}

.ny-single-post__body strong,
.ny-single-post__body b {
  font-weight: 700;
}

/* --- Body: subheadings --- */
.ny-single-post__body h2,
.ny-single-post__body h3,
.ny-single-post__body h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.4em;
}

/* --- Body: inline images --- */
.ny-single-post__body img {
  max-width: 100%;
  height: auto;
}

/* --- Body: links --- */
.ny-single-post__body a {
  color: var(--color-primary);
  text-decoration: none;
}

.ny-single-post__body a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RELATED POSTS — sits on gold background below white inner
   ========================================================================== */

.ny-single-post__related {
  padding: 20px 0 0 0;
}

.ny-single-post__related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px 0;
  padding: 0;
}

.ny-single-post__related-header span {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  text-transform: none;
}

.ny-single-post__related-see-all {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.ny-single-post__related-see-all:hover {
  text-decoration: underline;
}

/* --- 3-column grid of white cards --- */
.ny-single-post__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* --- Individual related card --- */
.ny-single-post__related-card {
  display: block;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ny-single-post__related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Related card image --- */
.ny-single-post__related-img {
  width: 100%;
  line-height: 0;
}

.ny-single-post__related-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* --- Related card title --- */
.ny-single-post__related-title {
  padding: 12px 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #000;
  line-height: 1.2;
}

/* ==========================================================================
   RESPONSIVE — mobile breakpoint
   ========================================================================== */

@media (max-width: 768px) {
  .ny-single-post__card {
    padding: 5px;
  }

  .ny-single-post__title {
    font-size: 28px;
  }

  .ny-single-post__inner {
    padding: 16px;
  }

  .ny-single-post__categories {
    padding: 10px 16px;
  }

  .ny-single-post__cat-link {
    font-size: 13px;
    padding: 5px 10px;
  }

  .ny-single-post__related-grid {
    grid-template-columns: 1fr;
  }

  .ny-single-post__related-img img {
    height: 180px;
  }
}
