.news-list-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.news-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-header-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffa500 0%, #ff6b00 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-header-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a4d5c;
    margin: 15px 0;
}

.news-header-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

/* News Grid */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* News Card */
.news-card {
    width: 100%;
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    width: 40%;
    overflow: hidden;
    display: block;
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 165, 0, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a4d5c;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #ffa500;
}

.news-card-lead {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 5px;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-bottom: 15px;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
}

.news-card-meta svg {
    width: 16px;
    height: 16px;
}

.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffa500;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background: #ff8c00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button[wire\:click="refreshCaptcha"]:hover {
    background: #ff8c00 !important;
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.login-required-notice a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* انیمیشن برای loading */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

[wire\:loading] {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.news-card-readmore:hover {
    gap: 10px;
}

.news-card-readmore svg {
    width: 16px;
    height: 16px;
    transform: scaleX(-1);
}

/* No News Message */
.no-news-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-news-message svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-news-message h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
}

.no-news-message p {
    font-size: 15px;

    color: #888;
}

/* Pagination */

.news-pagination {
    display: flex;

    justify-content: center;

    margin-top: 60px;
}

/* ==================== Enhanced Pagination Styles ==================== */
.pagination-wrapper {
    width: 100%;
    margin: 60px 0 40px;
}

/* Pagination Info */
.pagination-info {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-info p {
    font-size: 15px;
    color: #495057;
    margin: 0;
    font-weight: 500;
}

.pagination-info .font-semibold {
    color: #1a4d5c;
    font-weight: 700;
    font-size: 16px;
    padding: 0 4px;
}

/* Pagination Buttons Container */
.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination-buttons.rtl {
    direction: rtl;
}

.pagination-buttons.ltr {
    direction: ltr;
}

/* Pagination Button Base */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.pagination-btn:not(.disabled):hover {
    background: linear-gradient(135deg, #ffa500 0%, #ff8800 100%);
    border-color: #ffa500;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
}

.pagination-btn:not(.disabled):hover svg {
    transform: scale(1.15);
}

/* Active State */
.pagination-btn:not(.disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.2);
}

/* Disabled State */
.pagination-btn.disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Page Numbers Container */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}

/* Page Number Button */
.pagination-number {
    min-width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-number:hover {
    background: #fef3e2;
    border-color: #ffa500;
    color: #ffa500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2);
}

/* Active Page Number */
.pagination-number.active {
    background: linear-gradient(135deg, #ffa500 0%, #ff8800 100%);
    border-color: #ffa500;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    cursor: default;
    transform: translateY(-1px);
}

/* Dots */
.pagination-dots {
    color: #9ca3af;
    font-size: 18px;
    font-weight: 700;
    padding: 0 8px;
    user-select: none;
}

/* Loading State */
.pagination-btn[wire\:loading] {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

/* Focus Styles for Accessibility */
.pagination-btn:focus-visible,
.pagination-number:focus-visible {
    outline: 3px solid rgba(255, 165, 0, 0.5);
    outline-offset: 2px;
}

/* RTL Specific Adjustments */
.pagination-buttons.rtl .pagination-btn svg {
    transform: scaleX(1);
}

.pagination-buttons.rtl .pagination-btn:hover svg {
    transform: scaleX(1) scale(1.15);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .pagination-wrapper {
        margin: 40px 0 30px;
    }

    .pagination-info {
        padding: 12px;
        margin-bottom: 20px;
    }

    .pagination-info p {
        font-size: 13px;
    }

    .pagination-info .font-semibold {
        font-size: 14px;
    }

    .pagination-buttons {
        gap: 10px;
    }

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

    .pagination-btn svg {
        width: 18px;
        height: 18px;
    }

    .pagination-number {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* Hide some page numbers on mobile */
    .pagination-numbers {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .pagination-btn span {
        display: none;
    }

    .pagination-btn {
        padding: 10px;
    }

    .pagination-info {
        font-size: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pagination-info {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .pagination-info p {
        color: #d1d5db;
    }

    .pagination-info .font-semibold {
        color: #fbbf24;
    }

    .pagination-btn,
    .pagination-number {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }

    .pagination-btn.disabled {
        background: #111827;
        color: #6b7280;
    }

    .pagination-number:hover {
        background: #374151;
        border-color: #ffa500;
        color: #fbbf24;
    }

    .pagination-dots {
        color: #6b7280;
    }
}

/* Animation for Page Changes */
@keyframes pageChange {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-grid {
    animation: pageChange 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Spinner */
.pagination-btn[wire\:loading]::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffa500;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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