/*
Theme Name: أخبار العلوم
Theme URI: https://scienew.com
Author: فريق أخبار العلوم
Author URI: https://scienew.com
Description: قالب علمي تفاعلي للشباب واليافعين (13-18 سنة) مع دعم اللغة العربية وتصميم RTL
Version: 1.0.0
License: GPL v2 or later
Text Domain: akhbar-alulum
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, post-thumbnails, theme-options, widget-ready, translation-ready
*/

/* الأنماط الأساسية موجودة في assets/css/style.css */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}

:root {
    --beige-light: #F9F5F0;
    --beige-medium: #F0E6D6;
    --beige-dark: #E8DCC8;
    --primary: #4A7B9D;
    --primary-light: #6B9AB8;
    --secondary: #7D6B8F;
    --accent: #E76F51;
    --accent-light: #F4A261;
    --yellow: #FFD166;
    --green: #06D6A0;
    --text-dark: #2A3D45;
    --text-light: #5A6D76;
    --shadow: rgba(42, 61, 69, 0.1);
    --white: #FFFFFF;
}

body {
    background-color: var(--beige-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 40px;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(231, 111, 81, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(74, 123, 157, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 209, 102, 0.05) 0%, transparent 30%);
}

/* الهيدر */
header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(74, 123, 157, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 8px solid var(--accent);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-icon {
    background-color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: var(--primary);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--accent);
    animation: spin 10s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--white);
    text-shadow: 2px 2px 0 var(--secondary);
}

.logo-text p {
    font-size: 1.1rem;
    background-color: var(--white);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 4px 0 var(--secondary);
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 15px;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 50px;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-menu a:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-5px) scale(1.1);
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown-toggle:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    z-index: 1000;
    display: none;
    margin-top: 10px;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--beige-medium);
    padding: 12px 20px;
    display: block;
    text-align: right;
    font-weight: 600;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateX(-10px);
    padding-right: 30px;
}

.dropdown-menu a i {
    color: var(--primary);
    transition: all 0.3s;
}

.dropdown-menu a:hover i {
    color: var(--white);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

li:hover .dropdown-menu {
    display: block;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.25);
    width: 300px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    color: var(--accent-light);
    transform: translateY(-50%) scale(1.1);
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--beige-medium);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background-color: var(--beige-light);
    transform: translateX(-5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.result-content h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.result-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

/* قسم السلايدر */
.slider-section {
    padding: 30px 0 50px;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
    position: relative;
    overflow: hidden;
}

.slider-section::before {
    content: '🚀';
    position: absolute;
    font-size: 150px;
    color: rgba(74, 123, 157, 0.1);
    top: 10px;
    left: 10px;
    transform: rotate(20deg);
}

.slider-section::after {
    content: '🔬';
    position: absolute;
    font-size: 120px;
    color: rgba(231, 111, 81, 0.1);
    bottom: 10px;
    right: 10px;
    transform: rotate(-15deg);
}

.slider-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 8px solid var(--white);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 400px;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    transform: translateY(0);
    transition: transform 0.5s;
}

.slide:hover .slide-content {
    transform: translateY(-10px);
}

.slide-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    animation: blink 2s infinite;
}

.slide-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.2rem;
    max-width: 80%;
    line-height: 1.5;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background-color: var(--white);
    color: var(--accent);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--beige-dark);
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid var(--white);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.dot:hover {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* قسم المقالات المميزة */
.featured-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--yellow);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    opacity: 0.2;
    z-index: -1;
}

.featured-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--accent);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    opacity: 0.2;
    z-index: -1;
}

.section-title {
    text-align: center;
    margin: 0 0 50px;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    font-size: 2.8rem;
    color: var(--text-dark);
    padding: 15px 40px;
    position: relative;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 0 var(--yellow);
    border: 5px solid var(--accent);
    animation: titlePulse 3s infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.featured-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.featured-article {
    background-color: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 5px solid var(--white);
    position: relative;
}

.featured-article:hover {
    transform: translateY(-15px) rotate(1deg);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}

.featured-article::before {
    content: '⭐ مميز';
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 0 var(--text-dark);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.featured-article-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.featured-article:hover .featured-article-image img {
    transform: scale(1.1) rotate(3deg);
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: floatAround 15s infinite linear;
    color: var(--white);
    background-color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.floating-icon:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 70%;
    right: 5%;
    animation-delay: -5s;
}

.floating-icon:nth-child(3) {
    top: 30%;
    left: 5%;
    animation-delay: -10s;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 20px) rotate(90deg); }
    50% { transform: translate(0, 40px) rotate(180deg); }
    75% { transform: translate(-20px, 20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.featured-article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-article-category {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    align-self: flex-start;
    box-shadow: 0 4px 0 var(--text-dark);
    border: 2px solid var(--white);
}

.featured-article-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
    min-height: 70px;
}

.featured-article-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1.1rem;
    background-color: var(--beige-light);
    padding: 15px;
    border-radius: 15px;
    border-right: 5px solid var(--accent);
}

.featured-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 3px solid var(--beige-medium);
}

.featured-article-date {
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 1.1rem;
    background-color: var(--beige-light);
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid var(--accent);
}

.read-more:hover {
    color: var(--white);
    background-color: var(--accent);
    gap: 15px;
    transform: scale(1.05);
}

/* أقسام المقالات */
.categories-section {
    margin: 60px 0;
    padding: 50px 0;
    background-color: var(--beige-medium);
    border-radius: 30px;
    border: 8px solid var(--white);
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '🔬';
    position: absolute;
    font-size: 200px;
    color: rgba(74, 123, 157, 0.1);
    top: -50px;
    left: -50px;
    transform: rotate(30deg);
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    background-color: var(--white);
    padding: 25px 30px;
    border-radius: 20px;
    text-align: center;
    width: 180px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s;
    border: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-15px) rotate(2deg) scale(1.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.category-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: var(--accent);
    top: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent);
}

.category-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.category-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    pointer-events: none;
}

.category-icon-small {
    position: absolute;
    font-size: 1rem;
    animation: floatAround 15s infinite linear;
    color: var(--white);
    background-color: var(--secondary);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

.category-icon-small:nth-child(1) {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.category-icon-small:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

/* قسم المقالات مع Layouts مختلفة */
.articles-section {
    margin: 80px 0;
}

.articles-layout-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.layout-btn {
    background-color: var(--white);
    border: 3px solid var(--beige-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.layout-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.layout-btn.active {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(231, 111, 81, 0.3);
}

.articles-container {
    display: flex;
    gap: 30px;
    position: relative;
}

.articles-main {
    flex: 1;
}

.sidebar {
    width: 300px;
    background-color: var(--white);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white);
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--beige-medium);
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.popular-posts {
    list-style: none;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 15px;
    transition: all 0.3s;
    background-color: var(--beige-light);
}

.popular-post-item:hover {
    background-color: var(--beige-medium);
    transform: translateX(-5px);
}

.popular-post-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.popular-post-content span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.categories-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    background-color: var(--beige-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.3s;
    display: inline-block;
}

.category-tag:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.sidebar-ad {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.sidebar-ad h4 {
    color: var(--yellow);
    margin-bottom: 10px;
}

.articles-grid.three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.articles-grid.large-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.large-article {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.large-article .article-image {
    height: 300px;
}

.large-article .article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.large-article .article-content h3 {
    font-size: 2.2rem;
    min-height: auto;
}

.small-articles {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.articles-grid.list-view .article-card {
    display: flex;
    flex-direction: row;
    height: auto;
    margin-bottom: 25px;
}

.articles-grid.list-view .article-image {
    width: 250px;
    height: 200px;
    flex-shrink: 0;
}

.articles-grid.list-view .article-content {
    flex: 1;
}

.articles-grid.list-view .article-content h3 {
    min-height: auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.article-card {
    background-color: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 5px solid var(--white);
    position: relative;
}

.article-card:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}

.article-card::before {
    content: 'جديد';
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 0 var(--text-dark);
    animation: bounce 1s infinite alternate;
}

.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.article-card:hover .article-image img {
    transform: scale(1.1) rotate(5deg);
}

.article-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    pointer-events: none;
}

.article-icon {
    position: absolute;
    font-size: 1.5rem;
    animation: floatAround 20s infinite linear;
    color: var(--white);
    background-color: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.article-icon:nth-child(1) {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
    background-color: var(--accent);
}

.article-icon:nth-child(2) {
    top: 65%;
    right: 8%;
    animation-delay: -7s;
    background-color: var(--yellow);
}

.article-icon:nth-child(3) {
    top: 40%;
    left: 8%;
    animation-delay: -14s;
    background-color: var(--green);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    align-self: flex-start;
    box-shadow: 0 4px 0 var(--text-dark);
    border: 2px solid var(--white);
}

.article-content h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
    min-height: 70px;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1.1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 3px solid var(--beige-medium);
}

.article-date {
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* الفوتر */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 50px 0 25px;
    margin-top: 70px;
    border-top: 15px solid var(--accent);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -15px;
    right: 0;
    width: 100%;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='30' viewBox='0 0 100 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L100,0 L100,30 Q50,0 0,30' fill='%23E76F51'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: var(--yellow);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 5px;
    background-color: var(--accent);
    bottom: 0;
    right: 0;
    border-radius: 5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul li a:hover {
    color: white;
    padding-right: 15px;
    color: var(--yellow);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 22px;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-icons a:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-10px) rotate(10deg);
    border-color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    font-size: 1rem;
}



/* ==================== أنماط الصفحة المفردة (Single) ==================== */

/* محتوى المقال */
.entry-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-top: 30px;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 2rem;
    padding-bottom: 10px;
    border-bottom: 3px dashed var(--accent);
}

.entry-content h3 {
    font-size: 1.7rem;
    color: var(--secondary);
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.entry-content li {
    margin-bottom: 0.8rem;
}

.entry-content blockquote {
    border-right: 5px solid var(--accent);
    background-color: var(--beige-light);
    padding: 25px;
    margin: 2rem 0;
    border-radius: 15px;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-dark);
    position: relative;
}

.entry-content blockquote::before {
    content: "❝";
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    top: -20px;
    right: 15px;
    opacity: 0.3;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content pre {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    direction: ltr;
    text-align: left;
}

.entry-content code {
    background-color: var(--beige-medium);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9em;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.entry-content table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    text-align: right;
    font-weight: 700;
}

.entry-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--beige-medium);
}

.entry-content table tr:nth-child(even) {
    background-color: var(--beige-light);
}

.entry-content table tr:hover {
    background-color: var(--beige-medium);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.entry-content img:hover {
    transform: scale(1.02);
}

.entry-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px dotted var(--primary-light);
    transition: all 0.3s;
}

.entry-content a:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* رأس المقال */
.entry-header {
    margin-bottom: 40px;
    border-radius: 50px;
    padding: 25px;
    position: relative;
    z-index: 0 !important;
}

.entry-title {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: right;
}

.entry-meta {
    background-color: var(--beige-light);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    border-right: 5px solid var(--accent);
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.entry-meta i {
    color: var(--primary);
    font-size: 1.2rem;
}

.entry-meta .posted-on:hover i {
    color: var(--accent);
    animation: bounce 0.5s;
}

.entry-meta .byline:hover i {
    color: var(--secondary);
    animation: spin 1s;
}

.entry-meta .cat-links a {
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    margin-right: 5px;
}

.entry-meta .cat-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.featured-image {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

/* تذييل المقال */
.entry-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 3px dashed var(--beige-medium);
}

.post-tags {
    background-color: var(--beige-light);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.post-tags i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-left: 10px;
}

.post-tags a {
    display: inline-block;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 25px;
    margin: 5px;
    text-decoration: none;
    border: 2px solid var(--beige-medium);
    transition: all 0.3s;
    font-size: 0.95rem;
}

.post-tags a:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 123, 157, 0.3);
}

/* التنقل بين المقالات */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 300px;
}

.nav-links {
    background-color: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--shadow);
    transition: all 0.3s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-links:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(231, 111, 81, 0.2);
}

.nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links i {
    color: var(--primary);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.nav-links:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

.nav-links .nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
}

.nav-links .nav-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

.nav-previous .nav-links {
    text-align: right;
}

.nav-next .nav-links {
    text-align: left;
}

/* المقالات ذات الصلة */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px dashed var(--beige-medium);
}

.related-posts-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post-item {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow);
    transition: all 0.3s;
}

.related-post-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    height: 180px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 20px;
}

.related-post-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.related-post-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-content h4 a:hover {
    color: var(--accent);
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dotted var(--beige-medium);
    font-size: 0.9rem;
    color: var(--text-light);
}

.related-post-date i {
    color: var(--primary);
    margin-left: 5px;
}

/* قسم المؤلف */
.author-box {
    background-color: var(--beige-light);
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    display: flex;
    gap: 25px;
    align-items: center;
    border-right: 5px solid var(--primary);
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.author-info p {
    color: var(--text-light);
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}


/* ==================== أنماط التعليقات ==================== */

/* منطقة التعليقات الرئيسية */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px dashed var(--beige-medium);
}

.comments-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.comments-title i {
    color: var(--primary);
    margin-left: 10px;
}

/* قائمة التعليقات */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list ol.children {
    list-style: none;
    margin-right: 40px;
    padding-right: 20px;
    border-right: 3px solid var(--beige-medium);
}

.comment-body {
    background-color: var(--white);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--shadow);
    border-right: 5px solid var(--primary);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.comment-body:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-right-color: var(--accent);
}

.comment-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* معلومات المعلق */
.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.comment-body:hover .comment-author .avatar {
    transform: scale(1.1);
    border-color: var(--accent);
}

.comment-meta {
    flex: 1;
}

.comment-author-name {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.comment-author-name .fn {
    font-weight: 700;
    color: var(--primary);
}

.comment-author-name .fn a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.comment-author-name .fn a:hover {
    color: var(--accent);
}

.comment-metadata {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-metadata a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.comment-metadata a:hover {
    color: var(--accent);
}

.comment-metadata .comment-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-metadata .comment-date i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* محتوى التعليق */
.comment-content {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.1rem;
    padding: 20px;
    background-color: var(--beige-light);
    border-radius: 15px;
    margin-top: 15px;
    border-right: 3px solid var(--beige-medium);
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* زر الرد */
.reply {
    margin-top: 15px;
    text-align: left;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid var(--primary);
}

.comment-reply-link:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 123, 157, 0.3);
}

.comment-reply-link i {
    font-size: 0.8rem;
}

/* بدون تعليقات */
.no-comments {
    text-align: center;
    padding: 40px;
    background-color: var(--beige-light);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 1.2rem;
    border: 3px dashed var(--beige-medium);
}

/* ==================== نموذج التعليقات ==================== */

.comment-respond {
    background-color: var(--white);
    padding: 40px;
    border-radius: 25px;
    margin-top: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white);
    position: relative;
    overflow: hidden;
}

.comment-respond::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
}

.comment-reply-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-reply-title i {
    color: var(--accent);
    font-size: 1.5rem;
}

.comment-reply-title small {
    margin-right: auto;
}

.comment-reply-title small a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.comment-reply-title small a:hover {
    color: var(--accent);
}

/* نموذج التعليق */
.comment-form {
    margin-top: 20px;
}

.comment-form .logged-in-as {
    background-color: var(--beige-light);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: center;
    border-right: 3px solid var(--beige-medium);
}

.comment-form .logged-in-as a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.comment-form .logged-in-as a:hover {
    color: var(--accent);
}

/* حقول النموذج */
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.comment-form label span {
    color: var(--accent);
    margin-right: 5px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 18px;
    border: 2px solid var(--beige-medium);
    border-radius: 15px;
    background-color: var(--beige-light);
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 123, 157, 0.1);
}

.comment-form textarea::placeholder,
.comment-form input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* زر الإرسال */
.form-submit {
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(74, 123, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(231, 111, 81, 0.3);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-btn i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    transition: transform 0.3s;
}

.submit-btn:hover i {
    transform: translateX(-5px);
}

/* نصائح النموذج */
.comment-notes {
    background-color: var(--beige-light);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    border-right: 3px solid var(--beige-medium);
}

.comment-notes span {
    color: var(--accent);
    font-weight: 700;
}

/* سياسة الخصوصية */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--beige-light);
    border-radius: 15px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
}

/* التنقل بين التعليقات */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid var(--beige-medium);
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.nav-previous a i {
    transform: rotate(180deg);
}

/* تعديلات RTL للتعليقات */
.rtl .comment-list ol.children {
    margin-left: 40px;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 0;
    border-left: 3px solid var(--beige-medium);
    border-right: none;
}

.rtl .comment-body {
    border-left: 5px solid var(--primary);
    border-right: none;
}

.rtl .comment-body:hover {
    border-left-color: var(--accent);
    border-right-color: transparent;
}

.rtl .comment-content {
    border-left: 3px solid var(--beige-medium);
    border-right: none;
}

.rtl .reply {
    text-align: right;
}

.rtl .comment-notes {
    border-left: 3px solid var(--beige-medium);
    border-right: none;
}

.rtl .comment-form-cookies-consent {
    flex-direction: row-reverse;
}

.rtl .submit-btn:hover i {
    transform: translateX(5px);
}

/* ==================== التجاوب مع الشاشات الصغيرة ==================== */

@media (max-width: 768px) {
    .comment-body {
        padding: 20px;
    }
    
    .comment-author {
        flex-direction: column;
        text-align: center;
    }
    
    .comment-author .avatar {
        width: 60px;
        height: 60px;
    }
    
    .comment-author-name {
        font-size: 1.1rem;
    }
    
    .comment-metadata {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-content {
        padding: 15px;
        font-size: 1rem;
    }
    
    .comment-respond {
        padding: 25px;
    }
    
    .comment-reply-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .comment-list ol.children {
        margin-right: 20px;
        padding-right: 10px;
    }
    
    .rtl .comment-list ol.children {
        margin-left: 20px;
        padding-left: 10px;
    }
}

@media (max-width: 576px) {
    .comments-title {
        font-size: 1.6rem;
    }
    
    .comment-body {
        padding: 15px;
    }
    
    .comment-respond {
        padding: 20px;
    }
    
    .comment-form textarea,
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"] {
        padding: 15px;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }
    
    .comment-navigation {
        flex-direction: column;
    }
    
    .nav-previous a,
    .nav-next a {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== أنماط خاصة لرسائل الخطأ والنجاح ==================== */

.comment-form .error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.comment-form .success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-right: 3px solid #28a745;
    text-align: center;
    font-weight: 700;
}

.comment-form .success i {
    color: #28a745;
    margin-left: 10px;
}

/* تخصيص شريط التمرير في textarea */
.comment-form textarea::-webkit-scrollbar {
    width: 8px;
}

.comment-form textarea::-webkit-scrollbar-track {
    background: var(--beige-light);
    border-radius: 10px;
}

.comment-form textarea::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.comment-form textarea::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* تأثيرات خاصة للتعليقات الجديدة */
.comment-body.new-comment {
    animation: highlightComment 2s ease;
    border-right-color: var(--accent);
}

@keyframes highlightComment {
    0% {
        background-color: rgba(231, 111, 81, 0.1);
    }
    100% {
        background-color: var(--white);
    }
}

/* أرقام التعليقات */
.comment-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(74, 123, 157, 0.3);
}

.rtl .comment-number {
    right: 15px;
    left: auto;
}

/* تقييم التعليقات (اختياري) */
.comment-rating {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.comment-rating i {
    color: var(--yellow);
    font-size: 1rem;
}

.comment-rating i.inactive {
    color: var(--beige-medium);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2.2rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        min-width: 100%;
    }
    
    .entry-content h2 {
        font-size: 1.8rem;
    }
    
    .entry-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-content {
        font-size: 1.1rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}



/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 1100px) {
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .featured-article-content h3 {
        font-size: 1.6rem;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .articles-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .primary-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-box {
        width: 100%;
        max-width: 400px;
    }
    
    .featured-articles {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .categories-container {
        gap: 15px;
    }
    
    .category-card {
        width: 160px;
        padding: 20px;
    }
    
    .slider {
        height: 350px;
    }
    
    .articles-grid.large-small {
        grid-template-columns: 1fr;
    }
    
    .large-article {
        grid-column: 1;
        grid-template-columns: 1fr;
    }
    
    .small-articles {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .category-card {
        width: 140px;
        padding: 15px;
    }
    
    .slider {
        height: 300px;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .dropdown-menu {
        position: fixed;
        top: auto;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 300px;
    }
    
    .dropdown-menu a {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .articles-grid.list-view .article-card {
        flex-direction: column;
    }
    
    .articles-grid.list-view .article-image {
        width: 100%;
    }
}

@media (max-width: 576px) {
    
.dropdown-menu {
    right: 185px;
    left: 0;
}


    .logo-text h1 {
        font-size: 2rem;
    }
    
    .search-box input {
        font-size: 0.9rem;
        padding: 10px 40px 10px 15px;
    }
    
    .featured-articles {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        width: 120px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .slider {
        height: 250px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slide-badge {
        padding: 5px 15px;
        font-size: 0.9rem;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        max-width: 90%;
    }
    
    .articles-layout-options {
        flex-direction: column;
        align-items: center;
    }
    
    .layout-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}


@media (max-width: 480px) {
    
.dropdown-menu {
    right: 185px !important;
    left: 0 !important;
}}





/* منع التمرير الأفقي (الأسكرول يمين وشمال) */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* تأكد من أن كل العناصر لا تتجاوز عرض الصفحة */
* {
  box-sizing: border-box;
  max-width: 100%;
}

/* حلول لمشاكل التمرير الأفقي الشائعة */

/* 1. للصور والفيديو */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* 2. للجداول */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 3. للعناصر ذات العرض الثابت */
.fixed-width-element {
  width: 100%;
  max-width: 100%;
}

/* 4. لحل مشكلة margins السالبة */
.no-negative-margin {
  margin-left: 0;
  margin-right: 0;
}

/* 5. للعناصر التي تستخدم transform */
.transformed-element {
  transform-origin: center top;
}

/* 6. لمنع العناصر من الخروج عن الحاوية */
.container {
  width: 100%;
  overflow: hidden;
}

/* 7. لحل مشاكل position */
.position-fixed-element {
  left: 0;
  right: 0;
  width: 100%;
}

/* 8. للعناصر مع box-shadow طويلة */
.shadow-element {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 9. لـ flexbox */
.flex-container {
  flex-wrap: wrap;
}

/* 10. لـ grid */
.grid-container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 11. للنصوص الطويلة بدون فواصل */
.text-break {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* 12. للروابط والزرود الطويلة */
.long-link {
  display: inline-block;
  max-width: 100%;
}

/* 13. لحل مشاكل padding مع width 100% */
.full-width-padded {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* 14. للمكونات الخاصة بالعربية (RTL) */
.rtl-container {
  direction: rtl;
  text-align: right;
}

/* 15. إخفاء شريط التمرير الأفقي نهائياً */
.hide-horizontal-scroll {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

.hide-horizontal-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* 16. وسائط متعددة للتأكد من عدم وجود تمرير أفقي */
@media (max-width: 767px) {
  .mobile-no-horizontal {
    overflow-x: hidden !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tablet-no-horizontal {
    overflow-x: hidden !important;
  }
}