/**
 * trc-video-filter-grid.css — LIVE-parity styles for [video_filter_grid] shortcode.
 *
 * Applied wherever the shortcode renders (currently /video-library/ page 966
 * and /free-training-swimming-technique-videos/ page 95399).
 *
 * Source: LIVE theme functions.php companion CSS (user-provided 2026-08-06).
 */

/* container */
.lp-latest-posts {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}
.lp-latest-posts h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #2d3748;
}
.lp-latest-posts .subtitle {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* grid */
.lp-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* card */
.lp-post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.lp-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.lp-post-card img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
}
.lp-post-card .content {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.lp-post-card .content h3 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 600;
}
.lp-post-card .content h3 a {
    color: #3182ce;
    text-decoration: none;
    line-height: 29px;
}
.lp-post-card .content p {
    margin: 0 0 1.5rem;
    color: #4a5568;
    font-size: .95rem;
    flex: 1;
}
.lp-post-card .read-more {
    margin: 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c53030;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 0;
}

/* Blog card overrides (LIVE) */
.lp-latest-posts h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 1rem;
}
.lp-post-card {
    border-radius: none;
    box-shadow: none;
}
.lp-post-card:hover {
    transform: none;
    box-shadow: none;
}
.lp-latest-posts .subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}
.lp-post-card .content h3 {
    margin: 0 0 .75rem;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-align: left;
}
.lp-post-card .content h3 a {
    color: #000 !important;
    text-decoration: none;
}
.lp-post-card .content p {
    margin: 0 0 1.5rem;
    color: #000 !important;
    font-size: 16px;
    font-weight: 400;
    flex: 1;
    text-align: left;
}
.lp-post-card img {
    border-radius: 13px;
    height: 182px;
}
.lp-post-card .read-more {
    margin: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #c53030;
    color: #fff;
    line-height: 0;
    font-size: 2.1rem;
    line-height: 1;
}
.lp-latest-posts .subtitle {
    margin-bottom: 3rem;
}
article.lp-post-card:hover {
    box-shadow: 0 0 33px 0 rgb(18 43 70 / 45%);
}
article.lp-post-card {
    border: 1px solid #F2F2F2;
}

/* ———————————————————————————
   Filter Tabs
———————————————————————————— */
.video-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.video-filter-tabs .filter-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.video-filter-tabs .filter-btn.active {
    background: #d2232a;
    color: #fff;
    border-color: #d2232a;
}

/* ———————————————————————————
   Grid & Cards
———————————————————————————— */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.video-item {
    /* container marker */
}
.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.video-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.video-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.video-title {
    font-size: 18px;
    margin: 0 0 12px;
    line-height: 1.3;
}
.content-restricted {
    position: relative;
}
.video-content a {
    color: #fff !important;
}
.paid-membership .content-restricted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: none !important;
    width: 100%;
    height: 100%;
    background-color: rgba(102, 102, 102, 0.75);
    z-index: 100;
}
.content-restricted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(102, 102, 102, 0.75);
    z-index: 100;
}
.video-btn {
    display: inline-block;
    text-align: center;
    background: #d2232a;
    color: #fff;
    z-index: 111;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.video-btn:hover {
    background: #a71b23;
}

/* ———————————————————————————
   Pagination
———————————————————————————— */
.video-pagination {
    margin-top: 32px;
    margin-bottom: 30px;
    text-align: center;
}
.video-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}
.video-pagination .page-numbers.current {
    background: #d2232a;
    color: #fff;
    border-color: #d2232a;
}
.video-pagination .page-numbers:hover {
    background: #f2f2f2;
}
