/* ══════════════════════════════════════════════════════
   LATEST TREK STORIES — lp-section
══════════════════════════════════════════════════════ */

.lp-section {
    width: 88%;
    max-width: 1200px;
    margin: 0px auto 0;
    padding: 0;
}

/* ── Section header ─────────────────────────────── */

.lp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.lp-head-text { flex-shrink: 0; }

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pridim);
    margin-bottom: 10px;
}

.lp-eyebrow svg { flex-shrink: 0; stroke: var(--pridim); }

.lp-title {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    border: none !important;
    background: none !important;
}

.lp-title span { color: var(--pridim); }

/* ── Filter pills ───────────────────────────────── */

.lp-head-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.lp-pill {
    padding: 7px 16px;
    border-radius: 30px;
    border: 1.5px solid #e0e0e0;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.lp-pill:hover,
.lp-pill-on {
    background: var(--bgdim);
    border-color: var(--bgdim);
    color: white;
}

/* ── 3-column card grid ─────────────────────────── */

.lp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Single card ────────────────────────────────── */

.lp-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--prigri);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 3;
    border-radius: 18px 18px 0 0;
}

.lp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.13);
}

.lp-card:hover::before { transform: scaleX(1); }

/* ── Card image ─────────────────────────────────── */

.lp-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    text-decoration: none;
}

.lp-card-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    min-width: unset !important;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0 !important;
    transition: transform 0.55s ease;
}

.lp-card:hover .lp-card-img-wrap img { transform: scale(1.07); }

.lp-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

/* Bottom gradient — creates depth, text readability */
.lp-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(18,18,43,0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Category pill on the image */
.lp-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--prigri);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    z-index: 2;
    white-space: nowrap;
}

/* ── Card body ──────────────────────────────────── */

.lp-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lp-card-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    line-height: 1.45 !important;
    text-transform: none !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex: 1;
}

.lp-card-title a {
    color: #1a1a1a !important;
    text-decoration: none;
    text-transform: none !important;
}

.lp-card-title a:hover { color: var(--pridim) !important; }

/* ── Meta row ───────────────────────────────────── */

.lp-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    flex-wrap: nowrap;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}

.lp-card-avatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1.5px solid #eee !important;
    flex-shrink: 0;
    margin: 0 !important;
}

.lp-card-author {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.lp-card-sep { color: #ddd; flex-shrink: 0; }

.lp-card-date { color: #aaa; white-space: nowrap; }

.lp-card-read {
    margin-left: auto;
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── See all button ─────────────────────────────── */

.lp-see-all {
    text-align: center;
    padding: 36px 20px 48px;
}

.lp-see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--bgdim);
    color: white !important;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(18,18,43,0.18);
}

.lp-see-all-btn:hover {
    background: var(--pridim);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(233,30,99,0.3);
}

.lp-see-all-btn svg { transition: transform 0.15s; stroke: white; }
.lp-see-all-btn:hover svg { transform: translateX(4px); }

/* ── Pagination ─────────────────────────────────── */

.pagination {
    width: 50%;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    color: var(--bgdim);
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.2s;
}

.pagination a:hover { border-color: var(--pridim); color: var(--pridim); background: #fff8f8; }
.pagination .current { background: var(--pridim); color: #fff; border-color: var(--pridim); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */

@media (max-width: 988px) {
    .lp-section { width: 94%; margin-top: 40px; }
    .lp-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .lp-section-head { flex-direction: column; align-items: flex-start; }
    .lp-title { font-size: 2.2rem !important; }
    .pagination { width: 90%; }
}

@media (max-width: 600px) {
    .lp-section { width: 92%; }
    .lp-grid { grid-template-columns: 1fr; gap: 14px; }
    .lp-title { font-size: 2rem !important; }
}
