
/* Topic Grid Layout - Updated to match your system */
.lc-plugin-wrapper .jet-listing-grid__item {
position: relative;
cursor: pointer;
}

.lc-plugin-wrapper .jet-search-filter__submit.apply-filters__button {
position: relative;
padding-right: 13px;
padding-left: 2em;
background: #047857;
backdrop-filter: blur(4px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 9999px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
font-size: 1rem;
line-height: 1.5;
transition: all 0.2s ease;
outline: none;
color: #374151;
margin-top: 0;
cursor: pointer;
}

.lc-plugin-wrapper .jet-smart-filters-search .jet-search-filter__input-clear {
  cursor: pointer;
  right: 2px;
  padding: 5px;
  height: 28px;
  margin-top: -15px;
}

.lc-plugin-wrapper .jet-smart-filters-search .jet-search-filter__input-clear,
.lc-plugin-wrapper .jet-smart-filters-search .jet-search-filter__input-loading {
  display: none;
  position: absolute;
  top: 50%;
  color: #777;
}

.lc-plugin-wrapper .jet-search-filter__submit.apply-filters__button::before {
content: '';
display: inline-block;
position: absolute;
left: 0.9em;
top: 50%;
transform: translateY(-50%);
width: 1.2em;
height: 1.2em;
/* Updated search icon with longer handle */
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='7' stroke-width='2'/%3E%3Cline x1='21' y1='21' x2='14.5' y2='14.5' stroke-width='2'/%3E%3C/svg%3E") no-repeat center center;
background-size: 1.2em 1.2em;
pointer-events: none;
}

.lc-plugin-wrapper.lc-no-margin-bottom {
margin-bottom: 0;
}

.lc-plugin-wrapper.lc-no-margin-top, .lc-plugin-wrapper .lc-no-margin-top {
margin-top: 0;
}

.lc-plugin-wrapper .lc-no-padding-top, .lc-plugin-wrapper.lc-no-padding-top {
padding-top: 0;
}

.lc-plugin-wrapper.lc-no-padding, .lc-plugin-wrapper .lc-no-padding {
padding: 0;
}

.lc-plugin-wrapper .lc-margin-top-10, .lc-plugin-wrapper.lc-margin-top-10 {
padding: 10px;
}

.lc-plugin-wrapper iframe {
width: 100%;
height: 480px;
border-radius: 6px;
}
.lc-plugin-wrapper.lc-header-container.lc-article {
position: relative;
min-height: 400px;
width: 100%;
overflow: visible;
}

.lc-plugin-wrapper .jet-listing-dynamic-field__icon {
margin-right: 10px !important;
}

.lc-plugin-wrapper .jet-listing-dynamic-field__icon.is-svg-icon {
color: #6b7280;
width: 15px;
} 

.lc-plugin-wrapper .lc-header-no-margin {
display: flex;
flex-direction: column;
row-gap: 14px;
font-size: 14px !important;
line-height: 1.4 !important;
}

.lc-plugin-wrapper .lc-plugin-meta,
.lc-plugin-wrapper .lc-plugin-meta .wp-block-column,
.lc-plugin-wrapper .lc-plugin-meta .jet-listing-dynamic-field-block,
.lc-plugin-wrapper .lc-plugin-meta .jet-listing {
display: flex;
align-items: center;
font-size: 14px !important;
line-height: 1.4 !important;
min-height: 0 !important;
}

.lc-plugin-wrapper .lc-plugin-meta {
margin: 0;
gap: 6px;
align-items: center;
}

.lc-plugin-wrapper .jet-listing-dynamic-field__inline-wrap {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
max-width: 100%;
font-size: 14px !important;
line-height: 1.4 !important;
}

.lc-plugin-wrapper .lc-listing-date .jet-listing-dynamic-field__icon.is-svg-icon,
.lc-plugin-wrapper .lc-listing-read-time .jet-listing-dynamic-field__icon.is-svg-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 15px;
min-width: 15px;
height: 15px;
line-height: 1;
flex: 0 0 15px;
}

.lc-plugin-wrapper .lc-listing-date .jet-listing-dynamic-field__icon.is-svg-icon svg,
.lc-plugin-wrapper .lc-listing-read-time .jet-listing-dynamic-field__icon.is-svg-icon svg {
display: block;
width: 15px !important;
height: 15px !important;
max-width: 15px !important;
max-height: 15px !important;
}

.lc-plugin-wrapper .lc-header-pattern.lc-article  {
position: absolute !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
/* background-image: url(/wp-content/plugins/learning-centre-plugin/assets/images/lc-background-pattern.jpg) !important;*/
background-size: cover !important;
background-position: center !important;
background-repeat: no-repeat !important;
opacity: 0.3 !important;
margin: 0 !important;
padding: 0 !important;
z-index: 2;
max-width: none;
}



.lc-plugin-wrapper :not(.lc-topic-term-header) .lc-topics-container:not(.lc-term-active-item) {
padding: 1rem;
height: 10rem;
border-radius: var(--lc-radius);
background-color: var(--lc-taxonomy-card-bg);
transition: all 0.2s ease;
display: flex;
/*flex-direction: column;*/
align-items: center;
justify-content: center;
gap: 0.6rem;
position: relative;
box-shadow: var(--lc-shadow);
}

.lc-plugin-wrapper :not(.lc-topic-term-header) .lc-topics-container:not(.lc-term-active-item):hover {
background-color: var(--lc-taxonomy-card-bg-hover);
border-color: var(--lc-primary);
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;
}

.lc-plugin-wrapper :not(.lc-topic-term-header) .jet-listing-grid__item:not(.lc-term-active-item) .lc-topics-container:not(.lc-term-active-item):hover .lc-topic-icon:not(img) {
color: var(--lc-category-hover-icon-color, var(--lc-category-icon-color, var(--lc-primary)));
filter: var(--lc-category-hover-icon-wrapper-filter, var(--lc-category-icon-wrapper-filter, brightness(0.5)));
}

.lc-plugin-wrapper :not(.lc-topic-term-header) .jet-listing-grid__item:not(.lc-term-active-item) .lc-topics-container:not(.lc-term-active-item):hover img.lc-topic-icon,
.lc-plugin-wrapper :not(.lc-topic-term-header) .jet-listing-grid__item:not(.lc-term-active-item) .lc-topics-container:not(.lc-term-active-item):hover .lc-topic-icon img {
filter: var(--lc-category-hover-icon-filter, var(--lc-category-icon-filter, var(--lc-icon-filter, brightness(0.5))));
}

.lc-plugin-wrapper .lc-topic-title {
text-align: center;
}

.lc-plugin-wrapper .lc-topic-title a {
color: var(--lc-category-text-color, var(--lc-text));
font-size: 1rem;
font-weight: 500;
text-decoration: none;
line-height: 1.25;
transition: color 0.2s ease;
font-family: inherit;
width: 100%;
}

.lc-plugin-wrapper :not(.lc-topic-term-header) .lc-topics-container:not(.lc-term-active-item):hover .lc-topic-title a {
color: var(--lc-primary);
}

.lc-plugin-wrapper .jet-engine-listing-overlay-link {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
}

/* Responsive adjustments for topics */
@media (min-width: 768px) {
.lc-plugin-wrapper .lc-topics-container {
  padding: 1.5rem;
  height: 10rem;
}

.lc-plugin-wrapper .lc-topic-icon span {
  font-size: 2.5rem;
  width:100%;
}

.lc-plugin-wrapper .lc-topic-icon i {
  font-size: 2.5rem;
}

.lc-plugin-wrapper .lc-topic-title a {
  font-size: 1rem;
}
}

@media (max-width: 767px) {
.lc-plugin-wrapper #lc-topic-term .lc-topics-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.lc-plugin-wrapper #lc-topic-term .lc-topic-icon,
.lc-plugin-wrapper #lc-topic-term .lc-topic-icon .jet-listing,
.lc-plugin-wrapper #lc-topic-term .lc-topic-icon .jet-listing-dynamic-field__inline-wrap,
.lc-plugin-wrapper #lc-topic-term .lc-topic-icon .jet-listing-dynamic-field__content {
  font-size: 27.36px;
  line-height: 45.144px;
}

.lc-plugin-wrapper #lc-topic-term .lc-topic-title a,
.lc-plugin-wrapper #lc-topic-term .lc-topic-title .jet-listing-dynamic-link__label {
  font-size: 13.68px;
  line-height: 17.1px;
}
}

/* Additional integration with your existing overlay styles - exclude lc-topic-term-header AND lc-term-active-item */
.lc-plugin-wrapper :not(.lc-topic-term-header) > .jet-listing-grid__items > .jet-listing-grid__item.jet-equal-columns:not(.lc-term-active-item) .jet-engine-listing-overlay-wrap .lc-topics-container {
background-color: var(--lc-taxonomy-card-bg);
height: 100%;
}

.lc-plugin-wrapper :not(.lc-topic-term-header) > .jet-listing-grid__items > .jet-listing-grid__item.jet-equal-columns:not(.lc-term-active-item) .jet-engine-listing-overlay-wrap:hover .lc-topics-container {
background-color: var(--lc-taxonomy-card-bg-hover);
border-color: var(--lc-primary);
}

/* Override for topic term header - keep existing styles from lc-header-footer.css - exclude active item */
.lc-plugin-wrapper .lc-topic-term-header .jet-listing-grid__items .jet-listing-grid__item.jet-equal-columns:not(.lc-term-active-item) .jet-engine-listing-overlay-wrap .lc-topics-container {
background-color: var(--lc-taxonomy-card-bg, rgba(255, 255, 255, 0.1)) !important;
}

/* Override hover for topic term header - use category hover color - exclude active item */
.lc-plugin-wrapper .lc-topic-term-header .jet-listing-grid__items .jet-listing-grid__item.jet-equal-columns:not(.lc-term-active-item) .jet-engine-listing-overlay-wrap:hover .lc-topics-container,
.lc-plugin-wrapper .lc-topic-term-header .lc-topics-container:not(.lc-term-active-item):hover {
background-color: var(--lc-taxonomy-card-bg-hover, var(--lc-category-hover-bg, #20174729)) !important;
}

.lc-plugin-wrapper .lc-article-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 2rem;
margin: 2rem 0;
}

.lc-plugin-wrapper .lc-article-card {
background: var(--lc-card-bg);
border: 1px solid var(--lc-border);
border-radius: var(--lc-radius);
box-shadow: var(--lc-shadow);
padding: 1.5rem;
transition: box-shadow 0.2s, border 0.2s;
display: flex;
flex-direction: column;
min-height: 220px;
}

.lc-plugin-wrapper .lc-article-card:hover,.lc-plugin-wrapper .lc-listing-container:hover {
border-color: var(--lc-primary);
box-shadow: 0 4px 16px rgba(42,122,226,0.08);
}

.lc-plugin-wrapper .lc-article-title {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--lc-primary);
}

.lc-plugin-wrapper .lc-article-excerpt {
color: #444;
margin-bottom: 1rem;
flex: 1 1 auto;
}

.lc-plugin-wrapper .lc-badges {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}

.lc-plugin-wrapper .lc-badge {
display: inline-block;
background: var(--lc-primary);
color: #fff;
border-radius: 999px;
font-size: 0.85rem;
padding: 0.25em 0.9em;
font-weight: 500;
}

.lc-plugin-wrapper .lc-badge.lc-badge-difficulty {
background: var(--lc-secondary);
}

.lc-plugin-wrapper .lc-badge.lc-badge-beginner {
background: var(--lc-accent);
}

.lc-plugin-wrapper .lc-badge.lc-badge-intermediate {
background: var(--lc-secondary);
}

.lc-plugin-wrapper .lc-badge.lc-badge-advanced {
background: #e74c3c;
}

.lc-plugin-wrapper .lc-topic-filters {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1.5rem;
}

.lc-plugin-wrapper .lc-topic-filter {
background: #fff;
border: 1px solid var(--lc-border);
border-radius: var(--lc-radius);
padding: 0.5em 1em;
cursor: pointer;
transition: background 0.2s, border 0.2s;
}

.lc-plugin-wrapper .lc-topic-filter.active,
.lc-plugin-wrapper .lc-topic-filter:hover {
background: var(--lc-primary);
color: #fff;
border-color: var(--lc-primary);
}

.lc-plugin-wrapper .lc-search-box {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
}

.lc-plugin-wrapper .lc-search-input {
flex: 1 1 auto;
padding: 0.5em 1em;
border: 1px solid var(--lc-border);
border-radius: var(--lc-radius) 0 0 var(--lc-radius);
font-size: 1rem;
outline: none;
}

.lc-plugin-wrapper .lc-search-btn {
background: var(--lc-primary);
color: #fff;
border: none;
border-radius: 0 var(--lc-radius) var(--lc-radius) 0;
padding: 0.5em 1.2em;
cursor: pointer;
font-size: 1rem;
transition: background 0.2s;
}

.lc-plugin-wrapper .lc-search-btn:hover {
background: #1a5bb8;
}

.lc-plugin-wrapper .lc-pagination {
display: flex;
gap: 0.5rem;
justify-content: center;
margin: 2rem 0 0 0;
}

.lc-plugin-wrapper .lc-pagination-btn {
background: #fff;
border: 1px solid var(--lc-border);
border-radius: var(--lc-radius);
padding: 0.5em 1em;
cursor: pointer;
transition: background 0.2s, border 0.2s;
}

.lc-plugin-wrapper .lc-pagination-btn.active,
.lc-plugin-wrapper .lc-pagination-btn:hover {
background: var(--lc-primary);
color: #fff;
border-color: var(--lc-primary);
}

.lc-plugin-wrapper .lc-breadcrumbs {
font-size: 0.95rem;
color: #888;
margin-bottom: 1.2rem;
}

.lc-plugin-wrapper .lc-breadcrumbs a {
color: var(--lc-breadcrumb-link-color, rgba(255, 255, 255, 0.9));
text-decoration: none;
margin-right: 0.5em;
}

.lc-plugin-wrapper .lc-breadcrumbs a:hover {
text-decoration: underline;
}

.lc-plugin-wrapper .lc-block-columns-no-padding-left-right {
padding-left:0 !important;
padding-right:0 !important;
}

.lc-plugin-wrapper .lc-block-columns-no-padding-left-right-bottom {
padding-left:0 !important;
padding-right:0 !important;
padding-bottom:0 !important;
}

.lc-plugin-wrapper .lc-block-columns-no-margin-left-right {
margin-left:0 !important;
margin-right:0 !important;
}

.lc-plugin-wrapper .lc-block-columns-no-padding {
padding:0;
}
