/*
Theme Name: CustomCIPIT
Theme URI: https://cipit.org/
Author: Kevin Muchwat
Author URI: https://github.com/Muchwat
Description: A custom WordPress theme developed for the Centre for Intellectual Property and Information Technology Law (CIPIT) at Strathmore University. The theme focuses on research, innovation, digital rights, data protection, artificial intelligence, and intellectual property in Africa.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: research, education, law, policy, technology, responsive, accessibility-ready
Text Domain: customcipit
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
*/


.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: 1.4rem;
    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;
    z-index: 20;
}

.tag-dropdown .choices {
    min-width: 220px;
    font-size: 1rem;
    border-radius: 30px;
}

.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%;
}


/* ==== CIPIT SCOPED PUBLICATIONS (namespaced and robust) ==== */

/* Ensure the outer wrapper doesn't collapse due to parent rules */
.cipit-scoped-publications {
    width: 100%;
    margin: 2rem auto;
    box-sizing: border-box;
}

/* Force grid layout (use minmax(0,1fr) to avoid flexbox / width issues) */
.cipit-scoped-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: start;
    box-sizing: border-box;
}

/* Responsive fallback: 2 columns on medium screens, 1 on small */
@media (max-width: 1024px) {
    .cipit-scoped-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .cipit-scoped-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

.cipit-scoped-item {
    display: block;
    background: transparent;
    box-sizing: border-box;
}

.cipit-scoped-cover {
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 3 / 4;
    background: white;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--card-transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cipit-scoped-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
    transition: transform .25s ease;
}

.cipit-scoped-cover a {
    display: block;
    width: 100%;
    height: 100%;
}

.cipit-scoped-img:hover {
    transform: scale(1.03);
}

.cipit-scoped-content {
    padding-top: .5rem;
}

.cipit-scoped-title {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.cipit-scoped-title:hover {
    color: var(--primary-color);
}

.cipit-scoped-articles {
    width: 100%;
    margin: 2rem auto;
    box-sizing: border-box;
}

.cipit-scoped-articles-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: start;
}

@media (max-width: 1024px) {
    .cipit-scoped-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .cipit-scoped-articles-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* Card styling */
.cipit-article-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cipit-article-cover a {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
}

.cipit-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.cipit-article-cover:hover .cipit-article-img {
    transform: scale(1.05);
}

.cipit-article-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cipit-article-title {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cipit-article-title:hover {
    color: var(--primary-color);
}

/* CIPIT - PT ContentView Books Grid Fix */
.pt-cv-taxoterm.above_title,
.pt-cv-content {
    display: none !important;
}

/* --- CIPIT Reports Title Refinement (Generic) --- */
.pt-cv-view.pt-cv-grid .pt-cv-title {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-top: 0.6rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0 0.5rem !important;
    color: var(--primary-color) !important;
    min-height: 2.8em !important;
    text-align: justify;
    word-break: break-word;
}

.pt-cv-view.pt-cv-grid .pt-cv-title a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transition: color 0.2s ease-in-out;
}

.pt-cv-view.pt-cv-grid .pt-cv-title a:hover {
    color: var(--primary-dark) !important;
}

/* Optional: adjust title size on mobile */
@media (max-width: 640px) {
    .pt-cv-view.pt-cv-grid .pt-cv-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
}

/* Image styling (already generic — no changes needed) */
.pt-cv-ifield img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 640 / 830;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.research-articles .pt-cv-ifield img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 720 / 480;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pt-cv-ifield img:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.re-output-content .re-tab-content {
    display: none !important;
    /* Force content to hide */
}

/* Only the active content is shown */
.re-output-content .re-tab-content.active {
    display: block !important;
    /* Force active content to show */
}

.re-output-content {
    position: relative;
    min-height: 200px;
}

/* --- Video Embeds: Responsive 720x480 Style --- */
.wpb_wrapper iframe,
.vc_tta-panel-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Enforce 720x480 ratio */
    border-radius: 16px;
    border: none;
    overflow: hidden;
    background: #000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Lift for Modern Feel */
.wpb_wrapper iframe:hover,
.vc_tta-panel-body iframe:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Optional: Add consistent spacing between videos */
.vc_tta-panel-body iframe+iframe,
.wpb_wrapper iframe+iframe {
    margin-top: 2rem;
}

/* Adjust layout on smaller screens */
@media (max-width: 768px) {

    .wpb_wrapper iframe,
    .vc_tta-panel-body iframe {
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }
}

/* === Research Outputs Container === */

.re-output-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* === Dashboard Grid === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Flexible 4-column layout */
    gap: 1.5rem;
    justify-items: stretch;
    align-items: stretch;
}

/* Each dashboard card */
.dashboard-grid .focus-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.05));
    border: 1px solid #e5e7eb;
    text-align: left;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.dashboard-grid .focus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow, 0 12px 30px rgba(0, 0, 0, 0.15));
}

/* Title and description */
.dashboard-grid .focus-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.dashboard-grid .focus-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}