/* ===== المتغيرات العامة ===== */
:root {
    --primary-color: #446b07; /* اللون الأخضر الرئيسي */
    --secondary-color: #f37827; /* اللون البرتقالي */
    --light-green: #d8f0d1; /* اللون الأخضر الفاتح */
    --light-orange: #fde7d8; /* اللون البرتقالي الفاتح */
    --bg-color: #f9f5f1; /* لون الخلفية */
    --text-color: #333;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --whatsapp-color: #25D366; /* لون واتساب */
}

/* ===== إعدادات عامة ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.whatsapp-btn {
    background-color: var(--whatsapp-color);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
}

.section-header p {
    color: #777;
    font-size: 18px;
}

/* ===== شريط التنقل ===== */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-right: 20px;
}

.menu li:last-child {
    margin-right: 0;
}

.menu a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 5px;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    right: 0;
    transition: var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== القسم الرئيسي ===== */
.hero {
    background-color: var(--light-green);
    padding: 100px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-left: 50px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-content .slogan {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-image {
    flex: 1;
    overflow-x: hidden;
}

.placeholder-image {
    background-color: #ddd;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    color: #777;
    font-size: 18px;
}

/* ===== قسم الخدمات ===== */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-green);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ===== قسم من نحن ===== */
.about {
    background-color: var(--light-orange);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-text h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

/* ===== قسم المدونة ===== */
.blog {
    background-color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 20px;
}

.blog-date {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.blog-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -2px;
    right: 0;
    transition: var(--transition);
}

.read-more:hover::after {
    width: 100%;
}

.blog-more {
    text-align: center;
    margin-top: 40px;
}

/* ===== قسم الاتصال ===== */
.contact {
    background-color: var(--light-green);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-left: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links .whatsapp-link {
    background-color: var(--whatsapp-color);
}

.social-links .whatsapp-link:hover {
    background-color: #128C7E;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* ===== أنماط التذييل المعدلة ===== */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.logo-container:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-slogan {
    font-size: 18px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    position: relative;
    padding-right: 15px;
}

.footer-slogan::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background-color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    right: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: block;
    padding: 5px 0;
    position: relative;
    padding-right: 15px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    margin-left: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* تصميم متجاوب للتذييل */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        align-items: center;
        text-align: center;
    }
    
    .footer-slogan::after {
        display: none;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}.intro-section 
/* ===== زر واتساب العائم ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* ===== أنماط النافذة المنبثقة ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: modalopen 0.5s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 28px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: var(--primary-color);
}

.modal-date {
    color: #777;
    font-size: 14px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-image {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    line-height: 1.8;
    color: #555;
}

/* تصميم متجاوب للنافذة المنبثقة */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image {
        height: 200px;
    }
}

/* أنماط نافذة جميع المقالات */
.all-posts-modal {
    max-width: 900px;
}

.all-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.all-post-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.all-post-card:hover {
    transform: translateY(-5px);
}

.all-post-image {
    height: 150px;
    overflow: hidden;
}

.all-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.all-post-content {
    padding: 15px;
}

.all-post-title {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.all-post-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.all-post-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.all-post-read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .all-posts-container {
        grid-template-columns: 1fr;
    }
    
    .all-posts-modal {
        width: 95%;
    }
}

/* ===== تصميم متجاوب ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-left: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 80%;
        height: calc(100vh - 70px);
        padding: 20px;
        box-shadow: var(--box-shadow);
        transition: var(--transition);
    }
    
    .menu.active {
        right: 0;
    }
    
    .menu li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .footer-newsletter .btn {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    .service-card,
    .blog-card {
        padding: 20px;
    }
}

