/*!
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;
  margin: 0;
}
.category-title:active, .category-title:hover{
	color: #000;
}

@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;
}

}

/* 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, [data-theme="light"] body h1, [data-theme="light"] body h2, [data-theme="light"] body h3, [data-theme="light"] body h4, [data-theme="light"] body h5, [data-theme="light"] body h6 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #ffa500 !important;
}

.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;
}
.post-item-horizontal a{
	align-items: center !important;
}
.category-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: background 0.3s;
    }
    .category-item.active {
        background: #f5f5f5;
    }
.category-item{
	background: transparent !important;
}
    .category-item:hover a span,
		.category-item.active a span{
			color:black !important;
		}
    .category-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ddd;
    }
    #category-posts .post-item {
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    #category-posts .post-item h4 {
        margin: 0;
        font-size: 16px;
    }
    #category-posts .post-item a {
        text-decoration: none;
        color: #333;
    }
    .post-item-horizontal {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
		a.post-thumb{
			min-width: 100%
		}
    .post-thumb img {
        width: auto;
        height: auto;
        object-fit: cover;
        border-radius: 6px;
    }
    .post-info h4 {
        margin: 0 0 5px 0;
        font-size: 16px;
    }
    .post-info p {
        margin: 0;
        font-size: 14px;
    }
    .read-more {
        font-size: 13px;
        color: #0073aa;
    }
[data-theme="dark"] body h1, [data-theme="dark"] body h2, [data-theme="dark"] body h3, [data-theme="dark"] body h4, [data-theme="dark"] body h5, [data-theme="dark"] body h6 {
    color: #9b0000 !important;
}
/* ================================
   THEME MODE (Light/Dark) via data-theme
   ================================ */

/* Default Light Mode */


/* -----------------------------
   DESKTOP (default vertical)
------------------------------ */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  width: 250px;
  border-right: 1px solid #ddd;
  background: transparent !important;
}

/* -----------------------------
   RESPONSIVE (horizontal scroll)
------------------------------ */
@media (max-width: 768px) {
  /* Move category list to top */
  .category-list {
    order: -1;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 10px;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    scroll-behavior: smooth;
  }

  /* Hide scrollbars visually but keep scroll active */
  .category-list::-webkit-scrollbar {
    display: none;
  }
  .category-list {
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
  }

  /* Each category item styled like a horizontal card */
  .category-item {
    flex: 0 0 auto;
    display: inline-block;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 90px;
    transition: background 0.3s, color 0.3s;
  }

  .category-item:hover,
  .category-item.active {
    background: #0073aa;
    color: #fff;
  }

  /* Optional: smaller icon for horizontal view */
  .category-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 5px;
  }

  .category-title {
    font-size: 13px;
    white-space: nowrap;
  }
	        .category-list {
            width: 330px !important;
            display: flex;
            flex-direction: row !important;
            gap: 10px;
            padding: 15px;
            border-right: 1px solid #ddd;
            max-width: 400px !important;
            background: transparent !important;
        }
}

