/* === General Layout Fixes === */

/* Hide Categories/Sorting above Search Bar */
.caf-taxo-filter-wrap,
.caf-taxo-filter-wrap *,
.caf-filter-wrap .caf-taxo-filter-wrap,
.caf-filter-wrap .caf-taxo-filter-wrap * {
    display: none !important;
}

/* Hide the last Episodes category filter button */
li.caf-mb-4 {
    display: none !important;
}

/* Full Card Layout */
.manage-layout1 {
    display: flex;
    flex-direction: row;
    background: #efebe4;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    gap: 20px;
    align-items: center; /* Center image and text vertically */
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 250px; /* <-- lowered from 300px to 250px */
}

/* Thumbnail Styling */
.caf-featured-img-box {
    width: 250px;
    height: auto;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    flex-shrink: 0;
}

/* === Search Bar Styling (Rectangular) === */
.caf-search-input {
    border-radius: 0;
    border: 2px solid #1a1a1a;
    padding: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #1a1a1a;
    height: 50px;
}

#caf-search-sub {
    background-color: #eba11b;
    color: #1a1a1a;
    border-radius: 0;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    height: 50px;
    cursor: pointer;
}

/* === Inside Card Styling === */

/* Manage Post Area Background */
.caf-post-layout1 #manage-post-area {
    background-color: #efebe4 !important;
}

#manage-post-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
}

/* Title Block */
#manage-post-area .caf-post-title {
    padding: 5px 0;
    margin: 0;
    flex-shrink: 0;
}

/* Title Text */
#manage-post-area .caf-post-title a {
    font-family: "ITC Benguiat Pro", "Cinzel", serif;
    font-size: 24px;
    color: #7d1b25;
    text-decoration: none;
    display: inline-block;
    padding: 0;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* Title Hover Color */
#manage-post-area .caf-post-title a:hover {
    color: #eba11b !important;
}

/* Date Section */
#manage-post-area .caf-meta-content {
    background-color: #efebe4;
    border-bottom: none !important;
}
#manage-post-area .caf-meta-content .date {
    color: #1a1a1a;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

/* Hide Calendar Icon */
#manage-post-area .caf-meta-content i {
    display: none !important;
}

/* Description Excerpt (2-Line Cutoff) */
#manage-post-area .caf-content {
    background-color: #efebe4;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.5em;
    word-break: break-word;
}

/* Listen Now Button Section */
#manage-post-area .caf-content-read-more {
    background-color: #efebe4;
    flex-shrink: 0;
    padding-top: 10px;
}

#manage-post-area .caf-content-read-more .caf-read-more {
    background-color: #1a1a1a;
    color: #efebe4;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: fit-content;
}

#manage-post-area .caf-content-read-more .caf-read-more:hover {
    background-color: #333333;
}

/* === Empty Results "Crime Scene Tape" Effect === */
.error-of-empty-result {
    background: transparent !important;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    min-height: 300px;
}

/* Hide Original Empty Text */
.error-of-empty-result span {
    display: none !important;
}

/* Fake Tape Banner */
.error-of-empty-result::after {
    content: "Uh Oh! We Haven't Covered This Yet! Submit this story for us to cover!";
    display: block;
    background-color: #eba11b;
    color: #1a1a1a;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px 30px;
    transform: translate(-50%, -50%) rotate(-15deg);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    max-width: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid #1a1a1a;
}

/* === Pagination Styling (Blood Red Active Page) === */
.caf-pagination .page-numbers {
    background: none !important;
    color: #efebe4 !important;
    border: none !important;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
}

.caf-pagination .page-numbers.current {
    color: #7d1b25 !important;
}

.caf-pagination .page-numbers:hover {
    color: #eba11b !important;
}

/* === Mobile Responsive === */
@media only screen and (max-width: 768px) {
    .manage-layout1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 95%;
        min-height: auto;
    }

    .caf-featured-img-box {
        width: 100%;
        aspect-ratio: 1/1;
        max-width: 300px;
    }

    #manage-post-area {
        padding-top: 15px;
    }
}
/* === Mobile Only Fixes === */
@media only screen and (max-width: 768px) {

  /* 1. Force H1 Title Color to Bone White on Mobile */
  .latest-episode-content h1 {
      color: #efebe4 !important;
  }

  /* 2. Hide Thumbnails (Images) from Episode Cards on Mobile */
  .manage-layout1 .caf-featured-img-box {
      display: none !important;
  }

  /* 3. (Optional) Expand the text area now that thumbnails are hidden */
  #manage-post-area {
      width: 100%;
  }
}
/* === Cleaner Mobile Search Bar and Button === */
@media only screen and (max-width: 768px) {

  /* Search Input */
  .caf-search-input {
      width: 90%;
      max-width: 300px; /* 🎯 Limit the max width */
      font-size: 16px;
      padding: 10px 15px;
      height: 45px;
      border-radius: 8px;
      margin-bottom: 10px;
      text-align: center;
      box-sizing: border-box;
  }

  /* Search Button */
  #caf-search-sub {
      width: auto;
      max-width: 200px;
      font-size: 16px;
      padding: 10px 20px;
      border-radius: 8px;
      background-color: #eba11b;
      color: #1a1a1a;
      font-weight: bold;
      text-transform: uppercase;
      margin-top: 5px;
      cursor: pointer;
      display: inline-block;
  }

  /* Center the Input and Button */
  .caf-filter-wrap,
  .caf-search-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }
}
/* === Hide Search Button on Mobile Only === */
@media only screen and (max-width: 768px) {

  /* Hide the Search Button */
  #caf-search-sub {
      display: none !important;
  }

  /* Style the Search Input Cleanly */
  .caf-search-input {
      width: 90%;
      max-width: 300px;
      font-size: 16px;
      padding: 10px 15px;
      height: 45px;
      border-radius: 8px;
      text-align: center;
      box-sizing: border-box;
  }

  /* Center the Input */
  .caf-filter-wrap,
  .caf-search-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }
}