/* Makkah Branches Section */
.makkah-branches {
  padding: 6rem 0;
  background-color: #010101;
  position: relative;
}

.makkah-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #333 50%, transparent 100%);
}

.makkah-branches__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 4rem;
  text-align: center;
  color: #fff;
  position: relative;
}


.makkah-branches__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 0 auto;
  max-width: 75rem;
}

/* Branch Card */
.makkah-branch-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.4s ease;
}

.makkah-branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.makkah-branch-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.makkah-branch-card:hover::before {
  opacity: 1;
}

.makkah-branch-card__icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.makkah-branch-card:hover .makkah-branch-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.makkah-branch-card__icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: invert(1);
}

.makkah-branch-card__name {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.2;
}

.makkah-branch-card__description {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 64rem) {
  .makkah-branches__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .makkah-branches {
    padding: 4rem 0;
  }

  .makkah-branches__title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .makkah-branches__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .makkah-branch-card {
    padding: 2.5rem 2rem;
  }

  .makkah-branch-card__icon {
    width: 4rem;
    height: 4rem;
  }

  .makkah-branch-card__name {
    font-size: 1.5rem;
  }

  .makkah-branch-card__description {
    font-size: 1rem;
  }
}

@media (max-width: 36rem) {
  .makkah-branches {
    padding: 3rem 0;
  }

  .makkah-branches__title {
    font-size: 1.75rem;
  }

  .makkah-branch-card {
    padding: 2rem 1.5rem;
  }
}