/**
 * Easy Custom Skin Free - Frontend Styles
 * 20 Professional Layouts
 */

/* ==========================================================================
   Base Grid Layout
   ========================================================================== */
.ecsf-posts-wrapper {
    width: 100%;
}

.ecsf-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Force single column for list layouts */
.ecsf-layout-list,
.ecsf-layout-list_alternate,
.ecsf-layout-list_minimal,
.ecsf-layout-timeline,
.ecsf-layout-category_list {
    grid-template-columns: 1fr !important;
}

/* Featured layout grid */
.ecsf-layout-featured {
    grid-template-columns: 1fr 1fr !important;
}

.ecsf-layout-featured .ecsf-featured-main {
    grid-column: 1;
    grid-row: 1 / span 3;
}

/* ==========================================================================
   Base Post Item Styles
   ========================================================================== */
.ecsf-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecsf-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Post Image Base */
.ecsf-post-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ecsf-post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    object-fit: cover;
}

.ecsf-post-item:hover .ecsf-post-image img {
    transform: scale(1.08);
}

.ecsf-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ecsf-post-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-no-thumb {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Ensure no-thumb works in overlay layouts */
.ecsf-overlay-item .ecsf-no-thumb,
.ecsf-news-grid .ecsf-no-thumb,
.ecsf-slider-item .ecsf-no-thumb,
.ecsf-highlight .ecsf-no-thumb,
.ecsf-featured-main .ecsf-no-thumb {
    min-height: 100%;
}

/* Post Content Base */
.ecsf-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Ensure category appears ABOVE title in regular content */
.ecsf-post-content .ecsf-post-category {
    order: 1;
}

.ecsf-post-content .ecsf-post-title {
    order: 2;
}

.ecsf-post-content .ecsf-post-meta {
    order: 3;
}

.ecsf-post-content .ecsf-post-excerpt {
    order: 4;
}

.ecsf-post-content .ecsf-read-more {
    order: 5;
}

/* Overlay Gradient - Base style for all overlay layouts */
.ecsf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   Category Badge Styles
   ========================================================================== */
.ecsf-post-category {
    margin-bottom: 12px;
}

.ecsf-post-category a {
    display: inline-block;
    padding: 5px 14px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ecsf-post-category a:hover {
    background: #c62828;
    color: #fff;
}

/* Category Badge for Overlay Layouts - can be styled via Elementor controls */
.ecsf-category-overlay {
    display: inline-block;
    width: auto;
    margin-bottom: 12px;
    padding: 0;
}

.ecsf-category-badge-overlay {
    display: inline-block;
    padding: 5px 14px;
    background-color: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ecsf-category-badge-overlay:hover {
    background-color: #c62828;
    color: #fff;
}

/* ==========================================================================
   Title Styles
   ========================================================================== */
.ecsf-post-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.ecsf-post-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecsf-post-title a:hover {
    color: #e53935;
}

/* ==========================================================================
   Meta Styles
   ========================================================================== */
.ecsf-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.ecsf-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ecsf-post-meta a {
    color: inherit;
    text-decoration: none;
}

.ecsf-post-meta a:hover {
    color: #e53935;
}

.ecsf-post-meta i {
    font-size: 14px;
    opacity: 0.7;
}

/* ==========================================================================
   Excerpt Styles
   ========================================================================== */
.ecsf-post-excerpt {
    margin-bottom: 18px;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

/* ==========================================================================
   Read More Button
   ========================================================================== */
.ecsf-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.ecsf-read-more:hover {
    background: #e53935;
    color: #fff;
    transform: translateX(5px);
}

.ecsf-read-more i {
    transition: transform 0.3s ease;
}

.ecsf-read-more:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   LAYOUT 1: Card (Default)
   ========================================================================== */
.ecsf-card {
    display: flex;
    flex-direction: column;
}

.ecsf-card .ecsf-post-image {
    height: 220px;
}

.ecsf-card .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   LAYOUT 2: Overlay
   ========================================================================== */
.ecsf-overlay-item {
    position: relative;
    min-height: 320px;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    background: #333;
}

.ecsf-overlay-item .ecsf-post-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.ecsf-overlay-item .ecsf-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ecsf-overlay-item .ecsf-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay gradient - dark gradient from bottom */
.ecsf-overlay-item .ecsf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 70%) !important;
    pointer-events: none;
    z-index: 1;
}

/* Content area - NO BACKGROUND, positioned at bottom */
.ecsf-overlay-item .ecsf-post-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    background: none !important;
    background-color: transparent !important;
}

/* Category - small inline badge */
.ecsf-overlay-item .ecsf-post-category {
    margin-bottom: 10px;
}

.ecsf-overlay-item .ecsf-post-category a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--ecsf-cat-bg, #e53935);
    color: var(--ecsf-cat-color, #fff);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-decoration: none;
}

/* Title */
.ecsf-overlay-item .ecsf-post-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.ecsf-overlay-item .ecsf-post-title a {
    color: #fff !important;
    text-decoration: none;
}

.ecsf-overlay-item .ecsf-post-title a:hover {
    color: #ffd54f !important;
}

/* Meta */
.ecsf-overlay-item .ecsf-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.8) !important;
    font-size: 12px;
    margin: 0;
}

.ecsf-overlay-item .ecsf-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.8) !important;
}

.ecsf-overlay-item .ecsf-post-meta a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
}

/* Excerpt */
.ecsf-overlay-item .ecsf-post-excerpt {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   LAYOUT 3: Side by Side
   ========================================================================== */
.ecsf-side {
    display: flex;
    flex-direction: row;
}

.ecsf-side .ecsf-post-image {
    flex: 0 0 40%;
    min-height: 250px;
}

.ecsf-side .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-side .ecsf-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
}

/* ==========================================================================
   LAYOUT 4: Minimal
   ========================================================================== */
.ecsf-minimal {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding-bottom: 25px;
}

.ecsf-minimal:hover {
    transform: none;
    box-shadow: none;
}

.ecsf-minimal .ecsf-post-content {
    padding: 0;
}

.ecsf-minimal .ecsf-read-more {
    background: transparent;
    color: #e53935;
    padding: 0;
    font-weight: 600;
}

.ecsf-minimal .ecsf-read-more:hover {
    background: transparent;
    color: #c62828;
}

/* ==========================================================================
   LAYOUT 5: Magazine
   ========================================================================== */
.ecsf-magazine .ecsf-post-image {
    height: 200px;
}

.ecsf-magazine .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-magazine .ecsf-post-title {
    font-size: 18px;
}

.ecsf-magazine .ecsf-post-excerpt {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   LAYOUT 6: News Grid (Dark Overlay)
   ========================================================================== */
.ecsf-news-grid {
    position: relative;
    min-height: 280px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
}

.ecsf-news-grid .ecsf-post-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.ecsf-news-grid .ecsf-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ecsf-news-grid .ecsf-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-news-grid .ecsf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(30, 40, 60, 0.95) 0%, rgba(30, 40, 60, 0.5) 50%, rgba(30, 40, 60, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.ecsf-news-grid .ecsf-post-content-overlay {
    padding: 20px;
    background: transparent !important;
}

.ecsf-news-grid .ecsf-post-category {
    display: inline-block;
    margin-bottom: 10px;
    background: transparent !important;
    width: auto;
}

.ecsf-news-grid .ecsf-post-category a {
    display: inline-block;
    background: var(--ecsf-cat-bg, #e53935);
    color: var(--ecsf-cat-color, #fff);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
}

.ecsf-news-grid .ecsf-post-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.ecsf-news-grid .ecsf-post-title a {
    color: #fff;
}

.ecsf-news-grid .ecsf-post-meta {
    margin-top: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.ecsf-news-grid:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   LAYOUT 7: Category List (Colored)
   ========================================================================== */
.ecsf-category-list {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid currentColor;
}

.ecsf-category-list:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.ecsf-category-header {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ecsf-category-list .ecsf-post-inner {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.ecsf-category-list .ecsf-post-image {
    flex: 0 0 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.ecsf-category-list .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-category-list .ecsf-post-content {
    flex: 1;
    padding: 0;
}

.ecsf-category-list .ecsf-post-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ecsf-category-list .ecsf-post-excerpt {
    font-size: 13px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   LAYOUT 8: Classic Blog
   ========================================================================== */
.ecsf-classic {
    background: #fff;
    border: 1px solid #eee;
}

.ecsf-classic .ecsf-post-image {
    height: 250px;
}

.ecsf-classic .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-classic .ecsf-post-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.ecsf-classic .ecsf-classic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ecsf-classic .ecsf-classic-meta .ecsf-post-meta,
.ecsf-classic .ecsf-classic-meta .ecsf-post-category {
    margin-bottom: 0;
}

/* ==========================================================================
   LAYOUT 9: Modern Clean
   ========================================================================== */
.ecsf-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.ecsf-modern .ecsf-post-image {
    position: relative;
    height: 200px;
}

.ecsf-modern .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-modern .ecsf-post-image .ecsf-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    margin: 0;
}

.ecsf-modern .ecsf-post-image .ecsf-post-category a {
    background: #fff;
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ecsf-modern .ecsf-post-content {
    padding: 25px;
}

.ecsf-modern .ecsf-modern-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.ecsf-modern .ecsf-modern-footer .ecsf-post-meta {
    margin: 0;
}

.ecsf-modern .ecsf-modern-footer .ecsf-read-more {
    padding: 8px 16px;
    font-size: 13px;
}

/* ==========================================================================
   LAYOUT 10: Grid Overlay
   ========================================================================== */
.ecsf-layout-grid_overlay .ecsf-overlay-item {
    min-height: 350px;
    height: 350px;
}

.ecsf-layout-grid_overlay .ecsf-overlay-item .ecsf-post-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.ecsf-layout-grid_overlay .ecsf-overlay-item .ecsf-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ecsf-layout-grid_overlay .ecsf-overlay-item .ecsf-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-layout-grid_overlay .ecsf-post-excerpt {
    margin-top: 10px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   LAYOUT 11: Vertical List
   ========================================================================== */
.ecsf-list {
    display: flex;
    flex-direction: row;
    gap: 25px;
    padding: 25px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.ecsf-list:hover {
    transform: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.ecsf-list .ecsf-post-image {
    flex: 0 0 280px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.ecsf-list .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-list .ecsf-post-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ecsf-list .ecsf-post-title {
    font-size: 22px;
}

/* ==========================================================================
   LAYOUT 12: Compact Cards
   ========================================================================== */
.ecsf-compact {
    padding: 15px;
    border: 1px solid #eee;
}

.ecsf-compact:hover {
    transform: translateY(-2px);
}

.ecsf-compact .ecsf-compact-inner {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ecsf-compact .ecsf-post-image {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.ecsf-compact .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-compact .ecsf-post-content {
    flex: 1;
    padding: 0;
}

.ecsf-compact .ecsf-post-category a {
    font-size: 9px;
    padding: 2px 8px;
}

.ecsf-compact .ecsf-post-title {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.ecsf-compact .ecsf-post-meta {
    font-size: 11px;
    gap: 10px;
    margin: 0;
}

/* ==========================================================================
   LAYOUT 13: List Alternate
   ========================================================================== */
.ecsf-list-alternate {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.ecsf-list-alternate.ecsf-list-reversed {
    flex-direction: row-reverse;
}

.ecsf-list-alternate .ecsf-post-image {
    flex: 0 0 45%;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
}

.ecsf-list-alternate .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-list-alternate .ecsf-post-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ecsf-list-alternate .ecsf-post-title {
    font-size: 26px;
}

.ecsf-list-alternate:hover {
    transform: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ==========================================================================
   LAYOUT 14: List Minimal
   ========================================================================== */
.ecsf-list-minimal {
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 20px 0;
}

.ecsf-list-minimal:hover {
    transform: none;
    box-shadow: none;
    background: #f9f9f9;
}

.ecsf-list-minimal .ecsf-list-minimal-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ecsf-list-minimal .ecsf-post-image {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.ecsf-list-minimal .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-list-minimal .ecsf-post-content {
    flex: 1;
    padding: 0;
}

.ecsf-list-minimal .ecsf-post-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.ecsf-list-minimal .ecsf-post-meta {
    margin: 0;
    font-size: 12px;
}

.ecsf-list-minimal .ecsf-list-action {
    flex-shrink: 0;
}

.ecsf-read-more-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ecsf-read-more-icon:hover {
    background: #e53935;
    color: #fff;
}

/* ==========================================================================
   LAYOUT 15: Timeline
   ========================================================================== */
.ecsf-layout-timeline {
    position: relative;
    padding-left: 30px;
}

.ecsf-layout-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.ecsf-timeline-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    background: transparent;
    border-radius: 0;
    position: relative;
}

.ecsf-timeline-item:hover {
    transform: none;
    box-shadow: none;
}

.ecsf-timeline-marker {
    position: absolute;
    left: -30px;
    top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ecsf-timeline-dot {
    width: 18px;
    height: 18px;
    background: #e53935;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e53935;
}

.ecsf-timeline-date {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    white-space: nowrap;
}

.ecsf-timeline-content {
    flex: 1;
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.ecsf-timeline-content .ecsf-post-image {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.ecsf-timeline-content .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-timeline-content .ecsf-post-content {
    flex: 1;
    padding: 0;
}

.ecsf-timeline-content .ecsf-post-title {
    font-size: 18px;
}

/* ==========================================================================
   LAYOUT 16 & 17: Slider / Carousel
   ========================================================================== */
.ecsf-slider-wrapper {
    position: relative;
}

.ecsf-slider-container {
    position: relative;
    overflow: hidden;
}

.ecsf-slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
}

.ecsf-slider-track.ecsf-layout-carousel,
.ecsf-slider-track.ecsf-layout-slider_overlay {
    display: flex !important;
    grid-template-columns: none !important;
}

.ecsf-slider-item {
    flex: 0 0 calc(25% - 12px);
    min-width: calc(25% - 12px);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    min-height: auto;
    height: auto;
}

.ecsf-slider-item .ecsf-post-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.ecsf-slider-item .ecsf-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ecsf-slider-item .ecsf-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-slider-item .ecsf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.ecsf-slider-item .ecsf-post-content-overlay {
    padding: 20px;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ecsf-slider-item .ecsf-post-category {
    display: inline-block;
    margin-bottom: 8px;
    background: transparent !important;
    width: auto;
}

.ecsf-slider-item .ecsf-post-category a {
    display: inline-block;
    background: var(--ecsf-cat-bg, #e53935);
    color: var(--ecsf-cat-color, #fff);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
}

.ecsf-slider-item .ecsf-post-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.ecsf-slider-item .ecsf-post-title a {
    color: #fff;
}

.ecsf-slider-item .ecsf-post-meta {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.ecsf-slider-item .ecsf-post-excerpt {
    font-size: 13px;
    margin: 10px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255,255,255,0.9);
}

/* Slider Arrows */
.ecsf-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.ecsf-slider-arrow:hover {
    background: #1a1a2e;
    color: #fff;
}

.ecsf-arrow-prev {
    left: -22px;
}

.ecsf-arrow-next {
    right: -22px;
}

/* Slider Dots */
.ecsf-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.ecsf-slider-dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ecsf-slider-dot.active,
.ecsf-slider-dot:hover {
    background: #1a1a2e;
}

/* ==========================================================================
   LAYOUT 18: Featured (1 Large + Small)
   ========================================================================== */
.ecsf-featured-main {
    position: relative;
    min-height: 400px;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.ecsf-featured-main .ecsf-post-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.ecsf-featured-main .ecsf-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ecsf-featured-main .ecsf-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-featured-main .ecsf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.ecsf-featured-main .ecsf-post-content-overlay {
    padding: 30px;
    background: transparent !important;
}

.ecsf-featured-main .ecsf-post-category {
    display: inline-block;
    margin-bottom: 10px;
    background: transparent !important;
    width: auto;
}

.ecsf-featured-main .ecsf-post-category a {
    display: inline-block;
    background: var(--ecsf-cat-bg, #e53935);
    color: var(--ecsf-cat-color, #fff);
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 3px;
    text-decoration: none;
}

.ecsf-featured-main .ecsf-post-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.ecsf-featured-main .ecsf-post-title a {
    color: #fff;
}

.ecsf-featured-main .ecsf-post-meta {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.ecsf-featured-main .ecsf-post-excerpt {
    color: rgba(255,255,255,0.9);
    margin-top: 10px;
}

.ecsf-featured-small {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

.ecsf-featured-small:hover {
    transform: translateY(-2px);
}

.ecsf-featured-small-inner {
    display: flex;
    gap: 15px;
}

.ecsf-featured-small .ecsf-post-image {
    flex: 0 0 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}

.ecsf-featured-small .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-featured-small .ecsf-post-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ecsf-featured-small .ecsf-post-category {
    order: 1;
    margin-bottom: 5px;
}

.ecsf-featured-small .ecsf-post-category a {
    font-size: 9px;
    padding: 2px 8px;
}

.ecsf-featured-small .ecsf-post-title {
    order: 2;
    font-size: 15px;
    margin-bottom: 8px;
}

.ecsf-featured-small .ecsf-post-meta {
    order: 3;
    font-size: 11px;
    margin: 0;
}

/* ==========================================================================
   LAYOUT 19: Highlight Cards (Like Screenshot)
   ========================================================================== */
.ecsf-highlight {
    position: relative;
    min-height: 380px;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
}

.ecsf-highlight .ecsf-post-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.ecsf-highlight .ecsf-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ecsf-highlight .ecsf-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-highlight .ecsf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.ecsf-highlight .ecsf-post-content-overlay {
    padding: 25px;
    background: transparent !important;
}

.ecsf-highlight .ecsf-post-category {
    display: inline-block;
    margin-bottom: 10px;
    background: transparent !important;
    width: auto;
}

.ecsf-highlight .ecsf-post-category a {
    display: inline-block;
    background: var(--ecsf-cat-bg, #e53935);
    color: var(--ecsf-cat-color, #fff);
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
}

.ecsf-highlight .ecsf-post-title {
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

.ecsf-highlight .ecsf-post-title a {
    color: #fff;
}

.ecsf-highlight .ecsf-post-meta {
    margin-top: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.ecsf-highlight .ecsf-post-meta {
    order: 3;
}

.ecsf-highlight:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   LAYOUT 20: Portrait Cards
   ========================================================================== */
.ecsf-portrait {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.ecsf-portrait .ecsf-portrait-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecsf-portrait .ecsf-post-image {
    height: 280px;
}

.ecsf-portrait .ecsf-post-image img {
    height: 100%;
    object-fit: cover;
}

.ecsf-portrait .ecsf-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    align-items: flex-start;
}

.ecsf-portrait .ecsf-post-category {
    order: 1;
    margin-bottom: 10px;
}

.ecsf-portrait .ecsf-post-title {
    order: 2;
    font-size: 20px;
}

.ecsf-portrait .ecsf-post-meta {
    order: 3;
}

.ecsf-portrait .ecsf-post-excerpt {
    order: 4;
    flex: 1;
}

.ecsf-portrait .ecsf-portrait-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ecsf-portrait .ecsf-portrait-footer .ecsf-post-meta {
    margin: 0;
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */
.ecsf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.ecsf-pagination a,
.ecsf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ecsf-pagination a:hover {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

.ecsf-pagination .current {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}

/* Load More Button */
.ecsf-load-more {
    text-align: center;
    margin-top: 45px;
}

.ecsf-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 16px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ecsf-load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.ecsf-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ecsf-load-more-btn.loading {
    position: relative;
    color: transparent;
}

.ecsf-load-more-btn.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ecsf-spin 0.8s linear infinite;
}

@keyframes ecsf-spin {
    to { transform: rotate(360deg); }
}

/* No Posts Message */
.ecsf-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .ecsf-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecsf-side,
    .ecsf-list,
    .ecsf-list-alternate {
        flex-direction: column;
    }

    .ecsf-list-alternate.ecsf-list-reversed {
        flex-direction: column;
    }

    .ecsf-side .ecsf-post-image,
    .ecsf-list .ecsf-post-image,
    .ecsf-list-alternate .ecsf-post-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    /* Overlay layouts tablet */
    .ecsf-overlay-item {
        min-height: 280px;
        height: 280px;
    }

    .ecsf-news-grid {
        min-height: 260px;
        height: 260px;
    }

    .ecsf-layout-grid_overlay .ecsf-overlay-item {
        min-height: 300px;
        height: 300px;
    }

    .ecsf-highlight {
        min-height: 320px;
        height: 320px;
    }

    .ecsf-slider-item {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
        aspect-ratio: 9 / 16;
        min-height: auto;
        height: auto;
    }

    .ecsf-featured-main {
        min-height: 350px;
        height: 350px;
    }

    .ecsf-layout-featured {
        grid-template-columns: 1fr !important;
    }

    .ecsf-layout-featured .ecsf-featured-main {
        grid-column: 1;
        grid-row: auto;
    }

    .ecsf-timeline-content {
        flex-direction: column;
    }

    .ecsf-timeline-content .ecsf-post-image {
        flex: none;
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .ecsf-posts-grid {
        grid-template-columns: 1fr;
    }

    .ecsf-post-title {
        font-size: 18px;
    }

    /* Overlay layouts mobile */
    .ecsf-overlay-item {
        min-height: 280px;
        height: 280px;
    }

    .ecsf-news-grid {
        min-height: 260px;
        height: 260px;
    }

    .ecsf-layout-grid_overlay .ecsf-overlay-item {
        min-height: 300px;
        height: 300px;
    }

    .ecsf-highlight {
        min-height: 300px;
        height: 300px;
    }

    .ecsf-featured-main {
        min-height: 320px;
        height: 320px;
    }

    .ecsf-slider-item {
        flex: 0 0 100%;
        min-width: 100%;
        aspect-ratio: 9 / 16;
        min-height: auto;
        height: auto;
        max-height: 75vh;
    }

    .ecsf-slider-arrow {
        width: 38px;
        height: 38px;
    }

    .ecsf-arrow-prev {
        left: 10px;
    }

    .ecsf-arrow-next {
        right: 10px;
    }

    .ecsf-category-list .ecsf-post-inner {
        flex-direction: column;
    }

    .ecsf-category-list .ecsf-post-image {
        flex: none;
        width: 100%;
        height: 150px;
    }

    .ecsf-layout-timeline {
        padding-left: 20px;
    }

    .ecsf-timeline-marker {
        left: -20px;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */
[dir="rtl"] .ecsf-posts-grid {
    direction: rtl;
}

[dir="rtl"] .ecsf-read-more {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecsf-read-more:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .ecsf-category-list {
    border-left: none;
    border-right: 4px solid currentColor;
}

[dir="rtl"] .ecsf-list-alternate.ecsf-list-reversed {
    flex-direction: row;
}

[dir="rtl"] .ecsf-list-alternate:not(.ecsf-list-reversed) {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecsf-arrow-prev {
    left: auto;
    right: -22px;
}

[dir="rtl"] .ecsf-arrow-next {
    right: auto;
    left: -22px;
}

/* ==========================================================================
   Extra Small Devices (phones, less than 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .ecsf-overlay-item,
    .ecsf-news-grid,
    .ecsf-highlight {
        min-height: 260px;
        height: 260px;
    }

    .ecsf-layout-grid_overlay .ecsf-overlay-item {
        min-height: 280px;
        height: 280px;
    }

    .ecsf-slider-item {
        aspect-ratio: 9 / 16;
        min-height: auto;
        height: auto;
    }

    .ecsf-featured-main {
        min-height: 300px;
        height: 300px;
    }

    .ecsf-post-title {
        font-size: 16px;
    }

    .ecsf-slider-item .ecsf-post-title {
        font-size: 14px;
    }

    .ecsf-news-grid .ecsf-post-title {
        font-size: 15px;
    }

    .ecsf-post-content-overlay {
        padding: 15px;
    }

    .ecsf-slider-arrow {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   Large screens (1200px and up) - Ensure proper heights
   ========================================================================== */
@media (min-width: 1200px) {
    .ecsf-overlay-item {
        min-height: 350px;
        height: 350px;
    }

    .ecsf-news-grid {
        min-height: 300px;
        height: 300px;
    }

    .ecsf-layout-grid_overlay .ecsf-overlay-item {
        min-height: 380px;
        height: 380px;
    }

    .ecsf-highlight {
        min-height: 400px;
        height: 400px;
    }

    .ecsf-slider-item {
        aspect-ratio: 9 / 16;
        min-height: auto;
        height: auto;
    }

    .ecsf-featured-main {
        min-height: 420px;
        height: 100%;
    }
}

/* ==========================================================================
   Universal Overlay Image Fix - Ensures images fill containers completely
   ========================================================================== */
.ecsf-overlay-item,
.ecsf-news-grid,
.ecsf-slider-item,
.ecsf-highlight,
.ecsf-featured-main,
.ecsf-layout-grid_overlay .ecsf-overlay-item {
    display: flex;
    flex-direction: column;
}

.ecsf-overlay-item .ecsf-post-image,
.ecsf-news-grid .ecsf-post-image,
.ecsf-slider-item .ecsf-post-image,
.ecsf-highlight .ecsf-post-image,
.ecsf-featured-main .ecsf-post-image,
.ecsf-layout-grid_overlay .ecsf-overlay-item .ecsf-post-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.ecsf-overlay-item .ecsf-post-image img,
.ecsf-news-grid .ecsf-post-image img,
.ecsf-slider-item .ecsf-post-image img,
.ecsf-highlight .ecsf-post-image img,
.ecsf-featured-main .ecsf-post-image img,
.ecsf-layout-grid_overlay .ecsf-overlay-item .ecsf-post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.ecsf-overlay-item .ecsf-post-image a,
.ecsf-news-grid .ecsf-post-image a,
.ecsf-slider-item .ecsf-post-image a,
.ecsf-highlight .ecsf-post-image a,
.ecsf-featured-main .ecsf-post-image a,
.ecsf-layout-grid_overlay .ecsf-overlay-item .ecsf-post-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   CRITICAL: Universal Overlay Layout Fix 
   High specificity overrides for overlay-style layouts
   ========================================================================== */

/* Force NO background on ALL overlay content areas */
.ecsf-posts-wrapper .ecsf-post-item .ecsf-post-content-overlay,
.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-content-overlay,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-content-overlay,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-content-overlay,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-content-overlay,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-content-overlay,
article.ecsf-post-item .ecsf-post-content-overlay,
article.ecsf-overlay-item .ecsf-post-content-overlay,
article.ecsf-news-grid .ecsf-post-content-overlay,
.ecsf-post-content-overlay {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Category container - MUST NOT have background */
.ecsf-posts-wrapper .ecsf-post-item .ecsf-post-content-overlay .ecsf-post-category,
.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-category,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-category,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-category,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-category,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-category,
article.ecsf-overlay-item .ecsf-post-category,
article.ecsf-news-grid .ecsf-post-category,
.ecsf-post-content-overlay .ecsf-post-category {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Category badge LINK - the actual badge (default styles, can be overridden by Elementor) */
.ecsf-posts-wrapper .ecsf-post-item .ecsf-post-content-overlay .ecsf-post-category a,
.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-category a,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-category a,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-category a,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-category a,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-category a,
article.ecsf-overlay-item .ecsf-post-category a,
article.ecsf-news-grid .ecsf-post-category a,
.ecsf-post-content-overlay .ecsf-post-category a,
.ecsf-category-badge-overlay {
    display: inline-block !important;
    width: auto !important;
    padding: 5px 14px;
    background: var(--ecsf-cat-bg, #e53935);
    background-color: var(--ecsf-cat-bg, #e53935);
    color: var(--ecsf-cat-color, #fff);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-decoration: none !important;
    line-height: 1.4;
}

/* Title container - NO background */
.ecsf-posts-wrapper .ecsf-post-item .ecsf-post-content-overlay .ecsf-post-title,
.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-title,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-title,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-title,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-title,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-title,
article.ecsf-overlay-item .ecsf-post-title,
article.ecsf-news-grid .ecsf-post-title,
.ecsf-post-content-overlay .ecsf-post-title {
    color: #fff !important;
    margin: 0 0 8px 0 !important;
    background: none !important;
    background-color: transparent !important;
}

/* Title link */
.ecsf-posts-wrapper .ecsf-post-item .ecsf-post-content-overlay .ecsf-post-title a,
.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-title a,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-title a,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-title a,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-title a,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-title a,
article.ecsf-overlay-item .ecsf-post-title a,
article.ecsf-news-grid .ecsf-post-title a,
.ecsf-post-content-overlay .ecsf-post-title a {
    color: #fff !important;
    text-decoration: none !important;
    background: none !important;
}

/* Meta container - NO background */
.ecsf-posts-wrapper .ecsf-post-item .ecsf-post-content-overlay .ecsf-post-meta,
.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-meta,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-meta,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-meta,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-meta,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-meta,
article.ecsf-overlay-item .ecsf-post-meta,
article.ecsf-news-grid .ecsf-post-meta,
.ecsf-post-content-overlay .ecsf-post-meta {
    color: rgba(255,255,255,0.85) !important;
    font-size: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Meta spans and links */
.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-meta span,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-meta span,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-meta span,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-meta span,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-meta span,
.ecsf-post-content-overlay .ecsf-post-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: rgba(255,255,255,0.85) !important;
    background: none !important;
}

.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-meta a,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-meta a,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-meta a,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-meta a,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-meta a,
.ecsf-post-content-overlay .ecsf-post-meta a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
}

/* Excerpt - NO background */
.ecsf-posts-wrapper .ecsf-overlay-item .ecsf-post-excerpt,
.ecsf-posts-wrapper .ecsf-news-grid .ecsf-post-excerpt,
.ecsf-posts-wrapper .ecsf-slider-item .ecsf-post-excerpt,
.ecsf-posts-wrapper .ecsf-highlight .ecsf-post-excerpt,
.ecsf-posts-wrapper .ecsf-featured-main .ecsf-post-excerpt,
.ecsf-post-content-overlay .ecsf-post-excerpt {
    color: rgba(255,255,255,0.9) !important;
    background: none !important;
    margin-top: 8px !important;
}

/* ==========================================================================
   Loop Item Widget Styles
   ========================================================================== */
.ecsf-loop-item {
    margin-bottom: 10px;
}

.ecsf-loop-item:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Post Author Box Widget
   ========================================================================== */
.ecsf-author-box {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ecsf-author-horizontal {
    flex-direction: row;
}

.ecsf-author-vertical {
    flex-direction: column;
    text-align: center;
}

.ecsf-author-avatar img {
    border-radius: 50%;
    object-fit: cover;
}

.ecsf-author-info {
    flex: 1;
}

.ecsf-author-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.ecsf-author-name a {
    text-decoration: none;
    color: inherit;
}

.ecsf-author-bio {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
}

.ecsf-author-posts-link {
    display: inline-block;
    font-size: 14px;
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
}

.ecsf-author-posts-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Post Navigation Widget
   ========================================================================== */
.ecsf-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.ecsf-nav-prev,
.ecsf-nav-next {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.ecsf-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.ecsf-nav-arrow {
    font-size: 24px;
    color: #e53935;
}

.ecsf-nav-content {
    flex: 1;
}

.ecsf-nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ecsf-nav-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ecsf-nav-title a {
    text-decoration: none;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

.ecsf-nav-title a:hover {
    color: #e53935;
}

.ecsf-nav-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.ecsf-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Related Posts Widget
   ========================================================================== */
.ecsf-related-heading {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 700;
}

.ecsf-related-grid {
    display: grid;
    gap: 25px;
}

.ecsf-related-grid.ecsf-columns-1 { grid-template-columns: 1fr; }
.ecsf-related-grid.ecsf-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ecsf-related-grid.ecsf-columns-3 { grid-template-columns: repeat(3, 1fr); }
.ecsf-related-grid.ecsf-columns-4 { grid-template-columns: repeat(4, 1fr); }

.ecsf-related-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecsf-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ecsf-related-image {
    height: 180px;
    overflow: hidden;
}

.ecsf-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ecsf-related-item:hover .ecsf-related-image img {
    transform: scale(1.05);
}

.ecsf-related-content {
    padding: 20px;
}

.ecsf-related-category {
    display: inline-block;
    margin-bottom: 10px;
}

.ecsf-related-category a {
    display: inline-block;
    padding: 3px 10px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
}

.ecsf-related-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ecsf-related-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecsf-related-title a:hover {
    color: #e53935;
}

.ecsf-related-date {
    font-size: 13px;
    color: #999;
}

/* ==========================================================================
   Post Tags Widget
   ========================================================================== */
.ecsf-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ecsf-tag-layout-list {
    flex-direction: column;
    align-items: flex-start;
}

.ecsf-tags-icon {
    color: #666;
}

.ecsf-tags-prefix {
    font-weight: 500;
    color: #666;
}

.ecsf-tag-item a {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ecsf-tag-style-badge .ecsf-tag-item a,
.ecsf-tag-style-pill .ecsf-tag-item a {
    padding: 5px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
}

.ecsf-tag-style-badge .ecsf-tag-item a {
    border-radius: 3px;
}

.ecsf-tag-style-pill .ecsf-tag-item a {
    border-radius: 20px;
}

.ecsf-tag-style-outline .ecsf-tag-item a {
    padding: 5px 12px;
    border: 1px solid #ddd;
    color: #666;
    background: transparent;
    border-radius: 3px;
}

.ecsf-tag-style-text .ecsf-tag-item a {
    color: #666;
}

.ecsf-tag-item a:hover {
    background: #e53935;
    color: #fff;
}

.ecsf-tag-style-text .ecsf-tag-item a:hover {
    background: transparent;
    color: #e53935;
}

/* ==========================================================================
   Post Share Widget
   ========================================================================== */
.ecsf-share-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ecsf-share-label {
    font-weight: 500;
    color: #666;
}

.ecsf-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ecsf-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.ecsf-share-btn.ecsf-icon-only {
    width: 40px;
    height: 40px;
}

.ecsf-share-btn.ecsf-icon-text,
.ecsf-share-btn.ecsf-text-only {
    padding: 10px 18px;
}

.ecsf-shape-square { border-radius: 0; }
.ecsf-shape-rounded { border-radius: 5px; }
.ecsf-shape-circle { border-radius: 50%; }

.ecsf-share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.ecsf-share-btn.copied {
    background: #4caf50 !important;
}

/* ==========================================================================
   Post Date Widget
   ========================================================================== */
.ecsf-post-date-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ecsf-date-stacked {
    flex-direction: column;
    gap: 8px;
}

.ecsf-date-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ecsf-date-icon {
    color: #999;
}

.ecsf-date-prefix {
    color: #666;
}

.ecsf-date-text {
    color: #666;
}

.ecsf-date-badge {
    display: inline-flex;
    padding: 8px 15px;
    background: #e53935;
    color: #fff;
    border-radius: 5px;
}

.ecsf-date-badge .ecsf-date-text,
.ecsf-date-badge .ecsf-date-icon,
.ecsf-date-badge .ecsf-date-prefix {
    color: #fff;
}

/* ==========================================================================
   Post Reading Time Widget
   ========================================================================== */
.ecsf-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.ecsf-reading-icon {
    color: #999;
}

.ecsf-reading-badge {
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 15px;
}

/* ==========================================================================
   Post Breadcrumbs Widget
   ========================================================================== */
.ecsf-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 14px;
}

.ecsf-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ecsf-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecsf-breadcrumb-link:hover {
    color: #e53935;
}

.ecsf-breadcrumb-separator {
    margin: 0 10px;
    color: #ccc;
}

.ecsf-breadcrumb-current {
    color: #1a1a2e;
    font-weight: 500;
}

/* ==========================================================================
   Post Comments Widget
   ========================================================================== */
.ecsf-comments-wrapper {
    display: inline-block;
}

.ecsf-comments-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.ecsf-comments-count a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecsf-comments-count a:hover {
    color: #e53935;
}

.ecsf-comments-icon {
    color: #999;
}

.ecsf-comments-badge,
.ecsf-comments-bubble {
    padding: 5px 12px;
    background: #e53935;
    color: #fff;
    border-radius: 15px;
}

.ecsf-comments-badge a,
.ecsf-comments-bubble a {
    color: #fff;
}

.ecsf-comments-bubble {
    position: relative;
    border-radius: 8px;
}

.ecsf-comments-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #e53935;
}

/* ==========================================================================
   Post Categories Widget
   ========================================================================== */
.ecsf-post-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ecsf-category-item a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ecsf-style-badge .ecsf-category-item a {
    padding: 5px 14px;
    background: #e53935;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ecsf-style-pill .ecsf-category-item a {
    padding: 5px 14px;
    background: #e53935;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ecsf-style-outline .ecsf-category-item a {
    padding: 5px 14px;
    border: 1px solid #e53935;
    color: #e53935;
    background: transparent;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ecsf-style-text .ecsf-category-item a {
    color: #e53935;
    font-weight: 500;
}

.ecsf-style-underline .ecsf-category-item a {
    color: #e53935;
    border-bottom: 2px solid #e53935;
    padding-bottom: 2px;
}

.ecsf-style-badge .ecsf-category-item a:hover,
.ecsf-style-pill .ecsf-category-item a:hover {
    background: #c62828;
}

.ecsf-style-outline .ecsf-category-item a:hover {
    background: #e53935;
    color: #fff;
}

.ecsf-category-separator {
    color: #999;
}

/* ==========================================================================
   Responsive for New Widgets
   ========================================================================== */
@media (max-width: 768px) {
    .ecsf-post-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .ecsf-nav-next {
        justify-content: flex-start;
        text-align: left;
    }
    
    .ecsf-related-grid.ecsf-columns-3,
    .ecsf-related-grid.ecsf-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ecsf-author-horizontal {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ecsf-related-grid.ecsf-columns-2,
    .ecsf-related-grid.ecsf-columns-3,
    .ecsf-related-grid.ecsf-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .ecsf-share-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Post Table of Contents Widget
   ========================================================================== */
.ecsf-toc {
    position: relative;
}

.ecsf-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ecsf-toc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ecsf-toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    color: #666;
    transition: transform 0.3s ease;
}

.ecsf-toc-collapsed .ecsf-toc-toggle {
    transform: rotate(-90deg);
}

.ecsf-toc-collapsed .ecsf-toc-content {
    display: none;
}

.ecsf-toc-list {
    margin: 0;
    padding-left: 25px;
    list-style: decimal;
}

.ecsf-toc-list.ecsf-no-numbers {
    list-style: none;
    padding-left: 0;
}

.ecsf-toc-item {
    margin-bottom: 10px;
}

.ecsf-toc-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecsf-toc-item a:hover {
    color: #e53935;
}

.ecsf-toc-level-1 {
    padding-left: 20px;
}

.ecsf-toc-level-2 {
    padding-left: 40px;
}

.ecsf-toc-level-3 {
    padding-left: 60px;
}

/* ==========================================================================
   Post Views Counter Widget
   ========================================================================== */
.ecsf-views-wrapper {
    display: inline-block;
}

.ecsf-views-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ecsf-views-icon {
    color: #999;
}

.ecsf-views-number {
    font-weight: 600;
}

.ecsf-views-badge {
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 15px;
}

.ecsf-views-stacked {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ecsf-views-stacked .ecsf-views-count {
    flex-direction: column;
}

/* ==========================================================================
   Post Slider Carousel Widget
   ========================================================================== */
.ecsf-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.ecsf-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.ecsf-carousel-slide {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

.ecsf-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
}

.ecsf-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.ecsf-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.ecsf-carousel-category a {
    display: inline-block;
    padding: 4px 12px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 10px;
}

.ecsf-carousel-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.ecsf-carousel-title a {
    color: #fff;
    text-decoration: none;
}

.ecsf-carousel-excerpt {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 10px;
}

.ecsf-carousel-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.ecsf-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.ecsf-carousel-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.ecsf-arrow-prev {
    left: 15px;
}

.ecsf-arrow-next {
    right: 15px;
}

.ecsf-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ecsf-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ecsf-carousel-dot.active,
.ecsf-carousel-dot:hover {
    background: #e53935;
}

/* ==========================================================================
   Post Timeline Widget - Clean Design (New)
   ========================================================================== */
.ecsf-tl {
    position: relative;
    padding: 20px 0;
}

/* Vertical Line */
.ecsf-tl::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.ecsf-tl--left::before {
    left: 6px;
    transform: none;
}

/* Timeline Item */
.ecsf-tl__item {
    position: relative;
    margin-bottom: 40px;
    width: calc(50% - 30px);
}

.ecsf-tl__item:last-child {
    margin-bottom: 0;
}

/* Left side items (default) */
.ecsf-tl__item--left {
    margin-right: auto;
    padding-right: 0;
}

/* Right side items (alternating) */
.ecsf-tl__item--right {
    margin-left: auto;
}

/* Left line layout - all items on right */
.ecsf-tl--left .ecsf-tl__item {
    width: calc(100% - 40px);
    margin-left: 40px;
}

/* Timeline Dot */
.ecsf-tl__dot {
    position: absolute;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #e53935;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
    z-index: 2;
}

/* Dot position for center layout */
.ecsf-tl--center .ecsf-tl__item--left .ecsf-tl__dot {
    right: -36px;
}

.ecsf-tl--center .ecsf-tl__item--right .ecsf-tl__dot {
    left: -36px;
}

/* Dot position for left layout */
.ecsf-tl--left .ecsf-tl__dot {
    left: -34px;
}

/* Timeline Card */
.ecsf-tl__card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Date Badge - inside card */
.ecsf-tl__date {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 3;
    white-space: nowrap;
}

/* Image */
.ecsf-tl__img {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.ecsf-tl__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ecsf-tl__card:hover .ecsf-tl__img img {
    transform: scale(1.05);
}

/* Body */
.ecsf-tl__body {
    padding: 20px;
}

/* Category */
.ecsf-tl__cat {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    color: #666;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.ecsf-tl__cat:hover {
    background: #e53935;
    color: #fff;
}

/* Title */
.ecsf-tl__title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ecsf-tl__title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecsf-tl__title a:hover {
    color: #e53935;
}

/* Excerpt */
.ecsf-tl__excerpt {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .ecsf-tl::before {
        left: 6px;
        transform: none;
    }
    
    .ecsf-tl__item,
    .ecsf-tl__item--left,
    .ecsf-tl__item--right {
        width: calc(100% - 40px);
        margin-left: 40px;
        margin-right: 0;
    }
    
    .ecsf-tl__dot,
    .ecsf-tl--center .ecsf-tl__item--left .ecsf-tl__dot,
    .ecsf-tl--center .ecsf-tl__item--right .ecsf-tl__dot {
        left: -34px;
        right: auto;
    }
}

/* ==========================================================================
   Post News Ticker Widget - Pure CSS Animation (Theme-like approach)
   ========================================================================== */
.ecsf-ticker {
    display: flex;
    align-items: stretch;
    background: #1a1a2e;
    overflow: hidden;
    min-height: 45px;
}

.ecsf-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background: #e53935;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ecsf-ticker-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: ecsf-ticker-pulse 1.5s infinite;
}

@keyframes ecsf-ticker-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ecsf-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.ecsf-ticker-list {
    display: flex;
    white-space: nowrap;
    animation: ecsf-ticker-scroll var(--ticker-speed, 20s) linear infinite;
}

/* Pause on hover - Pure CSS */
.ecsf-ticker-pausable:hover .ecsf-ticker-list {
    animation-play-state: paused;
}

@keyframes ecsf-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ecsf-ticker-item {
    padding: 0 2rem;
    position: relative;
}

.ecsf-ticker-item::after {
    content: '•';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #e53935;
}

.ecsf-ticker-item:last-child::after {
    display: none;
}

.ecsf-ticker-item a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ecsf-ticker-item a:hover {
    color: #e53935;
}

/* ==========================================================================
   Post Filter Tabs Widget
   ========================================================================== */
.ecsf-filter-wrapper {
    width: 100%;
}

.ecsf-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.ecsf-filter-tab {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ecsf-filter-tab:hover,
.ecsf-filter-tab.active {
    background: #e53935;
    color: #fff;
}

.ecsf-filter-grid {
    display: grid;
    gap: 25px;
}

.ecsf-filter-grid.ecsf-columns-1 { grid-template-columns: 1fr; }
.ecsf-filter-grid.ecsf-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ecsf-filter-grid.ecsf-columns-3 { grid-template-columns: repeat(3, 1fr); }
.ecsf-filter-grid.ecsf-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .ecsf-filter-grid.ecsf-columns-3,
    .ecsf-filter-grid.ecsf-columns-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ecsf-filter-grid.ecsf-columns-2,
    .ecsf-filter-grid.ecsf-columns-3,
    .ecsf-filter-grid.ecsf-columns-4 { grid-template-columns: 1fr; }
}

.ecsf-filter-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.ecsf-filter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ecsf-filter-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.ecsf-filter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ecsf-filter-item:hover .ecsf-filter-image img {
    transform: scale(1.05);
}

/* Category Badge */
.ecsf-filter-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s ease;
    z-index: 2;
}

.ecsf-filter-cat-badge:hover {
    background: #c62828;
    color: #fff;
}

.ecsf-filter-item-content {
    padding: 20px;
}

.ecsf-filter-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ecsf-filter-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecsf-filter-title a:hover {
    color: #e53935;
}

.ecsf-filter-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.ecsf-filter-date {
    color: #999;
    font-size: 13px;
}

/* Filter Animation */
@keyframes ecsf-fade-in {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==========================================================================
   Post Video Embed Widget
   ========================================================================== */
.ecsf-video-wrapper {
    position: relative;
    overflow: hidden;
}

.ecsf-video-wrapper.ecsf-aspect-16-9 {
    padding-bottom: 56.25%;
}

.ecsf-video-wrapper.ecsf-aspect-4-3 {
    padding-bottom: 75%;
}

.ecsf-video-wrapper.ecsf-aspect-21-9 {
    padding-bottom: 42.86%;
}

.ecsf-video-wrapper.ecsf-aspect-1-1 {
    padding-bottom: 100%;
}

.ecsf-video-overlay,
.ecsf-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ecsf-video-overlay {
    cursor: pointer;
}

.ecsf-video-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 57, 53, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
}

.ecsf-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #e53935;
}

.ecsf-video-embed iframe {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Post Progress Bar Widget
   ========================================================================== */
.ecsf-progress-wrapper {
    width: 100%;
}

.ecsf-progress-bar {
    width: 100%;
    background: #e0e0e0;
    overflow: hidden;
}

.ecsf-progress-fill {
    width: 0;
    background: #e53935;
    transition: width 0.1s linear;
}

.ecsf-progress-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ecsf-progress-inline .ecsf-progress-bar {
    flex: 1;
    border-radius: 10px;
}

.ecsf-progress-inline .ecsf-progress-fill {
    border-radius: 10px;
}

.ecsf-progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-width: 45px;
}

/* ==========================================================================
   Post Quote Box Widget
   ========================================================================== */
.ecsf-quote-box {
    position: relative;
    margin: 0;
}

.ecsf-quote-border-left {
    border-left: 4px solid #e53935;
    padding-left: 25px;
}

.ecsf-quote-border-top {
    border-top: 4px solid #e53935;
    padding-top: 25px;
}

.ecsf-quote-boxed {
    border: 1px solid #e0e0e0;
}

.ecsf-quote-icon {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 40px;
    font-family: Georgia, serif;
    color: #e53935;
    opacity: 0.2;
    line-height: 1;
}

.ecsf-quote-modern .ecsf-quote-icon {
    font-size: 80px;
    top: 10px;
    left: 15px;
}

.ecsf-quote-text {
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
}

.ecsf-quote-modern .ecsf-quote-text {
    font-size: 24px;
    padding-left: 50px;
}

.ecsf-quote-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ecsf-quote-author-name {
    font-weight: 600;
    font-size: 15px;
}

.ecsf-quote-author-title {
    font-size: 13px;
    color: #666;
}

/* ==========================================================================
   Post Info Box Widget
   ========================================================================== */
.ecsf-info-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    position: relative;
    transition: all 0.3s ease;
}

.ecsf-info-icon {
    flex-shrink: 0;
    font-size: 24px;
}

.ecsf-info-body {
    flex: 1;
}

.ecsf-info-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.ecsf-info-content {
    font-size: 14px;
    line-height: 1.6;
}

.ecsf-info-content p:last-child {
    margin-bottom: 0;
}

.ecsf-info-dismiss {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.ecsf-info-dismiss:hover {
    opacity: 1;
}

/* Info Box Type Colors */
.ecsf-type-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}
.ecsf-type-info .ecsf-info-icon { color: #2196f3; }
.ecsf-type-info .ecsf-info-title { color: #1565c0; }

.ecsf-type-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}
.ecsf-type-success .ecsf-info-icon { color: #4caf50; }
.ecsf-type-success .ecsf-info-title { color: #2e7d32; }

.ecsf-type-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}
.ecsf-type-warning .ecsf-info-icon { color: #ff9800; }
.ecsf-type-warning .ecsf-info-title { color: #e65100; }

.ecsf-type-danger {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}
.ecsf-type-danger .ecsf-info-icon { color: #f44336; }
.ecsf-type-danger .ecsf-info-title { color: #c62828; }

.ecsf-type-tip {
    background: #fce4ec;
    border-color: #e91e63;
    color: #ad1457;
}
.ecsf-type-tip .ecsf-info-icon { color: #e91e63; }
.ecsf-type-tip .ecsf-info-title { color: #ad1457; }

.ecsf-type-note {
    background: #f3e5f5;
    border-color: #9c27b0;
    color: #6a1b9a;
}
.ecsf-type-note .ecsf-info-icon { color: #9c27b0; }
.ecsf-type-note .ecsf-info-title { color: #6a1b9a; }

/* Info Box Styles */
.ecsf-style-outline {
    background: transparent !important;
    border-style: solid;
}

.ecsf-style-left-border {
    border-left-style: solid;
    border-radius: 0 8px 8px 0;
}

.ecsf-style-top-border {
    border-top-style: solid;
    border-radius: 0 0 8px 8px;
}

/* ==========================================================================
   Responsive for New Widgets Set 2
   ========================================================================== */
@media (max-width: 768px) {
    .ecsf-timeline-center .ecsf-timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
        margin-left: 0;
    }
    
    .ecsf-timeline-center::before {
        left: 20px;
        transform: none;
    }
    
    .ecsf-timeline-center .ecsf-timeline-left .ecsf-timeline-dot,
    .ecsf-timeline-center .ecsf-timeline-right .ecsf-timeline-dot {
        left: 12px;
        right: auto;
    }
    
    .ecsf-filter-grid.ecsf-columns-3,
    .ecsf-filter-grid.ecsf-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ecsf-carousel-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ecsf-filter-grid.ecsf-columns-2,
    .ecsf-filter-grid.ecsf-columns-3,
    .ecsf-filter-grid.ecsf-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .ecsf-ticker {
        flex-direction: column;
    }
    
    .ecsf-ticker-label {
        justify-content: center;
    }
    
    .ecsf-quote-modern .ecsf-quote-text {
        font-size: 18px;
        padding-left: 30px;
    }
    
    .ecsf-quote-modern .ecsf-quote-icon {
        font-size: 50px;
    }
}

/* ==========================================================================
   RTL (Right-to-Left) Support
   ========================================================================== */

/* RTL Slider Support */
/* Force LTR on slider mechanics, swap direction in JS */
[dir="rtl"] .ecsf-slider-wrapper,
.rtl .ecsf-slider-wrapper,
.ecsf-slider-rtl {
    direction: ltr !important;
}

[dir="rtl"] .ecsf-slider-container,
.rtl .ecsf-slider-container,
.ecsf-slider-rtl .ecsf-slider-container {
    direction: ltr !important;
}

[dir="rtl"] .ecsf-slider-track,
.rtl .ecsf-slider-track,
.ecsf-slider-rtl .ecsf-slider-track {
    direction: ltr !important;
}

[dir="rtl"] .ecsf-posts-grid,
.rtl .ecsf-posts-grid {
    direction: ltr !important;
}

/* RTL content inside slides - text alignment */
[dir="rtl"] .ecsf-slider-item,
.rtl .ecsf-slider-item,
.ecsf-slider-rtl .ecsf-slider-item {
    direction: rtl !important;
}

[dir="rtl"] .ecsf-slider-item .ecsf-post-content,
.rtl .ecsf-slider-item .ecsf-post-content,
.ecsf-slider-rtl .ecsf-slider-item .ecsf-post-content,
[dir="rtl"] .ecsf-slider-item .ecsf-post-content-overlay,
.rtl .ecsf-slider-item .ecsf-post-content-overlay,
.ecsf-slider-rtl .ecsf-slider-item .ecsf-post-content-overlay {
    text-align: right;
}

/* RTL Arrow positioning - swap positions */
[dir="rtl"] .ecsf-slider-wrapper .ecsf-arrow-prev,
.rtl .ecsf-slider-wrapper .ecsf-arrow-prev,
.ecsf-slider-rtl .ecsf-arrow-prev {
    left: 10px !important;
    right: auto !important;
}

[dir="rtl"] .ecsf-slider-wrapper .ecsf-arrow-next,
.rtl .ecsf-slider-wrapper .ecsf-arrow-next,
.ecsf-slider-rtl .ecsf-arrow-next {
    right: 10px !important;
    left: auto !important;
}

/* RTL News Ticker */
[dir="rtl"] .ecsf-ticker,
.rtl .ecsf-ticker {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecsf-ticker-label,
.rtl .ecsf-ticker-label {
    border-radius: 0 4px 4px 0;
}

[dir="rtl"] .ecsf-ticker-content,
.rtl .ecsf-ticker-content {
    direction: rtl;
}

[dir="rtl"] .ecsf-ticker-track,
.rtl .ecsf-ticker-track {
    animation-name: ecsf-ticker-scroll-rtl;
    padding-right: 100%;
    padding-left: 0;
}

@keyframes ecsf-ticker-scroll-rtl {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

[dir="rtl"] .ecsf-ticker-item,
.rtl .ecsf-ticker-item {
    padding: 0 20px 0 0;
    margin: 0 0 0 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
}

[dir="rtl"] .ecsf-ticker-item:last-child,
.rtl .ecsf-ticker-item:last-child {
    border-left: none;
}

/* RTL Posts Grid */
[dir="rtl"] .ecsf-posts-grid,
.rtl .ecsf-posts-grid {
    direction: rtl;
}

/* RTL Post Content */
[dir="rtl"] .ecsf-post-item,
.rtl .ecsf-post-item {
    text-align: right;
}

[dir="rtl"] .ecsf-post-meta,
.rtl .ecsf-post-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecsf-post-meta span,
.rtl .ecsf-post-meta span {
    flex-direction: row-reverse;
}

/* RTL Side by Side Layout */
[dir="rtl"] .ecsf-layout-side .ecsf-post-item,
.rtl .ecsf-layout-side .ecsf-post-item {
    flex-direction: row-reverse;
}

/* RTL List Layouts */
[dir="rtl"] .ecsf-layout-list .ecsf-post-item,
[dir="rtl"] .ecsf-layout-list_alternate .ecsf-post-item,
[dir="rtl"] .ecsf-layout-list_minimal .ecsf-post-item,
.rtl .ecsf-layout-list .ecsf-post-item,
.rtl .ecsf-layout-list_alternate .ecsf-post-item,
.rtl .ecsf-layout-list_minimal .ecsf-post-item {
    flex-direction: row-reverse;
}

/* RTL Timeline */
[dir="rtl"] .ecsf-tl--center .ecsf-tl__item--left,
.rtl .ecsf-tl--center .ecsf-tl__item--left {
    padding-left: 30px;
    padding-right: 0;
}

[dir="rtl"] .ecsf-tl--center .ecsf-tl__item--right,
.rtl .ecsf-tl--center .ecsf-tl__item--right {
    padding-right: 30px;
    padding-left: 0;
}

/* RTL Filter Tabs */
[dir="rtl"] .ecsf-filter-tabs,
.rtl .ecsf-filter-tabs {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecsf-filter-card,
.rtl .ecsf-filter-card {
    text-align: right;
}

/* RTL Featured Layout */
[dir="rtl"] .ecsf-layout-featured,
.rtl .ecsf-layout-featured {
    direction: rtl;
}

/* RTL Quote Box */
[dir="rtl"] .ecsf-quote-modern .ecsf-quote-text,
.rtl .ecsf-quote-modern .ecsf-quote-text {
    padding-right: 50px;
    padding-left: 0;
}

[dir="rtl"] .ecsf-quote-modern .ecsf-quote-icon,
.rtl .ecsf-quote-modern .ecsf-quote-icon {
    right: 0;
    left: auto;
}

/* RTL Carousel Slider (standalone widget) */
/* Force LTR on carousel mechanics, swap direction in JS */
[dir="rtl"] .ecsf-carousel-wrapper,
.rtl .ecsf-carousel-wrapper,
.ecsf-carousel-rtl {
    direction: ltr !important;
}

[dir="rtl"] .ecsf-carousel-track,
.rtl .ecsf-carousel-track,
.ecsf-carousel-rtl .ecsf-carousel-track {
    direction: ltr !important;
}

/* RTL content inside slides */
[dir="rtl"] .ecsf-carousel-slide,
.rtl .ecsf-carousel-slide,
.ecsf-carousel-rtl .ecsf-carousel-slide {
    direction: rtl !important;
}

[dir="rtl"] .ecsf-carousel-content,
.rtl .ecsf-carousel-content,
.ecsf-carousel-rtl .ecsf-carousel-content {
    text-align: right;
}

/* RTL Carousel Arrow positioning - swap */
[dir="rtl"] .ecsf-carousel-arrow.ecsf-arrow-prev,
.rtl .ecsf-carousel-arrow.ecsf-arrow-prev,
.ecsf-carousel-rtl .ecsf-carousel-arrow.ecsf-arrow-prev {
    left: 10px !important;
    right: auto !important;
}

[dir="rtl"] .ecsf-carousel-arrow.ecsf-arrow-next,
.rtl .ecsf-carousel-arrow.ecsf-arrow-next,
.ecsf-carousel-rtl .ecsf-carousel-arrow.ecsf-arrow-next {
    right: 10px !important;
    left: auto !important;
}

/* RTL Post Navigation */
[dir="rtl"] .ecsf-post-navigation,
.rtl .ecsf-post-navigation {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecsf-nav-prev,
.rtl .ecsf-nav-prev {
    text-align: right;
}

[dir="rtl"] .ecsf-nav-next,
.rtl .ecsf-nav-next {
    text-align: left;
}

/* RTL Breadcrumbs */
[dir="rtl"] .ecsf-breadcrumbs,
.rtl .ecsf-breadcrumbs {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecsf-breadcrumb-separator,
.rtl .ecsf-breadcrumb-separator {
    transform: rotate(180deg);
}

/* RTL Share Buttons */
[dir="rtl"] .ecsf-share-buttons,
.rtl .ecsf-share-buttons {
    flex-direction: row-reverse;
}

/* RTL Author Box */
[dir="rtl"] .ecsf-author-box,
.rtl .ecsf-author-box {
    flex-direction: row-reverse;
    text-align: right;
}

/* RTL Related Posts */
[dir="rtl"] .ecsf-related-posts-grid,
.rtl .ecsf-related-posts-grid {
    direction: rtl;
}

/* RTL Info Box */
[dir="rtl"] .ecsf-info-box,
.rtl .ecsf-info-box {
    text-align: right;
}

[dir="rtl"] .ecsf-info-box-icon-left .ecsf-info-box-inner,
.rtl .ecsf-info-box-icon-left .ecsf-info-box-inner {
    flex-direction: row-reverse;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NEWS SLIDER WIDGET - Developer News Slider v2.0
   Three Layouts: Classic, Overlay, Magazine
   ══════════════════════════════════════════════════════════════════════════════ */

/* Base Reset & Variables */
.dns-slider {
    --dns-radius: 6px;
    --dns-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background: var(--dns-bg, #0d0d0d);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dns-slider *, .dns-slider *::before, .dns-slider *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.dns-slider a,
.dns-slider a:link,
.dns-slider a:visited,
.dns-slider a:hover,
.dns-slider a:active,
.dns-slider a:focus {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.dns-slider img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Auto-fit for various image sizes */
    min-width: 100% !important;
    min-height: 100% !important;
}

.dns-slider ul, .dns-slider li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.dns-slider button {
    font-family: inherit;
    cursor: pointer;
    border: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.dns-slider h3 {
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

/* LAYOUT 1: CLASSIC - Side-by-side */
.dns-layout-classic .dns-feat {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.dns-layout-classic .dns-feat__link {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 100% !important;
}

.dns-layout-classic[dir="rtl"] .dns-feat__link {
    flex-direction: row-reverse !important;
}

.dns-layout-classic .dns-feat__info {
    flex: 0 0 var(--dns-info-w, 38%);
    width: var(--dns-info-w, 38%);
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 32px 28px !important;
    background: var(--dns-info-bg, #141414) !important;
    color: #fff !important;
    overflow: hidden;
    position: relative;
}

.dns-layout-classic .dns-feat__info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dns-accent, #ff6b35);
}

.dns-layout-classic .dns-feat__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dns-layout-classic .dns-feat__title {
    font-size: 28px;
    line-height: 36px;
    color: #fff;
    font-weight: 700;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dns-layout-classic .dns-feat__excerpt {
    font-size: 15px;
    line-height: 24px;
    color: #a0a0a0;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dns-layout-classic .dns-feat__meta {
    margin-top: 20px;
    font-size: 13px;
    line-height: 18px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dns-layout-classic .dns-feat__sep { opacity: 0.4; }

.dns-layout-classic .dns-feat__cta { margin-top: 24px; }

.dns-layout-classic .dns-feat__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--dns-accent, #ff6b35);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--dns-radius);
    transition: all 0.25s ease;
}

.dns-layout-classic .dns-feat__btn svg {
    transition: transform 0.25s ease;
}

.dns-layout-classic .dns-feat__link:hover .dns-feat__btn {
    background: #e55a28;
    transform: translateX(4px);
}

.dns-layout-classic .dns-feat__link:hover .dns-feat__btn svg {
    transform: translateX(4px);
}

.dns-layout-classic .dns-feat__imgbox {
    position: relative;
    flex: 1 1 auto;
    height: 100%;
    overflow: hidden;
    background: #080808;
    /* Fallback background for small images */
    background-size: cover;
    background-position: center;
}

.dns-layout-classic .dns-feat__img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: opacity 0.4s ease, transform 6s ease-out;
}

/* Override for proper sizing when image is loaded */
.dns-layout-classic .dns-feat__img[src]:not([src=""]) {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

.dns-layout-classic .dns-feat__link:hover .dns-feat__img[src]:not([src=""]) {
    transform: scale(1.05) !important;
}

.dns-layout-classic .dns-feat__ph,
.dns-layout-overlay .dns-feat__ph,
.dns-layout-magazine .dns-feat__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    z-index: 0;
    color: #333;
}

/* LAYOUT 2: OVERLAY - Full-width cinematic */
.dns-layout-overlay .dns-feat {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.dns-layout-overlay .dns-feat__link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.dns-layout-overlay .dns-feat__imgbox {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #080808;
    background-size: cover;
    background-position: center;
}

.dns-layout-overlay .dns-feat__img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: opacity 0.4s ease, transform 8s ease-out;
}

.dns-layout-overlay .dns-feat__link:hover .dns-feat__img {
    transform: scale(1.08);
}

.dns-layout-overlay .dns-feat__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, var(--dns-overlay-opacity, 0.7)) 0%,
        rgba(0, 0, 0, calc(var(--dns-overlay-opacity, 0.7) * 0.6)) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.dns-layout-overlay .dns-feat__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 36px !important;
    z-index: 2;
    color: #fff !important;
}

.dns-layout-overlay .dns-feat__meta {
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.dns-layout-overlay .dns-feat__sep { opacity: 0.4; }

.dns-layout-overlay .dns-feat__title {
    font-size: 32px;
    line-height: 40px;
    color: #fff;
    font-weight: 700;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 800px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.dns-layout-overlay .dns-feat__excerpt {
    font-size: 15px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 700px;
}

/* LAYOUT 3: MAGAZINE - Editorial stacked */
.dns-layout-magazine .dns-feat {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--dns-bg, #0d0d0d);
}

.dns-layout-magazine .dns-feat__link {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.dns-layout-magazine .dns-feat__imgbox {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #080808;
    background-size: cover;
    background-position: center;
}

.dns-layout-magazine .dns-feat__img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: opacity 0.4s ease, transform 6s ease-out;
}

.dns-layout-magazine .dns-feat__link:hover .dns-feat__img {
    transform: scale(1.04);
}

.dns-layout-magazine .dns-feat__info {
    padding: 28px 24px !important;
    background: var(--dns-info-bg, #141414) !important;
    color: #fff !important;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.dns-layout-magazine .dns-feat__tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--dns-accent, #ff6b35);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 3px;
    margin-bottom: 14px;
}

.dns-layout-magazine .dns-feat__title {
    font-size: 26px;
    line-height: 34px;
    color: #fff;
    font-weight: 700;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dns-layout-magazine .dns-feat__excerpt {
    font-size: 15px;
    line-height: 24px;
    color: #a0a0a0;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dns-layout-magazine .dns-feat__meta {
    margin-top: 16px;
    font-size: 12px;
    line-height: 16px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dns-layout-magazine .dns-feat__sep { opacity: 0.4; }

/* THUMBNAIL CAROUSEL (Classic & Overlay) */
.dns-car {
    position: relative;
    background: var(--dns-car-bg, #1a1a1a) !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
}

.dns-car__vp {
    overflow: hidden;
    margin: 0 50px;
}

.dns-car__track {
    display: flex !important;
    transition: transform var(--dns-transition);
    will-change: transform;
}

.dns-car__item {
    flex: 0 0 calc(100% / var(--dns-vis, 6)) !important;
    max-width: calc(100% / var(--dns-vis, 6)) !important;
    padding: 14px 10px !important;
    cursor: pointer;
    position: relative;
    transition: opacity 0.25s ease;
}

.dns-car__item::after {
    content: '';
    position: absolute;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.dns-slider[dir="ltr"] .dns-car__item::after,
.dns-slider:not([dir]) .dns-car__item::after { right: 0; }
.dns-slider[dir="rtl"] .dns-car__item::after { left: 0; }
.dns-car__item:last-child::after { display: none; }

.dns-car__item:hover { opacity: 0.75; }
.dns-car__item--on { opacity: 1 !important; }

.dns-car__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 2px solid var(--dns-bdr, #333) !important;
    border-radius: var(--dns-radius) !important;
    background: #1a1a1a !important;
    margin: 0 0 8px 0 !important;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.dns-car__thumb img {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.dns-car__thumb-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #252525, #1a1a1a);
}

.dns-car__item--on .dns-car__thumb {
    border-color: var(--dns-act-bdr, #ff6b35) !important;
    box-shadow: 0 0 0 1px var(--dns-act-bdr, #ff6b35), 0 4px 12px rgba(255, 107, 53, 0.2) !important;
    transform: translateY(-2px);
}

.dns-car__label {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 17px;
    color: #ccc;
    font-weight: 500;
    max-height: 34px;
}

/* Arrows */
.dns-car__arr {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: var(--dns-arr, #666) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.25s ease;
    line-height: 1 !important;
    font-size: 0 !important;
    backdrop-filter: blur(4px);
}

.dns-car__arr--prev { left: 4px; }
.dns-car__arr--next { right: 4px; }

.dns-car__arr:hover {
    background: rgba(0, 0, 0, 0.85) !important;
    color: var(--dns-arr-h, #ff6b35) !important;
    transform: translateY(-50%) scale(1.08);
}

.dns-car__arr:active { transform: translateY(-50%) scale(0.95); }

.dns-car__arr svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.dns-slider[dir="rtl"] .dns-car__arr svg { transform: scaleX(-1); }

/* THUMBNAIL GRID (Magazine Layout) */
.dns-grid {
    display: grid;
    grid-template-columns: repeat(var(--dns-vis, 6), 1fr);
    gap: 2px;
    background: var(--dns-car-bg, #1a1a1a);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.dns-grid__item {
    padding: 12px;
    cursor: pointer;
    background: var(--dns-car-bg, #1a1a1a);
    transition: all 0.25s ease;
    position: relative;
}

.dns-grid__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--dns-accent, #ff6b35);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dns-grid__item:hover { background: rgba(255,255,255,0.03); }

.dns-grid__item--on { background: rgba(255,255,255,0.05) !important; }
.dns-grid__item--on::before { transform: scaleX(1); }

.dns-grid__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 2px solid var(--dns-bdr, #333);
    border-radius: var(--dns-radius);
    background: #1a1a1a;
    margin: 0 0 8px 0;
    transition: all 0.3s ease;
}

.dns-grid__thumb img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.dns-grid__thumb-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #252525, #1a1a1a);
}

.dns-grid__item--on .dns-grid__thumb {
    border-color: var(--dns-act-bdr, #ff6b35);
    box-shadow: 0 0 0 1px var(--dns-act-bdr, #ff6b35), 0 4px 12px rgba(255, 107, 53, 0.15);
}

.dns-grid__label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 17px;
    color: #ccc;
    font-weight: 500;
    max-height: 34px;
}

/* NEWS SLIDER RESPONSIVE */
@media (max-width: 960px) {
    .dns-layout-classic .dns-feat { height: auto !important; }
    .dns-layout-classic .dns-feat__link,
    .dns-layout-classic[dir="rtl"] .dns-feat__link {
        flex-direction: column-reverse !important;
    }
    .dns-layout-classic .dns-feat__imgbox { width: 100% !important; height: 280px !important; }
    .dns-layout-classic .dns-feat__info { width: 100% !important; height: auto !important; padding: 24px !important; }
    .dns-layout-classic .dns-feat__info::before { display: none; }
    .dns-layout-overlay .dns-feat { height: 360px !important; }
    .dns-layout-overlay .dns-feat__info { padding: 28px !important; }
    .dns-layout-magazine .dns-feat__imgbox { height: 300px !important; }
    .dns-car__vp { margin: 0 44px; }
    .dns-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 700px) {
    .dns-layout-classic .dns-feat__imgbox { height: 220px !important; }
    .dns-layout-classic .dns-feat__info { padding: 20px !important; }
    .dns-layout-classic .dns-feat__title { font-size: 22px; line-height: 28px; -webkit-line-clamp: 2; }
    .dns-layout-classic .dns-feat__excerpt { font-size: 14px; -webkit-line-clamp: 3; }
    .dns-layout-overlay .dns-feat { height: 320px !important; }
    .dns-layout-overlay .dns-feat__info { padding: 24px !important; }
    .dns-layout-overlay .dns-feat__title { font-size: 22px; line-height: 28px; }
    .dns-layout-overlay .dns-feat__excerpt { font-size: 14px; -webkit-line-clamp: 2; }
    .dns-layout-magazine .dns-feat__imgbox { height: 240px !important; }
    .dns-layout-magazine .dns-feat__info { padding: 20px !important; }
    .dns-layout-magazine .dns-feat__title { font-size: 20px; line-height: 26px; }
    .dns-car__arr { width: 36px !important; height: 36px !important; }
    .dns-car__arr svg { width: 16px; height: 16px; }
    .dns-car__vp { margin: 0 38px; }
    .dns-car__label { font-size: 11px; -webkit-line-clamp: 1; }
    .dns-grid { grid-template-columns: repeat(3, 1fr); }
    .dns-grid__label { font-size: 11px; -webkit-line-clamp: 1; }
}

@media (max-width: 480px) {
    .dns-layout-classic .dns-feat__imgbox { height: 180px !important; }
    .dns-layout-classic .dns-feat__info { padding: 16px !important; }
    .dns-layout-classic .dns-feat__title { font-size: 18px; line-height: 24px; margin-bottom: 10px !important; }
    .dns-layout-classic .dns-feat__excerpt { font-size: 13px; line-height: 20px; -webkit-line-clamp: 2; }
    .dns-layout-classic .dns-feat__meta { margin-top: 12px; font-size: 11px; }
    .dns-layout-classic .dns-feat__btn { padding: 10px 16px; font-size: 12px; }
    .dns-layout-overlay .dns-feat { height: 280px !important; }
    .dns-layout-overlay .dns-feat__info { padding: 20px !important; }
    .dns-layout-overlay .dns-feat__title { font-size: 18px; line-height: 24px; }
    .dns-layout-overlay .dns-feat__excerpt { font-size: 13px; line-height: 20px; }
    .dns-layout-overlay .dns-feat__meta { font-size: 10px; margin-bottom: 8px; }
    .dns-layout-magazine .dns-feat__imgbox { height: 200px !important; }
    .dns-layout-magazine .dns-feat__info { padding: 16px !important; }
    .dns-layout-magazine .dns-feat__tag { font-size: 9px; padding: 4px 10px; margin-bottom: 10px; }
    .dns-layout-magazine .dns-feat__title { font-size: 18px; line-height: 24px; margin-bottom: 8px !important; }
    .dns-layout-magazine .dns-feat__excerpt { font-size: 13px; line-height: 20px; }
    .dns-car__arr { width: 30px !important; height: 30px !important; }
    .dns-car__arr svg { width: 14px; height: 14px; }
    .dns-car__vp { margin: 0 32px; }
    .dns-car__item { padding: 10px 6px !important; }
    .dns-grid { grid-template-columns: repeat(2, 1fr); }
    .dns-grid__item { padding: 10px; }
}

/* NEWS SLIDER RTL Support */
[dir="rtl"] .dns-slider,
.rtl .dns-slider {
    direction: rtl;
}

[dir="rtl"] .dns-layout-classic .dns-feat__link {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .dns-layout-classic .dns-feat__info,
[dir="rtl"] .dns-layout-magazine .dns-feat__info,
[dir="rtl"] .dns-layout-overlay .dns-feat__info {
    text-align: right;
}

[dir="rtl"] .dns-feat__meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .dns-car__track,
.rtl .dns-car__track {
    direction: ltr;
}

[dir="rtl"] .dns-car__item,
.rtl .dns-car__item {
    direction: rtl;
}

[dir="rtl"] .dns-grid,
.rtl .dns-grid {
    direction: rtl;
}

[dir="rtl"] .dns-grid__item,
.rtl .dns-grid__item {
    text-align: right;
}

/* ============================================================
   IMPORTANT: Image transition fixes for theme compatibility
   These rules ensure the slider images change correctly
   ============================================================ */
.dns-slider .dns-feat__img.dns-featured-img {
    transition: opacity 0.35s ease-in-out !important;
    -webkit-transition: opacity 0.35s ease-in-out !important;
    opacity: 1;
    visibility: visible !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: opacity, src;
}

.dns-slider .dns-feat__imgbox {
    position: relative !important;
    overflow: hidden !important;
    background-color: #080808 !important;
}

/* Target any image inside imgbox (handles themes that modify class names) */
.dns-slider .dns-feat__imgbox > img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 1 !important;
}

.dns-slider .dns-feat__imgbox .dns-feat__img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 1 !important;
}

.dns-slider .dns-feat__imgbox .dns-feat__ph {
    z-index: 0 !important;
}

/* Ensure inline styles take precedence */
.dns-slider .dns-feat__img[style*="opacity"],
.dns-slider .dns-feat__imgbox > img[style*="opacity"] {
    transition: opacity 0.35s ease-in-out !important;
}

/* Universal image auto-fit for all slider layouts */
.dns-slider .dns-split__imgbox,
.dns-slider .dns-vert__imgbox,
.dns-slider .dns-boxed__imgbox {
    background-color: #080808 !important;
}

.dns-slider .dns-split__img,
.dns-slider .dns-vert__img,
.dns-slider .dns-boxed__img {
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ==========================================================================
   IMAGE AUTO-FIT - Handles small/various sized images
   Ensures images always fill container regardless of original size
   ========================================================================== */

/* Base rule: All slider images must cover their container */
.dns-slider img:not(.dns-car__thumb img):not(.dns-grid__thumb img) {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Image containers - ensure they have proper background */
.dns-feat__imgbox,
.dns-split__imgbox,
.dns-vert__imgbox,
.dns-boxed__imgbox {
    background-color: #0a0a0a;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    background-size: cover;
    background-position: center;
}

/* For very small images - use blur effect as background */
.dns-slider [data-small-img="true"]::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    z-index: 0;
}

/* Thumbnail images in carousel/grid - different sizing */
.dns-car__thumb img,
.dns-grid__thumb img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Ensure no white space around images */
.dns-slider .dns-feat__link,
.dns-slider .dns-split__link,
.dns-slider .dns-vert__link,
.dns-slider .dns-boxed__link {
    overflow: hidden !important;
}

/* ==========================================================================
   NEW LAYOUTS v4.2 - Mosaic, Banner, Gradient, Metro
   ========================================================================== */

/* ==========================================================================
   Layout: Mosaic (Masonry)
   ========================================================================== */
.ecsf-layout-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 10px;
    gap: 15px;
}

.ecsf-mosaic {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.ecsf-mosaic--tall {
    grid-row: span 32;
}

.ecsf-mosaic--short {
    grid-row: span 22;
}

.ecsf-mosaic-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.ecsf-mosaic .ecsf-post-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ecsf-mosaic .ecsf-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, transparent 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.ecsf-mosaic:hover .ecsf-mosaic-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}

.ecsf-mosaic-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: #fff;
}

.ecsf-mosaic .ecsf-post-category a {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.ecsf-mosaic .ecsf-post-title {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.ecsf-mosaic .ecsf-post-title a {
    color: #fff;
    text-decoration: none;
}

.ecsf-mosaic .ecsf-post-excerpt {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.ecsf-mosaic .ecsf-post-meta {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.ecsf-mosaic .ecsf-post-meta a {
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   Layout: Banner (Full Width)
   ========================================================================== */
.ecsf-layout-banner {
    grid-template-columns: 1fr !important;
}

.ecsf-banner {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ecsf-banner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

.ecsf-banner-image {
    position: relative;
    overflow: hidden;
}

.ecsf-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ecsf-banner:hover .ecsf-banner-image img {
    transform: scale(1.05);
}

.ecsf-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ecsf-banner:hover .ecsf-banner-overlay {
    opacity: 1;
}

.ecsf-banner-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ecsf-banner-text {
    flex: 1;
}

.ecsf-banner .ecsf-post-category a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.ecsf-banner .ecsf-post-title {
    margin: 15px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.ecsf-banner .ecsf-post-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecsf-banner .ecsf-post-title a:hover {
    color: #667eea;
}

.ecsf-banner .ecsf-post-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.ecsf-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ecsf-banner .ecsf-post-meta {
    color: #888;
    font-size: 13px;
}

.ecsf-banner .ecsf-read-more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecsf-banner .ecsf-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

@media (max-width: 768px) {
    .ecsf-banner-inner {
        grid-template-columns: 1fr;
    }
    
    .ecsf-banner-image {
        height: 200px;
    }
}

/* ==========================================================================
   Layout: Gradient Cards
   ========================================================================== */
.ecsf-gradient {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecsf-gradient:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.ecsf-gradient-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecsf-gradient .ecsf-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ecsf-gradient .ecsf-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ecsf-gradient:hover .ecsf-post-image img {
    transform: scale(1.1);
}

.ecsf-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    opacity: 0.85;
    mix-blend-mode: multiply;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.ecsf-gradient:hover .ecsf-gradient-overlay {
    height: 70%;
    opacity: 0.9;
}

.ecsf-gradient-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: #fff;
}

.ecsf-gradient .ecsf-post-category a {
    background: rgba(255,255,255,0.25);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.ecsf-gradient .ecsf-post-title {
    margin: 10px 0 5px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.ecsf-gradient .ecsf-post-title a {
    color: #fff;
    text-decoration: none;
}

.ecsf-gradient .ecsf-post-meta {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.ecsf-gradient .ecsf-post-meta a {
    color: rgba(255,255,255,0.8);
}

.ecsf-gradient-bottom {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.ecsf-gradient .ecsf-read-more {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.ecsf-gradient .ecsf-read-more:hover {
    gap: 10px;
}

/* ==========================================================================
   Layout: Metro Tiles
   ========================================================================== */
.ecsf-layout-metro {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ecsf-metro {
    background: var(--metro-bg, #0078d4);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ecsf-metro:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.ecsf-metro--small {
    grid-column: span 1;
    grid-row: span 1;
}

.ecsf-metro--medium {
    grid-column: span 1;
    grid-row: span 1;
}

.ecsf-metro--large {
    grid-column: span 2;
    grid-row: span 2;
}

.ecsf-metro-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    text-decoration: none;
    color: #fff;
}

.ecsf-metro--large .ecsf-metro-link {
    min-height: 310px;
}

.ecsf-metro-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ecsf-metro-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ecsf-metro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecsf-metro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--metro-bg, #0078d4) 0%, rgba(0,0,0,0.3) 100%);
}

.ecsf-metro-content {
    position: relative;
    z-index: 2;
}

.ecsf-metro-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ecsf-metro-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.ecsf-metro--large .ecsf-metro-title {
    font-size: 22px;
}

.ecsf-metro-excerpt {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.ecsf-metro-date {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.ecsf-metro-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ecsf-metro:hover .ecsf-metro-icon {
    opacity: 1;
    transform: translateX(0);
}

.ecsf-metro-icon i {
    color: #fff;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .ecsf-layout-metro {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ecsf-metro--large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .ecsf-layout-metro {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ecsf-metro--large {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .ecsf-layout-metro {
        grid-template-columns: 1fr;
    }
    
    .ecsf-metro--large {
        grid-column: span 1;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   Compatible with Easy Custom Skin Theme (body.ecst-dark-mode)
   ========================================================================== */

/* CSS Variables for Dark Mode */
body.ecst-dark-mode {
    --ecsf-bg: var(--ecst-dark-card-color, #16213e);
    --ecsf-text: var(--ecst-dark-text-color, #e5e5e5);
    --ecsf-text-muted: #a0a0a0;
    --ecsf-border: var(--ecst-dark-border-color, #2a3f5f);
    --ecsf-surface: #1e2d4a;
}

/* Base Post Item Dark Mode */
body.ecst-dark-mode .ecsf-post-item {
    background: var(--ecsf-bg, #16213e);
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-post-item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Post Content Area */
body.ecst-dark-mode .ecsf-post-content {
    background: var(--ecsf-bg, #16213e);
    color: var(--ecsf-text, #e5e5e5);
}

/* Post Title */
body.ecst-dark-mode .ecsf-post-title,
body.ecst-dark-mode .ecsf-post-title a {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-post-title a:hover {
    color: var(--ecst-primary-color, #e53935);
}

/* Post Excerpt */
body.ecst-dark-mode .ecsf-post-excerpt,
body.ecst-dark-mode .ecsf-post-excerpt p {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Post Meta */
body.ecst-dark-mode .ecsf-post-meta,
body.ecst-dark-mode .ecsf-post-meta span,
body.ecst-dark-mode .ecsf-post-meta a,
body.ecst-dark-mode .ecsf-meta-item {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-post-meta a:hover {
    color: var(--ecst-primary-color, #e53935);
}

/* List Layout Dark Mode */
body.ecst-dark-mode .ecsf-list-item {
    background: var(--ecsf-bg, #16213e);
    border-bottom-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-list-content {
    background: var(--ecsf-bg, #16213e);
}

/* Card Layout Dark Mode */
body.ecst-dark-mode .ecsf-card-item,
body.ecst-dark-mode .ecsf-card {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

/* Minimal Layout Dark Mode */
body.ecst-dark-mode .ecsf-minimal-item {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

/* Magazine Layout Dark Mode */
body.ecst-dark-mode .ecsf-magazine-item {
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-magazine-content {
    background: var(--ecsf-bg, #16213e);
    border-top-color: var(--ecsf-border, #2a3f5f);
}

/* Author Box Dark Mode */
body.ecst-dark-mode .ecsf-author-box,
body.ecst-dark-mode .ecsf-author-wrapper {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-author-name,
body.ecst-dark-mode .ecsf-author-name a {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-author-bio,
body.ecst-dark-mode .ecsf-author-description {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-author-avatar img {
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-author-social a {
    color: var(--ecsf-text-muted, #a0a0a0);
    background: var(--ecsf-surface, #1e2d4a);
}

body.ecst-dark-mode .ecsf-author-social a:hover {
    color: #ffffff;
    background: var(--ecst-primary-color, #e53935);
}

/* Related Posts Dark Mode */
body.ecst-dark-mode .ecsf-related-posts-item,
body.ecst-dark-mode .ecsf-related-item {
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-related-posts-title,
body.ecst-dark-mode .ecsf-related-title {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-related-title a {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-related-title a:hover {
    color: var(--ecst-primary-color, #e53935);
}

/* Navigation Dark Mode */
body.ecst-dark-mode .ecsf-post-navigation,
body.ecst-dark-mode .ecsf-navigation-wrapper {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-nav-link {
    color: var(--ecsf-text, #e5e5e5);
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-nav-link:hover {
    background: var(--ecsf-surface, #1e2d4a);
}

body.ecst-dark-mode .ecsf-nav-title {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-nav-label {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-nav-prev,
body.ecst-dark-mode .ecsf-nav-next {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

/* Tags Dark Mode */
body.ecst-dark-mode .ecsf-tag-item,
body.ecst-dark-mode .ecsf-tags a,
body.ecst-dark-mode .ecsf-post-tags a {
    background: var(--ecsf-surface, #1e2d4a);
    color: var(--ecsf-text, #e5e5e5);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-tag-item:hover,
body.ecst-dark-mode .ecsf-tags a:hover,
body.ecst-dark-mode .ecsf-post-tags a:hover {
    background: var(--ecst-primary-color, #e53935);
    color: #ffffff;
}

body.ecst-dark-mode .ecsf-tags-wrapper {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Share Buttons Dark Mode */
body.ecst-dark-mode .ecsf-share-button,
body.ecst-dark-mode .ecsf-share-btn {
    background: var(--ecsf-surface, #1e2d4a);
    border-color: var(--ecsf-border, #2a3f5f);
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-share-wrapper {
    background: var(--ecsf-bg, #16213e);
}

/* Breadcrumbs Dark Mode */
body.ecst-dark-mode .ecsf-breadcrumbs,
body.ecst-dark-mode .ecsf-breadcrumb {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-breadcrumbs a,
body.ecst-dark-mode .ecsf-breadcrumb a {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-breadcrumbs a:hover,
body.ecst-dark-mode .ecsf-breadcrumb a:hover {
    color: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .ecsf-breadcrumb-separator {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Comments Dark Mode */
body.ecst-dark-mode .ecsf-comments-area,
body.ecst-dark-mode .ecsf-comments-wrapper {
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-comment,
body.ecst-dark-mode .ecsf-comment-item {
    background: var(--ecsf-surface, #1e2d4a);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-comment-author {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-comment-content,
body.ecst-dark-mode .ecsf-comment-text {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-comment-date,
body.ecst-dark-mode .ecsf-comment-meta {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-comments-title {
    color: var(--ecsf-text, #e5e5e5);
}

/* TOC (Table of Contents) Dark Mode */
body.ecst-dark-mode .ecsf-toc,
body.ecst-dark-mode .ecsf-toc-wrapper {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-toc-title,
body.ecst-dark-mode .ecsf-toc-heading {
    color: var(--ecsf-text, #e5e5e5);
    border-bottom-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-toc-list a {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-toc-list a:hover,
body.ecst-dark-mode .ecsf-toc-list a.active {
    color: var(--ecst-primary-color, #e53935);
}

/* Timeline Dark Mode */
body.ecst-dark-mode .ecsf-timeline-item {
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-timeline-content {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-timeline-title {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-timeline-date {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-timeline::before,
body.ecst-dark-mode .ecsf-timeline-line {
    background: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-timeline-dot {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecst-primary-color, #e53935);
}

/* Ticker Dark Mode */
body.ecst-dark-mode .ecsf-ticker,
body.ecst-dark-mode .ecsf-ticker-wrapper {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-ticker-item a {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-ticker-item a:hover {
    color: var(--ecst-primary-color, #e53935);
}

/* Filter Tabs Dark Mode */
body.ecst-dark-mode .ecsf-filter-tabs,
body.ecst-dark-mode .ecsf-tabs-wrapper {
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-filter-tab,
body.ecst-dark-mode .ecsf-tab-item {
    color: var(--ecsf-text-muted, #a0a0a0);
    border-color: var(--ecsf-border, #2a3f5f);
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-filter-tab:hover,
body.ecst-dark-mode .ecsf-filter-tab.active,
body.ecst-dark-mode .ecsf-tab-item:hover,
body.ecst-dark-mode .ecsf-tab-item.active {
    color: var(--ecsf-text, #e5e5e5);
    background: var(--ecsf-surface, #1e2d4a);
}

/* Quote Box Dark Mode */
body.ecst-dark-mode .ecsf-quote-box,
body.ecst-dark-mode .ecsf-quote-wrapper {
    background: var(--ecsf-bg, #16213e);
    border-left-color: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .ecsf-quote-text {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-quote-author,
body.ecst-dark-mode .ecsf-quote-cite {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Info Box Dark Mode */
body.ecst-dark-mode .ecsf-info-box,
body.ecst-dark-mode .ecsf-info-wrapper {
    background: var(--ecsf-bg, #16213e);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-info-box-title,
body.ecst-dark-mode .ecsf-info-title {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-info-box-content,
body.ecst-dark-mode .ecsf-info-content {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Views Widget Dark Mode */
body.ecst-dark-mode .ecsf-views-count,
body.ecst-dark-mode .ecsf-views-wrapper {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Reading Time Dark Mode */
body.ecst-dark-mode .ecsf-reading-time {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Date Widget Dark Mode */
body.ecst-dark-mode .ecsf-post-date,
body.ecst-dark-mode .ecsf-date-wrapper {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Categories Widget Dark Mode */
body.ecst-dark-mode .ecsf-categories a,
body.ecst-dark-mode .ecsf-category-item a {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-categories a:hover,
body.ecst-dark-mode .ecsf-category-item a:hover {
    color: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .ecsf-categories-wrapper {
    background: var(--ecsf-bg, #16213e);
}

/* Slider/Carousel Dark Mode */
body.ecst-dark-mode .ecsf-slider-item,
body.ecst-dark-mode .ecsf-carousel-item {
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-slider-content,
body.ecst-dark-mode .ecsf-carousel-content {
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-slider-title,
body.ecst-dark-mode .ecsf-carousel-title {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-slider-nav,
body.ecst-dark-mode .ecsf-carousel-nav {
    background: var(--ecsf-surface, #1e2d4a);
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-slider-nav:hover,
body.ecst-dark-mode .ecsf-carousel-nav:hover {
    background: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .ecsf-slider-dots .ecsf-dot,
body.ecst-dark-mode .ecsf-carousel-dots .ecsf-dot {
    background: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-slider-dots .ecsf-dot.active,
body.ecst-dark-mode .ecsf-carousel-dots .ecsf-dot.active {
    background: var(--ecst-primary-color, #e53935);
}

/* Pagination Dark Mode */
body.ecst-dark-mode .ecsf-pagination a,
body.ecst-dark-mode .ecsf-pagination span {
    background: var(--ecsf-surface, #1e2d4a);
    color: var(--ecsf-text, #e5e5e5);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-pagination a:hover,
body.ecst-dark-mode .ecsf-pagination span.current {
    background: var(--ecst-primary-color, #e53935);
    color: #ffffff;
}

/* Load More Button Dark Mode */
body.ecst-dark-mode .ecsf-load-more,
body.ecst-dark-mode .ecsf-load-more-btn {
    background: var(--ecsf-surface, #1e2d4a);
    color: var(--ecsf-text, #e5e5e5);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-load-more:hover,
body.ecst-dark-mode .ecsf-load-more-btn:hover {
    background: var(--ecst-primary-color, #e53935);
    color: #ffffff;
}

/* Read More Link Dark Mode */
body.ecst-dark-mode .ecsf-read-more,
body.ecst-dark-mode .ecsf-read-more-link {
    color: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .ecsf-read-more:hover,
body.ecst-dark-mode .ecsf-read-more-link:hover {
    color: var(--ecsf-text, #e5e5e5);
}

/* Progress Bar Dark Mode */
body.ecst-dark-mode .ecsf-progress-bar,
body.ecst-dark-mode .ecsf-progress-wrapper {
    background: var(--ecsf-surface, #1e2d4a);
}

/* Video Widget Dark Mode */
body.ecst-dark-mode .ecsf-video-wrapper {
    background: var(--ecsf-bg, #16213e);
}

/* Loop Item Dark Mode */
body.ecst-dark-mode .ecsf-loop-item {
    background: var(--ecsf-bg, #16213e);
    color: var(--ecsf-text, #e5e5e5);
}

/* No Thumbnail Placeholder Dark Mode */
body.ecst-dark-mode .ecsf-no-thumb {
    background: linear-gradient(135deg, #1e2d4a 0%, #16213e 100%);
}

/* Borders and Dividers Dark Mode */
body.ecst-dark-mode .ecsf-divider,
body.ecst-dark-mode hr {
    border-color: var(--ecsf-border, #2a3f5f);
}

/* Form Elements in Widgets Dark Mode */
body.ecst-dark-mode .ecsf-search-input,
body.ecst-dark-mode .ecsf-filter-input,
body.ecst-dark-mode .ecsf-input {
    background: var(--ecsf-surface, #1e2d4a);
    color: var(--ecsf-text, #e5e5e5);
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-search-input::placeholder,
body.ecst-dark-mode .ecsf-filter-input::placeholder,
body.ecst-dark-mode .ecsf-input::placeholder {
    color: var(--ecsf-text-muted, #a0a0a0);
}

/* Post Grid Widget Wrapper Dark Mode */
body.ecst-dark-mode .ecsf-posts-wrapper {
    background: transparent;
}

/* Featured Layout Dark Mode */
body.ecst-dark-mode .ecsf-featured-item {
    background: var(--ecsf-bg, #16213e);
}

body.ecst-dark-mode .ecsf-featured-content {
    background: var(--ecsf-bg, #16213e);
}

/* Highlight Layout Dark Mode */
body.ecst-dark-mode .ecsf-highlight-item {
    background: var(--ecsf-bg, #16213e);
}

/* News Grid Dark Mode */
body.ecst-dark-mode .ecsf-news-grid-item {
    background: var(--ecsf-bg, #16213e);
}

/* Metro Layout Dark Mode */
body.ecst-dark-mode .ecsf-metro-item {
    background: var(--ecsf-bg, #16213e);
}

/* Sidebar Layout Dark Mode */
body.ecst-dark-mode .ecsf-sidebar-item {
    background: var(--ecsf-bg, #16213e);
}

/* Category Badge Dark Mode (keep visible) */
body.ecst-dark-mode .ecsf-category-badge {
    /* Keep original colors for visibility */
}

/* Overlay Text on Images (keep readable) */
body.ecst-dark-mode .ecsf-overlay-content,
body.ecst-dark-mode .ecsf-overlay-title,
body.ecst-dark-mode .ecsf-overlay-meta {
    color: #ffffff;
}

/* Section Titles Dark Mode */
body.ecst-dark-mode .ecsf-section-title,
body.ecst-dark-mode .ecsf-widget-title {
    color: var(--ecsf-text, #e5e5e5);
}

/* Icon Colors Dark Mode */
body.ecst-dark-mode .ecsf-icon {
    color: var(--ecsf-text-muted, #a0a0a0);
}

body.ecst-dark-mode .ecsf-icon:hover {
    color: var(--ecst-primary-color, #e53935);
}

/* Post Content Widget Dark Mode */
body.ecst-dark-mode .ecsf-content-wrapper {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-content-wrapper h1,
body.ecst-dark-mode .ecsf-content-wrapper h2,
body.ecst-dark-mode .ecsf-content-wrapper h3,
body.ecst-dark-mode .ecsf-content-wrapper h4,
body.ecst-dark-mode .ecsf-content-wrapper h5,
body.ecst-dark-mode .ecsf-content-wrapper h6 {
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-content-wrapper a {
    color: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .ecsf-content-wrapper blockquote {
    background: var(--ecsf-surface, #1e2d4a);
    border-left-color: var(--ecst-primary-color, #e53935);
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-content-wrapper pre,
body.ecst-dark-mode .ecsf-content-wrapper code {
    background: var(--ecsf-surface, #1e2d4a);
    color: var(--ecsf-text, #e5e5e5);
}

body.ecst-dark-mode .ecsf-content-wrapper table {
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-content-wrapper th,
body.ecst-dark-mode .ecsf-content-wrapper td {
    border-color: var(--ecsf-border, #2a3f5f);
}

body.ecst-dark-mode .ecsf-content-wrapper th {
    background: var(--ecsf-surface, #1e2d4a);
}

/* ==========================================================================
   CATEGORY LIST (COLORED) DARK MODE
   Override colorful backgrounds with dark mode compatible colors
   ========================================================================== */

/* In dark mode, use darker versions of the category colors */
body.ecst-dark-mode .ecsf-category-list {
    --ecsf-cat-bg: var(--ecsf-bg, #16213e) !important;
    --ecsf-cat-text: var(--ecsf-text, #e5e5e5) !important;
    background-color: var(--ecsf-bg, #16213e) !important;
    border-left-color: var(--ecst-primary-color, #e53935) !important;
}

body.ecst-dark-mode .ecsf-category-list .ecsf-category-header {
    color: var(--ecst-primary-color, #e53935) !important;
}

body.ecst-dark-mode .ecsf-category-list .ecsf-post-title,
body.ecst-dark-mode .ecsf-category-list .ecsf-post-title a {
    color: var(--ecsf-text, #e5e5e5) !important;
}

body.ecst-dark-mode .ecsf-category-list .ecsf-post-title a:hover {
    color: var(--ecst-primary-color, #e53935) !important;
}

body.ecst-dark-mode .ecsf-category-list .ecsf-post-excerpt {
    color: var(--ecsf-text-muted, #a0a0a0) !important;
}

body.ecst-dark-mode .ecsf-category-list:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Alternative: Keep category colors but darken them for dark mode */
body.ecst-dark-mode .ecsf-category-list[data-cat-bg] {
    /* Use a semi-transparent overlay effect to darken the background */
    position: relative;
}

/* Style variations based on original light colors - make them work in dark mode */
body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+1) {
    border-left-color: #1565c0 !important;
}
body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+1) .ecsf-category-header {
    color: #64b5f6 !important;
}

body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+2) {
    border-left-color: #2e7d32 !important;
}
body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+2) .ecsf-category-header {
    color: #81c784 !important;
}

body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+3) {
    border-left-color: #ef6c00 !important;
}
body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+3) .ecsf-category-header {
    color: #ffb74d !important;
}

body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+4) {
    border-left-color: #c2185b !important;
}
body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+4) .ecsf-category-header {
    color: #f48fb1 !important;
}

body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+5) {
    border-left-color: #7b1fa2 !important;
}
body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+5) .ecsf-category-header {
    color: #ce93d8 !important;
}

body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+6) {
    border-left-color: #00838f !important;
}
body.ecst-dark-mode .ecsf-layout-category_list .ecsf-category-list:nth-child(6n+6) .ecsf-category-header {
    color: #4dd0e1 !important;
}

/* ==========================================================================
   NEWS SLIDER DARK MODE (Classic, Overlay, Magazine layouts in frontend.css)
   ========================================================================== */

body.ecst-dark-mode .dns-slider {
    --dns-bg: var(--ecst-dark-bg-color, #1a1a2e);
    --dns-info-bg: var(--ecst-dark-card-color, #16213e);
    --dns-car-bg: var(--ecst-dark-card-color, #16213e);
    --dns-bdr: var(--ecst-dark-border-color, #2a3f5f);
    --dns-act-bdr: var(--ecst-primary-color, #e53935);
    --dns-accent: var(--ecst-primary-color, #e53935);
    --dns-arr-h: var(--ecst-primary-color, #e53935);
    background: var(--ecst-dark-bg-color, #1a1a2e);
}

/* Classic Layout */
body.ecst-dark-mode .dns-layout-classic .dns-feat__info {
    background: var(--ecst-dark-card-color, #16213e) !important;
}

body.ecst-dark-mode .dns-layout-classic .dns-feat__info::before {
    background: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .dns-layout-classic .dns-feat__title {
    color: var(--ecst-dark-text-color, #e5e5e5);
}

body.ecst-dark-mode .dns-layout-classic .dns-feat__excerpt {
    color: #a0a0a0;
}

body.ecst-dark-mode .dns-layout-classic .dns-feat__meta {
    color: #808080;
}

/* Magazine Layout */
body.ecst-dark-mode .dns-layout-magazine {
    background: var(--ecst-dark-bg-color, #1a1a2e);
}

body.ecst-dark-mode .dns-layout-magazine .dns-feat__info {
    background: var(--ecst-dark-card-color, #16213e) !important;
    border-top-color: var(--ecst-dark-border-color, #2a3f5f);
}

body.ecst-dark-mode .dns-layout-magazine .dns-feat__tag {
    background: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .dns-layout-magazine .dns-feat__title {
    color: var(--ecst-dark-text-color, #e5e5e5);
}

body.ecst-dark-mode .dns-layout-magazine .dns-feat__excerpt {
    color: #a0a0a0;
}

body.ecst-dark-mode .dns-layout-magazine .dns-feat__meta {
    color: #808080;
}

/* Carousel Navigation */
body.ecst-dark-mode .dns-car {
    background: var(--ecst-dark-card-color, #16213e);
    border-top-color: var(--ecst-dark-border-color, #2a3f5f);
}

body.ecst-dark-mode .dns-car__item::after {
    background: var(--ecst-dark-border-color, #2a3f5f);
}

body.ecst-dark-mode .dns-car__thumb {
    border-color: var(--ecst-dark-border-color, #2a3f5f) !important;
    background: var(--ecst-dark-card-color, #16213e) !important;
}

body.ecst-dark-mode .dns-car__item--on .dns-car__thumb {
    border-color: var(--ecst-primary-color, #e53935) !important;
    box-shadow: 0 0 0 1px var(--ecst-primary-color, #e53935), 0 4px 12px rgba(229, 57, 53, 0.2) !important;
}

body.ecst-dark-mode .dns-car__label {
    color: var(--ecst-dark-text-color, #e5e5e5);
}

body.ecst-dark-mode .dns-car__thumb-ph {
    background: linear-gradient(135deg, var(--ecst-dark-card-color, #16213e), var(--ecst-dark-bg-color, #1a1a2e));
}

body.ecst-dark-mode .dns-car__arr {
    background: rgba(22, 33, 62, 0.8) !important;
}

body.ecst-dark-mode .dns-car__arr:hover {
    background: rgba(22, 33, 62, 0.95) !important;
    color: var(--ecst-primary-color, #e53935) !important;
}

/* Grid Navigation */
body.ecst-dark-mode .dns-grid {
    background: var(--ecst-dark-card-color, #16213e);
    border-top-color: var(--ecst-dark-border-color, #2a3f5f);
}

body.ecst-dark-mode .dns-grid__item {
    background: var(--ecst-dark-card-color, #16213e);
}

body.ecst-dark-mode .dns-grid__item--on,
body.ecst-dark-mode .dns-grid__item:hover {
    background: var(--ecst-dark-bg-color, #1a1a2e);
}

body.ecst-dark-mode .dns-grid__thumb {
    border-color: var(--ecst-dark-border-color, #2a3f5f);
}

body.ecst-dark-mode .dns-grid__item--on .dns-grid__thumb {
    border-color: var(--ecst-primary-color, #e53935);
}

body.ecst-dark-mode .dns-grid__label {
    color: var(--ecst-dark-text-color, #e5e5e5);
}

body.ecst-dark-mode .dns-grid__meta {
    color: #808080;
}

/* Placeholder Images */
body.ecst-dark-mode .dns-feat__ph {
    background: linear-gradient(135deg, var(--ecst-dark-card-color, #16213e), var(--ecst-dark-bg-color, #1a1a2e));
    color: var(--ecst-dark-border-color, #2a3f5f);
}
