/* Base */
body {
  font-family: "Cairo", sans-serif;
  margin: 0;
  background: #f5f5f5;
  direction: rtl;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  background: white;
  padding: 15px 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  height: 60px;
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.menu li {
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.menu li:hover {
  color: #c40000;
}

.menu a {
  text-decoration: none;
  color: inherit;
}

.menu .active {
  color: #c40000;
}

/* Hero */
.hero {
  height: 500px;
  background: url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  text-align: center;
  font-size: 32px;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  top: 0;
  left: 0;
}

.hero h1 {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

/* About */
.about {
  padding: 80px;
  background: white;
}

.about h2 {
  color: #c40000;
  margin-bottom: 15px;
}

/* Members */
.members {
  padding: 80px;
  text-align: center;
}

.member-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.member-logos img {
  height: 60px;
  opacity: 0.9;
  transition: 0.3s;
}

.member-logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* News */
.news {
  padding: 80px;
  background: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* ── UPDATED: card has no top padding so image sits flush at top ── */
.news-card {
  background: white;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ── UPDATED: show full image, no cropping ── */
.news-card img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  background: #f0f0f0;
  display: block;
  margin-bottom: 0;
}

/* ── NEW: wrapper for card text content ── */
.news-card-body {
  padding: 15px 20px 20px;
}

.news-card h3 {
  margin: 10px 0;
  font-size: 18px;
}

.news-card p {
  font-size: 14px;
  color: #555;
}

.news-date {
  display: block;
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}

.read-more {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  background: #c40000;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.read-more:hover {
  background: #900000;
}

/* Gallery */
.gallery {
  padding: 80px;
  text-align: center;
  background: #f9f9f9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* ── UPDATED: gallery item wrapper ── */
.gallery-item {
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ── UPDATED: show full gallery image ── */
.gallery-item img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
  transition: 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

/* Footer */
.footer {
  background: #222;
  color: white;
  padding: 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer h3 {
  margin-top: 0;
  color: #fff;
}

.footer p {
  margin: 5px 0;
  color: #ccc;
}

/* =====================
   MOBILE RESPONSIVE
   ===================== */

/* Large tablets */
@media (max-width: 900px) {
  .about,
  .members,
  .news,
  .gallery {
    padding: 60px 30px;
  }

  .footer {
    padding: 40px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    font-size: 26px;
    height: 400px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .header {
    padding: 12px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid #eee;
  }

  .menu.open {
    display: flex;
  }

  .menu li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    height: 280px;
    font-size: 20px;
  }

  .hero h1 {
    font-size: 22px;
    padding: 0 15px;
  }

  /* Sections */
  .about,
  .members,
  .news,
  .gallery {
    padding: 40px 15px;
  }

  .about h2,
  .members h2,
  .news h2,
  .gallery h2 {
    font-size: 20px;
  }

  /* News grid - single column */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card {
    padding: 0;
  }

  .news-card img {
    max-height: 220px;
  }

  /* Gallery grid - 2 columns on mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item img {
    max-height: 160px;
  }

  /* Member logos */
  .member-logos {
    gap: 20px;
  }

  .member-logos img {
    height: 45px;
  }

  /* Footer */
  .footer {
    padding: 40px 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer h3 {
    font-size: 16px;
  }

  .footer p {
    font-size: 14px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero {
    height: 220px;
  }

  .hero h1 {
    font-size: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    max-height: 200px;
  }

  .member-logos img {
    height: 35px;
  }
}

/* About Section */
.about-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.about-side {
  min-width: 200px;
  text-align: right;
}

.about-cards {
  display: flex;
  gap: 30px;
}

/* Footer */
.site-footer {
  background: #e8edf2;
  padding: 60px 60px 0 60px;
  font-family: "Cairo", sans-serif;
  direction: rtl;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo img {
  width: 140px;
  object-fit: contain;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 22px;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links-cols {
  display: flex;
  gap: 50px;
}

.footer-links-cols p {
  margin: 0 0 12px 0;
}

.footer-links-cols a {
  color: #555;
  text-decoration: none;
  font-size: 0.93rem;
}

.footer-contact {
  flex: 1;
  min-width: 240px;
  text-align: right;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-row p,
.footer-contact-row a {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: right;
  text-decoration: none;
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  filter: invert(20%) sepia(90%) saturate(600%) hue-rotate(340deg);
}

.footer-social {
  flex: 1;
  min-width: 200px;
  text-align: right;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-row a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-icon-fb {
  filter: invert(29%) sepia(100%) saturate(500%) hue-rotate(190deg)
    brightness(90%);
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  border-top: 1px solid #ccc;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #888;
}

/* Mobile - About & Footer */
@media (max-width: 768px) {
  .about-top {
    flex-direction: column-reverse;
    gap: 20px;
    margin-bottom: 30px;
  }

  .about-side {
    min-width: unset;
    width: 100%;
  }

  .about-cards {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer {
    padding: 40px 15px 0 15px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 25px;
  }

  .footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-links,
  .footer-contact,
  .footer-social {
    width: 100%;
    min-width: unset;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}
