/* Related Modules - Loop Template: layout only, the loop template carries the card design */
.rml-wrapper {
    width: 100%;
    position: relative;
}
.rml-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rml-gap, 24px);
    width: 100%;
    transition: opacity 0.2s ease;
}
.rml-container.rml-center {
    justify-content: center;
}
.rml-container.rml-is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.rml-item {
    flex: 0 0 calc((100% - (var(--rml-columns, 3) - 1) * var(--rml-gap, 24px)) / var(--rml-columns, 3));
    min-width: 0;
    box-sizing: border-box;
}
.rml-item > .elementor {
    height: 100%;
}

/* Category filter: font, colours and borders come from the theme / Site Settings > Form Fields
   unless they are set in the widget's style tab. */
.rml-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 24px;
}
.rml-filter-select-wrapper {
    position: relative;
    width: 280px;
    max-width: 100%;
}
.rml-filter-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1em;
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.rml-filter-select {
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}
/* Keeps room for the arrow whatever padding the site sets. */
.rml-wrapper .rml-filter .rml-filter-select {
    padding-right: 2.5em;
}

.rml-load-more-container {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}
.rml-load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #002E4F;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.rml-load-more-btn:hover {
    background-color: #001f35;
}
.rml-load-more-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}
.rml-infinite-loader {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}
.rml-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 46, 79, 0.1);
    border-radius: 50%;
    border-top-color: #002E4F;
    animation: rml-spin 0.8s linear infinite;
}
@keyframes rml-spin {
    to { transform: rotate(360deg); }
}
.rml-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.rml-pagination a,
.rml-pagination span {
    display: inline-block;
    padding: 8px 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}
.rml-pagination a:hover {
    background-color: #f5f5f5;
}
.rml-pagination span.current {
    font-weight: 700;
    color: #002E4F;
}
.rml-notice {
    padding: 20px;
    text-align: center;
    color: #888;
    border: 1px dashed #ccc;
}
