.event_listings input[type="text"]:not(#search_datetimes),
.event_listings .chosen-container-single .chosen-single {
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
    line-height: 1.2;
    height: auto !important;
}

#search_categories_chosen,
#search_event_types_chosen {
    border: none !important;
}

#drp_autogen0,
body>div.comiseo-daterangepicker.ui-widget.ui-widget-content.ui-corner-all.ui-front.comiseo-daterangepicker-left {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.ui-datepicker-header .ui-datepicker-month,
.ui-datepicker-header .ui-datepicker-year {
    color: var(--primary-color) !important;
}

.comiseo-daterangepicker .ui-datepicker-calendar .ui-state-active,
.comiseo-daterangepicker .ui-datepicker-calendar .ui-state-highlight.ui-state-active {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: white !important;
    font-weight: bold;
}

.comiseo-daterangepicker .ui-datepicker-calendar .ui-state-active:hover,
.comiseo-daterangepicker .ui-datepicker-calendar .ui-state-highlight.ui-state-active:hover {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
}

.comiseo-daterangepicker.ui-widget.ui-widget-content.ui-corner-all.ui-front.comiseo-daterangepicker-left>div.ui-helper-clearfix>div>button.ui-priority-primary.ui-button {
    color: var(--primary-color) !important;
}

.event_listings .chosen-container .chosen-results li.highlighted {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
}

.event_listings .chosen-container .chosen-drop {
    border: 2px solid var(--primary-color) !important;
    border-top: none !important;
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.event_listings .chosen-container .chosen-results {
    max-height: 200px !important;
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
}

.event_listings .chosen-container .chosen-results li {
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease !important;
}

.event_listings .chosen-container .chosen-results li:hover {
    background: #fcebeb !important;
    color: var(--primary-color) !important;
}

#wpem-event-list-layout {
    border-radius: var(--border-radius) !important;
    border: 2px solid #ddd !important;
    color: var(--secondary-color) !important;
    background: transparent !important;
}

#wpem-event-list-layout:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

#wpem-event-list-layout.wpem-active-layout {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

#wpem-event-box-layout {
    border-radius: var(--border-radius) !important;
    border: 2px solid #ddd !important;
    color: var(--secondary-color) !important;
    background: transparent !important;
}

#wpem-event-box-layout:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

#wpem-event-box-layout.wpem-active-layout {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.wpem-event-layout-wrapper {
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid #f0f0f0 !important;
    background: white !important;
}

.wpem-event-layout-wrapper:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #e9ecef !important;
}

.wpem-event-banner {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    overflow: hidden !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.wpem-event-banner-img {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.wpem-event-infomation {
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
    background: white !important;
}

.wpem-event-listing-list-view .wpem-event-layout-wrapper {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
}

.wpem-event-listing-list-view .wpem-event-layout-wrapper:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #e9ecef !important;
}

.wpem-event-listing-list-view .wpem-event-banner {
    border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
    border-bottom: none !important;
    border-right: 1px solid #f0f0f0 !important;
}

.wpem-event-listing-list-view .wpem-event-banner-img {
    border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
}

.wpem-event-listing-list-view .wpem-event-infomation {
    border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
}

@media (max-width: 992px) {
    .wpem-event-listing-list-view .wpem-event-banner {
        border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .wpem-event-listing-list-view .wpem-event-banner-img {
        border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    }

    .wpem-event-listing-list-view .wpem-event-infomation {
        border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
    }
}

.wpem-event-layout-wrapper {
    background: white !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.wpem-event-layout-wrapper:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #f0f0f0 !important;
}

.wpem-from-date {
    border-radius: var(--border-radius) !important;
    padding: 8px 12px !important;
    display: inline-block !important;
}

.wpem-event-single-image-wrapper {
    overflow: hidden !important;
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
    border: 1px solid #f0f0f0 !important;
    background: white !important;
    margin-bottom: 2rem !important;
}

.wpem-event-single-image {

    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
    overflow: hidden !important;
    line-height: 0 !important;
}

.wpem-event-single-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
}

.wpem-viewed-event {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.wpem-viewed-event .wpem-icon-eye::before {
    color: var(--primary-color) !important;
}


.wpem-event-listings-header .wpem-event-listing-header-title h2.wpem-heading-text {
    color: var(--primary-color) !important;
    font-size: var(--h3-font-size) !important;
    margin: 0 !important;
    display: inline-block !important;
    border-bottom: 3px solid var(--primary-color) !important;
    padding-bottom: 5px !important;
}

.wpem-theme-button.registration_button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.wpem-theme-button.registration_button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(181, 5, 9, 0.3);
}

@media (max-width: 768px) {
    .wpem-event-single-image-wrapper {
        margin-bottom: 1.5rem !important;
    }
}

#post-162>div.post-content>div>div>div>div.wpem-single-event-header-top>div>div {
    background-color: white;
    border: none;
}

.single_event_listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.wpem-single-event-wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    margin: 2rem 0;
}

.vc_tta-container {
    margin-bottom: var(--section-padding-small);
}

.vc_general.vc_tta.vc_tta-tabs {
    display: flex;
    flex-direction: column;
    gap: var(--section-padding-small);
}

@media (min-width: 768px) {
    .vc_general.vc_tta.vc_tta-tabs.vc_tta-tabs-position-left {
        flex-direction: row;
        align-items: flex-start;
    }
}

.vc_tta-tabs-container {
    flex-shrink: 0;
    width: 100%;
    padding: 0;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .vc_general.vc_tta.vc_tta-tabs.vc_tta-tabs-position-left .vc_tta-tabs-container {
        width: 30%;
        max-width: 300px;
    }
}

.vc_tta-tabs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: var(--light-gray);
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.vc_tta-tab {
    margin: 0;
    border: none !important;
    position: relative;
}

.vc_tta-tab:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.vc_tta-tab a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    text-align: left;
    border-left: 5px solid transparent;
    line-height: 1.5;
}

.vc_tta-tab a:hover {
    color: var(--primary-color);
    background-color: #f0f0f0;
    padding-left: 1.8rem;
}

.vc_tta-tab.vc_active a {
    background-color: white;
    color: var(--primary-color);
    font-weight: 700;
    border-left-color: var(--primary-color);
    box-shadow: var(--card-shadow);
    padding-left: 1.8rem;
    z-index: 1;
}

.vc_tta-tab.vc_active {
    box-shadow: none !important;
    border-right: none !important;
}

.vc_tta-panels-container {
    flex: 1;
    min-width: 0;
}

.vc_tta-panels {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #f0f0f0 !important;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    padding: var(--section-padding-small);
    min-height: 250px;
    transition: var(--card-transition);
}

.vc_tta-panels:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.vc_tta-panel-body {
    padding: 0 !important;
    line-height: var(--gr);
}

.vc_tta-panel-body .wpb_wrapper h4 {
    font-size: var(--h4-font-size) !important;
    color: var(--primary-color) !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    display: inline-block !important;
    padding-bottom: 5px !important;
}

.vc_tta-panel-body .wpb_wrapper p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.vc_tta-panel-heading {
    background: var(--light-gray);
    margin-bottom: 8px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vc_tta-panel-heading:hover {
    box-shadow: var(--card-shadow);
}

.vc_tta-panel-title a {
    text-align: left;
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    text-decoration: none;
    display: block;
    color: var(--secondary-color) !important;
}

.vc_tta-panel.vc_active .vc_tta-panel-heading {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow);
}

.vc_tta-panel.vc_active .vc_tta-panel-title a {
    color: white !important;
    font-weight: 700 !important;
}

.vc_general.vc_pagination {
    display: none !important;
}

.vc_tta.vc_tta-shape-round.vc_tta-tabs .vc_tta-panels {
    border-radius: var(--border-radius) !important;
    border: 1px solid #f0f0f0 !important;
}

.vc_tta.vc_tta-shape-round .vc_tta-tabs-container {
    border-radius: var(--border-radius) !important;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0 !important;
    margin: 0;
}

.vc_tta.vc_tta-shape-round .vc_tta-panel-body,
.vc_tta.vc_tta-shape-round .vc_tta-panel-heading {
    border-radius: 0 !important;
}

@media (max-width: 767px) {
    .vc_tta.vc_tta-shape-round .vc_tta-panel-heading {
        padding: 0 !important;
    }

    .vc_tta.vc_tta-shape-round .vc_tta-panel-title a {
        padding: 1rem 1.5rem !important;
    }

    .vc_tta.vc_tta-shape-round .vc_tta-panel-body {
        padding: 1rem !important;
    }
}

.vc_tta.vc_tta-shape-round .vc_tta-tabs-container {
    margin: 0;
}

.vc_tta.vc_tta-shape-round .vc_tta-tab>a {
    border-radius: var(--border-radius) !important;
    border: 1px solid #f0f0f0 !important;
}

.vc_non_responsive .vc_tta.vc_tta-shape-round.vc_tta-tabs .vc_tta-panels,
.vc_tta-o-non-responsive .vc_tta.vc_tta-shape-round.vc_tta-tabs .vc_tta-panels {
    border-radius: var(--border-radius) !important;
    border: 1px solid #f0f0f0 !important;
}

@media (min-width:768px) {
    .vc_tta.vc_tta-shape-round.vc_tta-tabs .vc_tta-panels {
        border-radius: var(--border-radius) !important;
        border: 1px solid #f0f0f0 !important;
    }
}

.vc_tta-tab.vc_active a .vc_tta-title-text {
    color: var(--primary-color) !important;
}

.vc_tta-gap-20 {
    margin: 0 !important;
}

.vc_tta-tabs-position-left .vc_tta-tabs-list>li {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.vc_tta-gap-20 {
    gap: 1rem !important;
}

/* Modify choices and tags on blog page*/
.tag-dropdown {
    position: relative;
    display: inline-block;
    min-width: 220px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tag-dropdown .choices {
    min-width: 240px;
    font-size: 1rem;
}

.tag-dropdown .choices__inner {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    color: var(--secondary-color);
    padding: 0.6rem 1.6rem;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.tag-dropdown .choices__list--dropdown {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    background: white;
    overflow: hidden;
    margin-top: 6px;
    animation: fadeIn 0.25s ease;
    z-index: 100;
}

.tag-dropdown .choices__list--dropdown .choices__item--selectable {
    padding: 0.75rem 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tag-dropdown .choices__list--dropdown .choices__item--selectable:last-child {
    border-bottom: none;
}

.tag-dropdown .choices__list--dropdown .choices__item--selectable:hover {
    background: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(4px);
}

.tag-dropdown .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: var(--primary-hover);
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .tag-dropdown {
        width: 100%;
    }

    .tag-dropdown .choices {
        min-width: 100%;
    }

    .tag-dropdown .choices__inner {
        padding: 0.8rem 1.4rem;
        font-size: 1rem;
    }

    .tag-dropdown .choices__inner::after {
        right: 1rem;
    }
}

.choices__list--single {
    display: inline-block;
    padding: 0 !important;
    width: 100%;
}

.afri-tab-content .focus-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Target the paragraph description in your resource cards */
.afri-tab-content .focus-card p {
    /* 1. Force the text to justify */
    text-align: justify;

    /* 2. Enable Hyphenation (Modern Browser Support) */
    /* This allows words to break at hyphens, minimizing large gaps */
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;

    /* 3. Optional: Control word spacing (use with caution as it can reduce readability) */
    /* This can slightly tighten the spacing between words before the browser applies the full justification stretch. */
    word-spacing: -1px;

    /* Standard styling from previous response */
    color: #666;
}