/* Container 0056A2 */
.af-post-container {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
  margin-top: 15px;
}

/* Grid Layout */
.af-post-container.af-mod-layout-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Vertical Layout */
.af-post-container.af-mod-layout-vertical {
  grid-template-columns: 1fr;
}

.af-post-container.af-mod-layout-vertical .af-post-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.af-post-container.af-mod-layout-vertical .af-mod-image {
  flex: 0 0 250px;
}

.af-post-container.af-mod-layout-vertical .af-mod-image img {
  margin-bottom: 0 !important;
}

/* Slider Layout */
.af-post-container.af-mod-layout-slider {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.af-post-container.af-mod-layout-slider .af-post-item {
  flex: 0 0 293px;
  scroll-snap-align: start;
}

/* Item Styles */
.af-post-item {
  background: #fbfbfb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.af-post-item:hover {
  transform: translateY(-2px); /* Reduced from -5px */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.af-mod-image {
  position: relative;
  overflow: hidden;
}

.af-mod-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 0 !important;
}

/* Slider Hover Button */
.af-mod-slider-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.af-post-item:hover .af-mod-slider-btn {
  opacity: 1;
  transform: translateY(0);
}

.af-slide-icon-btn {
  width: 24px !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.af-mod-content {
  padding: 1.5rem;
}

.af-mod-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.af-mod-meta-top .af-badge {
  padding: 1px 10px;
  font-size: 10px;
}

.af-mod-meta-bottom {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1rem;
}

.af-mod-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.af-mod-name a {
  text-decoration: none;
  color: inherit;
}

.af-mod-bio-short {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.af-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.af-post-main-title {
  font-size: 28px;
}

.af-post-all-link {
  display: flex;
  align-items: center;
  padding-right: 35px;
  position: relative;
  font-weight: bold;
}

.af-post-arrow-icon {
  position: absolute;
  right: 0;
  transition: all 0.3s ease;
  margin-bottom: 0 !important;
  width: 24px !important;
}

.af-post-all-link:hover .af-post-arrow-icon {
  right: -5px;
}

.af-mod-link {
  display: flex;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  align-items: center;
  gap: 15px;
}

.af-mod-link img {
  margin-bottom: 0 !important;
  width: 25px !important;
}

/* Single Page Styles */
.af-post-single-container {
  max-width: 1400px; /* Limit width for better readability */
}

.af-mod-single-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.af-post-hero {
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); */
}

.af-post-hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 550px;
  object-fit: cover;
}

.af-post-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.af-post-meta-badges {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.af-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.af-badge-category {
  background-color: #0056a2;
  color: white;
  border: 1px solid #0056a2;
}

/* .af-badge-category:hover {
  background-color: #333;
  color: #fff;
  border-color: #333;
} */

.af-badge-tag {
  background-color: #de091a;
  color: white;
  border: 1px solid #de091a;
}

/* .af-badge-tag:hover {
  background-color: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
} */

.af-post-meta-author-date {
  font-size: 0.95rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.af-meta-author {
  font-weight: 700;
  color: #333;
}

.af-meta-separator {
  color: #ddd;
}

.af-mod-single-title {
  font-size: 3rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.af-mod-single-bio-long {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.af-mod-single-bio-long p {
  margin-bottom: 1.5rem;
}

/* Archive Styles */
.af-archive-wrapper .af-post-header {
  margin-bottom: 3rem;
  justify-content: center;
  text-align: center;
}

.af-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.af-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.af-pagination .page-numbers.current,
.af-pagination .page-numbers:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .af-post-container.af-mod-layout-slider .af-post-item {
    flex: 0 0 280px;
  }

  .af-post-main-title {
    font-size: 24px;
  }

  .af-mod-single-title {
    font-size: 2rem;
  }

  .af-post-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 636px) {
  .af-post-container.af-mod-layout-vertical .af-post-item {
    flex-direction: column;
    /* text-align: center; */
  }

  .af-post-container.af-mod-layout-vertical .af-mod-image {
    flex: 0 0 auto;
    width: 100%;
  }

  .af-post-container.af-mod-layout-vertical .af-mod-image img {
    flex: 0 0 100%;
    width: 100% !important;
    object-fit: cover;
    height: 100% !important;
  }

  .af-mod-content {
    width: 100%;
    padding: 25px 25px 15px 25px;
  }
  .af-mod-name {
    font-size: 17px;
    line-height: 20px;
  }
  /* .af-post-container.af-mod-layout-slider .af-post-item {
    height: 320px;
  } */
}

/* Audio Post Styles */
.af-post-hero.af-is-audio {
  position: relative;
}

.af-audio-overlay-player {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  z-index: 10;
}

/* Ensure player is visible and styled decently */
.af-audio-overlay-player audio {
  width: 100%;
}

.af-audio-overlay-player .mejs-container,
.af-audio-overlay-player .mejs-controls {
  background: transparent !important;
}
