.elementor-3505 .elementor-element.elementor-element-8f5173b{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-3505 .elementor-element.elementor-element-e207a9d{width:100%;max-width:100%;}/* Start custom CSS for shortcode, class: .elementor-element-e207a9d *//* =========================================================
   ABOULAY — LATEST OPPORTUNITIES RESPONSIVE TABLE
   Scope: .ab-latest-opportunities only
   ========================================================= */

.ab-latest-opportunities {
    --ab-table-green: #0c5132;
    --ab-table-green-light: #eaf5ef;
    --ab-table-gold: #d5a51f;
    --ab-table-text: #17211c;
    --ab-table-muted: #5e6c63;
    --ab-table-border: #dce5df;
    --ab-table-bg: #ffffff;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    color: var(--ab-table-text);
}

/* Scroll container */
.ab-latest-opportunities .table-responsive,
.ab-latest-opportunities .table-wrapper,
.ab-latest-opportunities .dataTables_wrapper,
.ab-latest-opportunities .wp-block-table,
.ab-latest-opportunities > div:has(> table) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ab-table-green) #e5ebe7;
}

/* Base table */
.ab-latest-opportunities table {
    width: 100%;
    max-width: none;
    min-width: 980px;
    margin: 0;
    border: 1px solid var(--ab-table-border);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: var(--ab-table-bg);
    color: var(--ab-table-text);
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    line-height: 1.45;
}

/* Headers */
.ab-latest-opportunities thead {
    background: var(--ab-table-green);
    color: #ffffff;
}

.ab-latest-opportunities th {
    padding: 14px 12px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.17);
    background: var(--ab-table-green);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.025em;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.ab-latest-opportunities th:last-child {
    border-right: 0;
}

/* Body cells */
.ab-latest-opportunities td {
    padding: 13px 12px;
    border: 0;
    border-bottom: 1px solid var(--ab-table-border);
    color: var(--ab-table-text);
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.ab-latest-opportunities tbody tr:nth-child(even) {
    background: #f7faf8;
}

.ab-latest-opportunities tbody tr:hover {
    background: var(--ab-table-green-light);
}

.ab-latest-opportunities tbody tr:last-child td {
    border-bottom: 0;
}

/* Recommended column widths */
.ab-latest-opportunities th:nth-child(1),
.ab-latest-opportunities td:nth-child(1) {
    width: 23%;
}

.ab-latest-opportunities th:nth-child(2),
.ab-latest-opportunities td:nth-child(2) {
    width: 13%;
}

.ab-latest-opportunities th:nth-child(3),
.ab-latest-opportunities td:nth-child(3) {
    width: 14%;
}

.ab-latest-opportunities th:nth-child(4),
.ab-latest-opportunities td:nth-child(4) {
    width: 13%;
}

.ab-latest-opportunities th:nth-child(5),
.ab-latest-opportunities td:nth-child(5) {
    width: 14%;
}

.ab-latest-opportunities th:nth-child(6),
.ab-latest-opportunities td:nth-child(6) {
    width: 12%;
}

.ab-latest-opportunities th:nth-child(7),
.ab-latest-opportunities td:nth-child(7) {
    width: 11%;
}

/* Links and buttons */
.ab-latest-opportunities a {
    color: var(--ab-table-green);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ab-latest-opportunities a:hover,
.ab-latest-opportunities a:focus-visible {
    color: #073d25;
}

.ab-latest-opportunities td a.button,
.ab-latest-opportunities td a.btn,
.ab-latest-opportunities td .button,
.ab-latest-opportunities td button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 0;
    border-radius: 8px;
    background: var(--ab-table-green);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.ab-latest-opportunities td a.button:hover,
.ab-latest-opportunities td a.btn:hover,
.ab-latest-opportunities td .button:hover,
.ab-latest-opportunities td button:hover {
    background: #147a4a;
    color: #ffffff;
}

/* Status labels */
.ab-latest-opportunities .status,
.ab-latest-opportunities .badge,
.ab-latest-opportunities [class*="status-"] {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--ab-table-green-light);
    color: var(--ab-table-green);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal;
}

/* Search, filters and pagination */
.ab-latest-opportunities input,
.ab-latest-opportunities select {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #b9c8be;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ab-table-text);
    font: inherit;
}

.ab-latest-opportunities input:focus,
.ab-latest-opportunities select:focus {
    border-color: var(--ab-table-green);
    outline: 3px solid rgba(213, 165, 31, 0.25);
}

.ab-latest-opportunities .dataTables_filter,
.ab-latest-opportunities .dataTables_length {
    margin: 0 0 15px;
}

.ab-latest-opportunities .dataTables_info,
.ab-latest-opportunities .dataTables_paginate {
    margin-top: 15px;
    color: var(--ab-table-muted);
    font-size: 0.85rem;
}

/* Scrollbar */
.ab-latest-opportunities ::-webkit-scrollbar {
    height: 10px;
}

.ab-latest-opportunities ::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #e5ebe7;
}

.ab-latest-opportunities ::-webkit-scrollbar-thumb {
    border: 2px solid #e5ebe7;
    border-radius: 999px;
    background: var(--ab-table-green);
}

/* =========================================================
   TABLETS: 768px–1024px
   Keep columns intact with controlled horizontal scrolling
   ========================================================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .ab-latest-opportunities {
        padding-inline: 0;
    }

    .ab-latest-opportunities table {
        min-width: 900px;
        font-size: 0.82rem;
    }

    .ab-latest-opportunities th {
        padding: 12px 10px;
        font-size: 0.72rem;
    }

    .ab-latest-opportunities td {
        padding: 11px 10px;
    }

    .ab-latest-opportunities::after {
        content: "Swipe horizontally to view all opportunity details";
        display: block;
        margin-top: 10px;
        color: var(--ab-table-muted);
        font-size: 0.76rem;
        font-weight: 600;
        text-align: center;
    }
}

/* =========================================================
   MOBILE: up to 767px
   Convert each row into an accessible information card
   ========================================================= */

@media screen and (max-width: 767px) {
    .ab-latest-opportunities {
        width: 100%;
        max-width: 100vw;
        overflow: visible;
    }

    .ab-latest-opportunities .table-responsive,
    .ab-latest-opportunities .table-wrapper,
    .ab-latest-opportunities .dataTables_wrapper,
    .ab-latest-opportunities .wp-block-table,
    .ab-latest-opportunities > div:has(> table) {
        overflow: visible;
    }

    .ab-latest-opportunities table,
    .ab-latest-opportunities thead,
    .ab-latest-opportunities tbody,
    .ab-latest-opportunities tr,
    .ab-latest-opportunities th,
    .ab-latest-opportunities td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .ab-latest-opportunities table {
        border: 0;
        background: transparent;
        table-layout: auto;
    }

    .ab-latest-opportunities thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .ab-latest-opportunities tbody {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .ab-latest-opportunities tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding: 5px 15px;
        border: 1px solid var(--ab-table-border);
        border-left: 4px solid var(--ab-table-gold);
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(16, 55, 35, 0.07);
    }

    .ab-latest-opportunities tbody tr:nth-child(even),
    .ab-latest-opportunities tbody tr:hover {
        background: #ffffff;
    }

    .ab-latest-opportunities td {
        display: grid;
        grid-template-columns: minmax(100px, 37%) minmax(0, 63%);
        gap: 10px;
        align-items: start;
        padding: 10px 0;
        border-bottom: 1px solid var(--ab-table-border);
        font-size: 0.84rem;
        text-align: left !important;
    }

    .ab-latest-opportunities td:last-child {
        border-bottom: 0;
    }

    /* Labels depend on current column order */
    .ab-latest-opportunities td:nth-child(1)::before {
        content: "Opportunity";
    }

    .ab-latest-opportunities td:nth-child(2)::before {
        content: "Country";
    }

    .ab-latest-opportunities td:nth-child(3)::before {
        content: "Sector";
    }

    .ab-latest-opportunities td:nth-child(4)::before {
        content: "Type";
    }

    .ab-latest-opportunities td:nth-child(5)::before {
        content: "Organisation";
    }

    .ab-latest-opportunities td:nth-child(6)::before {
        content: "Deadline";
    }

    .ab-latest-opportunities td:nth-child(7)::before {
        content: "Action";
    }

    .ab-latest-opportunities td::before {
        color: var(--ab-table-green);
        font-size: 0.7rem;
        font-weight: 850;
        letter-spacing: 0.035em;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .ab-latest-opportunities td:nth-child(1) {
        display: block;
        width: 100%;
        padding: 14px 0 12px;
        color: var(--ab-table-text);
        font-size: 1rem;
        font-weight: 800;
    }

    .ab-latest-opportunities td:nth-child(1)::before {
        display: block;
        margin-bottom: 5px;
    }

    .ab-latest-opportunities td a.button,
    .ab-latest-opportunities td a.btn,
    .ab-latest-opportunities td .button,
    .ab-latest-opportunities td button {
        width: 100%;
        max-width: 220px;
    }

    .ab-latest-opportunities .dataTables_filter,
    .ab-latest-opportunities .dataTables_length {
        float: none;
        width: 100%;
        text-align: left;
    }

    .ab-latest-opportunities .dataTables_paginate {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
}

/* Very small phones */
@media screen and (max-width: 390px) {
    .ab-latest-opportunities tbody tr {
        padding-inline: 12px;
    }

    .ab-latest-opportunities td {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .ab-latest-opportunities td a.button,
    .ab-latest-opportunities td a.btn,
    .ab-latest-opportunities td .button,
    .ab-latest-opportunities td button {
        width: 100%;
        max-width: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ab-latest-opportunities *,
    .ab-latest-opportunities *::before,
    .ab-latest-opportunities *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}/* End custom CSS */