/* Safebvm Isotope Filter - Premium Styling */

:root {
    --primary-color: #1167B1;
    /* Safebvm Orange/Gold */
    --secondary-color: #262626;
    /* Dark Grey/Black */
    --text-color: #747474;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0px 1px 24px 0px rgba(23.999999999999982, 19.999999999999993, 67, 0.07);
}

.safebvm-isotope-wrapper {
    margin: 40px 0;
    font-family: inherit;
}

/* Filter Bar */
.safebvm-filter-bar {
    margin-bottom: 40px;
    text-align: center;
}

.safebvm-filter-list {
    list-style: none;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.safebvm-filter-list li {
    margin: 0px;
}

.safebvm-filter-list a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: 40px;
    transition: var(--transition);
    font-size: 15px;
}

.safebvm-filter-list a:hover {
    color: var(--primary-color);
}

.safebvm-filter-list a.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(17, 103, 177, 0.2);
}

/* Isotope Grid */
.safebvm-isotope-grid {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    overflow: hidden;
}

.safebvm-isotope-grid .safebvm-grid-item {
    position: relative !important;
    top: unset !important;
    left: unset !important;
    box-sizing: border-box;
    flex-grow: 1;
    max-width: calc(33.333% - 24px);
    width: 100% !important;
}

@media (max-width: 992px) {
    .safebvm-isotope-grid .safebvm-grid-item {
        max-width: calc(50% - 24px);
    }
}

@media (max-width: 600px) {
    .safebvm-isotope-grid .safebvm-grid-item {
        max-width: 100%;
    }
}

/* Post Card */
.safebvm-post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    padding: 16px;
    display: flex;
    gap: 16px;
    flex-direction: column;
    border: 1px solid #eee;
}

.safebvm-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Image Area */
.safebvm-post-card .safebvm-post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 14px;
}

.safebvm-featured-img-box {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition);
}

.safebvm-post-card .safebvm-post-card:hover .safebvm-featured-img-box {
    transform: scale(1.05);
}

.safebvm-post-card .safebvm-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.safebvm-post-card .safebvm-post-card:hover .safebvm-post-card .safebvm-post-image img {
    transform: scale(1.05);
}

/* Play Icon Overlay */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-icon-overlay img {
    width: 60px !important;
    height: 60px !important;
    cursor: pointer;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.play-icon-overlay img:hover {
    transform: scale(1.1);
}

/* Content Area */
.safebvm-post-card .safebvm-post-content-inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.safebvm-post-card .safebvm-post-title,
.safebvm-post-card .safebvm-post-title a {
    margin: 0px;
    font-family: "Lato", sans-serif !important;
    font-size: 20px;
    text-transform: capitalize;
    color: #747474;
    font-weight: 500;
    line-height: 1.5em;
    display: block;
}

.safebvm-post-card .safebvm-post-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.safebvm-post-card .safebvm-post-title a:hover {
    color: var(--primary-color);
}

.safebvm-post-card .safebvm-post-excerpt {
    font-size: 16px;
    line-height: 1.4;
    color: #747474;
}

/* Review Info */
.review-user-info {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.review-user-name {
    font-weight: 700;
    margin: 0;
    font-size: 14px;
    color: var(--secondary-color);
}

.review-user-designation {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* Actions */
.safebvm-post-card .safebvm-post-actions {
    display: flex;
    gap: 12px;
}

.safebvm-post-card .safebvm-post-actions a {
    flex: 1;
    text-decoration: none;
    font-size: 1rem;
    color: var(--primary-color);
    font-family: "Lato", sans-serif;
    font-weight: 600;
    background: none;
    transition: var(--transition);
}

.safebvm-post-card .safebvm-post-actions .safebvm-btn-readmore::before {
    content: "";
    position: relative;
    line-height: 0;
    height: 1px;
    width: 16px;
    background-color: var(--primary-color);
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

.safebvm-isotope-wrapper[data-base-slug="resource-center"] .safebvm-post-card .safebvm-post-content {
    display: none;
}