.alphauzi-category-featured {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  padding: 0;
  margin: 0 auto;
}

/* Button shape: square (default), rounded, pill/oval — set via widget “Button Corners” */
.alphauzi-category-featured.alphauzi-cfp-btn-shape--square {
  --alphauzi-cfp-btn-radius: 0;
}

.alphauzi-category-featured.alphauzi-cfp-btn-shape--rounded {
  --alphauzi-cfp-btn-radius: 8px;
}

.alphauzi-category-featured.alphauzi-cfp-btn-shape--pill {
  /* Large radius = capsule / oval ends */
  --alphauzi-cfp-btn-radius: 9999px;
}

.category-featured-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  position: relative;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Category Sidebar Styles */
.category-sidebar {
  flex: 0 0 250px;
  max-width: 250px;
  box-sizing: border-box;
}

.category-sidebar .section-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 400;
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 30px 0;
  color: #111827;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.category-item {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
  color: #111827;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.category-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: transparent;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.category-item:hover::after,
.category-item.active::after {
  width: 100%;
}

.category-item:hover {
  color: #6f665b;
}

.category-item.active {
  color: #6f665b;
  font-weight: 600;
}

/* Featured Post Styles */
.alphauzi-category-featured .featured-post-wrapper {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.alphauzi-category-featured .featured-post {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: stretch;
  box-sizing: border-box;
  min-height: 400px;
}

.alphauzi-category-featured .featured-post-image {
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  height: 100%;
  min-height: 400px;
}

.alphauzi-category-featured .featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.alphauzi-category-featured .featured-post-image:hover img {
  transform: scale(1.05);
}

.alphauzi-category-featured .featured-post-content {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
  box-sizing: border-box;
}

.alphauzi-category-featured .post-category {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #6f665b;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.alphauzi-category-featured .post-title {
  margin: 0 0 20px 0;
  font-size: 36px;
  line-height: 1.3;
  font-weight: 400;
  font-family: Georgia, "Times New Roman", serif;
}

.alphauzi-category-featured .post-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.alphauzi-category-featured .post-title a:hover {
  color: #6f665b;
}

.alphauzi-category-featured .post-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #5b5b5b;
  margin-bottom: 25px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.alphauzi-category-featured .post-button {
  display: inline-block;
  width: auto;
  max-width: none;
  align-self: flex-start;
  padding: 12px 30px;
  background-color: #f4f2ee;
  color: #6f665b;
  text-decoration: none;
  border-radius: var(--alphauzi-cfp-btn-radius, 0);
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 1px solid transparent;
}

.alphauzi-category-featured .post-button:hover {
  background-color: #5e564d;
  color: #ffffff;
}

.no-posts-message {
  padding: 40px;
  text-align: center;
  color: #5b5b5b;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Loading State */
.alphauzi-category-featured .featured-post.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive Styles - Tablet */
@media (max-width: 1024px) and (min-width: 601px) {
  .category-featured-container {
    gap: 30px;
  }

  .category-sidebar {
    flex: 0 0 200px;
    max-width: 200px;
  }

  .category-sidebar .section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .category-item {
    font-size: 13px;
    padding: 10px 0;
  }

  .alphauzi-category-featured .featured-post {
    gap: 25px;
  }

  .alphauzi-category-featured .featured-post-image {
    min-height: 350px;
  }

  .alphauzi-category-featured .featured-post-content {
    padding: 0 25px;
  }

  .alphauzi-category-featured .post-title {
    font-size: 32px;
  }

  .alphauzi-category-featured .post-excerpt {
    font-size: 14px;
  }
}

/* Responsive Styles - Mobile */
@media (max-width: 600px) {
  .category-featured-container {
    flex-direction: column;
    gap: 30px;
  }

  .category-sidebar {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .category-sidebar .section-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
  }

  .category-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .category-item {
    padding: 10px 15px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    flex-shrink: 0;
  }

  .category-item::after {
    bottom: -2px;
    height: 2px;
  }

  .category-item:hover::after,
  .category-item.active::after {
    width: 100%;
  }

  .alphauzi-category-featured .featured-post-wrapper {
    width: 100%;
  }

  .alphauzi-category-featured .featured-post {
    flex-direction: column;
    gap: 20px;
  }

  .alphauzi-category-featured .featured-post-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    padding-bottom: 65%;
    height: 0;
    position: relative;
  }

  .alphauzi-category-featured .featured-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .alphauzi-category-featured .featured-post-content {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
  }

  .alphauzi-category-featured .post-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .alphauzi-category-featured .post-excerpt {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .alphauzi-category-featured .post-button {
    width: 100%;
    text-align: center;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .category-sidebar .section-title {
    font-size: 24px;
  }

  .category-item {
    font-size: 12px;
    padding: 8px 12px;
  }

  .alphauzi-category-featured .post-title {
    font-size: 24px;
  }

  .alphauzi-category-featured .post-excerpt {
    font-size: 13px;
  }
}
