/* ================================================================
   Dual Related Posts — Front-end Styles
   Matches the two designs shown in the screenshots exactly.
================================================================ */

/* ── Shared reset ───────────────────────────────────────────── */
.drp-block {
    margin: 32px 0;
    font-family: inherit;
    box-sizing: border-box;
}
.drp-block *,
.drp-block *::before,
.drp-block *::after {
    box-sizing: inherit;
}
.drp-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.drp-block a {
    text-decoration: none !important;
    color: inherit;
}
.drp-block a:hover {
    text-decoration: none !important;
}

/* ================================================================
   STYLE 1 — YOU MAY LIKE  (Tom's Guide minimal)
================================================================ */
.drp-block-s1 {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

/* Heading row with lines either side */
.drp-s1-heading-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.drp-s1-line {
    flex: 1;
    height: 1px;
    background: #d1d5db;
}
.drp-s1-heading {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #111827;
    margin: 0;
    white-space: nowrap;
}

/* List */
.drp-s1-list {
    display: flex;
    flex-direction: column;
}

.drp-s1-item {
    border-bottom: 1px solid #e2e8f0;
}
.drp-s1-item:last-child {
    border-bottom: none;
}

.drp-s1-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    transition: color 0.2s;
}
.drp-s1-link:hover {
    color: #2563eb;
}

/* Thumbnail placement — right (default) */
.drp-s1-item.thumb-right .drp-s1-link {
    flex-direction: row;
}
/* Thumbnail placement — left */
.drp-s1-item.thumb-left .drp-s1-link {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.drp-s1-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    color: #111827;
    transition: color 0.2s;
    text-decoration: none !important;
}
.drp-s1-link:hover .drp-s1-title {
    color: #2563eb;
}

.drp-s1-thumb {
    flex-shrink: 0;
    width: 110px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}
.drp-s1-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================================================================
   STYLE 2 — EDITORS' RECOMMENDATIONS  (coloured card)
================================================================ */
.drp-block-s2 {
    border-radius: 10px;
    padding: 20px 22px 6px;
    /* bg-color is set inline via PHP */
}

.drp-s2-heading {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--drp-s2-heading-color, #0a7c6e);
    margin: 0 0 16px;
}

.drp-s2-list {
    display: flex;
    flex-direction: column;
}

.drp-s2-item {
    border-top: 1px solid rgba(0,0,0,.08);
}
.drp-s2-item:first-child {
    border-top: none;
}

.drp-s2-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    transition: color 0.2s;
}
.drp-s2-link:hover .drp-s2-title {
    color: var(--drp-s2-hover-color, #0a7c6e);
}

.drp-s2-thumb {
    flex-shrink: 0;
    width: 110px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}
.drp-s2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drp-s2-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    transition: color 0.2s;
    text-decoration: none !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .drp-s1-thumb {
        width: 90px;
        height: 68px;
    }
    .drp-s2-thumb {
        width: 90px;
        height: 74px;
    }
    .drp-s1-title,
    .drp-s2-title {
        font-size: 16px;
    }
    .drp-s1-heading,
    .drp-s2-heading {
        font-size: 14px;
    }
}
