/* Recent Activities public page: thumbnail grid, details view, lightbox.
 * Static asset (not baked per-save into page_content) so styling is always
 * current on every server as soon as this file is deployed, and isn't
 * affected by a Content-Security-Policy that blocks inline <style> blocks. */

.ra-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.ra-wrapper .ra-search-input {
    color: #222 !important;
    background: #fff;
}
.ra-wrapper .ra-search-input::placeholder {
    color: #8a8a8a;
}
.ra-wrapper .ra-search-input:focus {
    outline: none;
    border-color: #14532d !important;
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.12);
}

.ra-wrapper .ra-pagination button:not(:disabled):hover {
    background: #14532d !important;
    color: #fff !important;
    border-color: #14532d !important;
}

.ra-wrapper .ra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 992px) {
    .ra-wrapper .ra-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .ra-wrapper .ra-grid {
        grid-template-columns: 1fr;
    }
    .ra-wrapper .ra-search-input {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

.ra-wrapper .ra-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f6b3a, #14532d);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: none;
    padding: 0;
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease;
}
.ra-wrapper .ra-card:hover,
.ra-wrapper .ra-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(20, 83, 45, 0.22);
    outline: none;
}
.ra-wrapper .ra-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.ra-wrapper .ra-card:hover img {
    transform: scale(1.06);
}
.ra-wrapper .ra-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}
.ra-wrapper .ra-card-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ra-wrapper .ra-img-box {
    cursor: zoom-in;
}
.ra-wrapper .ra-img-box img {
    transition: transform .35s ease;
}
.ra-wrapper .ra-img-box:hover img {
    transform: scale(1.06);
}

.ra-wrapper .ra-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}
.ra-wrapper .ra-lightbox-close:hover {
    opacity: 0.75;
}

.ra-wrapper .ra-back-btn {
    background: none;
    border: none;
    color: #14532d;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
}
.ra-wrapper .ra-back-btn:hover {
    text-decoration: underline;
}

.ra-wrapper .ra-details-header {
    background: #14532d;
    border-radius: 10px;
    padding: 28px 24px;
    margin-bottom: 24px;
}
.ra-wrapper .ra-details-header h2 {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
}

.ra-wrapper .ra-details-description {
    text-align: left;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
}
.ra-wrapper .ra-details-description p {
    margin: 0 0 14px 0;
}
