.news-section {
    background: var(--section-soft-bg);
    padding: 4rem 0;
    margin-top: 5rem;
}

.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box::placeholder {
    color: var(--text-sub);
    opacity: 0.6;
}

.search-box:focus {
    outline: none;
    border-color: #344697;
    box-shadow: 0 0 0 3px rgba(52, 70, 151, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1rem;
    border: 1px solid var(--card-border);
    background: transparent;
    border-radius: 8px;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.filter-btn:hover {
    border-color: #344697;
    color: #344697;
    background: rgba(52, 70, 151, 0.1);
}

.filter-btn.active {
    border-color: #344697;
    background: #344697;
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #344697;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(52, 70, 151, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 12px;
    color: var(--text-sub);
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: #344697;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.news-link:hover {
    gap: 0.6rem;
    color: #253163;
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(-2px);
}

html[dir="ltr"] .news-link:hover i {
    transform: translateX(2px);
}

.news-link {
    color: #344697;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.news-link:hover {
    gap: 0.6rem;
    color: #253163;
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(-2px);
}

html[dir="ltr"] .news-link:hover i {
    transform: translateX(2px);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-sub);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    font-size: 16px;
    font-weight: 600;
}

.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(52, 70, 151, 0.2);
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(52, 70, 151, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.modal-info {
    display: flex;
    flex-direction: column;
}

.modal-date {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-date i {
    color: #344697;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(52, 70, 151, 0.1);
    color: #344697;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.modal-description {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.modal-author {
    font-size: 13px;
    color: var(--text-sub);
}

.share-modal-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--card-border);
    background: transparent;
    border-radius: 8px;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-modal-btn:hover {
    border-color: #344697;
    color: #344697;
    background: rgba(52, 70, 151, 0.1);
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #344697;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(52, 70, 151, 0.3);
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .news-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .filter-buttons {
        width: 100%;
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-image {
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-description {
        font-size: 14px;
    }
}

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

    .news-card-title {
        font-size: 14px;
    }

    .news-card-excerpt {
        font-size: 12px;
    }

    .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-image {
        height: 200px;
        margin-bottom: 1rem;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .share-modal-btn {
        width: 100%;
        justify-content: center;
    }

    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: 0.75rem 1rem;
        font-size: 12px;
    }
}