@charset "UTF-8";

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

body {
  font-family: "Segoe UI", "Cairo", Tahoma, sans-serif;
  direction: rtl;
  background-color: #f5f7fa;
  color: #1f2933;
  line-height: 1.8;
}

/* ====== الروابط ====== */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* ====== الهيدر ====== */
.top-header {
  background: #1e293b;
  color: #ffffff;
  padding: 25px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #2563eb;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-area img {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
}

.logo-area h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.nav-buttons a {
  margin-right: 12px;
  padding: 10px 20px;
  background: #2563eb;
  border-radius: 25px;
  font-size: 14px;
}

.nav-buttons a:hover {
  background: #1e40af;
}

/* ====== غلاف ====== */
.hero {
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.hero p {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
  opacity: 0.95;
}

/* ====== الأقسام ====== */
section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

section h3 {
  font-size: 28px;
  margin-bottom: 25px;
  border-right: 5px solid #2563eb;
  padding-right: 12px;
  display: inline-block;
}

/* ====== شبكة البطاقات ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  column-count: 3;
  column-gap: 25px;
}

/* ====== البطاقات ====== */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.card h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card span {
  display: inline-block;
  font-size: 13px;
  color: #2563eb;
  margin-bottom: 8px;
}

.card p, .card h5 {
  font-size: 14px;
  color: #555;
}

/* ====== زر التحميل / الأزرار ====== */
.btn {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #2563eb;
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  border: 2px solid #2563eb;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

/* تأثير التعبئة */
.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: #1e40af; /* نفس لون hover حقك */
  z-index: -1;
  transition: height 0.3s ease;
}

/* عند المرور */
.btn:hover {
  color: #fff;
}

.btn:hover::after {
  height: 100%;
}


/* ====== يوتيوب ====== */
.card iframe {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  border: none;
  margin-top: 10px;
}

/* ====== الفوتر ====== */
footer {
  background: #1e293b;
  color: #cbd5e1;
  text-align: center;
  padding: 35px 20px;
}

.telegram-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 25px;
  background: #229ED9;
  color: white;
  border-radius: 30px;
  font-size: 14px;
}

/* ====== الجوال ====== */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    gap: 20px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .grid {
    gap: 20px;
  }
}

/* ================= Loader ================= */
.preloader{
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dot-container{
  display: flex;
  gap: 12px;
}

.dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot-1{ animation-delay: -0.32s; }
.dot-2{ animation-delay: -0.16s; }

@keyframes bounce{
  0%,80%,100%{
    transform: scale(0);
  }
  40%{
    transform: scale(1);
  }
}

/* إخفاء بعد التحميل */
.preloader.hide{
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
}

/* ====== مربع البحث ( ) ====== */
/* ====== حاوية البحث ====== */
.search-wrapper {
  position: relative;
  margin-top: -35px;
  margin-bottom: 60px;
  z-index: 5;
}

/* مربع البحث */
.search-wrapper {
  position: relative;
  margin-top: -35px;
  margin-bottom: 60px;
  z-index: 5;
}

.search-box {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 6px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 40px;
  box-shadow: 0 12px 30px rgba(37,99,235,0.35);
}

.search-box input {
  width: 100%;
  padding: 16px 45px 16px 26px;
  border-radius: 35px;
  border: none;
  font-size: 17px;
  outline: none;
}

/* زر X */
#clearSearch {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #94a3b8;
  display: none;
}

.search-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #64748b;
}

/* ===== تعديل البيانات ===== */
.edit-form-full{
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-form-full input,
.edit-form-full select{
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid #c7d2fe;
  font-size: 14px;
}

.edit-actions{
  display: flex;
  gap: 10px;
}

.edit-actions button{
  flex: 1;
  padding: 12px;
  border-radius: 22px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.edit-actions button[type="submit"]{
  background: linear-gradient(135deg,#2563eb,#1e40af);
  color: white;
}

.cancel-edit{
  background: #e5e7eb;
}

.cancel-edit:hover{
  background: #fecaca;
  color: #991b1b;
}

