/*--------------------------------------------------------------
# Blog Posts Custom Styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Shared Image Hover Effects for All Sections
--------------------------------------------------------------*/
.about-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.about-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
}

.about-image {
  transition: transform 0.5s ease;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-image-container:hover .about-image {
  transform: scale(1.05);
}

/* Specific about section styling - NO HOVER EFFECT */
.about .about-image-container {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.about .about-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: none !important;
  transition: none !important;
}

/* Completely remove all hover effects for about section image */
.about .about-image-container:hover {
  transform: none !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border-color: color-mix(in srgb, var(--default-color), transparent 90%) !important;
  transition: none !important;
}

.about .about-image-container:hover .about-image {
  transform: none !important;
}

.about .about-image:hover {
  transform: none !important;
  transition: none !important;
}

/* Stats section images are styled entirely by stats-animation.css
   (flying animation + reveal + gradual hover). No !important overrides
   here: an !important transform on :hover outranks the running CSS
   animation in the cascade and snaps the planes down instantly. */

/* Portfolio / gallery hover styles live in style.css ("Gallery grid").
   Do not add transforms/transitions to .portfolio-item here: Isotope
   positions those elements and competing transitions make tiles jump. */

/* Team Member Hover Effects */
.team-member {
  background-color: var(--surface-color);
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  height: 100%;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
}

.team-member .member-img {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.team-member:hover .social {
  opacity: 1;
  bottom: 15px;
}

/* Enhanced Social Links Hover */
.team-member .social a {
  background: color-mix(in srgb, var(--contrast-color), transparent 25%);
  color: #000000;
  margin: 0 3px;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  transition: ease-in-out 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.team-member .social a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}
.blog-posts .blog-header {
  margin-bottom: 3rem;
  position: relative;
}

/* Blog Hero Section - 50% height */
.blog-posts #blog-hero.hero,
.single #blog-hero.hero,
.page-template-page-recent-posts #blog-hero.hero,
.page-recent-posts #blog-hero.hero,
body.page-template-page-recent-posts #blog-hero.hero {
  min-height: 50vh;
  padding: 60px 0 40px 0;
}

/* Force blog page hero to have 50% height - override main styles */
.blog-posts #blog-hero.hero,
.page-template-page-recent-posts #blog-hero.hero,
.page-recent-posts #blog-hero.hero,
body.page-template-page-recent-posts #blog-hero.hero {
  min-height: 50vh !important;
  max-height: 50vh !important;
}

/* Override any conflicting hero styles for blog page */
.blog-posts #blog-hero.hero,
.page-template-page-recent-posts #blog-hero.hero,
.page-recent-posts #blog-hero.hero,
body.page-template-page-recent-posts #blog-hero.hero {
  height: 50vh !important;
}

/* Override general hero styles that might be setting 100vh */
.blog-posts .hero,
.page-template-page-recent-posts .hero,
.page-recent-posts .hero,
body.page-template-page-recent-posts .hero {
  min-height: 50vh !important;
  max-height: 50vh !important;
  height: 50vh !important;
}

/* Universal override for #blog-hero to ensure 50% height regardless of page */
#blog-hero.hero {
  min-height: 50vh !important;
  max-height: 50vh !important;
  height: 50vh !important;
}

/* Most specific selector - target blog-hero with ID and class combination */
section#blog-hero.hero {
  min-height: 50vh !important;
  max-height: 50vh !important;
  height: 50vh !important;
}

/* Override responsive hero styles for blog page */
@media (max-width: 768px) {
  .blog-posts .hero,
  .page-template-page-recent-posts .hero,
  .page-recent-posts .hero,
  body.page-template-page-recent-posts .hero {
    min-height: 50vh !important;
    max-height: 50vh !important;
    height: 50vh !important;
  }
  
  #blog-hero.hero {
    min-height: 50vh !important;
    max-height: 50vh !important;
    height: 50vh !important;
  }
  
  section#blog-hero.hero {
    min-height: 50vh !important;
    max-height: 50vh !important;
    height: 50vh !important;
  }
}

@media (max-width: 576px) {
  .blog-posts .hero,
  .page-template-page-recent-posts .hero,
  .page-recent-posts .hero,
  body.page-template-page-recent-posts .hero {
    min-height: 50vh !important;
    max-height: 50vh !important;
    height: 50vh !important;
  }
  
  #blog-hero.hero {
    min-height: 50vh !important;
    max-height: 50vh !important;
    height: 50vh !important;
  }
  
  section#blog-hero.hero {
    min-height: 50vh !important;
    max-height: 50vh !important;
    height: 50vh !important;
  }
}

/* Single Post Styles - Matching Blog Page Design */
.single .blog-posts {
  padding: 40px 0;
}

.single .site-main {
  max-width: 800px;
  margin: 0 auto;
}

.single article {
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 2rem;
}

.single .entry-header {
  padding: 2rem 2rem 1rem 2rem;
}

.single .entry-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.single .entry-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 20%);
}

.single .entry-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.single .entry-meta i {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.single .post-thumbnail {
  margin: 0 0 2rem 0;
  padding: 0;
}

.single .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.single .entry-content {
  padding: 0 2rem 2rem 2rem;
  line-height: 1.7;
  color: var(--default-color);
}

.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6 {
  color: var(--heading-color);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-color);
}

.single .entry-content h1 {
  font-size: 2rem;
  font-weight: 700;
}

.single .entry-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

.single .entry-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.single .entry-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
  position: relative;
}

/* Remove drop cap effect completely */
.single .entry-content p:first-of-type::first-letter {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  float: none;
  line-height: inherit;
  margin-right: 0;
  margin-top: 0;
}

.single .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.single .entry-content img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.single .entry-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: color-mix(in srgb, var(--surface-color), var(--background-color) 5%);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.single .entry-content ul,
.single .entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.single .entry-content li {
  margin-bottom: 0.8rem;
  position: relative;
}

.single .entry-footer {
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-color), var(--background-color) 5%) 0%, color-mix(in srgb, var(--surface-color), var(--background-color) 15%) 100%);
  border-top: 2px solid color-mix(in srgb, var(--default-color), transparent 20%);
  position: relative;
}

.single .entry-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

/* Comments section styling */
.single .comments-area {
  max-width: 900px;
  margin: 3rem auto 0;
  background: linear-gradient(135deg, var(--surface-color) 0%, color-mix(in srgb, var(--surface-color), var(--background-color) 5%) 100%);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  position: relative;
}

.single .comments-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), white 50%));
  border-radius: 16px 16px 0 0;
}

.single .comments-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 20%);
  position: relative;
}

.single .comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.single .comment {
  background: color-mix(in srgb, var(--surface-color), var(--background-color) 3%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 15%);
  transition: all 0.3s ease;
}

.single .comment:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 30%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.single .comment-avatar {
  float: left;
  margin-right: 1.5rem;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.single .comment-metadata {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0.5rem;
}

.single .comment-author {
  font-weight: 600;
  color: var(--heading-color);
}

.single .comment-content {
  margin-top: 1rem;
  line-height: 1.7;
  font-size: 1rem;
}

.single .comment-respond {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid color-mix(in srgb, var(--default-color), transparent 20%);
}

.single .comment-form {
  margin-top: 2rem;
}

.single .comment-form label {
  display: block;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.single .comment-form input,
.single .comment-form textarea {
  background-color: var(--background-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 20%);
  color: var(--default-color);
  border-radius: 8px;
  padding: 15px 20px;
  width: 100%;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  font-family: var(--default-font);
}

.single .comment-form input:focus,
.single .comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 20%);
  background-color: color-mix(in srgb, var(--background-color), var(--surface-color) 5%);
}

.single .comment-form .submit {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), white 20%));
  color: var(--button-text-color);
  border: none;
  border-radius: 8px;
  padding: 15px 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.single .comment-form .submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.single .comment-form .submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.single .comment-form .submit:hover::before {
  left: 100%;
}

.single .comment-form .submit:active {
  transform: translateY(-1px);
}

.blog-posts .blog-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-posts .blog-header p {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Posts Grid Layout */
.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  justify-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
    max-width: 1100px;
  }
}

/* Blog Post Card Styles */
.blog-post-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 9mae00px;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
}

/* Post Image Wrapper */
.post-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.post-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post-card:hover .post-image {
  transform: scale(1.05);
}

/* Post Date Badge */
.post-date-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent-color);
  color: var(--button-text-color);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.post-date-badge .day {
  display: block;
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 2px;
}

.post-date-badge .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  line-height: 1;
}

/* Post Content Wrapper */
.post-content-wrapper {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Post Categories */
.post-categories {
  margin-bottom: 1rem;
}

.category-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--accent-color), var(--surface-color) 85%);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Post Title */
.blog-post-card .entry-title {
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.blog-post-card .entry-title a {
  color: var(--heading-color);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card .entry-title a:hover {
  color: var(--accent-color);
}

/* Post Meta */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.entry-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-meta i {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Post Excerpt */
.entry-excerpt {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Button */
.read-more-wrapper {
  margin-top: auto;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-btn:hover {
  color: var(--button-text-color);
  background-color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 6px;
  transform: translateX(3px);
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 3rem;
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  background-color: var(--surface-color);
  color: var(--default-color);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background-color: var(--accent-color);
  color: var(--button-text-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--surface-color);
  color: var(--default-color);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  background-color: color-mix(in srgb, var(--accent-color), var(--surface-color) 90%);
  color: var(--accent-color);
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
  transform: translateY(-2px);
}

.pagination-number.current {
  background-color: var(--accent-color);
  color: var(--button-text-color);
  border-color: var(--accent-color);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .blog-posts .blog-header h1 {
    font-size: 2rem;
  }
  
  .post-image-wrapper {
    height: 200px;
  }
  
  .post-content-wrapper {
    padding: 1.2rem;
  }
  
  .blog-post-card .entry-title a {
    font-size: 1.2rem;
  }
  
  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .pagination-wrapper {
    gap: 0.3rem;
  }
  
  .pagination-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .pagination-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .blog-posts-grid {
    gap: 1.5rem;
  }
  
  .post-date-badge {
    top: 15px;
    left: 15px;
    padding: 6px 10px;
  }
  
  .post-date-badge .day {
    font-size: 1rem;
  }
  
  .post-date-badge .month {
    font-size: 0.7rem;
  }
  
  .blog-post-card .entry-title a {
    font-size: 1.1rem;
  }
  
  .entry-excerpt {
    -webkit-line-clamp: 2;
  }
}
/* ==========================================================================
   Blog pages aligned with "Sections Page" pages (slim banner, flat sections)
   ========================================================================== */
.single-post-plain .ps-post-title,
.blog-list-plain .ps-post-title {
  color: var(--heading-color);
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .single-post-plain .ps-post-title,
  .blog-list-plain .ps-post-title { font-size: 26px; }
}

/* No card around the post: text sits directly on the page like in About */
.single .single-post-plain article {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 0;
}
.single .single-post-plain .ps-post-meta {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}
.single .single-post-plain .entry-content {
  padding: 0;
  line-height: 1.7;
}
.single .single-post-plain .entry-content h1,
.single .single-post-plain .entry-content h2,
.single .single-post-plain .entry-content h3,
.single .single-post-plain .entry-content h4,
.single .single-post-plain .entry-content h5,
.single .single-post-plain .entry-content h6 {
  padding-left: 0;
  border-left: 0;
}
/* Justified by default; a paragraph set to left/center/right in the editor keeps its own alignment */
.single .single-post-plain .entry-content p { text-align: justify; }
.single .single-post-plain .entry-content p.has-text-align-left { text-align: left; }
.single .single-post-plain .entry-content p.has-text-align-center { text-align: center; }
.single .single-post-plain .entry-content p.has-text-align-right { text-align: right; }
.single .single-post-plain .entry-content img {
  margin: 1.5rem 0;
  box-shadow: none;
  transition: none;
}
.single .single-post-plain .entry-content img:hover {
  transform: none;
  box-shadow: none;
}
.single .single-post-plain .entry-footer {
  padding: 1.5rem 0 0;
  background: none;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  margin-top: 2rem;
}
.single .single-post-plain .entry-footer::before { display: none; }
.single .single-post-plain .comments-area {
  max-width: none;
  background: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 2rem 0 0;
}
.single .single-post-plain .comments-area::before { display: none; }

/* Blog list: lighter cards, same flat look */
.blog-list-plain .blog-post-card {
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}
.blog-list-plain .blog-post-card:hover { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); }

/* Same section spacing as the Sections pages (overrides the older ".single .blog-posts" padding) */
.single .single-post-plain .blog-posts,
.blog-list-plain .blog-posts {
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Pictures added to a post are centred (left/right aligned ones set in the editor keep their side) */
.single .single-post-plain .entry-content figure,
.single .single-post-plain .entry-content .wp-block-image {
  margin: 1.5rem auto;
  text-align: center;
}
.single .single-post-plain .entry-content figure:not(.alignleft):not(.alignright) img,
.single .single-post-plain .entry-content > p > img:not(.alignleft):not(.alignright),
.single .single-post-plain .entry-content img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.single .single-post-plain .entry-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}
.single .single-post-plain .entry-content .wp-block-gallery { justify-content: center; }

/* Horizontal centring, stronger version: any picture or picture block in the post body */
.single .single-post-plain .entry-content figure:not(.alignleft):not(.alignright),
.single .single-post-plain .entry-content .wp-block-image:not(.alignleft):not(.alignright) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  float: none;
}
.single .single-post-plain .entry-content img:not(.alignleft):not(.alignright) {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100%;
  height: auto;
}
.single .single-post-plain .entry-content .wp-caption {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* Blog list cards: text area slightly darker than the page background (not black), 4 lines of text */
.blog-list-plain .blog-post-card {
  background-color: color-mix(in srgb, var(--background-color), #000 18%);
}
.blog-list-plain .entry-excerpt {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
@media (max-width: 767px) {
  .blog-list-plain .entry-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

/* Videos in posts (uploaded video block and YouTube/Vimeo embeds): full column width, centred, 16:9 for embeds */
.single .single-post-plain .entry-content video,
.single .single-post-plain .entry-content .wp-block-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 12px;
  background: #000;
}
.single .single-post-plain .entry-content .wp-block-embed,
.single .single-post-plain .entry-content .wp-block-video { margin: 1.5rem auto; }
.single .single-post-plain .entry-content .wp-block-embed__wrapper { position: relative; }
.single .single-post-plain .entry-content .wp-block-embed iframe,
.single .single-post-plain .entry-content iframe[src*="youtube"],
.single .single-post-plain .entry-content iframe[src*="vimeo"] {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 12px;
}

/* 404 page */
.not-found-plain .ps-post-title {
  color: var(--heading-color);
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}
@media (max-width: 767px) { .not-found-plain .ps-post-title { font-size: 26px; } }
.not-found-plain .not-found-text p { font-size: 1.1rem; line-height: 1.7; max-width: 640px; }
.not-found-plain .not-found-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5rem; }
.not-found-plain .not-found-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  background: var(--accent-color);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent-color);
  transition: all 0.3s ease;
}
.not-found-plain .not-found-btn:hover { background: transparent; color: var(--accent-color); }
.not-found-plain .not-found-btn-alt { background: transparent; color: var(--accent-color); }
.not-found-plain .not-found-btn-alt:hover { background: var(--accent-color); color: #000; }
