.swifty-resources {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: var(--body-font) !important;
    position: relative;
}

.swifty-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    background-color: var(--quaternary-color);
    padding: 15px;
    margin-bottom: 50px
}

.swifty-toolbar-left{
    gap: 10px;
    display: flex;
}

.swifty-toolbar select {
    border: 1px solid var(--secondary-color);
    color:var(--secondary-color);
    width: 100%;
    max-width: 370px;
    border-radius: 4px;
}

.swifty-pill {
    border-radius: 0;
    padding: 13px 20px;
    border: 1px solid var(--secondary-color);
    background: var(--secondary-color);
    cursor: pointer;
    color: #fff;
    border-radius: 4px;
}

.swifty-pill.is-active {
    background: #06b6d4;
    color: #fff;
    border-color: transparent
}

.swifty-select {
    border: 1px solid #e5eaef;
    border-radius: 999px;
    padding: 8px 36px 8px 12px;
    background: #fff;
    cursor: pointer
}

body .swifty-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 50px 0px;
}

.swifty-cards .swifty-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(var(--posts-per-row, 3), 1fr);
    gap: 20px;
}

body.single .swifty-cards .swifty-cards-wrapper {
    display: block;
}

.swifty-card {
    border-radius: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
}

.swifty-card-media {
    height: 120px;
    background: linear-gradient(135deg, #0b4457 0%, #103a4b 60%)
}

.swifty-card .post-title-wrap h2.single-post-title{
    font-size: 22px;
    line-height: 28px;
    margin: 0 0 20px;
}

.swifty-card .post-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.swifty-card .post-img-wrap a.post-img {
    display: flex;
    height: 100%;
}

.swifty-card .post-img-wrap a.post-img .single-featured-image {
    width: 100%;
    overflow: hidden;
}

.swifty-card .post-img-wrap a.post-img .single-featured-image img.wp-post-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.swifty-card .post-img-wrap a.post-img:hover .single-featured-image img.wp-post-image {
    transform: scale(1.05);
}

.swifty-card .post-img-wrap img.wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.swifty-card:hover .post-img-wrap img.wp-post-image{
    transform: scale(1.05);
}


.post-info {
    padding: 20px;
}

.swifty-card-body {
    padding: 14px
}

.swifty-meta {
    color: #5b6b7a;
    font-size: 12px
}

.swifty-title {
    font-size: 15px;
    font-weight: 700;
    margin: 10px 0 6px
}

.swifty-excerpt {
    color: #5b6b7a;
    font-size: 13px;
    margin: 0 0 10px
}

.swifty-card-footer {
    padding: 10px 14px
}

.swifty-link {
    color: #0e7490;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none
}

.swifty-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.swifty-search input {
    width: 100%;
    padding: 10px;
    border-radius: 0px;
    border: 1px solid #BEBEBE;
}

.swifty-panel {
    background: #fff;
}

.swifty-panel h3 {
    margin: 0;
    padding: 14px 16px;
}

.swifty-list {
    padding: 10px 0px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.swifty-list-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5eaef;
    border-radius: 12px;
    background: #fff
}

.swifty-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0b4457, #103a4b)
}

.swifty-item-kicker {
    font-size: 12px;
    color: #5b6b7a;
    margin-bottom: 6px
}

.swifty-item-title {
    font-size: 22px;
    line-height: 28px;
    margin: 0 0 20px;
}

.swifty-cta {
    background: #ef4e2f;
    color: #fff;
    border-radius: 12px;
    margin: 0px;
    padding: 20px 10px;
}

.swifty-cta h3 {
    padding: 16px;
    font-size: clamp(18px, 1.2vw, 22px);
    line-height: clamp(28px, 1.7vw, 32px);
}

.swifty-cta form {
    padding: 0 15px !important;
    position: relative;
}

.swifty-cta form .forminator-row .forminator-field-email{
    position: relative;
    width: 100%;
}


.swifty-cta-body {
    padding: 14px 16px;
    display: grid;
    gap: 10px
}

.swifty-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px
}

.swifty-input-row input {
    border-radius: 10px;
    border: 0;
    padding: 10px
}

.swifty-btn {
    border-radius: 10px;
    border: 0;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer
}

.swifty-load-more {
    display: flex;
    justify-content: center;
    margin: 20px 0 0
}

.swifty-load-more button {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #06b6d4;
    color: #075985;
    background: #e6fffb;
    font-weight: 600;
    cursor: pointer
}


.post-category.field.field--name-field-article-type {
    padding-left: 0px;
    margin-bottom: 20px;
}

.swifty-card .post-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.swifty-card .post-details .post-info {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swifty-card .post-details .post-info .post-title-wrap {
    flex: 1;
}

section.swifty-cards .agility-resource-load-more {
    margin: 40px auto;
    display: flex;
    justify-content: center;
}

button.btn.btn-secondary {
    font-family: var(--body-font);
    display: inline-block;
    vertical-align: top;
    font-size: clamp(16px, 1.1vw, 20px);
    font-weight: 500;
    line-height: clamp(20px, 1.7vw, 22px);
    letter-spacing: 0.02em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0px;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center right;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 48px;
    align-self: flex-start;
    border: 2px solid var(--secondary-color);
    background-color: var(--secondary-color);
    cursor: pointer;
    padding:
        clamp(10px, 1.2vw, 16px)
        /* top */
        clamp(25px, 3.1vw, 46px)
        /* right */
        clamp(10px, 1.2vw, 14px)
        /* bottom */
        clamp(25px, 3.1vw, 45px);
    /* left */
}

button.btn.btn-secondary:hover {
    background-color: var(--secondary-hover-color);
    border: 2px solid var(--secondary-hover-color);
}

.swifty-cta .swifty-input-row {
    gap: 0;
    display: flex;
}
.swifty-cta .swifty-input-row input {
    border-radius: 10px 0 0 10px;
    flex: 1;
}

.swifty-cta .swifty-input-row .swifty-btn {
    border-radius: 0 10px 10px 0;
    background-color: var(--secondary-color);
    width: 55px;
}

.swifty-cta .swifty-input-row .swifty-btn:hover {
    background-color: var(--secondary-hover-color);
}

.swifty-toolbar select{
    position: relative;
    background-image: url(/wp-content/uploads/2025/10/down-arrow.svg);
    background-repeat: no-repeat;
}

/* .swifty-toolbar select::before{
    content: "";
    position: absolute;
    right: 10px;
    top:10px;
    width: 20px;
    height: 20px;
    background-image: url(/wp-content/uploads/2025/10/down-arrow.svg);
    background-repeat: no-repeat;
} */

/* ============================================================
   STICKY FILTERS (FIXED VERSION)
============================================================ */

.swifty-resources {
    position: relative;
}

body .swifty-resources .swifty-grid{
    padding-top: 0;
}

.filters-posts-contaner {
    width: 100%;
    transition: all .2s ease;
    background-color: var(--tertiary-color);
}

/* Sticky active */
/* .filters-posts-contaner.is-sticky {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.filters-posts-contaner.is-sticky .advanced-filters {
    margin: 0 auto;
    padding: 0 20px;
} */

@media only screen and (max-width: 1720px) {
   
}

@media only screen and (max-width: 1536px) {

}


@media only screen and (max-width: 1280px) {
    .swifty-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 992px) {
    .swifty-grid {
        grid-template-columns: 1fr
    }

    .swifty-cards {
        grid-template-columns: repeat(2, 1fr)
    }

    body .swifty-grid{
        grid-template-columns: auto;
    }
    .swifty-toolbar{
        margin-bottom: 0px;
    }
    /* .swifty-card .post-img-wrap {
        min-height: 200px;
    } */
    .node--footer.related-post .summary-output article.node.node--type-article{
        flex: 1 1 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
        padding: 20px;
    }
    body .node--footer.related-post .container {
        padding: 0;
    }
}

@media only screen and (max-width: 767px) {
    .swifty-cards {
        grid-template-columns: 1fr;
    }
    .swifty-cards .swifty-cards-wrapper {
        grid-template-columns: 1fr;
    }
    .node--footer.related-post .summary-output article.node.node--type-article{
        flex: 1 1 calc((100% - 20px) / 1);
        max-width: calc((100% - 20px) / 1);
        margin: 0 auto;
    }
}

.swifty-sr {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden
}


/* ============================================================
   TAXONOMY CATEGORY FILTERS (AUTO-DETECTED)
   ============================================================ */

/* Filter container */
.filters-posts-contaner {
    width: 100%;
    margin-bottom: 50px;
    text-align: center;
}

/* Category Filters (Desktop) */
.filters-posts-contaner .category-filters {
    list-style: none;
    padding: 0;
    margin: 0 auto 25px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: clamp(5px, 1vw, 12px);
}

.filters-posts-contaner .category-filters li {
    padding: 10px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    color: #BABABA;
    font-size: clamp(10px, 0.8vw, 18px);
    letter-spacing: clamp(0.6px, 0.25vw, 1.8px);
    line-height: 1.1;
    font-weight: 500;
    transition: all .3s ease;
    background: #fff;
    text-transform: uppercase;
}

.filters-posts-contaner .category-filters li span{
    padding: 0 0 10px;
    color: #BABABA;
}

.filters-posts-contaner .category-filters li.active span,
.filters-posts-contaner .category-filters li:hover span{
    border-bottom: 2px solid currentColor;
    color: var(--secondary-color);
}



/* Mobile Dropdown */
.filters-posts-contaner .mobile-category-dropdown {
    display: none;
    width: 100%;
    max-width: 300px;
    margin: 15px auto 30px;
    padding: 8px 12px;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    background: #fff;
    color: var(--secondary-color);
    font-size: 14px;
}

/* Mobile behavior */
@media only screen and (max-width: 767px) {

    /* Hide desktop filters, show mobile dropdown */
    .filters-posts-contaner .category-filters {
        display: none;
    }

    .filters-posts-contaner .mobile-category-dropdown {
        display: block;
    }
}

/* Optional effect for smooth fade on filtered cards */
/* .swifty-card {
    transition: opacity 0.3s ease;
}

.swifty-card.visible {
    opacity: 1;
}

.swifty-card:not(.visible) {
    opacity: 0;
} */



/* =========================
   AMP THEME MODAL SHELL
========================= */
.amp-theme-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.amp-theme-modal.is-open {
    display: block;
}

.amp-theme-overlay {
    position: absolute;
    top: var(--header-offset);
    height: calc(100vh - var(--header-offset));
    inset-inline: 0;
    background: rgba(0,0,0,0.65);
}




/* Modal shell */
.amp-theme-popup {
    position: fixed;
    top: calc(50% + (var(--header-offset) / 2));
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 1280px;
    max-height: calc(100vh - var(--header-offset) - 40px);
    height: auto;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    transition: top 0.2s ease;
}


.amp-theme-close,
.amp-theme-prev,
.amp-theme-next {
    position: absolute;
    top: 16px;
    background: #000;
    color: #fff;
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
}

.amp-theme-close { right: 16px; top: 5px; }
.amp-theme-prev  { left: 16px; display: none; }
.amp-theme-next  { left: 80px; display: none }

.amp-theme-close{
    background: transparent;
    color: var(--secondary-color);
    font-size: 40px;
}

/* =========================
   LAYOUT
========================= */
.amp-theme-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.amp-theme-left {
    min-width: 0;
    overflow-x: hidden;
}

/* =========================
   GALLERY
========================= */
.amp-theme-slider {
    height: clamp(260px, 60vh, 520px);
    width: 100%;
    overflow: hidden;
}

.amp-theme-slider .slick-list,
.amp-theme-slider .slick-track,
.amp-theme-slider .slick-slide {
    height: 100%;
}

.amp-theme-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.amp-theme-thumbnails {
    margin-top: 15px;
    height: 90px;
    overflow: hidden;
    /* position: relative;
    overflow: hidden; */
}

.amp-theme-thumbnails::before,
.amp-theme-thumbnails::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Left fade */
.amp-theme-thumbnails::before {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1),
        rgba(255, 255, 255, 0)
    );
}

/* Right fade */
.amp-theme-thumbnails::after {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 1),
        rgba(255, 255, 255, 0)
    );
}


.amp-theme-thumb {
    padding: 4px;
    cursor: pointer;
}

.amp-theme-thumb img {
    height: 80px;
    width: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.amp-theme-thumb.slick-current img {
    opacity: 1;
    outline: 2px solid #000;
}

.amp-theme-popup h2.block-title {
    margin-bottom: 20px;
}

.amp-theme-popup .block-description {
    margin-bottom: 20px;
}

/* =========================
   CONTENT
========================= */
.amp-theme-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amp-theme-right ul {
    column-count: 2;
    list-style: disc;
    padding: 0 30px;
    column-gap: 20px;
}

.amp-theme-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amp-theme-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

body.amp-theme-open {
    overflow: hidden;
    padding-right: 0;
}

.single-solutions .amp-theme-modal ~ .single-service-info-container,
.single-solutions .single-service-info-container:has(~ .amp-theme-modal),
.single-solutions .amp-theme-modal ~ .post-nav-wrap.more-options,
.single-solutions .post-nav-wrap.more-options:has(~ .amp-theme-modal) {
    display: none !important;
}

.amp-theme-content .amp-theme-buttons{
    display: flex;
    gap: 20px;
}

.advanced-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 0 auto 40px;
    width: 80%;
    max-width: var(--container-default);
    padding: 30px 0;
}

.advanced-filters select,
.advanced-filters input {
    min-height: 45px;
    padding: 0 15px;
    width: 25%;
    max-width: 320px;
    border: 0;
    border-radius: 5px;
    background-color: #fff;
    color: var(--dark-text-color);
}

.filter-refresh {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #64666A;
    border: 2px solid;
    width: 42px;
    height: 42px;
    padding: 0;
    transition: all 0.5s ease;
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-refresh:hover{
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
}

button.filter-refresh svg {
    max-width: 20px;
}

button.filter-refresh:hover svg g path{
    stroke: #fff;
}

.advanced-filters .filter-search {
    margin-left: auto;
    min-width: 250px;
    padding-left: 40px;
}

section.swifty-cards .swifty-cards-wrapper{
    width: 80%;
    max-width: var(--container-default);
    margin: 0 auto;
}

/* ============================================================
   FORCE READ MORE ALIGNMENT (SAFE ADDITION)
============================================================ */

.swifty-card .post-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.swifty-card .post-info .single-post-title {
    margin-bottom: 15px; 
}

.swifty-card .post-info .read-more-link {
    margin-top: auto;
}

.posts-list .swifty-cards .swifty-cards-wrapper .post-meta .post-category:nth-of-type(n+4) {
    display: none;
}


@media (max-width: 992px) {
    .amp-theme-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .amp-theme-slider {
        height: clamp(220px, 50vh, 300px);
    }

    .amp-theme-thumbnails {
        height: 70px;
    }

    .amp-theme-thumb img {
        height: 60px;
    }

    .amp-theme-slider .slick-prev,
    .amp-theme-slider .slick-next {
        display: none !important;
    }

    .amp-theme-thumbnails::before,
    .amp-theme-thumbnails::after {
        width: 36px;
    }
    
    .amp-theme-popup {
        padding: 16px;
    }
}
