/* ===== عام ===== */
body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ===== Header ===== */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  color: white;
  padding: 10px 20px;
  height: 60px;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
}

.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; /* أحمر فلسطيني */
}

.church {
  display: flex;
  flex-direction: column; /* كل كارت تحت الآخر */
  gap: 15px;
  margin-top: 20px;
}

.church {
  text-align: center;
  background-color: white;
  border-right: 4px solid #da0000; /* أحمر فلسطيني */
  padding: 12px;
  border-radius: 6px;
  flex: 1 1 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== البانر ===== */
.hero {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 30px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

/* ===== Main ===== */
main {
  margin-right: 0;
  padding: 30px 20px;
  margin-bottom: 60px;
}

/* ===== قسم صور الكنيسة ===== */
.church-gallery {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
}

.church-gallery h2 {
  color: #000;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 3px solid #D80027; /* خط أحمر فلسطيني */
  display: inline-block;
  padding-bottom: 5px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 25px;
}

.photo-card {
  background-color: white;
  border: 4px double #000; /* إطار أسود مزدوج */
  outline: 3px solid #D80027; /* إطار خارجي أحمر فلسطيني */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  max-width: 90%;
}

.photo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.photo-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ===== تجاوب مع الموبايل ===== */
@media (max-width: 768px) {
  .gallery {
    flex-direction: column;
    align-items: center;
  }
}


/* ===== محتوى الكنيسة ===== */
.intro h2 {
  color: #b30000;
  border-right: 5px solid #d80027;
  padding-right: 10px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.intro p {
  line-height: 1.9;
  margin-bottom: 18px;
  text-align: justify;
  font-size: 1.1em;
  color: #333;
}

/* ===== قسم الصورة مع النص ===== */
.place-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-left: 5px solid #d80027;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  margin: 30px 0;
  padding: 25px;
  gap: 25px;
}

.place-section img {
  width: 40%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.text-content {
  flex: 1;
}

.text-content h3 {
  color: #000;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.text-content p {
  line-height: 1.8;
  color: #333;
}

/* ===== معرض الصور ===== */
.gallery {
  text-align: center;
  padding: 40px 20px;
  background-color: #f7f7f7;
  border-top: 3px solid #d80027;
  border-bottom: 3px solid #d80027;
}

.gallery h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #222;
}

.image-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.image-container img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ===== Footer ===== */
footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  margin-top: auto;
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

.insta-icon {
  width: 28px;
  height: 28px;
}

/* ===== Media ===== */
@media (max-width: 768px) {
  .place-section {
    flex-direction: column;
    text-align: center;
  }

  .place-section img {
    width: 90%;
  }

  .hero-text {
    font-size: 1.4rem;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .logo {
    left: 10%;           /* نخليه في النص أفقيًا */
    top: 70px;            /* نخليه قريب من الأعلى */
    transform: translateX(-50%); /* يوسّطه تمامًا */
    width: 100px;         /* نصغّر حجمه شوي */
  }
}


/* ===== Media ===== */
@media (min-width: 768px) {
  main {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .place-section {
    flex-direction: column;
    text-align: center;
  }

  .place-section img {
    width: 90%;
  }
}