#ui-datepicker-div {
	z-index: 99999 !important;
}

.ui-datepicker {
	background: #2f2c46;
	border: 1px solid #d8845a;
	padding: 12px;
	border-radius: 12px;
	width: 320px !important;
	box-sizing: border-box;
}

.ui-datepicker * {
	box-sizing: border-box;
}

.ui-datepicker .ui-datepicker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.ui-datepicker .ui-datepicker-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.ui-datepicker .ui-datepicker-title select {
	width: auto !important;
	height: auto !important;
	padding: 4px 8px !important;
	margin: 0 !important;
}

.ui-datepicker table {
	width: 100% !important;
	border-collapse: collapse !important;
	margin: 0;
}

.ui-datepicker th,
.ui-datepicker td {
	padding: 4px !important;
	text-align: center !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
	display: block !important;
	padding: 8px 0 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	color: #d8845a;
}

.ui-datepicker td.ui-datepicker-current-day a,
.ui-datepicker td.ui-datepicker-today a {
	background: #d8845a;
	color: #fff;
	border-radius: 999px;
}

.ui-datepicker .ui-datepicker-next, 
.ui-datepicker .ui-datepicker-prev {
	color: #d8845a;
	margin-right: 0.25rem;
}


.screen-reader-text {
	display: none;
}

.desktop-menu-group-top .mega-nav.mega-nav-image-box li.menu-item .mega-nav-item-image {
	border: 0.7px solid #fff !important;
}

/* Insight - Key Data Styles */
.key-data-page-badge {
	margin: 0 0 1rem;
	padding: 0.5rem 1.5rem;
	background-color: #5670B7;
	font-weight: 800;
	line-height: 1;
	max-width: -moz-fit-content;
	max-width: fit-content;
	border-radius: 2rem;
}

.key-data-page-last-updated {
    color: #CAD8FF;
    font-weight: 700;
    font-size: 1.5rem;
}

.report-page-content {
    margin-top: 2rem;;
}

@media (max-width: 991px) {
    .key-data-page-image-group {
        display: none;
    }
}

/* Insight - Table Styles Inside Wysiwyg */
.wysiwyg table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 8px;
    color: #110f21;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.65) rgba(255, 255, 255, 0.2);
}

.wysiwyg table thead th,
.wysiwyg table tr:first-child th {
    background-color: #5c75bd;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 1.25rem 1.5rem;
}

.wysiwyg table tbody td {
    padding: 1.25rem 1.5rem;
    background-color: #d8e5f8;
    color: #110f21;
}

.wysiwyg table tbody tr:nth-child(even) td {
    background-color: #c5d4ec;
}

.wysiwyg table th,
.wysiwyg table td {
    min-width: 140px;
    white-space: normal;
    border-right: 1px solid #4b63a3;
    border-bottom: 1px solid #4b63a3;
}

/* Slightly darker header borders for better merged-cell visibility */
.wysiwyg table thead th {
    border-right-color: #3f568f;
    border-bottom-color: #3f568f;
}

/* Remove duplicate final right edge */
.wysiwyg table th:last-child,
.wysiwyg table td:last-child {
    border-right: 0;
}

/* Only round the real outside corners of the table */
.wysiwyg table thead tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.wysiwyg table thead tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

/* Remove radius from child/header rows so merged columns don't look weird */
.wysiwyg table thead tr:not(:first-child) th {
    border-radius: 0;
}

.wysiwyg table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.wysiwyg table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Scrollbar styling - only visible when the table overflows */
.wysiwyg table::-webkit-scrollbar {
    height: 10px;
}

.wysiwyg table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.wysiwyg table::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
}

.wysiwyg table::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.9);
}


/* Insight - About Page */
.banner--has-hero-image .banner-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 4rem;
    align-items: stretch;
    min-height: 420px;
}

.banner--has-hero-image .banner-content {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner--has-hero-image .banner-hero-image {
    height: 100%;
    display: flex;
}

.banner--has-hero-image .banner-hero-image__img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

@media (max-width: 991px) {
    .banner--has-hero-image .banner-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: 0;
    }

    .banner--has-hero-image .banner-content {
        max-width: none;
    }

    .banner--has-hero-image .banner-hero-image {
        height: auto;
    }

    .banner--has-hero-image .banner-hero-image__img {
        height: auto;
    }
}

/* Insight - Existing Member Checker */
.existing-member-checker {
    /* background-color: #110f21; */
}

.existing-member-checker__box {
    background: linear-gradient(110deg, #ffffff 0%, #ffffff 65%, #e4d3f0 100%);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 100%;
}

.existing-member-checker__content {
    max-width: 800px;
    margin-bottom: 1.5rem;
	color: #201F2F;
}

.existing-member-checker__form {
    display: flex;
    gap: 1rem;
    align-items: center;
	max-width: 800px;
}

.existing-member-checker__input-wrap {
    position: relative;
    flex: 1;
}

.existing-member-checker__icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #110f21;
    opacity: 0.75;
}

.existing-member-checker__input {
    width: 100%;
    border: 1px solid #8248af;
    border-radius: 999px;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    background: #7543A31A;
}

.existing-member-checker__submit {
    border-radius: 999px;
    min-width: 120px;
	padding: 1rem 2rem;
	background-color: #8248af;
	transition: all 0.2s ease;
}


.existing-member-checker__submit:hover {
	color: #8248af;
	border: 1px solid #8248af;
	background-color: transparent;
}


.existing-member-checker__result {
    margin-top: 1.75rem;
	color: #110f21;
}

.existing-member-checker__divider {
    border-top: 1px dashed rgba(123, 66, 178, 0.35);
    margin-bottom: 1.5rem;
}

.existing-member-checker__result-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.existing-member-checker__status--none {
    color: #d32f2f;
}

.existing-member-checker__status--registered {
    color: #00a86b;
     margin-right: 0.5rem;
}

@media (max-width: 767px) {
    .existing-member-checker__box {
        padding: 1.5rem;
    }

    .existing-member-checker__form {
        flex-direction: column;
        align-items: stretch;
    }

    .existing-member-checker__result-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.existing-member-checker__status--none,
.existing-member-checker__status--error,
.existing-member-checker__status--generic {
    color: #d71920;
    font-weight: 700;
}

.existing-member-checker__status--registered {
    color: #00a86b;
    font-weight: 700;
}

.existing-member-checker__sub-message {
    margin-top: 0.35rem;
}

.existing-member-checker__subscriber-count,
.existing-member-checker__membership-link,
.existing-member-checker__download-link {
    color: #536db5;
    font-weight: 700;
    text-underline-offset: 3px;
}

.existing-member-checker__membership-link {
    text-decoration: underline;
}

.existing-member-checker__download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Insight - Members Page */
.members-page {
    background-color: #110f21;
    color: #fff;
}

.members-page-intro {
    padding: 4rem 0 2rem;
}

.members-logo-section {
    padding: 4rem 0;
    background-color: #110f21;
}

.members-logo-section__header {
    margin-bottom: 2.5rem;
    max-width: 960px;
}

.members-logo-section__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2.5rem 3rem;
    align-items: center;
}

.members-logo-section__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 100%;
}

.members-logo-section__link {
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.members-logo-section__link:hover,
.members-logo-section__link:focus {
    text-decoration: none;
}

.members-logo-section__logo {
    max-width: 160px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.members-logo-section__link .members-logo-section__logo {
    display: block;
}

@media (max-width: 1199px) {
    .members-logo-section__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .members-logo-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .members-logo-section__logo {
        max-width: 140px;
    }
}

@media (max-width: 420px) {
    .members-logo-section__grid {
        grid-template-columns: 1fr;
    }
}

/* Insight - Single Members Page */
.single-member-page {
    background-color: #110f21;
    color: #fff;
}

.single-member-hero {
    padding: 3rem 0 3rem;
    background-color: #242136;
}

.single-member-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 4rem;
    align-items: center;
}

.single-member-hero__badge {
    display: inline-flex;
    margin-bottom: 1rem;
}

.single-member-hero__title {
    color: #fff;
    margin-bottom: 0;
}

.single-member-hero__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-member-hero__logo {
    max-width: 220px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.single-member-content-section {
    padding: 3rem 0 5rem;
    background-color: #110f21;
}

.single-member-content {
    max-width: 760px;
    color: #fff;
}

.single-member-content a,
.single-member-navigation a {
    color: #d8845a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-member-website {
    margin-top: 2rem;
}

.single-member-navigation {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .single-member-hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .single-member-hero__logo-wrap {
        justify-content: flex-start;
    }

    .single-member-hero__logo {
        max-width: 180px;
    }
}

/* Image Optimsation Fixes */
.report-page-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 0.6rem;
    margin-bottom: 2rem;
}

.gambod-explainer-icon-list-image img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    object-position: center center;
}

.report-card .report-originator-img img
 {
    width: 70px;
    margin-top: 10px;
    margin-left: 10px;
    border-radius: 100%;
    background-color: #ffffff;
    padding: 5px;
}

.icon-list-card-image img
 {
	 height: 3rem;
	 width: 3rem;
	 object-fit: contain;
	 object-position: center center;
}

.text-media-image img {
	max-width: 100%;
	height: auto;
	border-radius: 0.6rem;
}

.report-page-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center top;
	border-radius: 0.6rem;
	margin-bottom: 2rem;
}

.figures__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.banner--has-hero-image .banner-hero-image__img img {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	display: block;
	object-fit: cover;
}

@media (max-width: 991px) {
    .banner--has-hero-image .banner-hero-image__img {
			height: auto;
    }
}

.feature-icon-list__icon-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.single-member-hero__logo img {
    max-width: 220px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .single-member-hero__logo img {
        max-width: 180px;
    }
}

.industry-insight-page-image img {
    display: block;
    width: 100%;
    height: 15rem;
    max-width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center center;
    object-position: center center;
    border-radius: 0.6rem;
}

.documents-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.blog-page-image img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    object-position: center top;
    border-radius: 0.6rem;
    margin-bottom: 2rem;
}

.report-card .report-originator-img  {
    width: 70px;
    margin-top: 10px;
    margin-left: 0 !important;
    border-radius: 100%;
    background-color: transparent !important;
    padding: unset !important;
}

.report-card .report-originator-img img {
    width: 70px;
    margin-top: 10px;
    margin-left: 10px;
    border-radius: 100%;
    background-color: #ffffff;
    padding: 5px;
}

/* Card WEBP conversion */
.report-card-image-group {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.report-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.report-card-main-image,
.report-card-main-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.report-card-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.report-card-image-group {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.report-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.report-card-main-image,
.report-card-main-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.report-card-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Highlights Section Cards */
.highlights-card {
    position: relative;
    overflow: hidden;
}

.highlights-card-media-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.highlights-card-media-wrap picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.highlights-card-media-wrap img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.highlights-card-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(35, 34, 54, 0.60);
    pointer-events: none;
}

.highlights-card-subtitle,
.highlights-card-title,
.highlights-card-body,
.highlights-card-link {
    position: relative;
    z-index: 2;
}

/* Hero Banner Image */
.banner {
    position: relative;
}

.banner-background-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.banner-background-media picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.banner-background-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
}

.banner-background-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(17, 15, 33, 0.5);
    pointer-events: none;
}

.banner > header {
    position: relative;
    z-index: 10;
}

.banner .banner-container {
    position: relative;
    z-index: 2;
}

.banner-background-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: right center;
}

@media (min-width: 768px) {
    .banner-background-media img {
        object-position: center center;
    }
}

/* Latest Report Cards */
.report-card-image-group {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.report-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.report-card-main-image,
.report-card-main-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.report-card-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Blog Card */
.blog-card-image-group {
    position: relative;
}

.blog-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 300px; /* use the same height the old card had */
    overflow: hidden;
}

.blog-card-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Single Group - Related Posts Fix */
@media (min-width: 992px) {

    .latest-posts-container.no-tweets {
        grid-template-areas: none;
        grid-template-columns: 1fr;
    }

    .latest-posts-container.no-tweets .latest-posts-reports,
    .latest-posts-container.no-tweets .latest-posts-insights,
    .latest-posts-container.no-tweets .latest-posts-news {
        grid-area: auto;
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .latest-posts-container.latest-posts-count-1 {
        grid-template-areas: none;
        grid-template-columns: 1fr;
    }

    .latest-posts-container.latest-posts-count-1 > div {
        grid-area: auto;
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

.members-logo-section__link .members-logo-section__logo img {
    max-width: 160px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* WP Admin Bar Site Icon Fix */
#wpadminbar .site-icon {
    display: inline-flex;
}
#wpadminbar .site-icon img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}