﻿/* الهوية البصرية الزراعية الموحدة */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-green: #38a169;
    --secondary-green: #22543d;
    --accent-yellow: #f6e05e;
    --warm-yellow: #f6ad55;
    --light-green: #c6f6d5;
    --light-yellow: #fefcbf;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --shadow-light: 0 2px 8px rgba(56, 161, 105, 0.1);
    --shadow-medium: 0 4px 16px rgba(56, 161, 105, 0.15);
    --shadow-heavy: 0 8px 32px rgba(56, 161, 105, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-yellow) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-yellow) 0%, var(--warm-yellow) 100%);
    --gradient-light: linear-gradient(135deg, var(--light-green) 0%, var(--light-yellow) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    direction: rtl;
}

/* العناوين الرئيسية */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', Arial, sans-serif;
    font-weight: 700;
    color: var(--secondary-green);
    margin-bottom: 1rem;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
}

h1::before {
    content: '';
    margin-left: 0;
    font-size: 0;
}

h2 {
    font-size: 2rem;
    color: var(--primary-green);
    border-right: 4px solid var(--accent-yellow);
    padding-right: 1rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-green);
    margin-bottom: 1rem;
}

/* الأقسام */
.section {
    padding: 3rem 0;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-light);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(30px, -30px);
}

.section:nth-child(even)::before {
    left: 0;
    right: auto;
    transform: translate(-30px, -30px);
}

/* الحاويات */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.magazines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* الكروت */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-yellow);
}

.card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h3::before {
    content: '';
    font-size: 0;
}

/* الجداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

th {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: right;
}

tr:hover {
    background: var(--light-green);
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Tajawal', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* الصور */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* النصوص */
p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
}

strong {
    color: var(--secondary-green);
    font-weight: 600;
}

/* القوائم */
ul, ol {
    margin: 1rem 0;
    padding-right: 2rem;
}

li {
    margin-bottom: 0.5rem;
    position: relative;
}

ul li::before {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 0;
    font-size: 0;
}

/* السلايدر */
.slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin: 2rem 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

/* الشركاء */
.partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.partner-logo {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--accent-yellow);
}

/* الخلفيات */
.bg-gradient {
    background: var(--gradient-light);
    padding: 3rem 0;
    margin: 2rem 0;
}

.bg-white {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    margin: 2rem 0;
}

/* الصفوف والأعمدة */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.col {
    flex: 1;
    min-width: 300px;
}

/* التباعد */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* النص المركزي */
.text-center {
    text-align: center;
}

/* الاستجابة */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .articles-container,
    .magazines {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col {
        min-width: 100%;
    }
}

/* تأثيرات إضافية */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* أيقونات زراعية */
.agricultural-icon {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.2em;
}

.agricultural-icon.wheat { content: '🌾'; }
.agricultural-icon.leaf { content: '🌱'; }
.agricultural-icon.tree { content: '🌳'; }
.agricultural-icon.flower { content: '🌸'; }

/* تحسينات للسلايدر */
.slider-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin: 2rem 0;
    height: 400px;
}

.slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(56, 161, 105, 0.8);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev { left: 1rem; }
.next { right: 1rem; }

.prev:hover, .next:hover {
    background: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.main-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

/* تحسينات للصفحات المحددة */
.image-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin: 2rem 0;
    height: 400px;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

/* تحسينات للجداول */
.views {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* تحسينات للأزرار */
.register-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.register-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Main Styles */
body, html { 
    margin: 0; 
    padding: 0; 
    font-family: 'Tajawal', Arial, sans-serif;
    direction: rtl;
}

/* Header Styles */
header {
    background: linear-gradient(90deg, #38a169 0%, #f6e05e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 16px rgba(56,161,105,0.09);
    border-bottom: 4px solid #38a169;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.logo img {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px #38a16922;
    border: 2.5px solid #f6e05e;
    object-fit: contain;
}

.logo span {
    font-family: 'Tajawal', Arial, sans-serif;
    font-weight: 900;
    font-size: 1.6em;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #38a16933;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.logo span:before {
    content: '\1F33E';
    font-size: 1.1em;
    margin-left: 0.2em;
}

nav ul {
    display: flex;
    gap: 1.2em;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li a {
    color: #22543d;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5em 1.1em;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    font-family: 'Tajawal', Arial, sans-serif;
}

nav ul li a:hover, nav ul li a.active {
    background: linear-gradient(90deg, #f6e05e 0%, #38a169 100%);
    color: #fff;
    box-shadow: 0 2px 8px #f6e05e33;
}

/* Footer Styles */
footer {
    background: var(--secondary-green);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
    font-family: 'Tajawal', Arial, sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        margin-bottom: 0.7rem;
    }
    
    .slider-container,
    .image-slider {
        height: 300px;
    }
} 