body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  direction: rtl;
}

/* ===== Header ===== */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  color: white;
  padding: 15px;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.logo {
  position: absolute;
  left: 20px;
  top: 100px;
  width: 140px;
  height: auto;
  border-radius: 8px;
  z-index: 10; /* ✨ يخليه فوق كل شيء */
  border: 2px solid white;
}

.menu-btn {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
  z-index: 1100;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  right: 0;
  top: 60px;
  width: 220px;
  height: calc(100% - 60px);
  background-color: #000000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding-top: 20px;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 12px 0;
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px 20px;
  transition: background 0.2s;
}

.sidebar a:hover {
  background-color: #d80027; /* أحمر فلسطيني */
}

.more-btn {
  display: inline-block;
  background-color: #000000;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s ease;
  margin-top: 10px;
}

.more-btn:hover {
  background-color: #d80027;
  transform: scale(1.05);
}


/* ===== Families Section ===== */
.families {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
}

.family-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-right: 5px solid #d80027;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.family-card:hover {
  transform: scale(1.02);
}

.family-card img {
  width: 200px;
  height: 150px;
  object-fit: cover;
}

.family-card .text {
  padding: 20px;
}

.family-card h2 {
  color: #c0392b;
  margin-top: 0;
}

.family-card p {
  line-height: 1.7;
  color: #333;
  margin: 0;
}

/* ===== Footer ===== */
footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .family-card {
    flex-direction: column;
    text-align: center;
  }

  .family-card img {
    width: 100%;
    height: 180px;
  }
}


.insta-icon {
  width: 28px;
  height: 28px;
}

/* ===== Media ===== */
@media (min-width: 768px) {
  main {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .logo {
    left: 10%;           /* نخليه في النص أفقيًا */
    top: 80px;            /* نخليه قريب من الأعلى */
    transform: translateX(-50%); /* يوسّطه تمامًا */
    width: 100px;         /* نصغّر حجمه شوي */
  }
}
