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

.lp-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 60px 0 0;
    position: relative;
    /* subtle dot-grid background */
    background-image: radial-gradient(circle, rgba(0,0,0,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
}

/* Wave decoration at the top of the section */
.lp-section::before {
    content: '';
    display: block;
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: white;
    clip-path: ellipse(52% 100% at 50% 0%);
    z-index: 1;
}

.lp-section > * {
    position: relative;
    z-index: 2;
}

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



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

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

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

.lp-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

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

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

.lp-card-img-wrap {
    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.45s ease;
}

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

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

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

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

/* Category pill — inside body */
.lp-card-cat {
    display: inline-block;
    background: rgba(239,68,68,0.07);
    color: var(--pridim);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(239,68,68,0.22);
    align-self: flex-start;
    white-space: nowrap;
}

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

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

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

.lp-card-excerpt {
    font-size: 13.5px;
    color: #666;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-transform: none;
}

.lp-card-date {
    font-size: 11.5px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-card-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11.5px;
    color: #bbb;
    margin-left: auto;
}

.lp-cmt-cnt {
    font-size: 11px;
    font-weight: 700;
    color: var(--pridim);
    background: rgba(239,68,68,0.07);
    border-radius: 10px;
    padding: 1px 5px;
    line-height: 1.4;
}

/* ── Card footer — Read More + action icons ─────── */

.lp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f2f2f2;
}

.lp-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pridim);
    text-decoration: none;
    transition: gap 0.18s;
}
.lp-card-readmore:hover { gap: 9px; color: var(--pridim); }

.lp-card-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.lp-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #bbb;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
    display: flex;
    align-items: center;
    line-height: 1;
}
.lp-action-btn:hover { color: var(--pridim); background: rgba(239,68,68,0.07); }
.lp-bookmark-btn.lp-bookmarked { color: var(--pridim); }

/* ── Card heart like button state ── */
.lp-card-like .sp-like-heart { transition: fill 0.2s, stroke 0.2s; }
.lp-card-like.sp-liked { color: var(--pridim); }
.lp-card-like.sp-liked .sp-like-heart { fill: var(--pridim); stroke: var(--pridim); }
.lp-card-like.sp-pop .sp-like-heart {
    animation: spHeartBounce 0.45s cubic-bezier(0.36,0.07,0.19,0.97) both;
}
/* Reuse keyframe from single.css — define here too for cards */
@keyframes spHeartBounce {
    0%   { transform: scale(1); }
    20%  { transform: scale(0.75); }
    55%  { transform: scale(1.35); }
    80%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}
.lp-bookmark-btn .bk-on { display: none; }
.lp-bookmark-btn.lp-bookmarked .bk-off { display: none !important; }
.lp-bookmark-btn.lp-bookmarked .bk-on  { display: block !important; }

/* ── 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); }

/* ── Front-page pagination ─────────────────────────── */
.fp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 32px 20px 48px;
}
.fp-pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    justify-content: center;
}
.fp-pg-btn:hover { border-color: var(--pridim); color: var(--pridim); }
.fp-pg-cur {
    background: var(--prigri);
    border-color: transparent;
    color: #fff !important;
    font-weight: 700;
}
.fp-pg-prev, .fp-pg-next { padding: 0 14px; font-weight: 600; }
.fp-pg-dots { color: #aaa; font-size: 14px; padding: 0 4px; }

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

@media (max-width: 988px) {
    .lp-section { padding-top: 40px; background-size: 22px 22px; }
    .lp-grid { width: 94%; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .lp-title { font-size: 2.2rem !important; }
    .pagination { width: 90%; }
}

@media (max-width: 600px) {
    .lp-section { padding-top: 28px; }
    .lp-grid { width: 92%; grid-template-columns: 1fr; gap: 14px; }
    .lp-title { font-size: 1.9rem !important; }
    .lp-card-views { display: none; }
}
