/* =========================================================
   FLEXIBLE POSTS FILTER – BASE WRAPPER
========================================================= */

.fpf-wrapper {
    margin: 20px 0;
}

/* When no tabs are used, you can tweak spacing here */
.fpf-wrapper.fpf-no-tabs .fpf-no-tabs-content {
    margin-top: 0;
}

.fpf-card-image img {
    height: 300px!important;
    object-fit: cover;
}

button.fpf-tab-btn {
    border: none;
}

button.fpf-tab-btn:hover,button.fpf-tab-btn:focus {
    background: transparent;
}

/* =========================================================
   TABS NAV + ARROWS WRAPPER
========================================================= */

.fpf-tabs-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

/* SCROLLABLE NAV – ONE LINE ONLY */
.fpf-tabs-nav {
    display: flex;
    flex: 1 1 auto;              /* take remaining width between arrows */
    gap: 12px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;           /* do NOT wrap to second line */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fpf-tabs-nav::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   ARROWS
========================================================= */

.fpf-tabs-arrow {
    background: #fff;
    border: 1px solid #ddd;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: .2s;
}

/* Custom arrow look */
button.fpf-tabs-arrow.left, button.fpf-tabs-arrow.right {
    background: #ffffff;
    border: none;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 10px;
    display: flex;
}

button.fpf-tabs-arrow.right i.fas.fa-angle-right,
button.fpf-tabs-arrow.left i.fas.fa-angle-left {
    color: #000;
}

.fpf-tabs-arrow:hover {
    border-color: #B52025;
    color: #B52025;
}
.fpf-tabs-arrow.disabled {
    opacity: .3;
    pointer-events: none;
}

/* =========================================================
   TAB BUTTONS
========================================================= */

.fpf-tab-btn {
    flex: 0 0 auto;              /* each button keeps its own width */
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.fpf-tab-btn:hover {
    color: #B52025;
    background: transparent;
}

.fpf-tab-btn.active {
    color: #B52025;
    border-bottom-color: #B52025;
}

button.fpf-tab-btn:focus {
    background: transparent;
    outline: none;
}

/* =========================================================
   CONTENT AREA
========================================================= */

.fpf-tabs-content {
    position: relative;
    min-height: 200px;
}

.fpf-tab-pane {
    display: none;
    animation: fpfFadeIn .3s ease;
}

.fpf-tab-pane.active {
    display: block;
}

@keyframes fpfFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   LOADER
========================================================= */

.fpf-tabs-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.fpf-spinner {
    border: 4px solid #eee;
    border-top-color: #B52025;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: fpfSpin 1s linear infinite;
}

@keyframes fpfSpin {
    100% { transform: rotate(360deg); }
}

/* =========================================================
   GRID / LIST LAYOUT
========================================================= */

.fpf-grid {
    display: grid;
    gap: 30px;
}

/* Columns modifiers (desktop) */
.fpf-columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.fpf-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fpf-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fpf-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fpf-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fpf-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* List layout */
.fpf-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =========================================================
   CARD (POST / PRODUCT ITEM)
========================================================= */

.fpf-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.fpf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fpf-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* IMAGE */

.fpf-card-image {
    width: 100%;
    overflow: hidden;
}

.fpf-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* CONTENT */

.fpf-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
	justify-content: space-between;
}

button.fpf-tab-btn.active {
    border-bottom: solid 3px;
    border-radius: 0;
}

.fpf-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    color: #353635;
    margin: 0 0 15px 0;
}

.fpf-card-title a {
    text-decoration: none;
    color: inherit;
}

/* EXCERPT */

.fpf-card-excerpt {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* LINK / READ MORE */

.fpf-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #B42025;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fpf-card-link:hover {
    opacity: 0.8;
}

/* You can add SVG arrow animations if you use them inside the link */
.fpf-card-link svg {
    transition: transform 0.3s ease;
}

.fpf-card-link:hover svg {
    transform: translateX(5px);
}

/* No posts message */
.fpf-no-posts {
    margin: 20px 0;
    text-align: center;
    color: #777;
    font-style: italic;
}

.fpf-error {
    color: #c00;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .fpf-wrapper {
        margin: 16px 0;
    }

    .fpf-tabs-nav-wrapper {
        gap: 6px;
        margin-bottom: 24px;
    }

    .fpf-tabs-arrow {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 16px;
    }

    .fpf-tabs-nav {
        gap: 10px;
    }

    .fpf-tab-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .fpf-grid {
        gap: 24px;
    }

    /* Optional: on tablet limit to 2 columns max */
    .fpf-columns-3,
    .fpf-columns-4,
    .fpf-columns-5,
    .fpf-columns-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fpf-wrapper {
        margin: 10px 0 16px;
    }

    .fpf-tabs-nav-wrapper {
        gap: 4px;
        margin-bottom: 18px;
    }

    .fpf-tabs-arrow {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 13px;
    }

    .fpf-tabs-nav {
        gap: 6px;
        border-bottom-width: 1px;
    }

    .fpf-tab-btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .fpf-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 0px;
    }

    .fpf-card-content {
        padding: 18px;
    }

    .fpf-card-title {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Very small phones (optional)
@media (max-width: 480px) {
    .fpf-tab-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .fpf-tabs-arrow {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
    }
}
*/