/* =========================================================
   Andel Ritzau Presse
   Simpelt kort-grid med seneste pressemeddelelser
   Farver: baggrund #134343, kant #406965, tekst hvid
   ========================================================= */

.arp {
    --arp-bg: #134343;
    --arp-border: #406965;
    --arp-text: #ffffff;
    --arp-muted: rgba(255, 255, 255, 0.75);

    box-sizing: border-box;
}

.arp *,
.arp *::before,
.arp *::after {
    box-sizing: border-box;
}

/* ---------- Grid ---------- */
.arp__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* ---------- Kort ---------- */
.arp__card {
    display: flex;
    flex-direction: column;
    background: var(--arp-bg);
    color: var(--arp-text);
    border: 1px solid var(--arp-border);
    border-radius: 16px;
    overflow: hidden;
}

.arp__image-link {
    display: block;
    line-height: 0;
}

.arp__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* ---------- Tekstindhold ---------- */
.arp__body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    flex: 1 1 auto;
}

.arp__meta {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--arp-muted);
}

.arp__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
}

.arp__title a {
    color: var(--arp-text) !important;
    text-decoration: none;
}

.arp__title a:hover,
.arp__title a:focus-visible {
    text-decoration: none;
}

.arp__excerpt {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--arp-muted);
}

/* ---------- Læs mere ---------- */
.arp__more {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    color: var(--arp-text) !important;
    font-weight: 600;
    text-decoration: none;
}

.arp__more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--arp-border);
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.arp__more:hover .arp__more-icon,
.arp__more:focus-visible .arp__more-icon {
    background: var(--arp-border);
}

/* ---------- Se flere-knap ---------- */
.arp__footer {
    margin-top: 2rem;
    text-align: center;
}

.arp__button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--arp-bg);
    border: 1px solid var(--arp-border);
    border-radius: 999px;
    color: var(--arp-text) !important;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.arp__button:hover,
.arp__button:focus-visible {
    background: var(--arp-border);
}

/* ---------- Responsivt ---------- */
@media (max-width: 1024px) {
    .arp__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .arp__grid {
        grid-template-columns: 1fr;
    }
}
