/* =========================
   STYLE.CSS - النظام كامل
   ========================= */

/* ====== ألوان وهوية الجمعية ====== */
:root {
  --green-dark: #0b5534;
  --green-light: #1d8a4e;
  --orange: #f59e0b;
  --orange-light: #fcd34d;
  --white: #ffffff;
  --gray: #f5f5f5;
}

/* ====== الخطوط ====== */
body, input, button, select, textarea, p, span, li, label {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  direction: rtl;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: linear-gradient(-45deg, #ffffff, #f0f0f0, #ffffff, #f8f8f8);
  margin-bottom: 10px;
}

p, label, a, li {
  font-weight: 400;
}

input, select, textarea, button, .btn {
  font-family: 'Tajawal', sans-serif;
}

/* ========================
   BACKGROUND
   ======================== */
body {
  background: #f4f5f5; /* نفس خلفية الموقع */
  color: #222;
  font-family: 'Tajawal', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.5s ease-in-out;
}

/* ========================
   HEADER & NAVBAR
   ======================== */
header {
  background-color: #0c5139; /* لون أخضر داكن مشابه للموقع */
  color: #ffffff;
  padding: 20px 40px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  animation: none; /* إلغاء أي تدرج متحرك */
}

nav a {
  color: #ffffff;
  margin: 0 12px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease-in-out;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #f3b133; /* خط أصفر مشابه للموقع */
  transition: width 0.3s ease-in-out;
}

nav a:hover {
  color: #f3b133;
}

nav a:hover::after {
  width: 100%;
}

/* ========================
   BUTTONS
   ======================== */
.btn, button {
  background-color: #0c5139; /* الأخضر الداكن */
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.btn:hover, button:hover {
  background-color: #14734d; /* أخضر فاتح عند hover */
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ========================
   FORMS / INPUTS
   ======================== */
form {
  background-color: var(--white);
  color: #222;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 40px auto;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 15px 0;
  margin-top: auto;
  font-size: 14px;
  position: relative;
}

/* ========================
   ANIMATIONS
   ======================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMove 1s ease-out forwards;
}

.fade-in-delayed {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMove 1.5s ease-out forwards;
}

@keyframes fadeInMove {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   CARDS / CONTENT BOXES
   ======================== */
.card, form, .content-box, .section-box {
  opacity: 0;
  transform: translateY(25px) scale(0.98);
  animation: cardAppear 0.8s ease-out forwards;
}

.card:nth-child(2), .section-box:nth-child(2), form:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3), .section-box:nth-child(3), form:nth-child(3) { animation-delay: 0.4s; }

@keyframes cardAppear {
  0% { opacity: 0; transform: translateY(25px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.card:hover, form:hover {
  transform: translateY(-3px) scale(1.01);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card, .content-box, .section-box {
  margin-bottom: 25px;
  transition: all 0.4s ease-in-out;
}

/* ========================
   جدول البيانات - view (نص أسود)
   ======================== */
.table-container {
  width: 95%;
  margin: 30px auto;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  background-color: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Tajawal', sans-serif;
  text-align: center;
}

thead {
  background-color: var(--green-light); /* لون ثابت */
  color: var(--white);
  font-weight: 600;
}

thead th {
  padding: 12px 15px;
}

tbody tr {
  border-bottom: 1px solid #ddd;
  transition: all 0.3s ease;
  color: #000; /* لون النص أسود */
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover شفاف */
tbody tr:hover {
  background-color: rgba(0,0,0,0.05); /* شفاف خفيف */
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: #000; /* نص أسود عند hover */
}

tbody td {
  padding: 12px 10px;
}

/* للتمرير الأفقي */
.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
  background: var(--green-light);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-track {
  background: #eee;
}
/* ========================
   CONTACT FORM LAYOUT
   ======================== */
.contact-form h2 {
    margin-bottom: 20px;
    color: #0c5139;
    font-size: 24px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.contact-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form .form-group.full-width {
    flex: 100%;
}

.contact-form label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #0c5139;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 0;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 15px;
    background-color: #0c5139;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form button:hover {
    background-color: #14734d;
}

.contact-form .contact-info {
    margin-top: 25px;
    font-size: 14px;
    color: #0c5139;
}

.contact-form .contact-info a {
    color: #f3b133;
    text-decoration: none;
}

.contact-form .contact-info a:hover {
    text-decoration: underline;
}
.centered {
    display: flex;
    justify-content: center; /* توسيط أفقي */
    align-items: center;     /* توسيط عمودي */
}

