.programme-card {
    border-radius: 16px;
    border: 1px solid var(--alpha-dark-200, rgba(26, 26, 26, 0.20));
    background: var(--Basic-Colour-White, #FFF);
    display: flex;
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 260px;
}

.programme-type {
    padding: 5px 10px;
    gap: 8px;
    border-radius: 4px;
    background: var(--Primary-Blue-500, #2DA1FF);
    font-size: 12px;
    max-width: max-content;
    color: white;
}

.programme-date {
    color: var(--alpha-dark-500, rgba(26, 26, 26, 0.48));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.programme-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
}

.programme-excerpt {
    color: var(--alpha-dark-700, rgba(26, 26, 26, 0.70));
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.photo-actions-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    /* position:absolute; */
    /* top: 15em;
    padding: 10px;
    right: 1px; */
}

.sidc-shared-btn {
    padding: 0 !important;
    padding-right: 5em !important;
}

.photo-actions-search .share {
    display: flex;
    align-items: center;
}

.photo-actions-search .read-button {
    display: flex;
    align-items: center;
    gap: 8px;
}

button {
    border: none;
    color: #2D69CD;
    font-size: 14px;
}

button:hover {
    background-color: none;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
}

/* Default circular page numbers */
.pagination .page-numbers {
    --pg-size: 40px;
    --pg-border: #2D69CD;
    --pg-bg: #fff;
    --pg-text: #2D69CD;

    width: var(--pg-size);
    height: var(--pg-size);
    border-radius: 50%;
    border: 1.5px solid var(--pg-border);
    background: var(--pg-bg);
    color: var(--pg-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font: 600 14px/1.1 'Poppins', sans-serif;
    transition: all 0.15s ease;
    min-width: var(--pg-size);
    box-sizing: border-box;
}

/* Hover state */
.pagination a.page-numbers:hover {
    background: #E9F1FF;
    border-color: #2D69CD;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 105, 205, .15);
}

/* Active (current) page */
.pagination .page-numbers.current {
    background: #2D69CD;
    border-color: #2D69CD;
    color: #fff;
    box-shadow: 0 6px 16px rgba(45, 105, 205, .25);
}

/* Dots */
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #7A8CB2;
    box-shadow: none;
}

/* "Next" and "Prev" — no circle, just text */
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    border: none;
    background: transparent;
    color: #2D69CD;
    font-weight: 600;
    font-size: 14px;
    width: auto;
    height: auto;
    min-width: unset;
    border-radius: 0;
    box-shadow: none;
    padding: 0 6px;
}

/* Hover effect for Next/Prev */
.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    color: #0045B3;
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

.event-search-category {
    display: block !important;
    background: black;
    color: #fff;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 45px !important;
    text-align: center !important;
}

.tribe-events-calendar-list__event-search-date-tag {
    background: #185194 !important;
    padding: 8px !important;
    border-radius: 10px !important;
    width: auto !important;
    height: 80px !important;
    color: white;
    text-align: center !important;
    position: relative !important;
    z-index: 10000 !important;
}

.daynum {
    font-size: 14px !important;
    font-weight: bold;
}

.weekday {
    font-size: 16px !important;
}

.datetag-container-search {
    margin-right: 20px !important;
    margin-left: 15px !important;
    position: absolute;
    top: -15px !important;
    left: 10px !important;
    z-index: 10005 !important; /* ensure this sits above hidden panel */
    pointer-events: auto !important;
}

/* Ensure the event card establishes a local stacking context so the datetag sits above siblings */
.event-search-card {
    position: relative; /* creates stacking context for child absolute elements */
    z-index: 0;
}

.event-search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-search-actions .share {
    display: flex;
    align-items: center;
}

.event-search-actions .read-button {
    display: flex;
    align-items: center;
    gap: 8px;
}

button:hover,
button:active,
button:target,
button:focus,
button:focus-visible,
button:focus-within {
    background-color: white !important;
    color: black !important;
}

.event-search-card {
        display: flex;
        gap: 16px;
        align-items: flex-start;
        margin-bottom: 30px;
        padding: 0px !important;
    }

.event-search-content {
    border-radius: 16px;
    border: 1px solid var(--alpha-dark-200, rgba(26, 26, 26, 0.20));
    background: var(--Basic-Colour-White, #FFF);
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
}

.event-search-content.half {
    max-width: 30% !important;
    transition: all 0.3s ease-out !important;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
    height: 180px;
    max-height: 180px;
    overflow: visible;
}

.event-search-image {
    flex: 0 0 140px;
    border-radius: 10px;
}

.event-search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.event-search-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1;
}

.organizer-section {
    font-size: 12px;
    color: #555;
}

.event-search-content.half .event-search-info {
  display: none;
}

.read-button:hover,
.read-button:focus,
.read-button:active,
.read-button:target,
.read-button:visited,
.read-button-2:hover,
.read-button-2:focus,
.read-button-2:active,
.read-button-2:target,
.read-button-2:visited {
    background-color: transparent !important;
    color: black !important;
    box-shadow: none !important;
    outline: none !important;
}

.header-section {
    padding-top: 3em;
    padding-bottom: 3em;
}

.header-title {
    color: #004890;
}

.header-sub {
    color: #185194;
}

.event-search-actions-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    font-size: larger !important;
    row-gap: 80px;
}

.event-search-actions-2 .read-button-2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-2 {
    margin-left: auto; 
}

/* Ensure content area grows so the actions block can sit at the bottom */
.programme-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0; /* avoid overflow of long text */
}

/* Push the actions group to the bottom of the card */
.photo-actions-search {
    margin-top: auto;
}