/*!
Theme Name: benqu Child
Template:   benqu
Theme URI: http://itcroctheme.com/wp/demo/
Author: itcroc
Author URI: http://itcroctheme.com/wp/demo/
Description: Benqu - News & Magazine WordPress Theme
Version: 1.0.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: benqu-child
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
.category-icon-list {
  display: flex;
  flex-direction: column;
  gap: 0px !important;
  max-width: 400px;
  margin: 0 auto;
}

.category-item {
  display: flex;
  align-items: center;
}
/* .category-item:hover {
  background: #f9f9f9;
  transform: translateX(3px);
} */

.category-item a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #333;
  width: 100%;
}

.category-icon {
  width: 32px !important;
  height: 32px !important;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #ddd;
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  color: white !important;
  margin: 0;
}
.category-title:active, .category-title:hover{
	color: #000 !important;
}

@media only screen and (max-width: 600px){
	.category-icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: transform 0.3s;
}

.category-item:hover {
  transform: translateY(-3px);
  background-color: #fafafa;
}

.category-icon {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
}

}

/* Posts container */
#category-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Each post block */
.post-item-horizontal {
  background: transparent !important;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-item-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-item-horizontal a {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  gap: 15px;
  padding: 10px;
}

/* Featured image on the left */
.post-thumb {
  flex-shrink: 0;
  width: 35%;
  max-width: 220px;
  border-radius: 8px;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text area on the right */
.post-info {
  flex: 1;
}

.post-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111;
}

.post-info p {
  font-size: 14px;
  color: #555;
  margin: 0 0 10px;
  line-height: 1.5;
}

.read-more {
  font-size: 14px;
  font-weight: 500;
  color: #0073aa;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Responsive fix for mobile */
@media (max-width: 768px) {
  .post-item-horizontal a {
    flex-direction: column;
  }
  .post-thumb {
    width: 100%;
    max-width: 100%;
  }
}
.category-icon-list{
	justify-content: flex-start !important;
}