body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}
html[lang="ar"] body {
    direction: rtl;
    font-family: "Tahoma", "Arial", sans-serif;
}
header {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
}
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-menu li {
    margin: 0 1rem;
}
.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}
.main-menu a:hover {
    opacity: 0.8;
}
.language-switcher {
    display: flex;
    gap: 0.5rem;
}
.language-switcher button {
    background: rgb(255 255 255 / 0.2);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.language-switcher button:hover {
    background: rgb(255 255 255 / 0.3);
}
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.intro {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}
.featured-articles {
    margin-bottom: 3rem;
}
.featured-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #6e48aa;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 20px 0;
}
.article-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    min-height: 420px;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgb(0 0 0 / 0.15);
}
.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}
.article-link:hover {
    text-decoration: none;
    color: inherit;
}
.article-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #f5f5f5;
    padding: 10px;
}
.article-card:hover img {
    transform: scale(1.05);
}
.article-info {
    padding: 20px;
}
.article-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-info .article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.article-info .article-meta span {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
}
.article-info .article-meta .category {
    background: #e3f2fd;
    color: #1976d2;
}
.article-info .article-meta .demographic {
    background: #f3e5f5;
    color: #7b1fa2;
}
.article-link:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}
.articles-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}
.articles-grid.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
.filters {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.filters h3 {
    margin-top: 0;
    color: #6e48aa;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.filter-buttons button {
    padding: 8px 16px;
    margin: 4px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-buttons button:hover {
    background: #e0e0e0;
}
.filter-buttons button.active {
    background: #6e48aa;
    color: #fff;
    border-color: #6e48aa;
}
footer {
    background: #333;
    color: #fff;
    padding: 2rem;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer-links a:hover {
    opacity: 0.8;
}
.copyright {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
    max-height: 70vh;
    width: auto;
    object-fit: contain;
}
.article-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.article-meta .category {
    background: #f0e6ff;
    color: #6e48aa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}
.article-body {
    line-height: 1.8;
}
.article-body p {
    margin-bottom: 1.5rem;
}
html[lang="ar"] .article-meta {
    flex-direction: row-reverse;
}
.loading-state {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}
.not-found-message,
.error-message {
    text-align: center;
    padding: 2rem;
}
.not-found-message h1,
.error-message h1 {
    color: #d9534f;
    margin-bottom: 1rem;
}
.article-meta {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}
.article-meta .category {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}
.article-body {
    line-height: 1.8;
    margin-top: 1.5rem;
}
.filters-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
}
.filters-section h3 {
    margin-top: 0;
    color: #6e48aa;
    font-size: 1.2rem;
}
.featured-articles {
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    .article-card img {
        height: 240px;
    }
    @media (max-width: 480px) {
        .article-card img {
            height: 260px;
        }
    }
    .article-info {
        padding: 12px;
    }
    .article-info h3 {
        font-size: 1rem;
    }
    .article-image {
        max-height: 50vh;
    }
    .language-switcher {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .language-switcher button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin: 2px;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-menu {
        margin-top: 1rem;
        flex-wrap: wrap;
    }
}
@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-card img {
        height: 220px;
    }
}
#tutorials-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.tutorial-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.2);
}
.tutorial-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tutorial-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #6e48aa;
}
.tutorial-level {
    background: #f0e6ff;
    color: #6e48aa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.tutorial-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
    background: #f9f9f9;
}
.tutorial-content {
    padding: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.error-message {
    text-align: center;
    padding: 2rem;
    color: #d9534f;
}
.reload-btn {
    background: #6e48aa;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}
.reload-btn:hover {
    background: #9d50bb;
}
.policy-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    line-height: 1.6;
    color: #333;
}
.policy-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
}
.policy-content h1 {
    color: #6e48aa;
    text-align: center;
    margin-bottom: 0.5rem;
}
.last-updated {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
.policy-section {
    margin-bottom: 2rem;
}
.policy-section h2 {
    color: #6e48aa;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}
.policy-section p {
    margin-bottom: 1rem;
}
.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.policy-section li {
    margin-bottom: 0.5rem;
}
.policy-section a {
    color: #6e48aa;
    text-decoration: none;
}
.policy-section a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .policy-container {
        padding: 0 0.5rem;
    }
    .policy-content {
        padding: 1rem;
    }
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgb(0 0 0 / 0.1);
    z-index: 999;
    direction: rtl;
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    font-size: 14px;
}
.cookie-content a {
    color: #9d50bb;
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}
.accept-btn {
    background-color: #6e48aa;
    color: #fff;
}
.decline-btn {
    background-color: #fff0;
    color: #fff;
    border: 1px solid white !important;
}
.cookie-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
.file-upload-button {
    background-color: #4caf50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
.file-upload-button:hover {
    background-color: #45a049;
}
.button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    transition: background-color 0.3s;
    margin: 5px;
}
#Subir-Foto-2 {
    background-color: #2196f3;
}
#Subir-Foto-2:hover {
    background-color: #0b7dda;
}
#downloadGifButton {
    background-color: #2196f3;
}
#downloadGifButton:hover {
    background-color: #0b7dda;
}
#refreshButton {
    background-color: #f44336;
}
#refreshButton:hover {
    background-color: #d32f2f;
}
.more-link.button:last-child {
    background-color: #f44336;
}
.more-link.button:last-child:hover {
    background-color: #d32f2f;
}
.swal2-popup {
    width: auto !important;
    max-width: 95vw;
    padding: 10px;
}
.cropper-container {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
    overflow: hidden;
}
#dynamicImageToCrop {
    display: block;
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.cropper-face {
    background-color: #fff0;
    border: 2px dashed rgb(255 255 255 / 0.7);
}
.cropper-point {
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    opacity: 0.8;
}
.swal2-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.button {
    min-width: 120px;
}
#cropModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 0.8);
    display: none;
    z-index: 9999;
    overflow: auto;
}
.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.cropper-container {
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
}
.cropper-wrap-box {
    max-height: 65vh;
}
svg {
    width: 100%;
}
#related-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.related-articles-section {
    margin: 60px 0 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}
.related-articles-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #6e48aa;
    font-size: 1.5rem;
}
.related-articles-section .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
@media (max-width: 768px) {
    .related-articles-section .articles-grid {
        grid-template-columns: 1fr;
    }
}
.article-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
@media (max-width: 768px) {
    .related-articles-section .articles-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}
.categories-nav {
    background: #fff0;
    padding: 15px 0;
    position: relative;
    overflow: hidden;
}
.categories-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(110 72 170 / 0.1), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
}
.category-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #fff0;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgb(255 255 255 / 0.3);
    text-align: center;
    min-width: 80px;
}
.category-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(110 72 170 / 0.2), transparent);
    transition: left 0.5s;
}
.category-btn:hover::before {
    left: 100%;
}
.category-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgb(255 255 255 / 0.1);
    box-shadow: 0 8px 25px rgb(0 0 0 / 0.15);
    border-color: rgb(255 255 255 / 0.6);
}
.category-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(238 90 111 / 0.3);
    border: 1px solid rgb(255 255 255 / 0.3);
    font-weight: 600;
}
.category-btn.active::before {
    display: none;
}
.category-btn:active {
    transform: translateY(0) scale(0.98);
}
.category-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.3);
}
@media (max-width: 768px) {
    .categories-nav {
        padding: 12px 0;
    }
    .categories-container {
        gap: 8px;
        padding: 0 15px;
    }
    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 70px;
    }
}
@media (max-width: 480px) {
    .categories-nav {
        padding: 10px 0;
    }
    .categories-container {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px;
        gap: 6px;
    }
    .categories-container::-webkit-scrollbar {
        display: none;
    }
    .category-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }
    .category-btn:hover {
        transform: translateY(-1px) scale(1.02);
    }
}
html[lang="ar"] .categories-container {
    direction: rtl;
}
html[lang="ar"] .category-btn {
    font-family: "Tahoma", "Arial", sans-serif;
}
.categories-nav {
    position: relative;
}
.categories-nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 0.3) 25%, rgb(255 255 255 / 0.6) 50%, rgb(255 255 255 / 0.3) 75%, transparent 100%);
}
.category-btn {
    position: relative;
    z-index: 1;
}
@media (prefers-contrast: high) {
    .category-btn {
        background: #fff0;
        color: #fff;
        border: 3px solid #fff;
    }
    .category-btn.active {
        background: #ff6b6b;
        color: #fff;
        border-color: #fff;
    }
}
@media (prefers-reduced-motion: reduce) {
    .categories-nav::before,
    .category-btn::before {
        animation: none;
        transition: none;
    }
    .category-btn {
        transition: background-color 0.2s, color 0.2s;
    }
}
.category-btn.active {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgb(238 90 111 / 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgb(238 90 111 / 0.5);
    }
    100% {
        box-shadow: 0 8px 25px rgb(238 90 111 / 0.3);
    }
}
.language-switcher-footer a {
    margin: 0 10px;
    color: #f5f5f5;
    text-decoration: none;
}
.language-switcher-footer a:hover {
    opacity: 0.8;
}
/* تصميم محسن للقسم الرئيسي */
.services-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 !important;
    padding: 60px 20px !important;
    color: white;
    position: relative;
    overflow: hidden;
}

.services-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" fill-opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.services-intro h1 {
    font-size: 2.5em !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.services-intro h2 {
    font-size: 1.8em !important;
    color: #f8f9ff !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    font-weight: 600 !important;
    position: relative;
    z-index: 2;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.services-content p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-bottom: 25px !important;
    text-align: justify;
}

.services-content p strong {
    color: #ffd700;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* تصميم محسن للقسم السفلي */
.services-benefits {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    margin: 0 !important;
    padding: 60px 20px !important;
    color: white;
    position: relative;
    overflow: hidden;
}

.services-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%23ffffff" fill-opacity="0.08"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.services-benefits h3 {
    font-size: 2.2em !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}

.benefits-content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 45px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.benefits-content p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-bottom: 25px !important;
    text-align: justify;
}

/* تحسينات إضافية للاستجابة */
@media (max-width: 768px) {
    .services-intro, .services-benefits {
        padding: 40px 15px !important;
    }
    
    .services-content, .benefits-content {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .services-intro h1 {
        font-size: 2em !important;
    }
    
    .services-intro h2, .services-benefits h3 {
        font-size: 1.5em !important;
    }
    
    .services-content p, .benefits-content p {
        font-size: 15px !important;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .services-intro h1 {
        font-size: 1.8em !important;
    }
    
    .services-intro h2, .services-benefits h3 {
        font-size: 1.3em !important;
    }
}

/* تأثيرات تفاعلية */
.services-content, .benefits-content {
    transition: all 0.3s ease;
}

.services-content:hover, .benefits-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* إضافة أيقونات للخدمات */
.services-content p strong::before {
    content: '✨ ';
    margin-right: 5px;
    font-size: 1.1em;
}

/* تنسيق خاص للنصوص العربية */
[dir="rtl"] .services-content p,
[dir="rtl"] .benefits-content p {
    text-align: right !important;
}

[dir="rtl"] .services-content p strong::before {
    margin-right: 0;
    margin-left: 5px;
}
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pagination-button:hover {
    background: linear-gradient(to bottom, #f5f5f5, #eeeeee);
    color: #6e48aa;
    border-color: #6e48aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination-button.active {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: #ffffff;
    border-color: #6e48aa;
    font-weight: bold;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.3);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    color: #888;
    font-weight: bold;
    pointer-events: none;
}

/* تصميم متجاوب للهواتف */
@media (max-width: 768px) {
    .pagination {
        gap: 0.3rem;
        padding: 0 0.5rem;
    }
    
    .pagination-button,
    .pagination-ellipsis {
        min-width: 35px;
        height: 35px;
        padding: 0.4rem 0.8rem;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
        gap: 0.25rem;
    }
    
    .pagination-button,
    .pagination-ellipsis {
        min-width: unset;
        width: 100%;
        height: 32px;
        padding: 0.3rem 0.5rem;
        font-size: 12px;
    }
}
/* تصميم مخصص للفلاتر */
.filters-bar {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.filters-bar a {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    color: #6e48aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filters-bar a:hover {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: white;
    border-color: #6e48aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(110, 72, 170, 0.2);
}

.filters-bar a[style*="font-weight:bold"] {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: white;
    border-color: #6e48aa;
    box-shadow: 0 4px 12px rgba(110, 72, 170, 0.25);
}

.filters-bar a[style*="font-weight:bold"]:hover {
    background: linear-gradient(135deg, #5a3a8a, #7e4096);
    transform: translateY(-2px);
}

/* تصميم مخصص لشريط Subfilters */
.subfilters-bar {
    background: linear-gradient(135deg, #f0e6ff 0%, #e3d9fc 100%);
    border: 1px solid #d6c7ff;
    margin: 20px 0;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.1);
}

.subfilters-bar strong {
    color: #6e48aa;
    font-size: 16px;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.subfilters-bar a {
    background: linear-gradient(to bottom, #ffffff, #f8f4ff);
    border: 2px solid #d6c7ff;
    color: #7b1fa2;
}

.subfilters-bar a:hover {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    color: white;
    border-color: #7b1fa2;
}

.subfilters-bar a[style*="font-weight:bold"] {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    color: white;
    border-color: #7b1fa2;
}

.subfilters-bar a[style*="font-weight:bold"]:hover {
    background: linear-gradient(135deg, #6a1b9a, #8a24aa);
}

/* تصميم للفلاتر الديموغرافية */
.filters-bar:last-of-type {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #bbdefb;
}

.filters-bar:last-of-type a {
    border: 2px solid #90caf9;
    color: #1976d2;
}

.filters-bar:last-of-type a:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border-color: #1976d2;
}

.filters-bar:last-of-type a[style*="font-weight:bold"] {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border-color: #1976d2;
}

.filters-bar:last-of-type a[style*="font-weight:bold"]:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

/* تحسينات للعناوين */
.featured-articles h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #6e48aa;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e6ff;
    position: relative;
}

.featured-articles h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #6e48aa, #9d50bb);
}

/* تحسينات للاستجابة على الأجهزة المحمولة */
@media (max-width: 768px) {
    .filters-bar, .subfilters-bar {
        padding: 12px;
        gap: 8px;
    }
    
    .filters-bar a {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .subfilters-bar strong {
        margin-right: 10px;
        font-size: 14px;
        margin-bottom: 8px;
        width: 100%;
    }
    
    .subfilters-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .filters-bar, .subfilters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-bar a {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .subfilters-bar strong {
        text-align: center;
    }
}

/* تأثيرات للغة العربية */
html[lang="ar"] .filters-bar,
html[lang="ar"] .subfilters-bar {
    direction: rtl;
}

html[lang="ar"] .subfilters-bar strong {
    margin-right: 0;
    margin-left: 15px;
}

/* تحسينات للوصول */
.filters-bar a:focus,
.subfilters-bar a:focus {
    outline: 2px solid #6e48aa;
    outline-offset: 2px;
}

/* تحسينات للوضع الليلي */
@media (prefers-color-scheme: dark) {
    .filters-bar {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }
    
    .filters-bar a {
        background: linear-gradient(to bottom, #4a5568, #2d3748);
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .subfilters-bar {
        background: linear-gradient(135deg, #553c9a 0%, #6b46c1 100%);
        border-color: #6b46c1;
    }
    
    .filters-bar:last-of-type {
        background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
        border-color: #3182ce;
    }
}