/* Enest News Minimalistic Stylesheet */

.enest-news-container {
    width: 100%;
    margin: 30px 0;
    font-family: inherit;
    color: #334155; /* slate-700 */
}

/* News List Wrapper */
.enest-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.enest-news-list.loading {
    opacity: 0.3;
}

/* Minimal News Item Row */
.enest-news-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s ease;
}

/* Hover micro-animation: subtle indentation/shift and border highlight */
.enest-news-item:hover {
    padding-left: 8px;
    border-bottom-color: rgba(229, 185, 74, 0.5); /* gold outline */
}

.enest-news-item:last-child {
    border-bottom: none;
}

/* News Title */
.enest-news-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.enest-news-link {
    color: #1e293b; /* slate-800 */
    text-decoration: none;
    transition: color 0.2s ease;
}

.enest-news-link:hover {
    color: #e5b94a; /* Golden on hover */
}

/* News Description */
.enest-news-desc {
    font-size: 14px;
    color: #64748b; /* slate-500 */
    line-height: 1.6;
    margin: 4px 0 0 0;
}

/* Meta Section */
.enest-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #94a3b8; /* slate-400 */
    margin-top: 6px;
}

/* Source tag badge */
.enest-news-source {
    background: #fdfaf2; /* very light warm gold tint */
    color: #b58918; /* gold-brown */
    border: 1px solid #f3e5c8;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enest-news-date {
    display: inline-flex;
    align-items: center;
}

.enest-news-date::before {
    content: "•";
    margin-right: 12px;
    color: rgba(0, 0, 0, 0.15);
    font-size: 14px;
}

/* Redesigned Premium Pagination Container */
.enest-news-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    margin-top: 50px !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(229, 185, 74, 0.15) !important; /* light gold border */
}

/* Pagination List */
.enest-news-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important; /* tighter, cohesive spacing for buttons */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wrapper .enest-news-pagination button,
#wrapper .enest-news-pagination a.enest-page-button,
.enest-news-pagination button,
.enest-news-pagination a.enest-page-button {
    background: #ffffff !important;
    color: #475569 !important; /* slate-600 */
    border: 1px solid #e2e8f0 !important; /* light grey border */
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Page Numbers specific sizing (make them perfect circles) */
#wrapper .enest-news-pagination button.enest-page-number-btn,
#wrapper .enest-news-pagination a.enest-page-number-btn,
.enest-news-pagination button.enest-page-number-btn,
.enest-news-pagination a.enest-page-number-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

/* Hover effects */
#wrapper .enest-news-pagination button:hover:not(:disabled),
#wrapper .enest-news-pagination a.enest-page-button:hover,
.enest-news-pagination button:hover:not(:disabled),
.enest-news-pagination a.enest-page-button:hover {
    color: #9d6125 !important; /* brand gold */
    border-color: #e5b94a !important;
    background-color: #fdfaf2 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

/* Active Page Button */
#wrapper .enest-news-pagination .active button,
#wrapper .enest-news-pagination .active a.enest-page-button,
.enest-news-pagination .active button,
.enest-news-pagination .active a.enest-page-button {
    background: linear-gradient(135deg, #e5b94a, #9d6125) !important; /* Gold gradient */
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px rgba(157, 97, 37, 0.3) !important;
    font-weight: 800 !important;
}
#wrapper .enest-news-pagination .active button:hover,
#wrapper .enest-news-pagination .active a.enest-page-button:hover,
.enest-news-pagination .active button:hover,
.enest-news-pagination .active a.enest-page-button:hover {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(157, 97, 37, 0.4) !important;
}

/* Disabled State */
#wrapper .enest-news-pagination button:disabled,
.enest-news-pagination button:disabled {
    opacity: 0.4 !important;
    background-color: #f8fafc !important;
    border-color: #f1f5f9 !important;
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ellipsis styling */
.enest-page-ellipsis {
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 0 8px !important;
    display: inline-block !important;
}

.enest-page-first-btn,
.enest-page-prev-btn,
.enest-page-next-btn,
.enest-page-last-btn {
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Jump to Page Wrapper */
.enest-news-jump-to {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f8fafc !important;
    padding: 6px 6px 6px 14px !important;
    border-radius: 30px !important; /* pill container */
    border: 1px solid #e2e8f0 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease !important;
}
.enest-news-jump-to:focus-within {
    border-color: #e5b94a !important;
    box-shadow: 0 0 0 3px rgba(229, 185, 74, 0.15) !important;
    background: #ffffff !important;
}

.enest-news-jump-to span {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Jump to Input */
.enest-news-jump-to input.enest-page-jump-input {
    width: 48px !important;
    height: 30px !important;
    text-align: center !important;
    padding: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.enest-news-jump-to input.enest-page-jump-input:focus {
    border-color: #e5b94a !important;
    box-shadow: 0 0 0 2px rgba(229, 185, 74, 0.2) !important;
}

/* Jump to Button */
.enest-news-jump-to button.enest-page-jump-btn {
    background: #9d6125 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important; /* Pill button */
    padding: 6px 18px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    outline: none !important;
    height: 30px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.enest-news-jump-to button.enest-page-jump-btn:hover {
    background: #e5b94a !important;
    color: #ffffff !important;
    transform: scale(1.03) !important;
}
.enest-news-jump-to button.enest-page-jump-btn:active {
    transform: scale(0.97) !important;
}

/* Empty State */
.enest-news-empty {
    text-align: center;
    padding: 50px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 14.5px;
}

/* Enforce 16:9 Aspect Ratio and Cover Fit for Featured Images in the Blog Grid List */
article.post .fusion-image-wrapper {
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}

article.post .fusion-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Style Excerpt Link inside Avada Blog Grid */
.enest-excerpt-link {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline-block;
    width: 100%;
}
.enest-excerpt-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Override Avada Pagination to match requested uppercase & spacing design */
.pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    gap: 24px !important;
    margin: 40px 0 !important;
}

.pagination a, 
.pagination span.current, 
.pagination span.pagination-dots {
    color: #334155 !important; /* slate-700 */
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    padding: 4px 8px !important;
    line-height: normal !important;
    letter-spacing: 0.5px !important;
}

.pagination a:hover {
    color: #e5b94a !important; /* Gold on hover */
}

.pagination span.current {
    color: #0f172a !important; /* slate-900 / dark bold for active */
    font-weight: 800 !important;
}

.pagination-prev,
.pagination-next {
    display: inline-flex !important;
    align-items: center !important;
    text-transform: uppercase !important;
}

.pagination-prev .page-prev,
.pagination-next .page-next {
    display: none !important; /* Hide theme default arrows icon */
}

.pagination-prev .page-text,
.pagination-next .page-text {
    font-weight: 700 !important;
    color: #334155 !important;
}

.pagination-prev:hover .page-text,
.pagination-next:hover .page-text {
    color: #e5b94a !important;
}

/* Hide theme default angle brackets generated by CSS pseudo-elements */
.pagination-prev::before,
.pagination-prev::after,
.pagination-next::before,
.pagination-next::after {
    display: none !important;
    content: "" !important;
}


