.netsposts-screen {
    position: relative;
}

.netsposts-screen .hidden {
    display: none !important;
}

.netsposts-screen>.netsposts-preloader {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .9);
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netsposts-menu {
    float: left;
}

.netsposts-ul {
    font-size: 20px;
    padding: 0;
    margin: 0 0 8px 0;
}

.netsposts-ul li {
    list-style: none;
    border-left: 20px solid #d2def0;
    line-height: 120%;
    margin-bottom: 10px;
    padding-left: 8px;
}

.netsposts-block-wrapper {}

.clear,
.end-netsposts-content {
    clear: both;
}

.netsposts-content {
    display: inline-block;
    margin-bottom: 15px;
    width: 100%;
}

.netsposts-content .inline-post>div {
    float: left;
}

.netsposts-content .inline-post>.netsposts-post-thumbnail.align-left {
    margin-right: 10px;
    float: left;
}

.netsposts-content .inline-post>.netsposts-post-thumbnail.align-right {
    float: right;
    margin-left: 10px;
}

.netsposts-content .inline-post>.netsposts-text-content {
    width: 75%;
}

@media (max-width: 985px) {
    .netsposts-content .inline-post>.netsposts-text-content {
        width: 70%;
    }
}

@media (max-width: 835px) {
    .netsposts-content .inline-post>.netsposts-text-content {
        width: 65%;
    }
}

@media (max-width: 500px) {
    .netsposts-content .inline-post>.netsposts-text-content {
        width: 100%;
    }

    .netsposts-content .inline-post>.netsposts-post-thumbnail {
        width: 100%;
        text-align: center;
    }
}

.netsposts-content img {
    display: inline;
}

.netsposts-content .more-column {
    float: none;
}

.netsposts-title,
.netsposts-main-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 32px;
    border-bottom: 2px solid #ccc;
    margin-left: 30px;
    margin-left: 0;
    font-weight: 400;
    display: block;
    padding: 2px 5px 12px 5px;
}

.netsposts-post-titles-only {
    font-family: impact;
    font-size: 22px;
    font-weight: lighter;
    margin-bottom: 5px;
    display: block;
}

.netsposts-posttitle {
    font-family: impact;
    font-size: 22px;
    font-weight: lighter;
    margin-bottom: 5px;
    display: inline-block;
}

.netsposts-posttitle a {
    color: #004080;
    color: #800000;
    line-height: 120%;
}

.netsposts-content .price {
    margin: 0 0 4px;
    font-weight: bold;
}

.netsposts-column {
    display: inline-block;
    float: left;
    width: 360px;
    margin: 0 0 0 30px;
}

.netsposts-source {
    display: block;
    border-top: 1px dotted #ccc;
    border-bottom: 1px dotted #ccc;
    margin-bottom: 5px;
    color: #8d8d8d;
}

.netsposts-excerpt {
    font-family: Arial Narrow, Helvetica, Arial;
    line-height: 120%;
    text-align: justify;
}

.netsposts-paginate {
    font-family: Arial, Helvetica, sans-serif;
    padding: 3px;
    border-top: 1px dotted #ccc;
    border-bottom: 1px dotted #ccc;
    margin: 0 0 0 30px;
}

.netsposts-paginate a {
    text-decoration: none;
    color: #000080;
}

.netsposts-paginate a:hover {
    background-color: #800000;
}

.netsposts-paginate span.current {
    padding: 2px 5px 2px 5px;
    background-color: #d0dff2;
    color: #000080;
    margin: 2px;
}

.netsposts-paginate a.next,
.netsposts-paginate a.prev {}

.netsposts-paginate .page-numbers {
    padding: 2px 5px 2px 5px;
    color: #fffbf0;
    background-color: #7d99c4;
    margin: 2px;
}

a.netsposts-read-more-link {
    color: #0000ff;
}

a.netsposts-read-more-link:hover {
    color: #ff0000;
}

.img-hover:hover {
    filter: grayscale(1);
}

_:-ms-lang(x),
.img-hover:hover {
    opacity: 0.7
}

span.icon {
    display: inline-block;
    width: 18px;
    height: 16px;
    margin: 2px 4px 0 4px;
    vertical-align: middle;
}

.icon.ic-category {
    background: url('../pictures/folder-open-solid.svg') no-repeat;
    background-size: contain;
}

.icon.ic-tag {
    background: url('../pictures/tag-solid.svg') no-repeat;
    background-size: contain;
}

.icon.ic-custom-taxonomy {
    background: url('../pictures/folder-open-green.svg') no-repeat;
    background-size: contain;
}

/* Elementor Network Posts */
.elementor-widget-network_posts_widget .netsposts-items {
    display: grid;
    width: 100%;
}

.elementor-widget-network_posts_widget .netsposts-items.elementor-posts-masonry {
    display: block;
}

.elementor-widget-network_posts_widget .netsposts-excerpt {
    font-family: inherit;
    line-height: inherit;
    text-align: inherit;
}

.elementor-widget-network_posts_widget .netsposts-source {
    line-height: 1.3em;
    font-size: 13px;
    margin-bottom: 13px;
    color: #adadad;
    border: 0;
}

.elementor-widget-network_posts_widget .netsposts-read-more-link {
    display: block;
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: bold;
    -ms-flex-item-align: start;
    align-self: flex-start;
}

.elementor-widget-network_posts_widget .elementor-posts-container .netsposts-content {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}

.elementor-widget-network_posts_widget .elementor-posts-masonry .netsposts-content {
    width: auto;
    position: relative;
}

.elementor-widget-network_posts_widget .elementor-posts-container .elementor-post__thumbnail {
    overflow: hidden;
}

.elementor-widget-network_posts_widget .elementor-posts-container .elementor-post__thumbnail img {
    display: block;
    width: 100%;
    max-height: none;
    max-width: none;
    -webkit-transition: -webkit-filter 0.3s;
    transition: -webkit-filter 0.3s;
    -o-transition: filter 0.3s;
    transition: filter 0.3s;
    transition: filter 0.3s, -webkit-filter 0.3s;
}

.elementor-widget-network_posts_widget .elementor-posts-container .elementor-post__thumbnail__link {
    position: relative;
    display: block;
    width: 100%;
}

.elementor-widget-network_posts_widget .elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.elementor-widget-network_posts_widget .elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail img {
    height: auto;
    position: absolute;
    top: calc(50% + 1px);
    left: calc(50% + 1px);
    -webkit-transform: scale(1.01) translate(-50%, -50%);
    -ms-transform: scale(1.01) translate(-50%, -50%);
    transform: scale(1.01) translate(-50%, -50%);
}

.elementor-widget-network_posts_widget .elementor-posts .netsposts-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-transition-property: background, border, -webkit-box-shadow;
    transition-property: background, border, -webkit-box-shadow;
    -o-transition-property: background, border, box-shadow;
    transition-property: background, border, box-shadow;
    transition-property: background, border, box-shadow, -webkit-box-shadow;
    -webkit-transition-duration: 0.25s;
    -o-transition-duration: 0.25s;
    transition-duration: 0.25s;
}

.elementor-widget-network_posts_widget .elementor-posts .elementor-post__title {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: normal;
}

.elementor-widget-network_posts_widget .elementor-posts .elementor-post__excerpt {
    margin-bottom: 10px;
}

.elementor-widget-network_posts_widget .elementor-posts .elementor-post__thumbnail {
    position: relative;
}

.elementor-widget-network_posts_widget .elementor-posts--skin-classic .netsposts-content {
    overflow: hidden;
}

.elementor-widget-network_posts_widget .elementor-post__thumbnail__link {
    margin-bottom: 20px;
}

.elementor-widget-network_posts_widget .elementor-post__text {
    width: 100%;
}

.elementor-widget-network_posts_widget.elementor-posts--align-left .elementor-post__text {
    text-align: left;
}

.elementor-widget-network_posts_widget.elementor-posts--align-center .elementor-post__text {
    text-align: center;
}

.elementor-widget-network_posts_widget.elementor-posts--align-right .elementor-post__text {
    text-align: right;
}

/* Network Posts WPMU Widget */
.widget.network_posts_wpmu .netsposts-content {
    margin: 0;
}

.widget.network_posts_wpmu .netsposts-content+.netsposts-content {
    margin: 0;
    margin-top: 10px;
}

.widget.network_posts_wpmu .netsposts-content:last-child {
    margin-bottom: 0;
}

.widget.network_posts_wpmu .netsposts-content .elementor-post__title {
    margin: 0 0 10px;
}

.widget.network_posts_wpmu .netsposts-content .netsposts-source {
    line-height: 1.3em;
    font-size: 13px;
    margin-bottom: 13px;
    border: 0;
}

.widget.network_posts_wpmu .netsposts-content .elementor-post__thumbnail {
    margin-bottom: 10px;
}

.widget.network_posts_wpmu .netsposts-content .netsposts-excerpt {
    margin: 0 0 10px;
}

.widget.network_posts_wpmu .netsposts-content .netsposts-excerpt p {
    margin: 0;
}

/* Masonry Layout Fixes */
.elementor-widget-network_posts_widget .elementor-posts-masonry {
    position: relative;
    overflow: visible;
}

.elementor-widget-network_posts_widget .elementor-posts-masonry .netsposts-content {
    display: inline-block;
    vertical-align: top;
}

.elementor-widget-network_posts_widget .netsposts-block-wrapper {
    width: 100%;
    overflow: visible;
}

/* Ensure grid container doesn't overflow */
.elementor-widget-network_posts_widget .elementor-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    gap: var(--grid-column-gap, 30px) var(--grid-row-gap, 35px);
}

/* Override grid for masonry */
.elementor-widget-network_posts_widget .elementor-grid.elementor-posts-masonry {
    display: block;
}

/* Responsive grid columns */
@media (max-width: 1024px) {
    .elementor-widget-network_posts_widget .elementor-grid:not(.elementor-posts-masonry) {
        grid-template-columns: repeat(var(--grid-columns-tablet, 2), 1fr);
    }
}

@media (max-width: 767px) {
    .elementor-widget-network_posts_widget .elementor-grid:not(.elementor-posts-masonry) {
        grid-template-columns: repeat(var(--grid-columns-mobile, 1), 1fr);
    }
}
/* Loading State */
.elementor-widget-network_posts_widget.netsposts-loading {
    position: relative;
    min-height: 300px;
}

/* Loading overlay background */
.elementor-widget-network_posts_widget.netsposts-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 998;
}

/* Loading spinner */
.elementor-widget-network_posts_widget.netsposts-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: netsposts-spin 0.8s linear infinite;
    z-index: 999;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.elementor-widget-network_posts_widget.netsposts-loading .elementor-grid {
    opacity: 0.2;
    pointer-events: none;
    filter: blur(2px);
}

@keyframes netsposts-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Load More Button */
.netsposts-load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.netsposts-load-more-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.netsposts-load-more-btn:active {
    transform: translateY(0);
}

.netsposts-load-more-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.netsposts-load-more-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Load More Button alignment */
.elementor-pagination {
    margin-top: 30px;
    text-align: center;
}

/* Skeleton Loader */
.netsposts-skeleton-loader {
    display: none;
}

.elementor-widget-network_posts_widget.netsposts-loading .netsposts-skeleton-loader {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #fff;
    padding: 20px;
}

.netsposts-skeleton-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.netsposts-skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: netsposts-skeleton-loading 1.5s infinite;
}

.netsposts-skeleton-content {
    padding: 20px;
}

.netsposts-skeleton-title {
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: netsposts-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 80%;
}

.netsposts-skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: netsposts-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.netsposts-skeleton-text:last-child {
    width: 60%;
}

@keyframes netsposts-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* AJAX Loading State (during Load More) */
.elementor-widget-network_posts_widget.netsposts-ajax-loading .netsposts-load-more-btn {
    position: relative;
    padding-left: 50px;
}

.elementor-widget-network_posts_widget.netsposts-ajax-loading .netsposts-load-more-btn::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: netsposts-spin 0.6s linear infinite;
}

/* Loading more posts indicator */
.netsposts-loading-more {
    text-align: center;
    padding: 20px;
    color: #3498db;
    font-size: 16px;
    font-weight: 500;
}

.netsposts-loading-more::after {
    content: "...";
    display: inline-block;
    animation: netsposts-dots 1.5s infinite;
}

@keyframes netsposts-dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
