@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
    --primary-color: #5A7345;
    --secondary-color: #a1ce7c;
    --text-color-dark: #2F332C;
    --text-color-light: #5A7345;
    --light-bg: #eef1ff;
    --card-bg: #ffffff;
    --border-color: #dce1e6;
    --dark-bg: #343a40;
    --accent-color: #ff6b6b;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --border-radius: 12px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color-dark);
    line-height: 1.6;
    direction: rtl;
}

/* Header Styles */
.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(90, 115, 69, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.cta-header-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-header-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90, 115, 69, 0.3);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    position: absolute;
    left: 20px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Article Content Styles */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.article-content h1 {
    font-family: 'El Messiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-color-dark);
}

.article-content h2 {
    font-family: 'El Messiri', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    padding-right: 10px;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.article-list {
    list-style-type: none;
    padding-right: 20px;
    margin-bottom: 20px;
}

.article-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 10px;
    position: relative;
}

.article-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    right: -25px;
    top: 5px;
    font-size: 0.9rem;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-bg);
    color: var(--gray-400);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s cubic-bezier(0.5, 0, 0.3, 1);
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        margin: 0;
    }

    .nav-links li {
        margin: 15px 0;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu.active .nav-links li {
        opacity: 1;
    }

    .hamburger-menu {
        display: flex;
        right: 20px;
        left: auto;
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .cta-header-button {
        display: none;
    }

    .header {
        justify-content: space-between;
    }

    .logo {
        order: 1; /* Move the logo to the right for RTL layout */
    }

    .hamburger-menu {
        order: 2; /* Move the hamburger to the left */
        left: 20px;
        right: auto;
    }
}